Skip to content

Commit 4391ea4

Browse files
TrottMylesBorins
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 2759709 commit 4391ea4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc.yaml

+1
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)