@eslinted/defaults 10.1.1 → 10.2.0
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/dist/rules/index.d.ts +1 -0
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/scopes/css/enable.js +7 -7
- package/dist/rules/scopes/css/enable.js.map +1 -1
- package/dist/rules/scopes/html/enable.js +35 -35
- package/dist/rules/scopes/html/enable.js.map +1 -1
- package/dist/rules/scopes/js/enable-stylistic.d.ts +1 -0
- package/dist/rules/scopes/js/enable-stylistic.d.ts.map +1 -1
- package/dist/rules/scopes/js/enable-stylistic.js +71 -67
- package/dist/rules/scopes/js/enable-stylistic.js.map +1 -1
- package/dist/rules/scopes/js/enable.js +148 -148
- package/dist/rules/scopes/js/enable.js.map +1 -1
- package/dist/rules/scopes/js/index.d.ts +1 -0
- package/dist/rules/scopes/js/index.d.ts.map +1 -1
- package/dist/rules/scopes/json/enable-ext.js +21 -21
- package/dist/rules/scopes/json/enable-ext.js.map +1 -1
- package/dist/rules/scopes/json/enable.js +20 -20
- package/dist/rules/scopes/json/enable.js.map +1 -1
- package/dist/rules/scopes/jsonc/override.js +2 -2
- package/dist/rules/scopes/jsonc/override.js.map +1 -1
- package/dist/rules/scopes/mocha/enable-chai-expect.js +4 -4
- package/dist/rules/scopes/mocha/enable-chai-expect.js.map +1 -1
- package/dist/rules/scopes/mocha/enable-chai.js +2 -2
- package/dist/rules/scopes/mocha/enable-chai.js.map +1 -1
- package/dist/rules/scopes/mocha/enable.js +18 -18
- package/dist/rules/scopes/mocha/enable.js.map +1 -1
- package/dist/rules/scopes/svelte/enable-ext.js +3 -3
- package/dist/rules/scopes/svelte/enable-ext.js.map +1 -1
- package/dist/rules/scopes/svelte/enable.js +63 -63
- package/dist/rules/scopes/svelte/enable.js.map +1 -1
- package/dist/rules/scopes/ts/enable-ext.js +16 -16
- package/dist/rules/scopes/ts/enable-ext.js.map +1 -1
- package/dist/rules/scopes/ts/enable.js +89 -89
- package/dist/rules/scopes/ts/enable.js.map +1 -1
- package/dist/rules/scopes/yml/enable-ext.js +9 -9
- package/dist/rules/scopes/yml/enable-ext.js.map +1 -1
- package/dist/rules/scopes/yml/enable.js +17 -17
- package/dist/rules/scopes/yml/enable.js.map +1 -1
- package/dist/rules/strings/state.d.ts +1 -1
- package/dist/rules/strings/state.d.ts.map +1 -1
- package/dist/rules/strings/state.js +1 -1
- package/dist/rules/strings/state.js.map +1 -1
- package/package.json +1 -1
- package/src/rules/scopes/css/enable.ts +7 -7
- package/src/rules/scopes/html/enable.ts +35 -35
- package/src/rules/scopes/js/enable-stylistic.ts +71 -67
- package/src/rules/scopes/js/enable.ts +148 -148
- package/src/rules/scopes/json/enable-ext.ts +21 -21
- package/src/rules/scopes/json/enable.ts +20 -20
- package/src/rules/scopes/jsonc/override.ts +2 -2
- package/src/rules/scopes/mocha/enable-chai-expect.ts +4 -4
- package/src/rules/scopes/mocha/enable-chai.ts +2 -2
- package/src/rules/scopes/mocha/enable.ts +18 -18
- package/src/rules/scopes/svelte/enable-ext.ts +3 -3
- package/src/rules/scopes/svelte/enable.ts +63 -63
- package/src/rules/scopes/ts/enable-ext.ts +16 -16
- package/src/rules/scopes/ts/enable.ts +89 -89
- package/src/rules/scopes/yml/enable-ext.ts +9 -9
- package/src/rules/scopes/yml/enable.ts +17 -17
- package/src/rules/strings/state.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
|
|
3
|
+
ON,
|
|
4
4
|
OFF,
|
|
5
5
|
always,
|
|
6
6
|
all,
|
|
@@ -12,9 +12,9 @@ export const TsEnableExtension = {
|
|
|
12
12
|
// DOC: https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
|
|
13
13
|
"@typescript-eslint/class-methods-use-this": OFF /* preference -- eslint:off */,
|
|
14
14
|
"@typescript-eslint/consistent-return": OFF /* tsconfig: noImplicitReturns */,
|
|
15
|
-
"@typescript-eslint/default-param-last":
|
|
15
|
+
"@typescript-eslint/default-param-last": ON,
|
|
16
16
|
"@typescript-eslint/dot-notation": [
|
|
17
|
-
|
|
17
|
+
ON,
|
|
18
18
|
{
|
|
19
19
|
allowKeywords: true,
|
|
20
20
|
|
|
@@ -25,14 +25,14 @@ export const TsEnableExtension = {
|
|
|
25
25
|
},
|
|
26
26
|
],
|
|
27
27
|
"@typescript-eslint/init-declarations": [
|
|
28
|
-
|
|
28
|
+
ON,
|
|
29
29
|
always,
|
|
30
30
|
],
|
|
31
31
|
"@typescript-eslint/max-params": OFF /* preference */,
|
|
32
|
-
"@typescript-eslint/no-array-constructor":
|
|
32
|
+
"@typescript-eslint/no-array-constructor": ON,
|
|
33
33
|
"@typescript-eslint/no-dupe-class-members": OFF /* tsc */,
|
|
34
34
|
"@typescript-eslint/no-empty-function": [
|
|
35
|
-
|
|
35
|
+
ON,
|
|
36
36
|
{
|
|
37
37
|
allow: [
|
|
38
38
|
"constructors",
|
|
@@ -42,15 +42,15 @@ export const TsEnableExtension = {
|
|
|
42
42
|
],
|
|
43
43
|
}, /* functions, arrowFunctions, generatorFunctions, methods, generatorMethods, getters, setters, constructors, asyncFunctions, asyncMethods; TS-ONLY: private-constructors, protected-constructors, decoratedFunctions, overrideMethods */
|
|
44
44
|
],
|
|
45
|
-
"@typescript-eslint/no-implied-eval":
|
|
45
|
+
"@typescript-eslint/no-implied-eval": ON,
|
|
46
46
|
"@typescript-eslint/no-invalid-this": OFF /* tsconfig: { strict, noImplicitThis } */,
|
|
47
|
-
"@typescript-eslint/no-loop-func":
|
|
47
|
+
"@typescript-eslint/no-loop-func": ON,
|
|
48
48
|
"@typescript-eslint/no-magic-numbers": OFF,
|
|
49
49
|
"@typescript-eslint/no-redeclare": OFF /* tsc (let, const, -var) */,
|
|
50
50
|
"@typescript-eslint/no-restricted-imports": OFF /* preference */,
|
|
51
51
|
"@typescript-eslint/no-shadow": OFF /* investigate */,
|
|
52
52
|
"@typescript-eslint/no-unused-expressions": [
|
|
53
|
-
|
|
53
|
+
ON,
|
|
54
54
|
{
|
|
55
55
|
allowShortCircuit: true,
|
|
56
56
|
allowTernary: true,
|
|
@@ -59,7 +59,7 @@ export const TsEnableExtension = {
|
|
|
59
59
|
},
|
|
60
60
|
],
|
|
61
61
|
"@typescript-eslint/no-unused-vars": [
|
|
62
|
-
|
|
62
|
+
ON,
|
|
63
63
|
{
|
|
64
64
|
vars: all,
|
|
65
65
|
args: all,
|
|
@@ -70,7 +70,7 @@ export const TsEnableExtension = {
|
|
|
70
70
|
},
|
|
71
71
|
],
|
|
72
72
|
"@typescript-eslint/no-use-before-define": [
|
|
73
|
-
|
|
73
|
+
ON,
|
|
74
74
|
{
|
|
75
75
|
functions: true,
|
|
76
76
|
classes: true,
|
|
@@ -81,16 +81,16 @@ export const TsEnableExtension = {
|
|
|
81
81
|
ignoreTypeReferences: true,
|
|
82
82
|
},
|
|
83
83
|
],
|
|
84
|
-
"@typescript-eslint/no-useless-constructor":
|
|
84
|
+
"@typescript-eslint/no-useless-constructor": ON,
|
|
85
85
|
"@typescript-eslint/only-throw-error": [
|
|
86
|
-
|
|
86
|
+
ON,
|
|
87
87
|
{
|
|
88
88
|
allowThrowingAny: false,
|
|
89
89
|
allowThrowingUnknown: false,
|
|
90
90
|
},
|
|
91
91
|
],
|
|
92
92
|
"@typescript-eslint/prefer-destructuring": [
|
|
93
|
-
|
|
93
|
+
ON,
|
|
94
94
|
{
|
|
95
95
|
VariableDeclarator: {
|
|
96
96
|
array: true,
|
|
@@ -107,13 +107,13 @@ export const TsEnableExtension = {
|
|
|
107
107
|
},
|
|
108
108
|
],
|
|
109
109
|
"@typescript-eslint/prefer-promise-reject-errors": [
|
|
110
|
-
|
|
110
|
+
ON,
|
|
111
111
|
{
|
|
112
112
|
allowEmptyReject: false,
|
|
113
113
|
allowThrowingAny: false,
|
|
114
114
|
allowThrowingUnknown: true,
|
|
115
115
|
},
|
|
116
116
|
],
|
|
117
|
-
"@typescript-eslint/require-await":
|
|
117
|
+
"@typescript-eslint/require-await": ON,
|
|
118
118
|
} as const,
|
|
119
119
|
} as const;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
|
|
3
|
+
ON,
|
|
4
4
|
OFF,
|
|
5
5
|
never,
|
|
6
6
|
explicit,
|
|
@@ -12,15 +12,15 @@ export const TsEnable = {
|
|
|
12
12
|
// DOC: https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
|
|
13
13
|
"@typescript-eslint/adjacent-overload-signatures": OFF,
|
|
14
14
|
"@typescript-eslint/array-type": [
|
|
15
|
-
|
|
15
|
+
ON,
|
|
16
16
|
{
|
|
17
17
|
"default": "array",
|
|
18
18
|
readonly: "array",
|
|
19
19
|
},
|
|
20
20
|
],
|
|
21
|
-
"@typescript-eslint/await-thenable":
|
|
21
|
+
"@typescript-eslint/await-thenable": ON,
|
|
22
22
|
"@typescript-eslint/ban-ts-comment": [
|
|
23
|
-
|
|
23
|
+
ON,
|
|
24
24
|
{
|
|
25
25
|
"ts-check": false,
|
|
26
26
|
"ts-expect-error": {
|
|
@@ -31,21 +31,21 @@ export const TsEnable = {
|
|
|
31
31
|
minimumDescriptionLength: 10,
|
|
32
32
|
},
|
|
33
33
|
],
|
|
34
|
-
"@typescript-eslint/ban-tslint-comment":
|
|
34
|
+
"@typescript-eslint/ban-tslint-comment": ON,
|
|
35
35
|
"@typescript-eslint/class-literal-property-style": [
|
|
36
|
-
|
|
36
|
+
ON,
|
|
37
37
|
"fields",
|
|
38
38
|
],
|
|
39
39
|
"@typescript-eslint/consistent-generic-constructors": [
|
|
40
|
-
|
|
40
|
+
ON,
|
|
41
41
|
"constructor",
|
|
42
42
|
],
|
|
43
43
|
"@typescript-eslint/consistent-indexed-object-style": [
|
|
44
|
-
|
|
44
|
+
ON,
|
|
45
45
|
"record",
|
|
46
46
|
],
|
|
47
47
|
"@typescript-eslint/consistent-type-assertions": [
|
|
48
|
-
|
|
48
|
+
ON,
|
|
49
49
|
{
|
|
50
50
|
assertionStyle: "as",
|
|
51
51
|
arrayLiteralTypeAssertions: never,
|
|
@@ -54,13 +54,13 @@ export const TsEnable = {
|
|
|
54
54
|
],
|
|
55
55
|
"@typescript-eslint/consistent-type-definitions": OFF,
|
|
56
56
|
"@typescript-eslint/consistent-type-exports": [
|
|
57
|
-
|
|
57
|
+
ON,
|
|
58
58
|
{
|
|
59
59
|
fixMixedExportsWithInlineTypeSpecifier: false,
|
|
60
60
|
},
|
|
61
61
|
],
|
|
62
62
|
"@typescript-eslint/consistent-type-imports": [
|
|
63
|
-
|
|
63
|
+
ON,
|
|
64
64
|
{
|
|
65
65
|
disallowTypeAnnotations: true,
|
|
66
66
|
fixStyle: "separate-type-imports",
|
|
@@ -69,7 +69,7 @@ export const TsEnable = {
|
|
|
69
69
|
],
|
|
70
70
|
"@typescript-eslint/explicit-function-return-type": OFF,
|
|
71
71
|
"@typescript-eslint/explicit-member-accessibility": [
|
|
72
|
-
|
|
72
|
+
ON,
|
|
73
73
|
{
|
|
74
74
|
accessibility: explicit,
|
|
75
75
|
ignoredMethodNames: [],
|
|
@@ -84,7 +84,7 @@ export const TsEnable = {
|
|
|
84
84
|
],
|
|
85
85
|
"@typescript-eslint/explicit-module-boundary-types": OFF,
|
|
86
86
|
"@typescript-eslint/member-ordering": [
|
|
87
|
-
|
|
87
|
+
ON,
|
|
88
88
|
{
|
|
89
89
|
"default": {
|
|
90
90
|
memberTypes: [
|
|
@@ -253,13 +253,13 @@ export const TsEnable = {
|
|
|
253
253
|
},
|
|
254
254
|
],
|
|
255
255
|
"@typescript-eslint/method-signature-style": [
|
|
256
|
-
|
|
256
|
+
ON,
|
|
257
257
|
"property",
|
|
258
258
|
],
|
|
259
259
|
"@typescript-eslint/naming-convention": OFF,
|
|
260
|
-
"@typescript-eslint/no-array-delete":
|
|
260
|
+
"@typescript-eslint/no-array-delete": ON,
|
|
261
261
|
"@typescript-eslint/no-base-to-string": [
|
|
262
|
-
|
|
262
|
+
ON,
|
|
263
263
|
{
|
|
264
264
|
ignoredTypeNames: [
|
|
265
265
|
"Error",
|
|
@@ -269,9 +269,9 @@ export const TsEnable = {
|
|
|
269
269
|
],
|
|
270
270
|
},
|
|
271
271
|
],
|
|
272
|
-
"@typescript-eslint/no-confusing-non-null-assertion":
|
|
272
|
+
"@typescript-eslint/no-confusing-non-null-assertion": ON,
|
|
273
273
|
"@typescript-eslint/no-confusing-void-expression": [
|
|
274
|
-
|
|
274
|
+
ON,
|
|
275
275
|
{
|
|
276
276
|
ignoreArrowShorthand: true,
|
|
277
277
|
ignoreVoidOperator: true,
|
|
@@ -279,17 +279,17 @@ export const TsEnable = {
|
|
|
279
279
|
},
|
|
280
280
|
],
|
|
281
281
|
"@typescript-eslint/no-deprecated": OFF /* incompatible: Cannot be used with jsDocParsingMode: "none" */,
|
|
282
|
-
"@typescript-eslint/no-duplicate-enum-values":
|
|
282
|
+
"@typescript-eslint/no-duplicate-enum-values": ON,
|
|
283
283
|
"@typescript-eslint/no-duplicate-type-constituents": [
|
|
284
|
-
|
|
284
|
+
ON,
|
|
285
285
|
{
|
|
286
286
|
ignoreIntersections: false,
|
|
287
287
|
ignoreUnions: false,
|
|
288
288
|
},
|
|
289
289
|
],
|
|
290
|
-
"@typescript-eslint/no-dynamic-delete":
|
|
290
|
+
"@typescript-eslint/no-dynamic-delete": ON,
|
|
291
291
|
"@typescript-eslint/no-empty-object-type": [
|
|
292
|
-
|
|
292
|
+
ON,
|
|
293
293
|
{
|
|
294
294
|
// allowWithName: /regex/,
|
|
295
295
|
allowInterfaces: never,
|
|
@@ -297,15 +297,15 @@ export const TsEnable = {
|
|
|
297
297
|
},
|
|
298
298
|
],
|
|
299
299
|
"@typescript-eslint/no-explicit-any": [
|
|
300
|
-
|
|
300
|
+
ON,
|
|
301
301
|
{
|
|
302
302
|
fixToUnknown: true,
|
|
303
303
|
ignoreRestArgs: false,
|
|
304
304
|
},
|
|
305
305
|
],
|
|
306
|
-
"@typescript-eslint/no-extra-non-null-assertion":
|
|
306
|
+
"@typescript-eslint/no-extra-non-null-assertion": ON,
|
|
307
307
|
"@typescript-eslint/no-extraneous-class": [
|
|
308
|
-
|
|
308
|
+
ON,
|
|
309
309
|
{
|
|
310
310
|
allowConstructorOnly: false,
|
|
311
311
|
allowEmpty: true,
|
|
@@ -314,38 +314,38 @@ export const TsEnable = {
|
|
|
314
314
|
},
|
|
315
315
|
],
|
|
316
316
|
"@typescript-eslint/no-floating-promises": [
|
|
317
|
-
|
|
317
|
+
ON,
|
|
318
318
|
{
|
|
319
319
|
checkThenables: true,
|
|
320
320
|
ignoreVoid: true,
|
|
321
321
|
ignoreIIFE: false,
|
|
322
322
|
},
|
|
323
323
|
],
|
|
324
|
-
"@typescript-eslint/no-for-in-array":
|
|
325
|
-
"@typescript-eslint/no-import-type-side-effects":
|
|
324
|
+
"@typescript-eslint/no-for-in-array": ON,
|
|
325
|
+
"@typescript-eslint/no-import-type-side-effects": ON,
|
|
326
326
|
"@typescript-eslint/no-inferrable-types": [
|
|
327
|
-
|
|
327
|
+
ON,
|
|
328
328
|
{
|
|
329
329
|
ignoreParameters: false,
|
|
330
330
|
ignoreProperties: false,
|
|
331
331
|
},
|
|
332
332
|
],
|
|
333
333
|
"@typescript-eslint/no-invalid-void-type": [
|
|
334
|
-
|
|
334
|
+
ON,
|
|
335
335
|
{
|
|
336
336
|
allowInGenericTypeArguments: true,
|
|
337
337
|
allowAsThisParameter: false,
|
|
338
338
|
},
|
|
339
339
|
],
|
|
340
340
|
"@typescript-eslint/no-meaningless-void-operator": [
|
|
341
|
-
|
|
341
|
+
ON,
|
|
342
342
|
{
|
|
343
343
|
checkNever: true,
|
|
344
344
|
},
|
|
345
345
|
],
|
|
346
|
-
"@typescript-eslint/no-misused-new":
|
|
346
|
+
"@typescript-eslint/no-misused-new": ON,
|
|
347
347
|
"@typescript-eslint/no-misused-promises": [
|
|
348
|
-
|
|
348
|
+
ON,
|
|
349
349
|
{
|
|
350
350
|
checksConditionals: true,
|
|
351
351
|
checksSpreads: true,
|
|
@@ -359,91 +359,91 @@ export const TsEnable = {
|
|
|
359
359
|
},
|
|
360
360
|
],
|
|
361
361
|
"@typescript-eslint/no-misused-spread": [
|
|
362
|
-
|
|
362
|
+
ON,
|
|
363
363
|
{
|
|
364
364
|
allow: [],
|
|
365
365
|
},
|
|
366
366
|
],
|
|
367
|
-
"@typescript-eslint/no-mixed-enums":
|
|
367
|
+
"@typescript-eslint/no-mixed-enums": ON,
|
|
368
368
|
"@typescript-eslint/no-namespace": OFF,
|
|
369
|
-
"@typescript-eslint/no-non-null-asserted-nullish-coalescing":
|
|
370
|
-
"@typescript-eslint/no-non-null-asserted-optional-chain":
|
|
371
|
-
"@typescript-eslint/no-non-null-assertion":
|
|
372
|
-
"@typescript-eslint/no-redundant-type-constituents":
|
|
369
|
+
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": ON,
|
|
370
|
+
"@typescript-eslint/no-non-null-asserted-optional-chain": ON,
|
|
371
|
+
"@typescript-eslint/no-non-null-assertion": ON,
|
|
372
|
+
"@typescript-eslint/no-redundant-type-constituents": ON,
|
|
373
373
|
"@typescript-eslint/no-restricted-types": OFF /* preference - no shared custom types across all projects that I wish to ban*/,
|
|
374
374
|
"@typescript-eslint/no-require-imports": [
|
|
375
|
-
|
|
375
|
+
ON,
|
|
376
376
|
{
|
|
377
377
|
allow: [],
|
|
378
378
|
},
|
|
379
379
|
],
|
|
380
380
|
"@typescript-eslint/no-this-alias": [
|
|
381
|
-
|
|
381
|
+
ON,
|
|
382
382
|
{
|
|
383
383
|
allowDestructuring: true,
|
|
384
384
|
allowedNames: [],
|
|
385
385
|
},
|
|
386
386
|
],
|
|
387
387
|
"@typescript-eslint/no-unnecessary-boolean-literal-compare": [
|
|
388
|
-
|
|
388
|
+
ON,
|
|
389
389
|
{
|
|
390
390
|
allowComparingNullableBooleansToTrue: true,
|
|
391
391
|
allowComparingNullableBooleansToFalse: true,
|
|
392
392
|
},
|
|
393
393
|
],
|
|
394
394
|
"@typescript-eslint/no-unnecessary-condition": [
|
|
395
|
-
|
|
395
|
+
ON,
|
|
396
396
|
{
|
|
397
397
|
allowConstantLoopConditions: never,
|
|
398
398
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
|
|
399
399
|
},
|
|
400
400
|
],
|
|
401
|
-
"@typescript-eslint/no-unnecessary-parameter-property-assignment":
|
|
402
|
-
"@typescript-eslint/no-unnecessary-qualifier":
|
|
403
|
-
"@typescript-eslint/no-unnecessary-template-expression":
|
|
404
|
-
"@typescript-eslint/no-unnecessary-type-arguments":
|
|
401
|
+
"@typescript-eslint/no-unnecessary-parameter-property-assignment": ON,
|
|
402
|
+
"@typescript-eslint/no-unnecessary-qualifier": ON,
|
|
403
|
+
"@typescript-eslint/no-unnecessary-template-expression": ON,
|
|
404
|
+
"@typescript-eslint/no-unnecessary-type-arguments": ON,
|
|
405
405
|
"@typescript-eslint/no-unnecessary-type-assertion": [
|
|
406
|
-
|
|
406
|
+
ON,
|
|
407
407
|
{
|
|
408
408
|
typesToIgnore: [],
|
|
409
409
|
},
|
|
410
410
|
],
|
|
411
|
-
"@typescript-eslint/no-unnecessary-type-constraint":
|
|
412
|
-
"@typescript-eslint/no-unnecessary-type-parameters":
|
|
413
|
-
"@typescript-eslint/no-unsafe-argument":
|
|
414
|
-
"@typescript-eslint/no-unsafe-assignment":
|
|
415
|
-
"@typescript-eslint/no-unsafe-call":
|
|
416
|
-
"@typescript-eslint/no-unsafe-declaration-merging":
|
|
417
|
-
"@typescript-eslint/no-unsafe-enum-comparison":
|
|
418
|
-
"@typescript-eslint/no-unsafe-function-type":
|
|
419
|
-
"@typescript-eslint/no-unsafe-member-access":
|
|
420
|
-
"@typescript-eslint/no-unsafe-return":
|
|
411
|
+
"@typescript-eslint/no-unnecessary-type-constraint": ON,
|
|
412
|
+
"@typescript-eslint/no-unnecessary-type-parameters": ON,
|
|
413
|
+
"@typescript-eslint/no-unsafe-argument": ON,
|
|
414
|
+
"@typescript-eslint/no-unsafe-assignment": ON,
|
|
415
|
+
"@typescript-eslint/no-unsafe-call": ON,
|
|
416
|
+
"@typescript-eslint/no-unsafe-declaration-merging": ON,
|
|
417
|
+
"@typescript-eslint/no-unsafe-enum-comparison": ON,
|
|
418
|
+
"@typescript-eslint/no-unsafe-function-type": ON,
|
|
419
|
+
"@typescript-eslint/no-unsafe-member-access": ON,
|
|
420
|
+
"@typescript-eslint/no-unsafe-return": ON,
|
|
421
421
|
"@typescript-eslint/no-unsafe-type-assertion": OFF,
|
|
422
|
-
"@typescript-eslint/no-unsafe-unary-minus":
|
|
423
|
-
"@typescript-eslint/no-useless-empty-export":
|
|
424
|
-
"@typescript-eslint/no-wrapper-object-types":
|
|
422
|
+
"@typescript-eslint/no-unsafe-unary-minus": ON,
|
|
423
|
+
"@typescript-eslint/no-useless-empty-export": ON,
|
|
424
|
+
"@typescript-eslint/no-wrapper-object-types": ON,
|
|
425
425
|
"@typescript-eslint/non-nullable-type-assertion-style": OFF,
|
|
426
426
|
"@typescript-eslint/parameter-properties": [
|
|
427
|
-
|
|
427
|
+
ON,
|
|
428
428
|
{
|
|
429
429
|
prefer: "parameter-property" /* "parameter-property" | "class-property" */,
|
|
430
430
|
},
|
|
431
431
|
],
|
|
432
|
-
"@typescript-eslint/prefer-as-const":
|
|
433
|
-
"@typescript-eslint/prefer-enum-initializers":
|
|
434
|
-
"@typescript-eslint/prefer-find":
|
|
435
|
-
"@typescript-eslint/prefer-for-of":
|
|
436
|
-
"@typescript-eslint/prefer-function-type":
|
|
437
|
-
"@typescript-eslint/prefer-includes":
|
|
432
|
+
"@typescript-eslint/prefer-as-const": ON,
|
|
433
|
+
"@typescript-eslint/prefer-enum-initializers": ON,
|
|
434
|
+
"@typescript-eslint/prefer-find": ON,
|
|
435
|
+
"@typescript-eslint/prefer-for-of": ON,
|
|
436
|
+
"@typescript-eslint/prefer-function-type": ON,
|
|
437
|
+
"@typescript-eslint/prefer-includes": ON,
|
|
438
438
|
"@typescript-eslint/prefer-literal-enum-member": [
|
|
439
|
-
|
|
439
|
+
ON,
|
|
440
440
|
{
|
|
441
441
|
allowBitwiseExpressions: false,
|
|
442
442
|
},
|
|
443
443
|
],
|
|
444
|
-
"@typescript-eslint/prefer-namespace-keyword":
|
|
444
|
+
"@typescript-eslint/prefer-namespace-keyword": ON,
|
|
445
445
|
"@typescript-eslint/prefer-nullish-coalescing": [
|
|
446
|
-
|
|
446
|
+
ON,
|
|
447
447
|
{
|
|
448
448
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
|
|
449
449
|
ignoreBooleanCoercion: false,
|
|
@@ -459,7 +459,7 @@ export const TsEnable = {
|
|
|
459
459
|
},
|
|
460
460
|
], /* requires tsconfig: strictNullChecks */
|
|
461
461
|
"@typescript-eslint/prefer-optional-chain": [
|
|
462
|
-
|
|
462
|
+
ON,
|
|
463
463
|
{
|
|
464
464
|
allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: false,
|
|
465
465
|
checkAny: true,
|
|
@@ -472,23 +472,23 @@ export const TsEnable = {
|
|
|
472
472
|
},
|
|
473
473
|
],
|
|
474
474
|
"@typescript-eslint/prefer-readonly": [
|
|
475
|
-
|
|
475
|
+
ON,
|
|
476
476
|
{
|
|
477
477
|
onlyInlineLambdas: false,
|
|
478
478
|
},
|
|
479
479
|
],
|
|
480
480
|
"@typescript-eslint/prefer-readonly-parameter-types": OFF /* preference - WAY too restrictive */,
|
|
481
|
-
"@typescript-eslint/prefer-reduce-type-parameter":
|
|
482
|
-
"@typescript-eslint/prefer-regexp-exec":
|
|
483
|
-
"@typescript-eslint/prefer-return-this-type":
|
|
481
|
+
"@typescript-eslint/prefer-reduce-type-parameter": ON,
|
|
482
|
+
"@typescript-eslint/prefer-regexp-exec": ON,
|
|
483
|
+
"@typescript-eslint/prefer-return-this-type": ON,
|
|
484
484
|
"@typescript-eslint/prefer-string-starts-ends-with": [
|
|
485
|
-
|
|
485
|
+
ON,
|
|
486
486
|
{
|
|
487
487
|
allowSingleElementEquality: never,
|
|
488
488
|
},
|
|
489
489
|
],
|
|
490
490
|
"@typescript-eslint/promise-function-async": [
|
|
491
|
-
|
|
491
|
+
ON,
|
|
492
492
|
{
|
|
493
493
|
allowAny: false,
|
|
494
494
|
allowedPromiseNames: [],
|
|
@@ -498,15 +498,15 @@ export const TsEnable = {
|
|
|
498
498
|
checkMethodDeclarations: true,
|
|
499
499
|
},
|
|
500
500
|
],
|
|
501
|
-
"@typescript-eslint/related-getter-setter-pairs":
|
|
501
|
+
"@typescript-eslint/related-getter-setter-pairs": ON,
|
|
502
502
|
"@typescript-eslint/require-array-sort-compare": [
|
|
503
|
-
|
|
503
|
+
ON,
|
|
504
504
|
{
|
|
505
505
|
ignoreStringArrays: true,
|
|
506
506
|
},
|
|
507
507
|
],
|
|
508
508
|
"@typescript-eslint/restrict-plus-operands": [
|
|
509
|
-
|
|
509
|
+
ON,
|
|
510
510
|
{
|
|
511
511
|
allowAny: false,
|
|
512
512
|
allowBoolean: false,
|
|
@@ -517,7 +517,7 @@ export const TsEnable = {
|
|
|
517
517
|
},
|
|
518
518
|
],
|
|
519
519
|
"@typescript-eslint/restrict-template-expressions": [
|
|
520
|
-
|
|
520
|
+
ON,
|
|
521
521
|
{
|
|
522
522
|
allowAny: true,
|
|
523
523
|
allowArray: true,
|
|
@@ -529,11 +529,11 @@ export const TsEnable = {
|
|
|
529
529
|
}, /* investigate: make stricter */
|
|
530
530
|
],
|
|
531
531
|
"@typescript-eslint/return-await": [
|
|
532
|
-
|
|
532
|
+
ON,
|
|
533
533
|
"in-try-catch",
|
|
534
534
|
] /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */,
|
|
535
535
|
"@typescript-eslint/strict-boolean-expressions": [
|
|
536
|
-
|
|
536
|
+
ON,
|
|
537
537
|
{
|
|
538
538
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
|
|
539
539
|
allowAny: false,
|
|
@@ -547,7 +547,7 @@ export const TsEnable = {
|
|
|
547
547
|
},
|
|
548
548
|
], /* requires tsconfig: strictNullChecks */
|
|
549
549
|
"@typescript-eslint/switch-exhaustiveness-check": [
|
|
550
|
-
|
|
550
|
+
ON,
|
|
551
551
|
{
|
|
552
552
|
allowDefaultCaseForExhaustiveSwitch: false,
|
|
553
553
|
considerDefaultExhaustiveForUnions: true,
|
|
@@ -555,7 +555,7 @@ export const TsEnable = {
|
|
|
555
555
|
},
|
|
556
556
|
],
|
|
557
557
|
"@typescript-eslint/triple-slash-reference": [
|
|
558
|
-
|
|
558
|
+
ON,
|
|
559
559
|
{
|
|
560
560
|
lib: never /** always | never */,
|
|
561
561
|
path: never /** always | never */,
|
|
@@ -564,17 +564,17 @@ export const TsEnable = {
|
|
|
564
564
|
],
|
|
565
565
|
"@typescript-eslint/typedef": OFF /* tsconfig: { noImplicitAny, strictPropertyInitialization } */,
|
|
566
566
|
"@typescript-eslint/unbound-method": [
|
|
567
|
-
|
|
567
|
+
ON,
|
|
568
568
|
{
|
|
569
569
|
ignoreStatic: false,
|
|
570
570
|
},
|
|
571
571
|
],
|
|
572
572
|
"@typescript-eslint/unified-signatures": [
|
|
573
|
-
|
|
573
|
+
ON,
|
|
574
574
|
{
|
|
575
575
|
ignoreDifferentlyNamedParameters: false,
|
|
576
576
|
},
|
|
577
577
|
],
|
|
578
|
-
"@typescript-eslint/use-unknown-in-catch-callback-variable":
|
|
578
|
+
"@typescript-eslint/use-unknown-in-catch-callback-variable": ON,
|
|
579
579
|
} as const,
|
|
580
580
|
} as const;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
|
|
3
|
+
ON,
|
|
4
4
|
never,
|
|
5
5
|
always,
|
|
6
6
|
strict,
|
|
@@ -11,7 +11,7 @@ export const YmlEnableExtension = {
|
|
|
11
11
|
rules: {
|
|
12
12
|
// DOC: https://ota-meshi.github.io/eslint-plugin-yml/rules/#extension-rules
|
|
13
13
|
"yml/flow-mapping-curly-newline": [
|
|
14
|
-
|
|
14
|
+
ON,
|
|
15
15
|
{
|
|
16
16
|
consistent: false,
|
|
17
17
|
multiline: true,
|
|
@@ -19,7 +19,7 @@ export const YmlEnableExtension = {
|
|
|
19
19
|
},
|
|
20
20
|
],
|
|
21
21
|
"yml/flow-mapping-curly-spacing": [
|
|
22
|
-
|
|
22
|
+
ON,
|
|
23
23
|
always,
|
|
24
24
|
{
|
|
25
25
|
arraysInObjects: true,
|
|
@@ -27,14 +27,14 @@ export const YmlEnableExtension = {
|
|
|
27
27
|
},
|
|
28
28
|
],
|
|
29
29
|
"yml/flow-sequence-bracket-newline": [
|
|
30
|
-
|
|
30
|
+
ON,
|
|
31
31
|
{
|
|
32
32
|
multiline: true,
|
|
33
33
|
minItems: null,
|
|
34
34
|
},
|
|
35
35
|
],
|
|
36
36
|
"yml/flow-sequence-bracket-spacing": [
|
|
37
|
-
|
|
37
|
+
ON,
|
|
38
38
|
never,
|
|
39
39
|
{
|
|
40
40
|
singleValue: false,
|
|
@@ -43,7 +43,7 @@ export const YmlEnableExtension = {
|
|
|
43
43
|
},
|
|
44
44
|
],
|
|
45
45
|
"yml/key-spacing": [
|
|
46
|
-
|
|
46
|
+
ON,
|
|
47
47
|
{
|
|
48
48
|
beforeColon: false,
|
|
49
49
|
afterColon: true,
|
|
@@ -51,14 +51,14 @@ export const YmlEnableExtension = {
|
|
|
51
51
|
},
|
|
52
52
|
],
|
|
53
53
|
"yml/no-irregular-whitespace": [
|
|
54
|
-
|
|
54
|
+
ON,
|
|
55
55
|
{
|
|
56
56
|
skipQuotedScalars: true,
|
|
57
57
|
skipComments: false,
|
|
58
58
|
},
|
|
59
59
|
],
|
|
60
60
|
"yml/no-multiple-empty-lines": [
|
|
61
|
-
|
|
61
|
+
ON,
|
|
62
62
|
{
|
|
63
63
|
max: 1,
|
|
64
64
|
maxEOF: 1,
|
|
@@ -66,7 +66,7 @@ export const YmlEnableExtension = {
|
|
|
66
66
|
},
|
|
67
67
|
],
|
|
68
68
|
"yml/spaced-comment": [
|
|
69
|
-
|
|
69
|
+
ON,
|
|
70
70
|
always,
|
|
71
71
|
],
|
|
72
72
|
} as const,
|