summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-05-12 03:00:11 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2019-06-11 15:59:18 +0200
commitcddff701f89d91c2ea4580a035b30b4f8cb81828 (patch)
treeff0db270deb12010724e27946755d2488ac5db9d /.eslintrc.js
parent0117b3ff3cda5838506536005f8d1c7e559e8410 (diff)
downloadandroid-node-v8-cddff701f89d91c2ea4580a035b30b4f8cb81828.tar.gz
android-node-v8-cddff701f89d91c2ea4580a035b30b4f8cb81828.tar.bz2
android-node-v8-cddff701f89d91c2ea4580a035b30b4f8cb81828.zip
tools: activate more eslint rules
This activates the following recommended eslint rules: - no-async-promise-executor - no-shadow-restricted-names PR-URL: https://github.com/nodejs/node/pull/27670 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index fa91d11f73..cd59fd8339 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -114,6 +114,7 @@ module.exports = {
tabWidth: 2,
}],
'new-parens': 'error',
+ 'no-async-promise-executor': 'error',
'no-class-assign': 'error',
'no-confusing-arrow': 'error',
'no-const-assign': 'error',
@@ -246,6 +247,7 @@ module.exports = {
'no-return-await': 'error',
'no-self-assign': 'error',
'no-self-compare': 'error',
+ 'no-shadow-restricted-names': 'error',
'no-tabs': 'error',
'no-template-curly-in-string': 'error',
'no-this-before-super': 'error',