diff options
author | cjihrig <cjihrig@gmail.com> | 2019-11-22 14:23:42 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2019-11-25 11:55:49 -0500 |
commit | a50cc2ed0eecf89713ea11c64b00dee416c88362 (patch) | |
tree | a34b2846f67f604b39b2b1c0f35d8f0896aa22c0 /.eslintrc.js | |
parent | 90fb308de42575adeed82d864da57148049185b3 (diff) | |
download | node-new-a50cc2ed0eecf89713ea11c64b00dee416c88362.tar.gz |
tools: enable more eslint rules
This commit enables these new in ESLint 6.7.0 rules:
- no-constructor-return
- no-dupe-else-if
- no-setter-return
PR-URL: https://github.com/nodejs/node/pull/30598
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 8bdf2ad09a..6d608f356b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -118,12 +118,14 @@ module.exports = { 'no-class-assign': 'error', 'no-confusing-arrow': 'error', 'no-const-assign': 'error', + 'no-constructor-return': 'error', 'no-control-regex': 'error', 'no-debugger': 'error', 'no-delete-var': 'error', 'no-dupe-args': 'error', 'no-dupe-class-members': 'error', 'no-dupe-keys': 'error', + 'no-dupe-else-if': 'error', 'no-duplicate-case': 'error', 'no-duplicate-imports': 'error', 'no-empty-character-class': 'error', @@ -247,6 +249,7 @@ module.exports = { 'no-return-await': 'error', 'no-self-assign': 'error', 'no-self-compare': 'error', + 'no-setter-return': 'error', 'no-shadow-restricted-names': 'error', 'no-tabs': 'error', 'no-template-curly-in-string': 'error', |