@@ -79,7 +79,7 @@ module.exports = {
79
79
'node/prefer-promises/fs' : 'off' ,
80
80
81
81
//////////////////////////////////////////////////////////////////////////////
82
- // `eslint-plugin-import` rule list based on `v2.26 .x`
82
+ // `eslint-plugin-import` rule list based on `v2.27 .x`
83
83
//////////////////////////////////////////////////////////////////////////////
84
84
85
85
// Static analysis
@@ -114,6 +114,7 @@ module.exports = {
114
114
'import/no-extraneous-dependencies' : [ 'error' , { devDependencies : false } ] ,
115
115
'import/no-mutable-exports' : 'error' ,
116
116
'import/no-unused-modules' : 'error' ,
117
+ 'import/no-empty-named-blocks' : 'error' ,
117
118
118
119
// Module systems
119
120
// https://github.com/benmosher/eslint-plugin-import#module-systems
@@ -125,6 +126,7 @@ module.exports = {
125
126
126
127
// Style guide
127
128
// https://github.com/benmosher/eslint-plugin-import#style-guide
129
+ 'import/consistent-type-specifier-style' : 'error' ,
128
130
'import/first' : 'error' ,
129
131
'import/exports-last' : 'off' ,
130
132
'import/no-duplicates' : 'error' ,
@@ -146,7 +148,7 @@ module.exports = {
146
148
'import/dynamic-import-chunkname' : 'off' ,
147
149
148
150
//////////////////////////////////////////////////////////////////////////////
149
- // `eslint-plugin-simple-import-sort` rule list based on `v8 .0.x`
151
+ // `eslint-plugin-simple-import-sort` rule list based on `v10 .0.x`
150
152
// https://github.com/lydell/eslint-plugin-simple-import-sort
151
153
//////////////////////////////////////////////////////////////////////////////
152
154
@@ -186,7 +188,7 @@ module.exports = {
186
188
'simple-import-sort/exports' : 'off' , // TODO: error
187
189
188
190
//////////////////////////////////////////////////////////////////////////////
189
- // ESLint builtin rules list based on `v8.27 .x`
191
+ // ESLint builtin rules list based on `v8.34 .x`
190
192
//////////////////////////////////////////////////////////////////////////////
191
193
192
194
// Possible Errors
@@ -344,7 +346,10 @@ module.exports = {
344
346
'no-proto' : 'error' ,
345
347
'no-redeclare' : 'error' ,
346
348
'no-regex-spaces' : 'error' ,
347
- 'no-restricted-exports' : 'off' ,
349
+ 'no-restricted-exports' : [
350
+ 'error' ,
351
+ { restrictDefaultExports : { direct : true } } ,
352
+ ] ,
348
353
'no-restricted-globals' : 'off' ,
349
354
'no-restricted-imports' : 'off' ,
350
355
'no-restricted-properties' : 'off' ,
@@ -503,7 +508,7 @@ module.exports = {
503
508
'tsdoc/syntax' : 'error' ,
504
509
505
510
//////////////////////////////////////////////////////////////////////////
506
- // `@typescript-eslint/eslint-plugin` rule list based on `v5.43 .x`
511
+ // `@typescript-eslint/eslint-plugin` rule list based on `v5.53 .x`
507
512
//////////////////////////////////////////////////////////////////////////
508
513
509
514
// Supported Rules
@@ -545,13 +550,15 @@ module.exports = {
545
550
'@typescript-eslint/no-floating-promises' : 'error' ,
546
551
'@typescript-eslint/no-for-in-array' : 'error' ,
547
552
'@typescript-eslint/no-implicit-any-catch' : 'off' , // TODO: Enable after TS conversion
553
+ '@typescript-eslint/no-import-type-side-effects' : 'error' ,
548
554
'@typescript-eslint/no-implied-eval' : 'error' ,
549
555
'@typescript-eslint/no-inferrable-types' : [
550
556
'error' ,
551
557
{ ignoreParameters : true , ignoreProperties : true } ,
552
558
] ,
553
559
'@typescript-eslint/no-misused-new' : 'error' ,
554
560
'@typescript-eslint/no-misused-promises' : 'error' ,
561
+ '@typescript-eslint/no-mixed-enums' : 'error' ,
555
562
'@typescript-eslint/no-namespace' : 'error' ,
556
563
'@typescript-eslint/no-non-null-asserted-nullish-coalescing' : 'error' ,
557
564
'@typescript-eslint/no-non-null-asserted-optional-chain' : 'error' ,
@@ -665,13 +672,15 @@ module.exports = {
665
672
666
673
// Below rules are disabled because they conflict with Prettier, see:
667
674
// https://github.com/prettier/eslint-config-prettier/blob/main/index.js
675
+ '@typescript-eslint/block-spacing' : 'off' ,
668
676
'@typescript-eslint/object-curly-spacing' : 'off' ,
669
677
'@typescript-eslint/quotes' : 'off' ,
670
678
'@typescript-eslint/brace-style' : 'off' ,
671
679
'@typescript-eslint/comma-dangle' : 'off' ,
672
680
'@typescript-eslint/comma-spacing' : 'off' ,
673
681
'@typescript-eslint/func-call-spacing' : 'off' ,
674
682
'@typescript-eslint/indent' : 'off' ,
683
+ '@typescript-eslint/key-spacing' : 'off' ,
675
684
'@typescript-eslint/keyword-spacing' : 'off' ,
676
685
'@typescript-eslint/member-delimiter-style' : 'off' ,
677
686
'@typescript-eslint/no-extra-parens' : 'off' ,
@@ -805,6 +814,7 @@ module.exports = {
805
814
} ,
806
815
} ,
807
816
rules : {
817
+ 'no-restricted-exports' : 'off' ,
808
818
'node/no-unpublished-require' : 'off' ,
809
819
'import/no-default-export' : 'off' ,
810
820
'import/no-commonjs' : 'off' ,
0 commit comments