Skip to content

Commit a3535f3

Browse files
Trottjasnell
authored andcommitted
tools: enable array-callback-return ESLint rule
For array methods that depend on a callback (such as `.filter()` or `.map()`), require a return value from the callback. PR-URL: #17858 Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent fe8a5aa commit a3535f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ rules:
4343
# Best Practices
4444
# http://eslint.org/docs/rules/#best-practices
4545
accessor-pairs: error
46+
array-callback-return: error
4647
dot-location: [error, property]
4748
eqeqeq: [error, smart]
4849
no-fallthrough: error

0 commit comments

Comments
 (0)