Skip to content

Commit

Permalink
[eslint config] [base] [patch] array-callback-return: enable `allow…
Browse files Browse the repository at this point in the history
…Implicit` option
  • Loading branch information
1pete authored and ljharb committed Dec 24, 2017
1 parent 9061044 commit 90235ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-config-airbnb-base/rules/best-practices.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {

// enforces return statements in callbacks of array's methods
// https://eslint.org/docs/rules/array-callback-return
'array-callback-return': 'error',
'array-callback-return': ['error', { allowImplicit: true }],

// treat var statements as if they were block scoped
'block-scoped-var': 'error',
Expand Down

0 comments on commit 90235ca

Please sign in to comment.