Skip to content

Commit 22a5f05

Browse files
committed
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.
1 parent 5817019 commit 22a5f05

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.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)