@@ -21,18 +21,25 @@ module.exports = {
21
21
'import/namespace' : 'off' ,
22
22
'import/export' : 'off' ,
23
23
24
- // `allowRequire` is covered by @typescript-eslint/no-require-imports
25
- 'import/no-commonjs' : [ 'error' , { allowRequire : true } ] ,
26
- // Covered by @typescript -eslint/no-require-imports
27
- 'global-require' : 'off' ,
28
- // Covered by @typescript -eslint/no-misused-promises
29
- 'no-async-promise-executor' : 'off' ,
30
-
31
24
// TODO: Should be covered by a type-based rule
32
25
// 'import/no-deprecated': 'off',
33
26
27
+ // Extension Rules
28
+ 'no-array-constructor' : 'off' ,
29
+ '@typescript-eslint/no-array-constructor' : 'error' ,
34
30
'no-loop-func' : 'off' ,
35
31
'@typescript-eslint/no-loop-func' : 'error' ,
32
+ 'no-unused-expressions' : 'off' ,
33
+ '@typescript-eslint/no-unused-expressions' : 'error' ,
34
+ 'no-useless-constructor' : 'off' ,
35
+ '@typescript-eslint/no-useless-constructor' : 'error' ,
36
+ quotes : 'off' ,
37
+ '@typescript-eslint/quotes' : [
38
+ 'error' ,
39
+ 'single' ,
40
+ { avoidEscape : true , allowTemplateLiterals : false } ,
41
+ ] ,
42
+
36
43
'@typescript-eslint/adjacent-overload-signatures' : 'error' ,
37
44
'@typescript-eslint/array-type' : 'error' ,
38
45
'@typescript-eslint/await-thenable' : 'error' ,
@@ -89,17 +96,19 @@ module.exports = {
89
96
custom : { regex : '^I[A-Z]' , match : false } ,
90
97
} ,
91
98
] ,
92
- 'no-array-constructor' : 'off' ,
93
- '@typescript-eslint/no-array-constructor' : 'error' ,
94
99
'@typescript-eslint/no-empty-interface' : 'error' ,
95
100
'@typescript-eslint/no-extra-non-null-assertion' : 'error' ,
96
101
'@typescript-eslint/no-extraneous-class' : 'error' ,
97
102
'@typescript-eslint/no-floating-promises' : 'error' ,
98
103
'@typescript-eslint/no-for-in-array' : 'error' ,
99
104
'@typescript-eslint/no-inferrable-types' : 'error' ,
100
105
'@typescript-eslint/no-misused-new' : 'error' ,
106
+ 'no-async-promise-executor' : 'off' ,
101
107
'@typescript-eslint/no-misused-promises' : 'error' ,
102
108
'@typescript-eslint/no-namespace' : 'error' ,
109
+ // `allowRequire` is covered by @typescript-eslint/no-require-imports
110
+ 'import/no-commonjs' : [ 'error' , { allowRequire : true } ] ,
111
+ 'global-require' : 'off' ,
103
112
'@typescript-eslint/no-require-imports' : 'error' ,
104
113
'@typescript-eslint/no-this-alias' : 'error' ,
105
114
'no-throw-literal' : 'off' ,
@@ -109,10 +118,6 @@ module.exports = {
109
118
'@typescript-eslint/no-unnecessary-qualifier' : 'error' ,
110
119
'@typescript-eslint/no-unnecessary-type-arguments' : 'error' ,
111
120
'@typescript-eslint/no-unnecessary-type-assertion' : 'error' ,
112
- 'no-unused-expressions' : 'off' ,
113
- '@typescript-eslint/no-unused-expressions' : 'error' ,
114
- 'no-useless-constructor' : 'off' ,
115
- '@typescript-eslint/no-useless-constructor' : 'error' ,
116
121
// TODO: Enable instead of unicorn/no-for-loop after https://github.com/typescript-eslint/typescript-eslint/issues/702
117
122
// '@typescript-eslint/prefer-for-of': 'off',
118
123
'@typescript-eslint/prefer-function-type' : 'error' ,
@@ -124,12 +129,6 @@ module.exports = {
124
129
'@typescript-eslint/prefer-readonly' : 'error' ,
125
130
'@typescript-eslint/prefer-string-starts-ends-with' : 'error' ,
126
131
'@typescript-eslint/promise-function-async' : [ 'error' , { checkArrowFunctions : false } ] ,
127
- quotes : 'off' ,
128
- '@typescript-eslint/quotes' : [
129
- 'error' ,
130
- 'single' ,
131
- { avoidEscape : true , allowTemplateLiterals : false } ,
132
- ] ,
133
132
'@typescript-eslint/require-array-sort-compare' : 'error' ,
134
133
'@typescript-eslint/require-await' : 'error' ,
135
134
'@typescript-eslint/restrict-plus-operands' : [ 'error' , { checkCompoundAssignments : true } ] ,
0 commit comments