diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-05-12 03:00:11 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-06-11 15:59:18 +0200 |
commit | cddff701f89d91c2ea4580a035b30b4f8cb81828 (patch) | |
tree | ff0db270deb12010724e27946755d2488ac5db9d /.eslintrc.js | |
parent | 0117b3ff3cda5838506536005f8d1c7e559e8410 (diff) | |
download | android-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.js | 2 |
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', |