Skip to content

Commit f3c5dd2

Browse files
committedMay 6, 2020
Allow implicit undefined in array-callback-return
https://eslint.org/docs/rules/array-callback-return#options
1 parent 06e4e14 commit f3c5dd2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,12 @@ module.exports = {
8080
enforceForClassMembers: true
8181
}
8282
],
83-
'array-callback-return': 'error',
83+
'array-callback-return': [
84+
'error',
85+
{
86+
allowImplicit: true
87+
}
88+
],
8489
'block-scoped-var': 'error',
8590
complexity: 'warn',
8691
curly: 'error',

0 commit comments

Comments
 (0)
Please sign in to comment.