@pplancq/eslint-config 6.0.17 → 6.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +1 -1
- package/bin/init.mjs +4 -4
- package/main.js +18 -18
- package/package.json +9 -9
- package/rules/base.js +509 -509
- package/rules/import.js +87 -87
- package/rules/playwright.js +55 -55
- package/rules/prettier.js +107 -107
- package/rules/react-jsx-a11y.js +70 -70
- package/rules/react.js +256 -256
- package/rules/typescript.js +157 -157
- package/rules/vitest.js +56 -56
package/rules/typescript.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
/* eslint-disable import/no-unresolved */
|
|
2
|
-
import typescriptEslintPlugin from
|
|
3
|
-
import typescriptEslintParser from
|
|
2
|
+
import typescriptEslintPlugin from "@typescript-eslint/eslint-plugin";
|
|
3
|
+
import typescriptEslintParser from "@typescript-eslint/parser";
|
|
4
4
|
|
|
5
5
|
export const typescriptRules = {
|
|
6
6
|
plugins: {
|
|
7
|
-
|
|
7
|
+
"@typescript-eslint": typescriptEslintPlugin,
|
|
8
8
|
},
|
|
9
9
|
languageOptions: {
|
|
10
|
-
ecmaVersion:
|
|
11
|
-
sourceType:
|
|
10
|
+
ecmaVersion: "latest",
|
|
11
|
+
sourceType: "module",
|
|
12
12
|
parser: typescriptEslintParser,
|
|
13
13
|
},
|
|
14
14
|
settings: {
|
|
15
|
-
|
|
15
|
+
"import/resolver": {
|
|
16
16
|
typescript: true,
|
|
17
17
|
node: {
|
|
18
|
-
extensions: [
|
|
18
|
+
extensions: [".js", ".ts"],
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
rules: {
|
|
23
23
|
// disable eslint default rule for ts
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
24
|
+
"constructor-super": "off", // ts(2335) & ts(2377)
|
|
25
|
+
"getter-return": "off", // ts(2378)
|
|
26
|
+
"no-class-assign": "off", // ts(2629)
|
|
27
|
+
"no-const-assign": "off", // ts(2588)
|
|
28
|
+
"no-dupe-args": "off", // ts(2300)
|
|
29
|
+
"no-dupe-class-members": "off", // ts(2393) & ts(2300)
|
|
30
|
+
"no-dupe-keys": "off", // ts(1117)
|
|
31
|
+
"no-func-assign": "off", // ts(2630)
|
|
32
|
+
"no-import-assign": "off", // ts(2632) & ts(2540)
|
|
33
|
+
"no-new-symbol": "off", // ts(7009)
|
|
34
|
+
"no-new-native-nonconstructor": "off", // ts(7009)
|
|
35
|
+
"no-obj-calls": "off", // ts(2349)
|
|
36
|
+
"no-setter-return": "off", // ts(2408)
|
|
37
|
+
"no-this-before-super": "off", // ts(2376) & ts(17009)
|
|
38
|
+
"no-undef": "off", // ts(2304) & ts(2552)
|
|
39
|
+
"no-unreachable": "off", // ts(7027)
|
|
40
|
+
"no-unsafe-negation": "off", // ts(2365) & ts(2322) & ts(2358)
|
|
41
|
+
"no-var": "error", // ts transpiles let/const to var, so no need for vars any more
|
|
42
42
|
|
|
43
43
|
// eslint-plugin-import https://github.com/import-js/eslint-plugin-import
|
|
44
44
|
|
|
45
45
|
// import/extensions
|
|
46
46
|
// https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/extensions.md
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
"import/extensions": [
|
|
48
|
+
"error",
|
|
49
|
+
"ignorePackages",
|
|
50
50
|
{
|
|
51
|
-
js:
|
|
52
|
-
ts:
|
|
51
|
+
js: "never",
|
|
52
|
+
ts: "never",
|
|
53
53
|
},
|
|
54
54
|
],
|
|
55
55
|
|
|
@@ -58,509 +58,509 @@ export const typescriptRules = {
|
|
|
58
58
|
|
|
59
59
|
// Require that `function` overload signatures be consecutive.
|
|
60
60
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/adjacent-overload-signatures.mdx
|
|
61
|
-
|
|
61
|
+
"@typescript-eslint/adjacent-overload-signatures": "off",
|
|
62
62
|
|
|
63
63
|
// Require consistently using either `T[]` or `Array<T>` for arrays.
|
|
64
64
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/array-type.mdx
|
|
65
|
-
|
|
65
|
+
"@typescript-eslint/array-type": "off",
|
|
66
66
|
|
|
67
67
|
// Disallow awaiting a value that is not a `Thenable`.
|
|
68
68
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/await-thenable.mdx
|
|
69
|
-
|
|
69
|
+
"@typescript-eslint/await-thenable": "off",
|
|
70
70
|
|
|
71
71
|
// Disallow `@ts-<directive>` comments or require descriptions after directives.
|
|
72
72
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/ban-ts-comment.mdx
|
|
73
|
-
|
|
73
|
+
"@typescript-eslint/ban-ts-comment": "error",
|
|
74
74
|
|
|
75
75
|
// Disallow `// tslint:<rule-flag>` comments.
|
|
76
76
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/ban-tslint-comment.mdx
|
|
77
|
-
|
|
77
|
+
"@typescript-eslint/ban-tslint-comment": "off",
|
|
78
78
|
|
|
79
79
|
// Enforce that literals on classes are exposed in a consistent style
|
|
80
80
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/class-literal-property-style.mdx
|
|
81
|
-
|
|
81
|
+
"@typescript-eslint/class-literal-property-style": "off",
|
|
82
82
|
|
|
83
83
|
// Enforce that class methods utilize `this`.
|
|
84
84
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/class-methods-use-this.mdx
|
|
85
85
|
// 'class-methods-use-this': 'off',
|
|
86
|
-
|
|
86
|
+
"@typescript-eslint/class-methods-use-this": "off",
|
|
87
87
|
|
|
88
88
|
// Enforce specifying generic type arguments on type annotation or `constructor` name of a constructor call.
|
|
89
89
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-generic-constructors.mdx
|
|
90
|
-
|
|
90
|
+
"@typescript-eslint/consistent-generic-constructors": "off",
|
|
91
91
|
|
|
92
92
|
// Require or disallow the `Record` type.
|
|
93
93
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-indexed-object-style.mdx
|
|
94
|
-
|
|
94
|
+
"@typescript-eslint/consistent-indexed-object-style": "off",
|
|
95
95
|
|
|
96
96
|
// Require `return` statements to either always or never specify values.
|
|
97
97
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-return.mdx
|
|
98
98
|
// 'consistent-return': 'off',
|
|
99
|
-
|
|
99
|
+
"@typescript-eslint/consistent-return": "off",
|
|
100
100
|
|
|
101
101
|
// Enforce consistent usage of type assertions.
|
|
102
102
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-assertions.mdx
|
|
103
|
-
|
|
103
|
+
"@typescript-eslint/consistent-type-assertions": "warn",
|
|
104
104
|
|
|
105
105
|
// Enforce type definitions to consistently use either `interface` or `type`.
|
|
106
106
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-definitions.mdx
|
|
107
|
-
|
|
107
|
+
"@typescript-eslint/consistent-type-definitions": "off",
|
|
108
108
|
|
|
109
109
|
// Enforce consistent usage of type exports.
|
|
110
110
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-exports.mdx
|
|
111
|
-
|
|
111
|
+
"@typescript-eslint/consistent-type-exports": "off",
|
|
112
112
|
|
|
113
113
|
// Enforce consistent usage of type imports
|
|
114
114
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-imports.mdx
|
|
115
|
-
|
|
115
|
+
"@typescript-eslint/consistent-type-imports": "off",
|
|
116
116
|
|
|
117
117
|
// Enforce default parameters to be last.
|
|
118
118
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/default-param-last.mdx
|
|
119
|
-
|
|
119
|
+
"@typescript-eslint/default-param-last": "off",
|
|
120
120
|
|
|
121
121
|
// Enforce dot notation whenever possible.
|
|
122
122
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/dot-notation.mdx
|
|
123
123
|
// 'dot-notation': 'off',
|
|
124
|
-
|
|
124
|
+
"@typescript-eslint/dot-notation": "off",
|
|
125
125
|
|
|
126
126
|
// Require explicit return types on functions and class methods.
|
|
127
127
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/explicit-function-return-type.mdx
|
|
128
|
-
|
|
128
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
129
129
|
|
|
130
130
|
// Require explicit accessibility modifiers on class properties and methods.
|
|
131
131
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/explicit-member-accessibility.mdx
|
|
132
|
-
|
|
132
|
+
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
133
133
|
|
|
134
134
|
// Require explicit return and argument types on exported functions' and classes' public class methods.
|
|
135
135
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.mdx
|
|
136
|
-
|
|
136
|
+
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
137
137
|
|
|
138
138
|
// Require or disallow initialization in variable declarations.
|
|
139
139
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/init-declarations.mdx
|
|
140
|
-
|
|
140
|
+
"@typescript-eslint/init-declarations": "off",
|
|
141
141
|
|
|
142
142
|
// Enforce a maximum number of parameters in function definitions.
|
|
143
143
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/max-params.mdx
|
|
144
144
|
// 'max-params': 'off',
|
|
145
|
-
|
|
145
|
+
"@typescript-eslint/max-params": "off",
|
|
146
146
|
|
|
147
147
|
// Require a consistent member declaration order.
|
|
148
148
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/member-ordering.mdx
|
|
149
|
-
|
|
149
|
+
"@typescript-eslint/member-ordering": "off",
|
|
150
150
|
|
|
151
151
|
// Enforce using a particular method signature syntax.
|
|
152
152
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/method-signature-style.mdx
|
|
153
|
-
|
|
153
|
+
"@typescript-eslint/method-signature-style": "off",
|
|
154
154
|
|
|
155
155
|
// Enforce naming conventions for everything across a codebase.
|
|
156
156
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/naming-convention.mdx
|
|
157
|
-
|
|
157
|
+
"@typescript-eslint/naming-convention": "off",
|
|
158
158
|
|
|
159
159
|
// 'no-array-constructor': 'off',
|
|
160
160
|
// Disallow generic `Array` constructors.
|
|
161
161
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-array-constructor.mdx
|
|
162
|
-
|
|
162
|
+
"@typescript-eslint/no-array-constructor": "error",
|
|
163
163
|
|
|
164
164
|
// Disallow using the `delete` operator on array values.
|
|
165
165
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-array-delete.mdx
|
|
166
|
-
|
|
166
|
+
"@typescript-eslint/no-array-delete": "off",
|
|
167
167
|
|
|
168
168
|
// Require `.toString()` to only be called on objects which provide useful information when stringified.
|
|
169
169
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-base-to-string.mdx
|
|
170
|
-
|
|
170
|
+
"@typescript-eslint/no-base-to-string": "off",
|
|
171
171
|
|
|
172
172
|
// Disallow non-null assertion in locations that may be confusing.
|
|
173
173
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-confusing-non-null-assertion.mdx
|
|
174
|
-
|
|
174
|
+
"@typescript-eslint/no-confusing-non-null-assertion": "off",
|
|
175
175
|
|
|
176
176
|
// Require expressions of type `void` to appear in statement position.
|
|
177
177
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-confusing-void-expression.mdx
|
|
178
|
-
|
|
178
|
+
"@typescript-eslint/no-confusing-void-expression": "off",
|
|
179
179
|
|
|
180
180
|
// Disallow using code marked as `@deprecated`.
|
|
181
181
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-deprecated.mdx
|
|
182
|
-
|
|
182
|
+
"@typescript-eslint/no-deprecated": "off",
|
|
183
183
|
|
|
184
184
|
// Disallow duplicate `class` members.
|
|
185
185
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-dupe-class-members.mdx
|
|
186
186
|
// 'no-dupe-class-members': 'off',
|
|
187
|
-
|
|
187
|
+
"@typescript-eslint/no-dupe-class-members": "off",
|
|
188
188
|
|
|
189
189
|
// Disallow duplicate `enum` member values.
|
|
190
190
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-duplicate-enum-values.mdx
|
|
191
|
-
|
|
191
|
+
"@typescript-eslint/no-duplicate-enum-values": "error",
|
|
192
192
|
|
|
193
193
|
// Disallow duplicate constituents of union or intersection types.
|
|
194
194
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-duplicate-type-constituents.mdx
|
|
195
|
-
|
|
195
|
+
"@typescript-eslint/no-duplicate-type-constituents": "off",
|
|
196
196
|
|
|
197
197
|
// Disallow using the `delete` operator on computed key expressions.
|
|
198
198
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-dynamic-delete.mdx
|
|
199
|
-
|
|
199
|
+
"@typescript-eslint/no-dynamic-delete": "off",
|
|
200
200
|
|
|
201
201
|
// Disallow empty functions.
|
|
202
202
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-empty-function.mdx
|
|
203
203
|
// 'no-empty-function': 'off',
|
|
204
|
-
|
|
204
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
205
205
|
|
|
206
206
|
// Disallow accidentally using the "empty object" type.
|
|
207
207
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-empty-object-type.mdx
|
|
208
|
-
|
|
208
|
+
"@typescript-eslint/no-empty-object-type": "error",
|
|
209
209
|
|
|
210
210
|
// Disallow the `any` type.
|
|
211
211
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-explicit-any.mdx
|
|
212
|
-
|
|
212
|
+
"@typescript-eslint/no-explicit-any": "error",
|
|
213
213
|
|
|
214
214
|
// Disallow extra non-null assertions.
|
|
215
215
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-extra-non-null-assertion.mdx
|
|
216
|
-
|
|
216
|
+
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
217
217
|
|
|
218
218
|
// Disallow classes used as namespaces.
|
|
219
219
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-extraneous-class.mdx
|
|
220
|
-
|
|
220
|
+
"@typescript-eslint/no-extraneous-class": "off",
|
|
221
221
|
|
|
222
222
|
// Require `Promise`-like statements to be handled appropriately.
|
|
223
223
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-floating-promises.mdx
|
|
224
|
-
|
|
224
|
+
"@typescript-eslint/no-floating-promises": "off",
|
|
225
225
|
|
|
226
226
|
// Disallow iterating over an array with a `for-in` loop.
|
|
227
227
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-for-in-array.mdx
|
|
228
|
-
|
|
228
|
+
"@typescript-eslint/no-for-in-array": "off",
|
|
229
229
|
|
|
230
230
|
// Disallow the use of `eval()`-like methods.
|
|
231
231
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-implied-eval.mdx
|
|
232
232
|
// 'no-implied-eval': 'off',
|
|
233
|
-
|
|
233
|
+
"@typescript-eslint/no-implied-eval": "off",
|
|
234
234
|
|
|
235
235
|
// Enforce the use of top-level `import type` qualifier when an import only has specifiers with inline type qualifiers.
|
|
236
236
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-import-type-side-effects.mdx
|
|
237
|
-
|
|
237
|
+
"@typescript-eslint/no-import-type-side-effects": "off",
|
|
238
238
|
|
|
239
239
|
// Disallow explicit type declarations for variables or parameters initialized to a `number`, `string`, or `boolean`.
|
|
240
240
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-inferrable-types.mdx
|
|
241
|
-
|
|
241
|
+
"@typescript-eslint/no-inferrable-types": "off",
|
|
242
242
|
|
|
243
243
|
// Disallow `this` keywords outside of classes or class-like objects.
|
|
244
244
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-invalid-this.mdx
|
|
245
245
|
// 'no-invalid-this': 'off',
|
|
246
|
-
|
|
246
|
+
"@typescript-eslint/no-invalid-this": "off",
|
|
247
247
|
|
|
248
248
|
// Disallow `void` type outside of generic or return types.
|
|
249
249
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-invalid-void-type.mdx
|
|
250
|
-
|
|
250
|
+
"@typescript-eslint/no-invalid-void-type": "off",
|
|
251
251
|
|
|
252
252
|
// Disallow `function` declarations that contain unsafe references inside loop statements.
|
|
253
253
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-loop-func.mdx
|
|
254
254
|
// 'no-loop-func': 'off',
|
|
255
|
-
|
|
255
|
+
"@typescript-eslint/no-loop-func": "off",
|
|
256
256
|
|
|
257
257
|
// Disallow magic numbers.
|
|
258
258
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-magic-numbers.mdx
|
|
259
259
|
// 'no-magic-numbers': 'off',
|
|
260
|
-
|
|
260
|
+
"@typescript-eslint/no-magic-numbers": "off",
|
|
261
261
|
|
|
262
262
|
// Disallow the `void` operator except when used to discard a value.
|
|
263
263
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-meaningless-void-operator.mdx
|
|
264
|
-
|
|
264
|
+
"@typescript-eslint/no-meaningless-void-operator": "off",
|
|
265
265
|
|
|
266
266
|
// Enforce valid definition of `new` and `constructor`.
|
|
267
267
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-misused-new.mdx
|
|
268
|
-
|
|
268
|
+
"@typescript-eslint/no-misused-new": "error",
|
|
269
269
|
|
|
270
270
|
// Disallow `Promise`s in places not designed to handle them.
|
|
271
271
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-misused-promises.mdx
|
|
272
|
-
|
|
272
|
+
"@typescript-eslint/no-misused-promises": "off",
|
|
273
273
|
|
|
274
274
|
// Disallow `enum`s from having both number and string members.
|
|
275
275
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-mixed-enums.mdx
|
|
276
|
-
|
|
276
|
+
"@typescript-eslint/no-mixed-enums": "off",
|
|
277
277
|
|
|
278
278
|
// Disallow TypeScript namespaces.
|
|
279
279
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-namespace.mdx
|
|
280
|
-
|
|
280
|
+
"@typescript-eslint/no-namespace": "error",
|
|
281
281
|
|
|
282
282
|
// Disallow non-null assertions in the left operand of a nullish coalescing operator.
|
|
283
283
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.mdx
|
|
284
|
-
|
|
284
|
+
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": "off",
|
|
285
285
|
|
|
286
286
|
// Disallow non-null assertions after an optional chain expression.
|
|
287
287
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.mdx
|
|
288
|
-
|
|
288
|
+
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
|
|
289
289
|
|
|
290
290
|
// Disallow non-null assertions using the `!` postfix operator.
|
|
291
291
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-non-null-assertion.mdx
|
|
292
|
-
|
|
292
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
|
293
293
|
|
|
294
294
|
// Disallow variable redeclaration.
|
|
295
295
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-redeclare.mdx
|
|
296
|
-
|
|
297
|
-
|
|
296
|
+
"no-redeclare": "off",
|
|
297
|
+
"@typescript-eslint/no-redeclare": "error",
|
|
298
298
|
|
|
299
299
|
// Disallow members of unions and intersections that do nothing or override type information.
|
|
300
300
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-redundant-type-constituents.mdx
|
|
301
|
-
|
|
301
|
+
"@typescript-eslint/no-redundant-type-constituents": "off",
|
|
302
302
|
|
|
303
303
|
// Disallow invocation of `require()`.
|
|
304
304
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-require-imports.mdx
|
|
305
|
-
|
|
305
|
+
"@typescript-eslint/no-require-imports": "error",
|
|
306
306
|
|
|
307
307
|
// Disallow specified modules when loaded by `import`.
|
|
308
308
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-restricted-imports.mdx
|
|
309
309
|
// 'no-restricted-imports': 'off',
|
|
310
|
-
|
|
310
|
+
"@typescript-eslint/no-restricted-imports": "off",
|
|
311
311
|
|
|
312
312
|
// Disallow certain types.
|
|
313
313
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-restricted-types.mdx
|
|
314
|
-
|
|
314
|
+
"@typescript-eslint/no-restricted-types": "off",
|
|
315
315
|
|
|
316
316
|
// Disallow variable declarations from shadowing variables declared in the outer scope.
|
|
317
317
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-shadow.mdx
|
|
318
|
-
|
|
319
|
-
|
|
318
|
+
"no-shadow": "off",
|
|
319
|
+
"@typescript-eslint/no-shadow": "error",
|
|
320
320
|
|
|
321
321
|
// Disallow aliasing `this`.
|
|
322
322
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-this-alias.mdx
|
|
323
|
-
|
|
323
|
+
"@typescript-eslint/no-this-alias": "error",
|
|
324
324
|
|
|
325
325
|
// Disallow unnecessary equality comparisons against `boolean` literals.
|
|
326
326
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.mdx
|
|
327
|
-
|
|
327
|
+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
|
|
328
328
|
|
|
329
329
|
// Disallow conditionals where the type is always truthy or always falsy.
|
|
330
330
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-condition.mdx
|
|
331
|
-
|
|
331
|
+
"@typescript-eslint/no-unnecessary-condition": "off",
|
|
332
332
|
|
|
333
333
|
// Disallow unnecessary assignment of `constructor` property parameter.
|
|
334
334
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-parameter-property-assignment.mdx
|
|
335
|
-
|
|
335
|
+
"@typescript-eslint/no-unnecessary-parameter-property-assignment": "off",
|
|
336
336
|
|
|
337
337
|
// Disallow unnecessary namespace qualifiers.
|
|
338
338
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-qualifier.mdx
|
|
339
|
-
|
|
339
|
+
"@typescript-eslint/no-unnecessary-qualifier": "off",
|
|
340
340
|
|
|
341
341
|
// Disallow unnecessary template expressions.
|
|
342
342
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-template-expression.mdx
|
|
343
|
-
|
|
343
|
+
"@typescript-eslint/no-unnecessary-template-expression": "off",
|
|
344
344
|
|
|
345
345
|
// Disallow type arguments that are equal to the default.
|
|
346
346
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-type-arguments.mdx
|
|
347
|
-
|
|
347
|
+
"@typescript-eslint/no-unnecessary-type-arguments": "off",
|
|
348
348
|
|
|
349
349
|
// Disallow type assertions that do not change the type of an expression.
|
|
350
350
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-type-assertion.mdx
|
|
351
|
-
|
|
351
|
+
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
|
352
352
|
|
|
353
353
|
// Disallow unnecessary constraints on generic types.
|
|
354
354
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-type-constraint.mdx
|
|
355
|
-
|
|
355
|
+
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
356
356
|
|
|
357
357
|
// Disallow type parameters that aren't used multiple times.
|
|
358
358
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-type-parameters.mdx
|
|
359
|
-
|
|
359
|
+
"@typescript-eslint/no-unnecessary-type-parameters": "off",
|
|
360
360
|
|
|
361
361
|
// Disallow calling a `function` with a value with type `any`.
|
|
362
362
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-argument.mdx
|
|
363
|
-
|
|
363
|
+
"@typescript-eslint/no-unsafe-argument": "off",
|
|
364
364
|
|
|
365
365
|
// Disallow assigning a value with type `any` to variables and properties.
|
|
366
366
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-assignment.mdx
|
|
367
|
-
|
|
367
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
368
368
|
|
|
369
369
|
// Disallow calling a value with type `any`.
|
|
370
370
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-call.mdx
|
|
371
|
-
|
|
371
|
+
"@typescript-eslint/no-unsafe-call": "off",
|
|
372
372
|
|
|
373
373
|
// Disallow unsafe declaration merging.
|
|
374
374
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-declaration-merging.mdx
|
|
375
|
-
|
|
375
|
+
"@typescript-eslint/no-unsafe-declaration-merging": "error",
|
|
376
376
|
|
|
377
377
|
// Disallow comparing an `enum` value with a non-`enum` value.
|
|
378
378
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-enum-comparison.mdx
|
|
379
|
-
|
|
379
|
+
"@typescript-eslint/no-unsafe-enum-comparison": "off",
|
|
380
380
|
|
|
381
381
|
// Disallow using the unsafe built-in `Function` type.
|
|
382
382
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-function-type.mdx
|
|
383
|
-
|
|
383
|
+
"@typescript-eslint/no-unsafe-function-type": "error",
|
|
384
384
|
|
|
385
385
|
// Disallow member access on a value with type `any`.
|
|
386
386
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-member-access.mdx
|
|
387
|
-
|
|
387
|
+
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
388
388
|
|
|
389
389
|
// Disallow returning a value with type `any` from a `function`.
|
|
390
390
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-return.mdx
|
|
391
|
-
|
|
391
|
+
"@typescript-eslint/no-unsafe-return": "off",
|
|
392
392
|
|
|
393
393
|
// Require unary negation to take a `number`.
|
|
394
394
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-unary-minus.mdx
|
|
395
|
-
|
|
395
|
+
"@typescript-eslint/no-unsafe-unary-minus": "off",
|
|
396
396
|
|
|
397
397
|
// Disallow unused expressions.
|
|
398
398
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unused-expressions.mdx
|
|
399
|
-
|
|
400
|
-
|
|
399
|
+
"no-unused-expressions": "off",
|
|
400
|
+
"@typescript-eslint/no-unused-expressions": "error",
|
|
401
401
|
|
|
402
402
|
// Disallow unused variables.
|
|
403
403
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unused-vars.mdx
|
|
404
|
-
|
|
405
|
-
|
|
404
|
+
"no-unused-vars": "off",
|
|
405
|
+
"@typescript-eslint/no-unused-vars": "error",
|
|
406
406
|
|
|
407
407
|
// Disallow the use of variables before they are defined.
|
|
408
408
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-use-before-define.mdx
|
|
409
|
-
|
|
410
|
-
|
|
409
|
+
"no-use-before-define": "off",
|
|
410
|
+
"@typescript-eslint/no-use-before-define": "error",
|
|
411
411
|
|
|
412
412
|
// Disallow unnecessary constructors.
|
|
413
413
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-useless-constructor.mdx
|
|
414
|
-
|
|
415
|
-
|
|
414
|
+
"no-useless-constructor": "off",
|
|
415
|
+
"@typescript-eslint/no-useless-constructor": "error",
|
|
416
416
|
|
|
417
417
|
// Disallow empty exports that don't change anything in a module file.
|
|
418
418
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-useless-empty-export.mdx
|
|
419
|
-
|
|
419
|
+
"@typescript-eslint/no-useless-empty-export": "off",
|
|
420
420
|
|
|
421
421
|
// Disallow using confusing built-in primitive class wrappers.
|
|
422
422
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-wrapper-object-types.mdx
|
|
423
|
-
|
|
423
|
+
"@typescript-eslint/no-wrapper-object-types": "error",
|
|
424
424
|
|
|
425
425
|
// Enforce non-null assertions over explicit type casts.
|
|
426
426
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/non-nullable-type-assertion-style.mdx
|
|
427
|
-
|
|
427
|
+
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
428
428
|
|
|
429
429
|
// Disallow throwing non-`Error` values as exceptions.
|
|
430
430
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/only-throw-error.mdx
|
|
431
431
|
// 'no-throw-literal': 'off',
|
|
432
|
-
|
|
432
|
+
"@typescript-eslint/only-throw-error": "off",
|
|
433
433
|
|
|
434
434
|
// Require or disallow parameter properties in class constructors.
|
|
435
435
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/parameter-properties.mdx
|
|
436
|
-
|
|
436
|
+
"@typescript-eslint/parameter-properties": "off",
|
|
437
437
|
|
|
438
438
|
// Enforce the use of `as const` over literal type.
|
|
439
439
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-as-const.mdx
|
|
440
|
-
|
|
440
|
+
"@typescript-eslint/prefer-as-const": "error",
|
|
441
441
|
|
|
442
442
|
// Require destructuring from arrays and/or objects.
|
|
443
443
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-destructuring.mdx
|
|
444
444
|
// 'prefer-destructuring': 'off',
|
|
445
|
-
|
|
445
|
+
"@typescript-eslint/prefer-destructuring": "off",
|
|
446
446
|
|
|
447
447
|
// Require each `enum` member value to be explicitly initialized.
|
|
448
448
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-enum-initializers.mdx
|
|
449
|
-
|
|
449
|
+
"@typescript-eslint/prefer-enum-initializers": "off",
|
|
450
450
|
|
|
451
451
|
// Enforce the use of `Array.prototype.find()` over `Array.prototype.filter()` followed by `[0]` when looking for a single result.
|
|
452
452
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-find.mdx
|
|
453
|
-
|
|
453
|
+
"@typescript-eslint/prefer-find": "off",
|
|
454
454
|
|
|
455
455
|
// Enforce the use of `for-of` loop over the standard `for` loop where possible.
|
|
456
456
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-for-of.mdx
|
|
457
|
-
|
|
457
|
+
"@typescript-eslint/prefer-for-of": "off",
|
|
458
458
|
|
|
459
459
|
// Enforce using `function` types instead of interfaces with call signatures.
|
|
460
460
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-function-type.mdx
|
|
461
|
-
|
|
461
|
+
"@typescript-eslint/prefer-function-type": "off",
|
|
462
462
|
|
|
463
463
|
// Enforce `includes` method over `indexOf` method.
|
|
464
464
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-includes.mdx
|
|
465
|
-
|
|
465
|
+
"@typescript-eslint/prefer-includes": "off",
|
|
466
466
|
|
|
467
467
|
// Require all `enum` members to be literal values.
|
|
468
468
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-literal-enum-member.mdx
|
|
469
|
-
|
|
469
|
+
"@typescript-eslint/prefer-literal-enum-member": "off",
|
|
470
470
|
|
|
471
471
|
// Require using `namespace` keyword over `module` keyword to declare custom TypeScript modules.
|
|
472
472
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-namespace-keyword.mdx
|
|
473
|
-
|
|
473
|
+
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
474
474
|
|
|
475
475
|
// Enforce using the nullish coalescing operator instead of logical assignments or chaining.
|
|
476
476
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-nullish-coalescing.mdx
|
|
477
|
-
|
|
477
|
+
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
478
478
|
|
|
479
479
|
// Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects.
|
|
480
480
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-optional-chain.mdx
|
|
481
|
-
|
|
481
|
+
"@typescript-eslint/prefer-optional-chain": "off",
|
|
482
482
|
|
|
483
483
|
// Require using `Error` objects as `Promise` rejection reasons.
|
|
484
484
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-promise-reject-errors.mdx
|
|
485
485
|
// 'prefer-promise-reject-errors': 'off',
|
|
486
|
-
|
|
486
|
+
"@typescript-eslint/prefer-promise-reject-errors": "off",
|
|
487
487
|
|
|
488
488
|
// Require private members to be marked as `readonly` if they're never modified outside of the `constructor`.
|
|
489
489
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-readonly.mdx
|
|
490
|
-
|
|
490
|
+
"@typescript-eslint/prefer-readonly": "off",
|
|
491
491
|
|
|
492
492
|
// Require `function` parameters to be typed as `readonly` to prevent accidental mutation of inputs.
|
|
493
493
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-readonly-parameter-types.mdx
|
|
494
|
-
|
|
494
|
+
"@typescript-eslint/prefer-readonly-parameter-types": "off",
|
|
495
495
|
|
|
496
496
|
// Enforce using type parameter when calling `Array#reduce` instead of casting.
|
|
497
497
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-reduce-type-parameter.mdx
|
|
498
|
-
|
|
498
|
+
"@typescript-eslint/prefer-reduce-type-parameter": "off",
|
|
499
499
|
|
|
500
500
|
// Enforce `RegExp#exec` over `String#match` if no global flag is provided.
|
|
501
501
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-regexp-exec.mdx
|
|
502
|
-
|
|
502
|
+
"@typescript-eslint/prefer-regexp-exec": "off",
|
|
503
503
|
|
|
504
504
|
// Enforce that `this` is used when only `this` type is returned.
|
|
505
505
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-return-this-type.mdx
|
|
506
|
-
|
|
506
|
+
"@typescript-eslint/prefer-return-this-type": "off",
|
|
507
507
|
|
|
508
508
|
// Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings.
|
|
509
509
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-string-starts-ends-with.mdx
|
|
510
|
-
|
|
510
|
+
"@typescript-eslint/prefer-string-starts-ends-with": "off",
|
|
511
511
|
|
|
512
512
|
// Require any `function` or method that returns a `Promise` to be marked `async`.
|
|
513
513
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/promise-function-async.mdx
|
|
514
|
-
|
|
514
|
+
"@typescript-eslint/promise-function-async": "off",
|
|
515
515
|
|
|
516
516
|
// Require `Array#sort` and `Array#toSorted` calls to always provide a `compareFunction`.
|
|
517
517
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/require-array-sort-compare.mdx
|
|
518
|
-
|
|
518
|
+
"@typescript-eslint/require-array-sort-compare": "off",
|
|
519
519
|
|
|
520
520
|
// Disallow `async` functions which do not return promises and have no `await` expression.
|
|
521
521
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/require-await.mdx
|
|
522
522
|
// 'require-await': 'off',
|
|
523
|
-
|
|
523
|
+
"@typescript-eslint/require-await": "off",
|
|
524
524
|
|
|
525
525
|
// Require both operands of addition to be the same type and be `bigint`, `number`, or `string`.
|
|
526
526
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/restrict-plus-operands.mdx
|
|
527
|
-
|
|
527
|
+
"@typescript-eslint/restrict-plus-operands": "off",
|
|
528
528
|
|
|
529
529
|
// Enforce template literal expressions to be of `string` type.
|
|
530
530
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/restrict-template-expressions.mdx
|
|
531
|
-
|
|
531
|
+
"@typescript-eslint/restrict-template-expressions": "off",
|
|
532
532
|
|
|
533
533
|
// Enforce consistent awaiting of returned promises.
|
|
534
534
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/return-await.mdx
|
|
535
535
|
// 'no-return-await': 'off',
|
|
536
|
-
|
|
536
|
+
"@typescript-eslint/return-await": "off",
|
|
537
537
|
|
|
538
538
|
// Disallow certain types in `boolean` expressions.
|
|
539
539
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/strict-boolean-expressions.mdx
|
|
540
|
-
|
|
540
|
+
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
541
541
|
|
|
542
542
|
// Require `switch-case` statements to be exhaustive.
|
|
543
543
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/switch-exhaustiveness-check.mdx
|
|
544
|
-
|
|
544
|
+
"@typescript-eslint/switch-exhaustiveness-check": "off",
|
|
545
545
|
|
|
546
546
|
// Disallow certain triple slash directives in favor of ES6-style `import` declarations.
|
|
547
547
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/triple-slash-reference.mdx
|
|
548
|
-
|
|
548
|
+
"@typescript-eslint/triple-slash-reference": "error",
|
|
549
549
|
|
|
550
550
|
// Require type annotations in certain places.
|
|
551
551
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/typedef.mdx
|
|
552
|
-
|
|
552
|
+
"@typescript-eslint/typedef": "off",
|
|
553
553
|
|
|
554
554
|
// Enforce unbound methods are called with their expected scope.
|
|
555
555
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/unbound-method.mdx
|
|
556
|
-
|
|
556
|
+
"@typescript-eslint/unbound-method": "off",
|
|
557
557
|
|
|
558
558
|
// Disallow two overloads that could be unified into one with a union or an optional/rest parameter.
|
|
559
559
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/unified-signatures.mdx
|
|
560
|
-
|
|
560
|
+
"@typescript-eslint/unified-signatures": "off",
|
|
561
561
|
|
|
562
562
|
// Enforce typing arguments in `Promise` rejection callbacks as `unknown`.
|
|
563
563
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/use-unknown-in-catch-callback-variable.mdx
|
|
564
|
-
|
|
564
|
+
"@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
|
|
565
565
|
},
|
|
566
566
|
};
|