Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 84f7b5c

Browse filesBrowse files
cjihrigaddaleax
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 <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 5522467 commit 84f7b5c
Copy full SHA for 84f7b5c

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Collapse file

‎.eslintrc.js‎

Copy file name to clipboardExpand all lines: .eslintrc.js
+3Lines changed: 3 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.