Skip to content

Commit 90235ca

Browse files
1peteljharb
authored andcommitted
[eslint config] [base] [patch] array-callback-return: enable allowImplicit option
1 parent 9061044 commit 90235ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/eslint-config-airbnb-base/rules/best-practices.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55

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

1010
// treat var statements as if they were block scoped
1111
'block-scoped-var': 'error',

0 commit comments

Comments
 (0)