@@ -243,7 +243,9 @@ module.exports = {
243
243
// These are error by default for JS too
244
244
'@typescript-eslint/no-unsafe-call' : 'warn' ,
245
245
'@typescript-eslint/no-unsafe-member-access' : 'warn' ,
246
- '@typescript-eslint/no-unsafe-return' : 'warn' ,
246
+ // Turned off this rule since it was throwing
247
+ // TypeError: Cannot read property 'kind' of undefined
248
+ '@typescript-eslint/no-unsafe-return' : 'off' ,
247
249
'@typescript-eslint/no-unsafe-assignment' : 'warn' ,
248
250
249
251
'unicorn/filename-case' : [ 'error' , { cases : { camelCase : true , pascalCase : true , kebabCase : true } } ] ,
@@ -318,8 +320,10 @@ module.exports = {
318
320
rev : { revision : true } ,
319
321
// Allow since it's a React term
320
322
props : false ,
323
+ func : false ,
324
+ ref : false ,
321
325
} ,
322
- whitelist : {
326
+ allowList : {
323
327
args : true , // arguments is special
324
328
fs : true , // NodeJS standard library
325
329
} ,
@@ -328,6 +332,56 @@ module.exports = {
328
332
329
333
'unused-imports/no-unused-imports' : 'error' ,
330
334
'unused-imports/no-unused-vars' : 'off' ,
335
+ // New rules added to unicorn
336
+ 'unicorn/no-array-reduce' : 'off' ,
337
+ 'unicorn/no-array-callback-reference' : 'off' ,
338
+ 'unicorn/numeric-separators-style' : 'off' ,
339
+ 'unicorn/prefer-switch' : 'off' ,
340
+ 'unicorn/prefer-spread' : 'off' ,
341
+ 'unicorn/template-indent' : 'off' ,
342
+ 'unicorn/prefer-export-from' : 'off' ,
343
+ 'unicorn/explicit-length-check' : 'off' ,
344
+ 'unicorn/prefer-date-now' : 'off' ,
345
+ 'unicorn/no-await-expression-member' : 'off' ,
346
+ 'unicorn/prefer-dom-node-text-content' : 'off' ,
347
+ 'unicorn/consistent-destructuring' : 'off' ,
348
+ 'unicorn/no-new-array' : 'off' ,
349
+ 'unicorn/prefer-ternary' : 'off' ,
350
+ 'unicorn/prefer-dom-node-dataset' : 'off' ,
351
+ 'unicorn/no-useless-spread' : 'off' ,
352
+ 'unicorn/no-lonely-if' : 'off' ,
353
+ 'unicorn/prefer-array-some' : 'off' ,
354
+ 'unicorn/prefer-native-coercion-functions' : 'off' ,
355
+ 'unicorn/relative-url-style' : 'off' ,
356
+ 'unicorn/prefer-array-flat-map' : 'off' ,
357
+ 'unicorn/prefer-node-protocol' : 'off' ,
358
+ 'unicorn/prefer-module' : 'off' ,
359
+ 'unicorn/no-useless-promise-resolve-reject' : 'off' ,
360
+ 'unicorn/no-array-method-this-argument' : 'off' ,
361
+ 'unicorn/no-array-for-each' : 'off' ,
362
+ 'no-unsafe-optional-chaining' : 'off' ,
363
+ 'unicorn/import-style' : 'off' ,
364
+ 'unicorn/no-array-push-push' : 'off' ,
365
+ 'unicorn/no-useless-switch-case' : 'off' ,
366
+ 'unicorn/prefer-regexp-test' : 'off' ,
367
+ 'unicorn/no-object-as-default-parameter' : 'off' ,
368
+ 'unicorn/prefer-code-point' : 'off' ,
369
+ 'unicorn/prefer-object-from-entries' : 'off' ,
370
+ 'unicorn/prefer-math-trunc' : 'off' ,
371
+ 'unicorn/text-encoding-identifier-case' : 'off' ,
372
+ 'unicorn/no-unreadable-iife' : 'off' ,
373
+ 'unicorn/error-message' : 'off' ,
374
+ 'unicorn/no-thenable' : 'off' ,
375
+ 'unicorn/prefer-array-index-of' : 'off' ,
376
+
377
+ '@typescript-eslint/no-unsafe-argument' : 'off' ,
378
+ '@typescript-eslint/no-unnecessary-type-constraint' : 'off' ,
379
+ // End
380
+
381
+ // Previous Rules that has been causing errors after upgrading
382
+ 'unicorn/consistent-function-scoping' : 'off' ,
383
+ 'rxjs/no-nested-subscribe' : 'off' ,
384
+ // End
331
385
} ,
332
386
overrides : [
333
387
{
@@ -402,7 +456,9 @@ module.exports = {
402
456
// Switch to error when all cases are fixed
403
457
'@typescript-eslint/no-unsafe-call' : 'warn' ,
404
458
'@typescript-eslint/no-unsafe-member-access' : 'warn' ,
405
- '@typescript-eslint/no-unsafe-return' : 'warn' ,
459
+ // Turned off this rule since it was throwing
460
+ // TypeError: Cannot read property 'kind' of undefined
461
+ '@typescript-eslint/no-unsafe-return' : 'off' ,
406
462
'@typescript-eslint/no-unsafe-assignment' : 'warn' ,
407
463
'@typescript-eslint/no-unused-vars' : [
408
464
'warn' ,
@@ -430,7 +486,9 @@ module.exports = {
430
486
'@typescript-eslint/prefer-nullish-coalescing' : 'off' , // https://github.com/typescript-eslint/typescript-eslint/issues/1265
431
487
'@typescript-eslint/type-annotation-spacing' : 'off' ,
432
488
'@typescript-eslint/triple-slash-reference' : 'error' ,
433
- '@typescript-eslint/restrict-template-expressions' : [ 'error' , { allowNumber : true , allowBoolean : true } ] ,
489
+ // This rule was causing error so turned it off
490
+ // '@typescript-eslint/restrict-template-expressions': ['error', { allowNumber: true, allowBoolean: true }],
491
+ '@typescript-eslint/restrict-template-expressions' : 'off' ,
434
492
'@typescript-eslint/return-await' : 'error' ,
435
493
'@typescript-eslint/unbound-method' : 'error' ,
436
494
'@typescript-eslint/unified-signatures' : 'error' ,
0 commit comments