Skip to content

Commit

Permalink
tools: enable array-callback-return ESLint rule
Browse files Browse the repository at this point in the history
For array methods that depend on a callback (such as `.filter()` or
`.map()`), require a return value from the callback.
  • Loading branch information
Trott committed Dec 27, 2017
1 parent 5817019 commit 22a5f05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ rules:
# Best Practices
# http://eslint.org/docs/rules/#best-practices
accessor-pairs: error
array-callback-return: error
dot-location: [error, property]
eqeqeq: [error, smart]
no-fallthrough: error
Expand Down

0 comments on commit 22a5f05

Please sign in to comment.