summaryrefslogtreecommitdiff
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-12-24 23:11:15 -0800
committerJames M Snell <jasnell@gmail.com>2017-12-28 09:05:44 -0800
commita3535f3f6f976a430df20953ae2d634ee3e05408 (patch)
treefd82fd60231bca18ad719a717bc1f90366fe6227 /.eslintrc.yaml
parentfe8a5aa0b2f09e689ae77b2f97e2baafa5d9a31f (diff)
downloadnode-new-a3535f3f6f976a430df20953ae2d634ee3e05408.tar.gz
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: https://github.com/nodejs/node/pull/17858 Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index da49eb8b4f..4735778b7b 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -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