@@ -54,7 +54,6 @@ module.exports = {
5454 ] ,
5555 'init-declarations' : 'off' ,
5656 'line-comment-position' : 'off' ,
57- 'lines-between-class-members' : 'off' ,
5857 'logical-assignment-operators' : 'warn' ,
5958 'max-classes-per-file' : 'off' ,
6059 'max-depth' : [ 'error' , 4 ] ,
@@ -66,7 +65,6 @@ module.exports = {
6665 'max-nested-callbacks' : [ 'error' , 7 ] ,
6766 'max-params' : [ 'error' , 7 ] ,
6867 'max-statements' : 'off' , // this becomes an obvious problem when it's actually a problem...
69- 'max-statements-per-line' : [ 'error' , { max : 1 } ] ,
7068 'multiline-comment-style' : 'off' , // this would be cool to get the fixer, but too strict.
7169 'new-cap' : 'error' ,
7270 'no-alert' : 'error' ,
@@ -94,7 +92,7 @@ module.exports = {
9492 'no-dupe-else-if' : 'error' ,
9593 'no-dupe-keys' : 'error' ,
9694 'no-duplicate-case' : 'error' ,
97- 'no-duplicate-imports' : 'error' ,
95+ 'no-duplicate-imports' : 'off' , // turned off in favor of `import/no-duplicates`
9896 'no-else-return' : 'off' ,
9997 'no-empty' : 'error' ,
10098 'no-empty-character-class' : 'error' ,
@@ -136,10 +134,10 @@ module.exports = {
136134 'no-new' : 'error' ,
137135 'no-new-func' : 'error' ,
138136 'no-new-native-nonconstructor' : 'error' ,
139- 'no-new-object' : 'error' ,
140137 'no-new-symbol' : 'error' ,
141138 'no-new-wrappers' : 'error' ,
142139 'no-nonoctal-decimal-escape' : 'error' ,
140+ 'no-object-constructor' : 'error' ,
143141 'no-obj-calls' : 'error' ,
144142 'no-octal' : 'error' ,
145143 'no-octal-escape' : 'error' ,
@@ -156,7 +154,6 @@ module.exports = {
156154 'no-restricted-properties' : 'off' , // no ideas of what to disallow right now...
157155 'no-restricted-syntax' : [ 'error' , 'WithStatement' ] ,
158156 'no-return-assign' : 'error' ,
159- 'no-return-await' : 'error' ,
160157 'no-script-url' : 'error' ,
161158 'no-self-assign' : 'error' ,
162159 'no-self-compare' : 'error' ,
@@ -209,7 +206,6 @@ module.exports = {
209206 'object-shorthand' : [ 'error' , 'properties' ] , // methods are optional so you can specify a name if you want
210207 'one-var' : [ 'error' , { initialized : 'never' , uninitialized : 'always' } ] ,
211208 'operator-assignment' : 'off' , // readability on a case-by-case basis
212- 'padding-line-between-statements' : 'off' , // meh...
213209 'prefer-arrow-callback' : [
214210 'error' ,
215211 { allowNamedFunctions : true , allowUnboundThis : true } ,
@@ -234,10 +230,10 @@ module.exports = {
234230 'sort-imports' : 'off' ,
235231 'sort-keys' : 'off' ,
236232 'sort-vars' : 'off' ,
237- 'spaced-comment' : 'off' ,
238233 strict : 'error' ,
239234 'symbol-description' : 'error' ,
240235 'use-isnan' : 'error' ,
236+ 'unicode-bom' : [ 'error' , 'never' ] ,
241237 'valid-typeof' : 'error' ,
242238 'vars-on-top' : 'error' ,
243239 yoda : 'error' ,
@@ -284,18 +280,12 @@ module.exports = {
284280 'init-declarations' : 'off' ,
285281 '@typescript-eslint/init-declarations' : 'off' ,
286282
287- 'lines-between-class-members' : 'off' ,
288- '@typescript-eslint/lines-between-class-members' : 'off' ,
289-
290283 'no-array-constructor' : 'off' ,
291284 '@typescript-eslint/no-array-constructor' : 'error' ,
292285
293286 'no-dupe-class-members' : 'off' ,
294287 '@typescript-eslint/no-dupe-class-members' : 'off' , // ts(2393) & ts(2300)
295288
296- 'no-duplicate-imports' : 'off' ,
297- '@typescript-eslint/no-duplicate-imports' : 'error' ,
298-
299289 'no-empty-function' : 'off' ,
300290 '@typescript-eslint/no-empty-function' : 'off' ,
301291
@@ -373,7 +363,6 @@ module.exports = {
373363 '@typescript-eslint/no-extraneous-class' : 'error' , // stay away from classes when you can
374364 '@typescript-eslint/no-floating-promises' : 'warn' , // not a bad rule, but can be annoying
375365 '@typescript-eslint/no-for-in-array' : 'error' ,
376- '@typescript-eslint/no-implicit-any-catch' : 'warn' ,
377366 '@typescript-eslint/no-inferrable-types' : 'off' , // I personally prefer relying on inference where possible, but I don't want to lint for it.
378367 '@typescript-eslint/no-invalid-void-type' : 'warn' ,
379368 '@typescript-eslint/no-misused-new' : 'error' ,
@@ -384,7 +373,6 @@ module.exports = {
384373 '@typescript-eslint/no-namespace' : 'error' ,
385374 '@typescript-eslint/no-non-null-asserted-optional-chain' : 'error' ,
386375 '@typescript-eslint/no-non-null-assertion' : 'error' ,
387- '@typescript-eslint/no-parameter-properties' : 'error' , // yeah, I don't like this feature
388376 '@typescript-eslint/no-require-imports' : 'off' , // sometimes you can't do it any other way
389377 '@typescript-eslint/no-this-alias' : 'error' ,
390378 '@typescript-eslint/no-type-alias' : 'off' ,
@@ -401,6 +389,7 @@ module.exports = {
401389 '@typescript-eslint/no-unsafe-return' : 'off' , // seems like an ok idea, but it failed on a regular React Component
402390 '@typescript-eslint/no-var-requires' : 'error' ,
403391 '@typescript-eslint/non-nullable-type-assertion-style' : 'off' ,
392+ '@typescript-eslint/parameter-properties' : 'error' ,
404393 '@typescript-eslint/prefer-as-const' : 'error' ,
405394 '@typescript-eslint/prefer-enum-initializers' : 'error' , // makes total sense
406395 '@typescript-eslint/prefer-for-of' : 'off' , // I prefer for of, but I don't want to lint for it
0 commit comments