Skip to content

Commit d9d6da4

Browse files
cjihrigtargos
authored andcommitted
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: #30598 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 701a1d5 commit d9d6da4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.eslintrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,14 @@ module.exports = {
118118
'no-class-assign': 'error',
119119
'no-confusing-arrow': 'error',
120120
'no-const-assign': 'error',
121+
'no-constructor-return': 'error',
121122
'no-control-regex': 'error',
122123
'no-debugger': 'error',
123124
'no-delete-var': 'error',
124125
'no-dupe-args': 'error',
125126
'no-dupe-class-members': 'error',
126127
'no-dupe-keys': 'error',
128+
'no-dupe-else-if': 'error',
127129
'no-duplicate-case': 'error',
128130
'no-duplicate-imports': 'error',
129131
'no-empty-character-class': 'error',
@@ -247,6 +249,7 @@ module.exports = {
247249
'no-return-await': 'error',
248250
'no-self-assign': 'error',
249251
'no-self-compare': 'error',
252+
'no-setter-return': 'error',
250253
'no-shadow-restricted-names': 'error',
251254
'no-tabs': 'error',
252255
'no-template-curly-in-string': 'error',

0 commit comments

Comments
 (0)