Skip to content

Commit

Permalink
Enforces return statements in callbacks of array's methods (array-cal…
Browse files Browse the repository at this point in the history
…lback-return)

Fixes: standard/standard#859
  • Loading branch information
feross committed Oct 28, 2020
1 parent def53fe commit 6979424
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"rules": {
"accessor-pairs": "error",
"array-bracket-spacing": ["error", "never"],
"array-callback-return": ["error", {
"allowImplicit": false,
"checkForEach": false
}],
"arrow-spacing": ["error", { "before": true, "after": true }],
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
Expand Down

0 comments on commit 6979424

Please sign in to comment.