@@ -40,8 +40,7 @@ module.exports = {
40
40
41
41
// Disallow duplicate conditions in if-else-if chains
42
42
// https://eslint.org/docs/rules/no-dupe-else-if
43
- // TODO: enable, semver-major
44
- 'no-dupe-else-if' : 'off' ,
43
+ 'no-dupe-else-if' : 'error' ,
45
44
46
45
// disallow duplicate keys when creating object literals
47
46
'no-dupe-keys' : 'error' ,
@@ -79,8 +78,7 @@ module.exports = {
79
78
'no-func-assign' : 'error' ,
80
79
81
80
// https://eslint.org/docs/rules/no-import-assign
82
- // TODO: enable, semver-minor, once eslint v6.4 is required (which is a major)
83
- 'no-import-assign' : 'off' ,
81
+ 'no-import-assign' : 'error' ,
84
82
85
83
// disallow function or variable declarations in nested blocks
86
84
'no-inner-declarations' : 'error' ,
@@ -93,8 +91,7 @@ module.exports = {
93
91
94
92
// Disallow Number Literals That Lose Precision
95
93
// https://eslint.org/docs/rules/no-loss-of-precision
96
- // TODO: enable, semver-minor, once eslint v7.1 is required (which is major)
97
- 'no-loss-of-precision' : 'off' ,
94
+ 'no-loss-of-precision' : 'error' ,
98
95
99
96
// Disallow characters which are made with multiple code points in character class syntax
100
97
// https://eslint.org/docs/rules/no-misleading-character-class
@@ -105,8 +102,7 @@ module.exports = {
105
102
106
103
// Disallow returning values from Promise executor functions
107
104
// https://eslint.org/docs/rules/no-promise-executor-return
108
- // TODO: enable, semver-minor, once eslint v7.3 is required (which is major)
109
- 'no-promise-executor-return' : 'off' ,
105
+ 'no-promise-executor-return' : 'error' ,
110
106
111
107
// disallow use of Object.prototypes builtins directly
112
108
// https://eslint.org/docs/rules/no-prototype-builtins
@@ -117,8 +113,7 @@ module.exports = {
117
113
118
114
// Disallow returning values from setters
119
115
// https://eslint.org/docs/rules/no-setter-return
120
- // TODO: enable, semver-major (altho the guide forbids getters/setters already)
121
- 'no-setter-return' : 'off' ,
116
+ 'no-setter-return' : 'error' ,
122
117
123
118
// disallow sparse arrays
124
119
'no-sparse-arrays' : 'error' ,
@@ -136,8 +131,7 @@ module.exports = {
136
131
137
132
// Disallow loops with a body that allows only one iteration
138
133
// https://eslint.org/docs/rules/no-unreachable-loop
139
- // TODO: enable, semver-minor, once eslint v7.3 is required (which is major)
140
- 'no-unreachable-loop' : [ 'off' , {
134
+ 'no-unreachable-loop' : [ 'error' , {
141
135
ignore : [ ] , // WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement
142
136
} ] ,
143
137
@@ -151,13 +145,16 @@ module.exports = {
151
145
152
146
// disallow use of optional chaining in contexts where the undefined value is not allowed
153
147
// https://eslint.org/docs/rules/no-unsafe-optional-chaining
154
- // TODO: enable, semver-minor, once eslint v7.15 is required (which is major)
155
- 'no-unsafe-optional-chaining' : [ 'off' , { disallowArithmeticOperators : true } ] ,
148
+ 'no-unsafe-optional-chaining' : [ 'error' , { disallowArithmeticOperators : true } ] ,
149
+
150
+ // Disallow Unused Private Class Members
151
+ // https://eslint.org/docs/rules/no-unused-private-class-members
152
+ // TODO: enable once eslint 7 is dropped (which is semver-major)
153
+ 'no-unused-private-class-members' : 'off' ,
156
154
157
155
// Disallow useless backreferences in regular expressions
158
156
// https://eslint.org/docs/rules/no-useless-backreference
159
- // TODO: enable, semver-minor, once eslint v7 is required (which is major)
160
- 'no-useless-backreference' : 'off' ,
157
+ 'no-useless-backreference' : 'error' ,
161
158
162
159
// disallow negation of the left operand of an in expression
163
160
// deprecated in favor of no-unsafe-negation
0 commit comments