Skip to content

Commit 6979424

Browse files
committedOct 28, 2020
Enforces return statements in callbacks of array's methods (array-callback-return)
Fixes: standard/standard#859
1 parent def53fe commit 6979424

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎eslintrc.json

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
"rules": {
2929
"accessor-pairs": "error",
3030
"array-bracket-spacing": ["error", "never"],
31+
"array-callback-return": ["error", {
32+
"allowImplicit": false,
33+
"checkForEach": false
34+
}],
3135
"arrow-spacing": ["error", { "before": true, "after": true }],
3236
"block-spacing": ["error", "always"],
3337
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],

0 commit comments

Comments
 (0)
Please sign in to comment.