@eslinted/defaults 12.11.1 → 12.11.2
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/.github/workflows/RELEASE.yml +36 -36
- package/.github/workflows/rc.yml +36 -36
- package/.markdownlint.jsonc +97 -97
- package/.mocharc.yml +15 -15
- package/LICENSE +20 -20
- package/README.md +4 -4
- package/eslint.config.js +3 -3
- package/package.json +56 -56
- package/src/files/_factory/index.ts +76 -76
- package/src/files/_factory/project/index.ts +2 -2
- package/src/files/_factory/project/roots.ts +4 -4
- package/src/files/_factory/project/subroots.ts +8 -8
- package/src/files/index.ts +23 -23
- package/src/files/scopes/css.ts +5 -5
- package/src/files/scopes/html.ts +5 -5
- package/src/files/scopes/js.ts +5 -5
- package/src/files/scopes/json.ts +5 -5
- package/src/files/scopes/jsonc.ts +5 -5
- package/src/files/scopes/jsoncc.ts +9 -9
- package/src/files/scopes/mocha.ts +5 -5
- package/src/files/scopes/svelte.ts +5 -5
- package/src/files/scopes/ts.ts +5 -5
- package/src/files/scopes/yml.ts +8 -8
- package/src/ignores/global.ts +5 -5
- package/src/ignores/index.ts +25 -25
- package/src/ignores/scopes/css.ts +1 -1
- package/src/ignores/scopes/html.ts +1 -1
- package/src/ignores/scopes/js.ts +1 -1
- package/src/ignores/scopes/json.ts +1 -1
- package/src/ignores/scopes/jsonc.ts +1 -1
- package/src/ignores/scopes/jsoncc.ts +1 -1
- package/src/ignores/scopes/mocha.ts +1 -1
- package/src/ignores/scopes/svelte.ts +1 -1
- package/src/ignores/scopes/ts.ts +1 -1
- package/src/ignores/scopes/yml.ts +1 -1
- package/src/index.ts +10 -10
- package/src/rules/_strings/id.ts +21 -21
- package/src/rules/_strings/index.ts +3 -3
- package/src/rules/_strings/option.ts +30 -30
- package/src/rules/_strings/state.spec.ts +64 -64
- package/src/rules/_strings/state.ts +4 -4
- package/src/rules/index.ts +23 -23
- package/src/rules/scopes/css/enable.ts +31 -31
- package/src/rules/scopes/css/index.ts +3 -3
- package/src/rules/scopes/enable.style.ts +507 -507
- package/src/rules/scopes/enable.ts +390 -390
- package/src/rules/scopes/html/index.ts +3 -3
- package/src/rules/scopes/html/plugin/index.ts +113 -113
- package/src/rules/scopes/index.ts +7 -7
- package/src/rules/scopes/json/enable.ts +18 -18
- package/src/rules/scopes/json/index.ts +9 -9
- package/src/rules/scopes/json/plugin/extension.ts +60 -60
- package/src/rules/scopes/json/plugin/index.ts +35 -35
- package/src/rules/scopes/jsonc/index.ts +3 -3
- package/src/rules/scopes/jsonc/plugin/index.ts +12 -12
- package/src/rules/scopes/jsoncc/index.ts +3 -3
- package/src/rules/scopes/jsoncc/plugin/index.ts +16 -16
- package/src/rules/scopes/mocha/chai/expect.ts +16 -16
- package/src/rules/scopes/mocha/chai/index.ts +18 -18
- package/src/rules/scopes/mocha/disable.ts +13 -13
- package/src/rules/scopes/mocha/enable.ts +36 -36
- package/src/rules/scopes/mocha/index.ts +11 -11
- package/src/rules/scopes/svelte/disable.ts +19 -19
- package/src/rules/scopes/svelte/enable.ts +157 -157
- package/src/rules/scopes/svelte/extension/disable.ts +14 -14
- package/src/rules/scopes/svelte/extension/index.ts +17 -17
- package/src/rules/scopes/svelte/index.ts +11 -11
- package/src/rules/scopes/ts/disable.ts +30 -30
- package/src/rules/scopes/ts/enable.ts +188 -188
- package/src/rules/scopes/ts/extension/disable.ts +35 -35
- package/src/rules/scopes/ts/extension/index.ts +62 -62
- package/src/rules/scopes/ts/index.ts +11 -11
- package/src/rules/scopes/yml/index.ts +7 -7
- package/src/rules/scopes/yml/plugin/extension.ts +55 -55
- package/src/rules/scopes/yml/plugin/index.ts +38 -38
- package/src/settings/global/index.ts +6 -6
- package/src/settings/index.ts +7 -7
- package/src/settings/registry/index.ts +23 -23
- package/src/settings/registry/manifests/css.ts +9 -9
- package/src/settings/registry/manifests/html.ts +10 -10
- package/src/settings/registry/manifests/js.ts +8 -8
- package/src/settings/registry/manifests/json.ts +7 -7
- package/src/settings/registry/manifests/jsonc.ts +9 -9
- package/src/settings/registry/manifests/jsoncc.ts +9 -9
- package/src/settings/registry/manifests/mocha.ts +8 -8
- package/src/settings/registry/manifests/svelte.ts +10 -10
- package/src/settings/registry/manifests/ts.ts +30 -30
- package/src/settings/registry/manifests/yml.ts +9 -9
- package/tsconfig.json +75 -75
|
@@ -1,188 +1,188 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ID,
|
|
3
|
-
// OFF,
|
|
4
|
-
ON,
|
|
5
|
-
never,
|
|
6
|
-
} from "../../_strings";
|
|
7
|
-
|
|
8
|
-
export const TsEnable = {
|
|
9
|
-
id: ID.Enable.Enable,
|
|
10
|
-
rules: {
|
|
11
|
-
// DOC: https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
|
|
12
|
-
// "@typescript-eslint/adjacent-overload-signatures": OFF,
|
|
13
|
-
// "@typescript-eslint/array-type": OFF /* preference: ideally, I'd like to don't-care mutable arrays while requiring readonly [] syntax for immutable arrays, but there is no way to do that with the current rule options */,
|
|
14
|
-
"@typescript-eslint/await-thenable": ON,
|
|
15
|
-
"@typescript-eslint/ban-ts-comment": ON,
|
|
16
|
-
"@typescript-eslint/ban-tslint-comment": ON,
|
|
17
|
-
"@typescript-eslint/class-literal-property-style": ON,
|
|
18
|
-
"@typescript-eslint/consistent-generic-constructors": ON,
|
|
19
|
-
"@typescript-eslint/consistent-indexed-object-style": ON,
|
|
20
|
-
"@typescript-eslint/consistent-type-assertions": [
|
|
21
|
-
ON,
|
|
22
|
-
{
|
|
23
|
-
arrayLiteralTypeAssertions: never,
|
|
24
|
-
objectLiteralTypeAssertions: never,
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
// "@typescript-eslint/consistent-type-definitions": OFF,
|
|
28
|
-
"@typescript-eslint/consistent-type-exports": ON,
|
|
29
|
-
"@typescript-eslint/consistent-type-imports": ON,
|
|
30
|
-
// "@typescript-eslint/explicit-function-return-type": OFF,
|
|
31
|
-
"@typescript-eslint/explicit-member-accessibility": [
|
|
32
|
-
ON,
|
|
33
|
-
{
|
|
34
|
-
overrides: {
|
|
35
|
-
constructors: "no-public",
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
// "@typescript-eslint/explicit-module-boundary-types": OFF,
|
|
40
|
-
"@typescript-eslint/member-ordering": [
|
|
41
|
-
ON,
|
|
42
|
-
{
|
|
43
|
-
"default": {
|
|
44
|
-
optionalityOrder: "required-first",
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
"@typescript-eslint/method-signature-style": ON,
|
|
49
|
-
// "@typescript-eslint/naming-convention": OFF,
|
|
50
|
-
"@typescript-eslint/no-array-delete": ON,
|
|
51
|
-
"@typescript-eslint/no-base-to-string": ON,
|
|
52
|
-
"@typescript-eslint/no-confusing-non-null-assertion": ON,
|
|
53
|
-
"@typescript-eslint/no-confusing-void-expression": [
|
|
54
|
-
ON,
|
|
55
|
-
{
|
|
56
|
-
ignoreArrowShorthand: true,
|
|
57
|
-
ignoreVoidOperator: true,
|
|
58
|
-
ignoreVoidReturningFunctions: true,
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
// "@typescript-eslint/no-deprecated": OFF /* incompatible: Cannot be used with jsDocParsingMode: "none" */,
|
|
62
|
-
"@typescript-eslint/no-duplicate-enum-values": ON,
|
|
63
|
-
"@typescript-eslint/no-duplicate-type-constituents": ON,
|
|
64
|
-
"@typescript-eslint/no-dynamic-delete": ON,
|
|
65
|
-
"@typescript-eslint/no-empty-object-type": ON,
|
|
66
|
-
"@typescript-eslint/no-explicit-any": [
|
|
67
|
-
ON,
|
|
68
|
-
{
|
|
69
|
-
fixToUnknown: true,
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
"@typescript-eslint/no-extra-non-null-assertion": ON,
|
|
73
|
-
"@typescript-eslint/no-extraneous-class": [
|
|
74
|
-
ON,
|
|
75
|
-
{
|
|
76
|
-
allowEmpty: true,
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
"@typescript-eslint/no-floating-promises": [
|
|
80
|
-
ON,
|
|
81
|
-
{
|
|
82
|
-
checkThenables: true,
|
|
83
|
-
},
|
|
84
|
-
],
|
|
85
|
-
"@typescript-eslint/no-for-in-array": ON,
|
|
86
|
-
"@typescript-eslint/no-import-type-side-effects": ON,
|
|
87
|
-
"@typescript-eslint/no-inferrable-types": ON,
|
|
88
|
-
"@typescript-eslint/no-invalid-void-type": ON,
|
|
89
|
-
"@typescript-eslint/no-meaningless-void-operator": [
|
|
90
|
-
ON,
|
|
91
|
-
{
|
|
92
|
-
checkNever: true,
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
"@typescript-eslint/no-misused-new": ON,
|
|
96
|
-
"@typescript-eslint/no-misused-promises": ON,
|
|
97
|
-
"@typescript-eslint/no-misused-spread": ON,
|
|
98
|
-
"@typescript-eslint/no-mixed-enums": ON,
|
|
99
|
-
// "@typescript-eslint/no-namespace": OFF,
|
|
100
|
-
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": ON,
|
|
101
|
-
"@typescript-eslint/no-non-null-asserted-optional-chain": ON,
|
|
102
|
-
// "@typescript-eslint/no-non-null-assertion": OFF /* preference */,
|
|
103
|
-
"@typescript-eslint/no-redundant-type-constituents": ON,
|
|
104
|
-
// "@typescript-eslint/no-restricted-types": OFF /* preference - no shared custom types across all projects that I wish to ban */,
|
|
105
|
-
"@typescript-eslint/no-require-imports": ON,
|
|
106
|
-
"@typescript-eslint/no-this-alias": ON,
|
|
107
|
-
"@typescript-eslint/no-unnecessary-boolean-literal-compare": ON,
|
|
108
|
-
"@typescript-eslint/no-unnecessary-condition": ON,
|
|
109
|
-
"@typescript-eslint/no-unnecessary-parameter-property-assignment": ON,
|
|
110
|
-
"@typescript-eslint/no-unnecessary-qualifier": ON,
|
|
111
|
-
"@typescript-eslint/no-unnecessary-template-expression": ON,
|
|
112
|
-
"@typescript-eslint/no-unnecessary-type-arguments": ON,
|
|
113
|
-
"@typescript-eslint/no-unnecessary-type-assertion": ON,
|
|
114
|
-
"@typescript-eslint/no-unnecessary-type-constraint": ON,
|
|
115
|
-
"@typescript-eslint/no-unnecessary-type-conversion": ON,
|
|
116
|
-
"@typescript-eslint/no-unnecessary-type-parameters": ON,
|
|
117
|
-
"@typescript-eslint/no-unsafe-argument": ON,
|
|
118
|
-
"@typescript-eslint/no-unsafe-assignment": ON,
|
|
119
|
-
"@typescript-eslint/no-unsafe-call": ON,
|
|
120
|
-
"@typescript-eslint/no-unsafe-declaration-merging": ON,
|
|
121
|
-
"@typescript-eslint/no-unsafe-enum-comparison": ON,
|
|
122
|
-
"@typescript-eslint/no-unsafe-function-type": ON,
|
|
123
|
-
"@typescript-eslint/no-unsafe-member-access": ON,
|
|
124
|
-
"@typescript-eslint/no-unsafe-return": ON,
|
|
125
|
-
// "@typescript-eslint/no-unsafe-type-assertion": OFF,
|
|
126
|
-
"@typescript-eslint/no-unsafe-unary-minus": ON,
|
|
127
|
-
"@typescript-eslint/no-useless-empty-export": ON,
|
|
128
|
-
"@typescript-eslint/no-wrapper-object-types": ON,
|
|
129
|
-
// "@typescript-eslint/non-nullable-type-assertion-style": OFF /* preference */,
|
|
130
|
-
"@typescript-eslint/parameter-properties": [
|
|
131
|
-
ON,
|
|
132
|
-
{
|
|
133
|
-
prefer: "parameter-property" /* parameter-property | @default class-property */,
|
|
134
|
-
},
|
|
135
|
-
],
|
|
136
|
-
"@typescript-eslint/prefer-as-const": ON,
|
|
137
|
-
"@typescript-eslint/prefer-enum-initializers": ON,
|
|
138
|
-
"@typescript-eslint/prefer-find": ON,
|
|
139
|
-
"@typescript-eslint/prefer-for-of": ON,
|
|
140
|
-
"@typescript-eslint/prefer-function-type": ON,
|
|
141
|
-
"@typescript-eslint/prefer-includes": ON,
|
|
142
|
-
"@typescript-eslint/prefer-literal-enum-member": ON,
|
|
143
|
-
"@typescript-eslint/prefer-namespace-keyword": ON,
|
|
144
|
-
"@typescript-eslint/prefer-nullish-coalescing": ON /* requires tsconfig: strictNullChecks */,
|
|
145
|
-
"@typescript-eslint/prefer-optional-chain": ON,
|
|
146
|
-
"@typescript-eslint/prefer-readonly": ON,
|
|
147
|
-
// "@typescript-eslint/prefer-readonly-parameter-types": OFF /* preference - WAY too restrictive */,
|
|
148
|
-
"@typescript-eslint/prefer-reduce-type-parameter": ON,
|
|
149
|
-
"@typescript-eslint/prefer-regexp-exec": ON,
|
|
150
|
-
"@typescript-eslint/prefer-return-this-type": ON,
|
|
151
|
-
"@typescript-eslint/prefer-string-starts-ends-with": ON,
|
|
152
|
-
"@typescript-eslint/promise-function-async": ON,
|
|
153
|
-
"@typescript-eslint/related-getter-setter-pairs": ON,
|
|
154
|
-
"@typescript-eslint/require-array-sort-compare": ON,
|
|
155
|
-
"@typescript-eslint/restrict-plus-operands": [
|
|
156
|
-
ON,
|
|
157
|
-
{
|
|
158
|
-
allowAny: false,
|
|
159
|
-
allowBoolean: false,
|
|
160
|
-
allowNullish: false,
|
|
161
|
-
allowNumberAndString: false,
|
|
162
|
-
allowRegExp: false,
|
|
163
|
-
},
|
|
164
|
-
],
|
|
165
|
-
"@typescript-eslint/restrict-template-expressions": [
|
|
166
|
-
ON,
|
|
167
|
-
{
|
|
168
|
-
allowNullish: false,
|
|
169
|
-
allowNever: false,
|
|
170
|
-
allowRegExp: false,
|
|
171
|
-
},
|
|
172
|
-
],
|
|
173
|
-
"@typescript-eslint/return-await": ON /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */,
|
|
174
|
-
"@typescript-eslint/strict-boolean-expressions": [
|
|
175
|
-
ON,
|
|
176
|
-
{
|
|
177
|
-
allowNullableObject: false,
|
|
178
|
-
allowString: false,
|
|
179
|
-
},
|
|
180
|
-
], /* requires tsconfig: strictNullChecks */
|
|
181
|
-
"@typescript-eslint/switch-exhaustiveness-check": ON,
|
|
182
|
-
// "@typescript-eslint/triple-slash-reference": OFF /* preference - who gives a fuck */,
|
|
183
|
-
// "@typescript-eslint/typedef": OFF /* tsconfig: { noImplicitAny, strictPropertyInitialization } */,
|
|
184
|
-
"@typescript-eslint/unbound-method": ON,
|
|
185
|
-
"@typescript-eslint/unified-signatures": ON,
|
|
186
|
-
"@typescript-eslint/use-unknown-in-catch-callback-variable": ON,
|
|
187
|
-
} as const,
|
|
188
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
ID,
|
|
3
|
+
// OFF,
|
|
4
|
+
ON,
|
|
5
|
+
never,
|
|
6
|
+
} from "../../_strings";
|
|
7
|
+
|
|
8
|
+
export const TsEnable = {
|
|
9
|
+
id: ID.Enable.Enable,
|
|
10
|
+
rules: {
|
|
11
|
+
// DOC: https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
|
|
12
|
+
// "@typescript-eslint/adjacent-overload-signatures": OFF,
|
|
13
|
+
// "@typescript-eslint/array-type": OFF /* preference: ideally, I'd like to don't-care mutable arrays while requiring readonly [] syntax for immutable arrays, but there is no way to do that with the current rule options */,
|
|
14
|
+
"@typescript-eslint/await-thenable": ON,
|
|
15
|
+
"@typescript-eslint/ban-ts-comment": ON,
|
|
16
|
+
"@typescript-eslint/ban-tslint-comment": ON,
|
|
17
|
+
"@typescript-eslint/class-literal-property-style": ON,
|
|
18
|
+
"@typescript-eslint/consistent-generic-constructors": ON,
|
|
19
|
+
"@typescript-eslint/consistent-indexed-object-style": ON,
|
|
20
|
+
"@typescript-eslint/consistent-type-assertions": [
|
|
21
|
+
ON,
|
|
22
|
+
{
|
|
23
|
+
arrayLiteralTypeAssertions: never,
|
|
24
|
+
objectLiteralTypeAssertions: never,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
// "@typescript-eslint/consistent-type-definitions": OFF,
|
|
28
|
+
"@typescript-eslint/consistent-type-exports": ON,
|
|
29
|
+
"@typescript-eslint/consistent-type-imports": ON,
|
|
30
|
+
// "@typescript-eslint/explicit-function-return-type": OFF,
|
|
31
|
+
"@typescript-eslint/explicit-member-accessibility": [
|
|
32
|
+
ON,
|
|
33
|
+
{
|
|
34
|
+
overrides: {
|
|
35
|
+
constructors: "no-public",
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
// "@typescript-eslint/explicit-module-boundary-types": OFF,
|
|
40
|
+
"@typescript-eslint/member-ordering": [
|
|
41
|
+
ON,
|
|
42
|
+
{
|
|
43
|
+
"default": {
|
|
44
|
+
optionalityOrder: "required-first",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
"@typescript-eslint/method-signature-style": ON,
|
|
49
|
+
// "@typescript-eslint/naming-convention": OFF,
|
|
50
|
+
"@typescript-eslint/no-array-delete": ON,
|
|
51
|
+
"@typescript-eslint/no-base-to-string": ON,
|
|
52
|
+
"@typescript-eslint/no-confusing-non-null-assertion": ON,
|
|
53
|
+
"@typescript-eslint/no-confusing-void-expression": [
|
|
54
|
+
ON,
|
|
55
|
+
{
|
|
56
|
+
ignoreArrowShorthand: true,
|
|
57
|
+
ignoreVoidOperator: true,
|
|
58
|
+
ignoreVoidReturningFunctions: true,
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
// "@typescript-eslint/no-deprecated": OFF /* incompatible: Cannot be used with jsDocParsingMode: "none" */,
|
|
62
|
+
"@typescript-eslint/no-duplicate-enum-values": ON,
|
|
63
|
+
"@typescript-eslint/no-duplicate-type-constituents": ON,
|
|
64
|
+
"@typescript-eslint/no-dynamic-delete": ON,
|
|
65
|
+
"@typescript-eslint/no-empty-object-type": ON,
|
|
66
|
+
"@typescript-eslint/no-explicit-any": [
|
|
67
|
+
ON,
|
|
68
|
+
{
|
|
69
|
+
fixToUnknown: true,
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
"@typescript-eslint/no-extra-non-null-assertion": ON,
|
|
73
|
+
"@typescript-eslint/no-extraneous-class": [
|
|
74
|
+
ON,
|
|
75
|
+
{
|
|
76
|
+
allowEmpty: true,
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
"@typescript-eslint/no-floating-promises": [
|
|
80
|
+
ON,
|
|
81
|
+
{
|
|
82
|
+
checkThenables: true,
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
"@typescript-eslint/no-for-in-array": ON,
|
|
86
|
+
"@typescript-eslint/no-import-type-side-effects": ON,
|
|
87
|
+
"@typescript-eslint/no-inferrable-types": ON,
|
|
88
|
+
"@typescript-eslint/no-invalid-void-type": ON,
|
|
89
|
+
"@typescript-eslint/no-meaningless-void-operator": [
|
|
90
|
+
ON,
|
|
91
|
+
{
|
|
92
|
+
checkNever: true,
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
"@typescript-eslint/no-misused-new": ON,
|
|
96
|
+
"@typescript-eslint/no-misused-promises": ON,
|
|
97
|
+
"@typescript-eslint/no-misused-spread": ON,
|
|
98
|
+
"@typescript-eslint/no-mixed-enums": ON,
|
|
99
|
+
// "@typescript-eslint/no-namespace": OFF,
|
|
100
|
+
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": ON,
|
|
101
|
+
"@typescript-eslint/no-non-null-asserted-optional-chain": ON,
|
|
102
|
+
// "@typescript-eslint/no-non-null-assertion": OFF /* preference */,
|
|
103
|
+
"@typescript-eslint/no-redundant-type-constituents": ON,
|
|
104
|
+
// "@typescript-eslint/no-restricted-types": OFF /* preference - no shared custom types across all projects that I wish to ban */,
|
|
105
|
+
"@typescript-eslint/no-require-imports": ON,
|
|
106
|
+
"@typescript-eslint/no-this-alias": ON,
|
|
107
|
+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": ON,
|
|
108
|
+
"@typescript-eslint/no-unnecessary-condition": ON,
|
|
109
|
+
"@typescript-eslint/no-unnecessary-parameter-property-assignment": ON,
|
|
110
|
+
"@typescript-eslint/no-unnecessary-qualifier": ON,
|
|
111
|
+
"@typescript-eslint/no-unnecessary-template-expression": ON,
|
|
112
|
+
"@typescript-eslint/no-unnecessary-type-arguments": ON,
|
|
113
|
+
"@typescript-eslint/no-unnecessary-type-assertion": ON,
|
|
114
|
+
"@typescript-eslint/no-unnecessary-type-constraint": ON,
|
|
115
|
+
"@typescript-eslint/no-unnecessary-type-conversion": ON,
|
|
116
|
+
"@typescript-eslint/no-unnecessary-type-parameters": ON,
|
|
117
|
+
"@typescript-eslint/no-unsafe-argument": ON,
|
|
118
|
+
"@typescript-eslint/no-unsafe-assignment": ON,
|
|
119
|
+
"@typescript-eslint/no-unsafe-call": ON,
|
|
120
|
+
"@typescript-eslint/no-unsafe-declaration-merging": ON,
|
|
121
|
+
"@typescript-eslint/no-unsafe-enum-comparison": ON,
|
|
122
|
+
"@typescript-eslint/no-unsafe-function-type": ON,
|
|
123
|
+
"@typescript-eslint/no-unsafe-member-access": ON,
|
|
124
|
+
"@typescript-eslint/no-unsafe-return": ON,
|
|
125
|
+
// "@typescript-eslint/no-unsafe-type-assertion": OFF,
|
|
126
|
+
"@typescript-eslint/no-unsafe-unary-minus": ON,
|
|
127
|
+
"@typescript-eslint/no-useless-empty-export": ON,
|
|
128
|
+
"@typescript-eslint/no-wrapper-object-types": ON,
|
|
129
|
+
// "@typescript-eslint/non-nullable-type-assertion-style": OFF /* preference */,
|
|
130
|
+
"@typescript-eslint/parameter-properties": [
|
|
131
|
+
ON,
|
|
132
|
+
{
|
|
133
|
+
prefer: "parameter-property" /* parameter-property | @default class-property */,
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
"@typescript-eslint/prefer-as-const": ON,
|
|
137
|
+
"@typescript-eslint/prefer-enum-initializers": ON,
|
|
138
|
+
"@typescript-eslint/prefer-find": ON,
|
|
139
|
+
"@typescript-eslint/prefer-for-of": ON,
|
|
140
|
+
"@typescript-eslint/prefer-function-type": ON,
|
|
141
|
+
"@typescript-eslint/prefer-includes": ON,
|
|
142
|
+
"@typescript-eslint/prefer-literal-enum-member": ON,
|
|
143
|
+
"@typescript-eslint/prefer-namespace-keyword": ON,
|
|
144
|
+
"@typescript-eslint/prefer-nullish-coalescing": ON /* requires tsconfig: strictNullChecks */,
|
|
145
|
+
"@typescript-eslint/prefer-optional-chain": ON,
|
|
146
|
+
"@typescript-eslint/prefer-readonly": ON,
|
|
147
|
+
// "@typescript-eslint/prefer-readonly-parameter-types": OFF /* preference - WAY too restrictive */,
|
|
148
|
+
"@typescript-eslint/prefer-reduce-type-parameter": ON,
|
|
149
|
+
"@typescript-eslint/prefer-regexp-exec": ON,
|
|
150
|
+
"@typescript-eslint/prefer-return-this-type": ON,
|
|
151
|
+
"@typescript-eslint/prefer-string-starts-ends-with": ON,
|
|
152
|
+
"@typescript-eslint/promise-function-async": ON,
|
|
153
|
+
"@typescript-eslint/related-getter-setter-pairs": ON,
|
|
154
|
+
"@typescript-eslint/require-array-sort-compare": ON,
|
|
155
|
+
"@typescript-eslint/restrict-plus-operands": [
|
|
156
|
+
ON,
|
|
157
|
+
{
|
|
158
|
+
allowAny: false,
|
|
159
|
+
allowBoolean: false,
|
|
160
|
+
allowNullish: false,
|
|
161
|
+
allowNumberAndString: false,
|
|
162
|
+
allowRegExp: false,
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
"@typescript-eslint/restrict-template-expressions": [
|
|
166
|
+
ON,
|
|
167
|
+
{
|
|
168
|
+
allowNullish: false,
|
|
169
|
+
allowNever: false,
|
|
170
|
+
allowRegExp: false,
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
"@typescript-eslint/return-await": ON /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */,
|
|
174
|
+
"@typescript-eslint/strict-boolean-expressions": [
|
|
175
|
+
ON,
|
|
176
|
+
{
|
|
177
|
+
allowNullableObject: false,
|
|
178
|
+
allowString: false,
|
|
179
|
+
},
|
|
180
|
+
], /* requires tsconfig: strictNullChecks */
|
|
181
|
+
"@typescript-eslint/switch-exhaustiveness-check": ON,
|
|
182
|
+
// "@typescript-eslint/triple-slash-reference": OFF /* preference - who gives a fuck */,
|
|
183
|
+
// "@typescript-eslint/typedef": OFF /* tsconfig: { noImplicitAny, strictPropertyInitialization } */,
|
|
184
|
+
"@typescript-eslint/unbound-method": ON,
|
|
185
|
+
"@typescript-eslint/unified-signatures": ON,
|
|
186
|
+
"@typescript-eslint/use-unknown-in-catch-callback-variable": ON,
|
|
187
|
+
} as const,
|
|
188
|
+
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ID,
|
|
3
|
-
OFF,
|
|
4
|
-
} from "../../../_strings";
|
|
5
|
-
|
|
6
|
-
export const TsDisableExtension = {
|
|
7
|
-
id: ID.Disable.Extension,
|
|
8
|
-
rules: {
|
|
9
|
-
// DOC: https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
|
|
10
|
-
// "class-methods-use-this": OFF /* ESLint now supports TS */,
|
|
11
|
-
// "consistent-return": OFF /* tsc */,
|
|
12
|
-
// "default-param-last": OFF /* ESLint now supports TS */,
|
|
13
|
-
"dot-notation": OFF,
|
|
14
|
-
// "init-declarations": OFF /* ESLint now supports TS */,
|
|
15
|
-
// "max-params": OFF /* ESLint now supports TS */,
|
|
16
|
-
// "no-array-constructor": OFF /* ESLint now supports TS */,
|
|
17
|
-
// "no-dupe-class-members": OFF /* tsc, although ESLint now supports TS */,
|
|
18
|
-
// "no-empty-function": OFF /* ESLint now supports TS */,
|
|
19
|
-
"no-implied-eval": OFF,
|
|
20
|
-
// "no-invalid-this": OFF /* tsc, although ESLint now supports TS */,
|
|
21
|
-
// "no-loop-func": OFF /* ESLint now supports TS */,
|
|
22
|
-
// "no-magic-numbers": OFF /* ESLint now supports TS */,
|
|
23
|
-
// "no-redeclare": OFF /* tsc */,
|
|
24
|
-
"no-restricted-imports": OFF,
|
|
25
|
-
// "no-shadow": OFF /* ESLint now supports TS */,
|
|
26
|
-
"no-throw-literal": OFF /* @typescript-eslint/only-throw-error */,
|
|
27
|
-
// "no-unused-expressions": OFF /* ESLint now supports TS */,
|
|
28
|
-
"no-unused-vars": OFF,
|
|
29
|
-
// "no-use-before-define": OFF /* ESLint now supports TS */,
|
|
30
|
-
// "no-useless-constructor": OFF /* ESLint now supports TS */,
|
|
31
|
-
"prefer-destructuring": OFF,
|
|
32
|
-
"prefer-promise-reject-errors": OFF,
|
|
33
|
-
"require-await": OFF,
|
|
34
|
-
} as const,
|
|
35
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
ID,
|
|
3
|
+
OFF,
|
|
4
|
+
} from "../../../_strings";
|
|
5
|
+
|
|
6
|
+
export const TsDisableExtension = {
|
|
7
|
+
id: ID.Disable.Extension,
|
|
8
|
+
rules: {
|
|
9
|
+
// DOC: https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
|
|
10
|
+
// "class-methods-use-this": OFF /* ESLint now supports TS */,
|
|
11
|
+
// "consistent-return": OFF /* tsc */,
|
|
12
|
+
// "default-param-last": OFF /* ESLint now supports TS */,
|
|
13
|
+
"dot-notation": OFF,
|
|
14
|
+
// "init-declarations": OFF /* ESLint now supports TS */,
|
|
15
|
+
// "max-params": OFF /* ESLint now supports TS */,
|
|
16
|
+
// "no-array-constructor": OFF /* ESLint now supports TS */,
|
|
17
|
+
// "no-dupe-class-members": OFF /* tsc, although ESLint now supports TS */,
|
|
18
|
+
// "no-empty-function": OFF /* ESLint now supports TS */,
|
|
19
|
+
"no-implied-eval": OFF,
|
|
20
|
+
// "no-invalid-this": OFF /* tsc, although ESLint now supports TS */,
|
|
21
|
+
// "no-loop-func": OFF /* ESLint now supports TS */,
|
|
22
|
+
// "no-magic-numbers": OFF /* ESLint now supports TS */,
|
|
23
|
+
// "no-redeclare": OFF /* tsc */,
|
|
24
|
+
"no-restricted-imports": OFF,
|
|
25
|
+
// "no-shadow": OFF /* ESLint now supports TS */,
|
|
26
|
+
"no-throw-literal": OFF /* @typescript-eslint/only-throw-error */,
|
|
27
|
+
// "no-unused-expressions": OFF /* ESLint now supports TS */,
|
|
28
|
+
"no-unused-vars": OFF,
|
|
29
|
+
// "no-use-before-define": OFF /* ESLint now supports TS */,
|
|
30
|
+
// "no-useless-constructor": OFF /* ESLint now supports TS */,
|
|
31
|
+
"prefer-destructuring": OFF,
|
|
32
|
+
"prefer-promise-reject-errors": OFF,
|
|
33
|
+
"require-await": OFF,
|
|
34
|
+
} as const,
|
|
35
|
+
};
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ID,
|
|
3
|
-
// OFF,
|
|
4
|
-
ON,
|
|
5
|
-
} from "../../../_strings";
|
|
6
|
-
|
|
7
|
-
export const TsEnableExtension = {
|
|
8
|
-
id: ID.Enable.Extension,
|
|
9
|
-
rules: {
|
|
10
|
-
// DOC: https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
|
|
11
|
-
// "@typescript-eslint/class-methods-use-this": OFF /* ESLint now supports TS (preference -- eslint:OFF) */,
|
|
12
|
-
// "@typescript-eslint/consistent-return": OFF /* tsc: noImplicitReturns */,
|
|
13
|
-
// "@typescript-eslint/default-param-last": OFF /* ESLint now supports TS */,
|
|
14
|
-
"@typescript-eslint/dot-notation": [
|
|
15
|
-
ON,
|
|
16
|
-
{
|
|
17
|
-
// TS-only:
|
|
18
|
-
allowPrivateClassPropertyAccess: true,
|
|
19
|
-
allowProtectedClassPropertyAccess: true,
|
|
20
|
-
allowIndexSignaturePropertyAccess: true,
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
// "@typescript-eslint/init-declarations": OFF /* ESLint now supports TS */,
|
|
24
|
-
// "@typescript-eslint/max-params": OFF /* preference, although ESLint now supports TS */,
|
|
25
|
-
// "@typescript-eslint/no-array-constructor": OFF /* ESLint now supports TS */,
|
|
26
|
-
// "@typescript-eslint/no-dupe-class-members": OFF /* tsc, although ESLint now supports TS */,
|
|
27
|
-
// "@typescript-eslint/no-empty-function": OFF /* ESLint now supports TS */,
|
|
28
|
-
"@typescript-eslint/no-implied-eval": ON,
|
|
29
|
-
// "@typescript-eslint/no-invalid-this": OFF /* tsc: { strict, noImplicitThis }, although ESLint now supports TS */,
|
|
30
|
-
// "@typescript-eslint/no-loop-func": OFF /* ESLint now supports TS */,
|
|
31
|
-
// "@typescript-eslint/no-magic-numbers": OFF /* preference, although ESLint now supports TS */,
|
|
32
|
-
// "@typescript-eslint/no-redeclare": OFF /* tsc (let, const, -var) */,
|
|
33
|
-
// "@typescript-eslint/no-restricted-imports": OFF /* preference */,
|
|
34
|
-
// "@typescript-eslint/no-shadow": OFF /* ESLint now supports TS (was: investigate) */,
|
|
35
|
-
// "@typescript-eslint/no-unused-expressions": OFF /* ESLint now supports TS (preference -- eslint:OFF) */,
|
|
36
|
-
"@typescript-eslint/no-unused-vars": ON,
|
|
37
|
-
// "@typescript-eslint/no-use-before-define": OFF /* ESLint now supports TS */,
|
|
38
|
-
// "@typescript-eslint/no-useless-constructor": OFF /* ESLint now supports TS */,
|
|
39
|
-
"@typescript-eslint/only-throw-error": [
|
|
40
|
-
ON,
|
|
41
|
-
{
|
|
42
|
-
allowThrowingAny: false,
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
"@typescript-eslint/prefer-destructuring": [
|
|
46
|
-
ON,
|
|
47
|
-
{
|
|
48
|
-
AssignmentExpression: {
|
|
49
|
-
array: false,
|
|
50
|
-
object: false,
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
"@typescript-eslint/prefer-promise-reject-errors": [
|
|
55
|
-
ON,
|
|
56
|
-
{
|
|
57
|
-
allowThrowingUnknown: true,
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
"@typescript-eslint/require-await": ON,
|
|
61
|
-
} as const,
|
|
62
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
ID,
|
|
3
|
+
// OFF,
|
|
4
|
+
ON,
|
|
5
|
+
} from "../../../_strings";
|
|
6
|
+
|
|
7
|
+
export const TsEnableExtension = {
|
|
8
|
+
id: ID.Enable.Extension,
|
|
9
|
+
rules: {
|
|
10
|
+
// DOC: https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
|
|
11
|
+
// "@typescript-eslint/class-methods-use-this": OFF /* ESLint now supports TS (preference -- eslint:OFF) */,
|
|
12
|
+
// "@typescript-eslint/consistent-return": OFF /* tsc: noImplicitReturns */,
|
|
13
|
+
// "@typescript-eslint/default-param-last": OFF /* ESLint now supports TS */,
|
|
14
|
+
"@typescript-eslint/dot-notation": [
|
|
15
|
+
ON,
|
|
16
|
+
{
|
|
17
|
+
// TS-only:
|
|
18
|
+
allowPrivateClassPropertyAccess: true,
|
|
19
|
+
allowProtectedClassPropertyAccess: true,
|
|
20
|
+
allowIndexSignaturePropertyAccess: true,
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
// "@typescript-eslint/init-declarations": OFF /* ESLint now supports TS */,
|
|
24
|
+
// "@typescript-eslint/max-params": OFF /* preference, although ESLint now supports TS */,
|
|
25
|
+
// "@typescript-eslint/no-array-constructor": OFF /* ESLint now supports TS */,
|
|
26
|
+
// "@typescript-eslint/no-dupe-class-members": OFF /* tsc, although ESLint now supports TS */,
|
|
27
|
+
// "@typescript-eslint/no-empty-function": OFF /* ESLint now supports TS */,
|
|
28
|
+
"@typescript-eslint/no-implied-eval": ON,
|
|
29
|
+
// "@typescript-eslint/no-invalid-this": OFF /* tsc: { strict, noImplicitThis }, although ESLint now supports TS */,
|
|
30
|
+
// "@typescript-eslint/no-loop-func": OFF /* ESLint now supports TS */,
|
|
31
|
+
// "@typescript-eslint/no-magic-numbers": OFF /* preference, although ESLint now supports TS */,
|
|
32
|
+
// "@typescript-eslint/no-redeclare": OFF /* tsc (let, const, -var) */,
|
|
33
|
+
// "@typescript-eslint/no-restricted-imports": OFF /* preference */,
|
|
34
|
+
// "@typescript-eslint/no-shadow": OFF /* ESLint now supports TS (was: investigate) */,
|
|
35
|
+
// "@typescript-eslint/no-unused-expressions": OFF /* ESLint now supports TS (preference -- eslint:OFF) */,
|
|
36
|
+
"@typescript-eslint/no-unused-vars": ON,
|
|
37
|
+
// "@typescript-eslint/no-use-before-define": OFF /* ESLint now supports TS */,
|
|
38
|
+
// "@typescript-eslint/no-useless-constructor": OFF /* ESLint now supports TS */,
|
|
39
|
+
"@typescript-eslint/only-throw-error": [
|
|
40
|
+
ON,
|
|
41
|
+
{
|
|
42
|
+
allowThrowingAny: false,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
"@typescript-eslint/prefer-destructuring": [
|
|
46
|
+
ON,
|
|
47
|
+
{
|
|
48
|
+
AssignmentExpression: {
|
|
49
|
+
array: false,
|
|
50
|
+
object: false,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
"@typescript-eslint/prefer-promise-reject-errors": [
|
|
55
|
+
ON,
|
|
56
|
+
{
|
|
57
|
+
allowThrowingUnknown: true,
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
"@typescript-eslint/require-await": ON,
|
|
61
|
+
} as const,
|
|
62
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TsDisable } from "./disable";
|
|
2
|
-
import { TsDisableExtension } from "./extension/disable";
|
|
3
|
-
import { TsEnable } from "./enable";
|
|
4
|
-
import { TsEnableExtension } from "./extension";
|
|
5
|
-
|
|
6
|
-
export default [
|
|
7
|
-
TsDisable,
|
|
8
|
-
TsDisableExtension,
|
|
9
|
-
TsEnable,
|
|
10
|
-
TsEnableExtension,
|
|
11
|
-
];
|
|
1
|
+
import { TsDisable } from "./disable";
|
|
2
|
+
import { TsDisableExtension } from "./extension/disable";
|
|
3
|
+
import { TsEnable } from "./enable";
|
|
4
|
+
import { TsEnableExtension } from "./extension";
|
|
5
|
+
|
|
6
|
+
export default [
|
|
7
|
+
TsDisable,
|
|
8
|
+
TsDisableExtension,
|
|
9
|
+
TsEnable,
|
|
10
|
+
TsEnableExtension,
|
|
11
|
+
];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { YmlEnablePlugin } from "./plugin";
|
|
2
|
-
import { YmlEnablePluginExtension } from "./plugin/extension";
|
|
3
|
-
|
|
4
|
-
export default [
|
|
5
|
-
YmlEnablePlugin,
|
|
6
|
-
YmlEnablePluginExtension,
|
|
7
|
-
];
|
|
1
|
+
import { YmlEnablePlugin } from "./plugin";
|
|
2
|
+
import { YmlEnablePluginExtension } from "./plugin/extension";
|
|
3
|
+
|
|
4
|
+
export default [
|
|
5
|
+
YmlEnablePlugin,
|
|
6
|
+
YmlEnablePluginExtension,
|
|
7
|
+
];
|