@@ -40,8 +40,7 @@ module.exports = {
4040
4141 // Disallow duplicate conditions in if-else-if chains
4242 // 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' ,
4544
4645 // disallow duplicate keys when creating object literals
4746 'no-dupe-keys' : 'error' ,
@@ -79,8 +78,7 @@ module.exports = {
7978 'no-func-assign' : 'error' ,
8079
8180 // 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' ,
8482
8583 // disallow function or variable declarations in nested blocks
8684 'no-inner-declarations' : 'error' ,
@@ -93,8 +91,7 @@ module.exports = {
9391
9492 // Disallow Number Literals That Lose Precision
9593 // 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' ,
9895
9996 // Disallow characters which are made with multiple code points in character class syntax
10097 // https://eslint.org/docs/rules/no-misleading-character-class
@@ -105,8 +102,7 @@ module.exports = {
105102
106103 // Disallow returning values from Promise executor functions
107104 // 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' ,
110106
111107 // disallow use of Object.prototypes builtins directly
112108 // https://eslint.org/docs/rules/no-prototype-builtins
@@ -117,8 +113,7 @@ module.exports = {
117113
118114 // Disallow returning values from setters
119115 // 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' ,
122117
123118 // disallow sparse arrays
124119 'no-sparse-arrays' : 'error' ,
@@ -136,8 +131,7 @@ module.exports = {
136131
137132 // Disallow loops with a body that allows only one iteration
138133 // 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' , {
141135 ignore : [ ] , // WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement
142136 } ] ,
143137
@@ -151,13 +145,16 @@ module.exports = {
151145
152146 // disallow use of optional chaining in contexts where the undefined value is not allowed
153147 // 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' ,
156154
157155 // Disallow useless backreferences in regular expressions
158156 // 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' ,
161158
162159 // disallow negation of the left operand of an in expression
163160 // deprecated in favor of no-unsafe-negation
0 commit comments