linted 16.12.2-rc.0 → 16.12.2-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/rules/html/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/html/enable.d.ts.map +1 -0
- package/dist/rules/html/enable.js +15 -0
- package/dist/rules/html/enable.js.map +1 -0
- package/dist/rules/{mocha/_recommended.d.ts → html/enable_recommended.d.ts} +1 -1
- package/dist/rules/html/enable_recommended.d.ts.map +1 -0
- package/dist/rules/html/enable_recommended.js +8 -0
- package/dist/rules/html/enable_recommended.js.map +1 -0
- package/dist/rules/{_html.d.ts → html.d.ts} +1 -1
- package/dist/rules/html.d.ts.map +1 -0
- package/dist/rules/html.js +4 -0
- package/dist/rules/html.js.map +1 -0
- package/dist/rules/js/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/js/{_enable.d.ts.map → enable.d.ts.map} +1 -1
- package/dist/rules/js/{_enable.js → enable.js} +281 -45
- package/dist/rules/js/enable.js.map +1 -0
- package/dist/rules/js/{stylistic.d.ts → enable_stylistic.d.ts} +25 -25
- package/dist/rules/js/{stylistic.d.ts.map → enable_stylistic.d.ts.map} +1 -1
- package/dist/rules/js/enable_stylistic.js +585 -0
- package/dist/rules/js/enable_stylistic.js.map +1 -0
- package/dist/rules/{_js.d.ts → js.d.ts} +25 -25
- package/dist/rules/{_js.d.ts.map → js.d.ts.map} +1 -1
- package/dist/rules/js.js +4 -0
- package/dist/rules/js.js.map +1 -0
- package/dist/rules/json/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/json/enable.d.ts.map +1 -0
- package/dist/rules/json/{_enable.js → enable.js} +3 -3
- package/dist/rules/json/enable.js.map +1 -0
- package/dist/rules/json/enable_x.d.ts.map +1 -1
- package/dist/rules/json/enable_x.js +48 -8
- package/dist/rules/json/enable_x.js.map +1 -1
- package/dist/rules/{_json.d.ts → json.d.ts} +1 -1
- package/dist/rules/json.d.ts.map +1 -0
- package/dist/rules/{_json.js → json.js} +2 -2
- package/dist/rules/json.js.map +1 -0
- package/dist/rules/jsonc/override.d.ts.map +1 -1
- package/dist/rules/jsonc/override.js +12 -3
- package/dist/rules/jsonc/override.js.map +1 -1
- package/dist/rules/{_jsonc.d.ts → jsonc.d.ts} +1 -1
- package/dist/rules/jsonc.d.ts.map +1 -0
- package/dist/rules/{_jsonc.js → jsonc.js} +2 -2
- package/dist/rules/jsonc.js.map +1 -0
- package/dist/rules/md/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/md/enable.d.ts.map +1 -0
- package/dist/rules/md/enable.js +14 -0
- package/dist/rules/md/enable.js.map +1 -0
- package/dist/rules/{_md.d.ts → md.d.ts} +1 -1
- package/dist/rules/md.d.ts.map +1 -0
- package/dist/rules/md.js +3 -0
- package/dist/rules/md.js.map +1 -0
- package/dist/rules/mocha/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/mocha/enable.d.ts.map +1 -0
- package/dist/rules/mocha/enable.js +3 -0
- package/dist/rules/mocha/enable.js.map +1 -0
- package/dist/rules/{html/_recommended.d.ts → mocha/enable_recommended.d.ts} +1 -1
- package/dist/rules/mocha/enable_recommended.d.ts.map +1 -0
- package/dist/rules/mocha/enable_recommended.js +8 -0
- package/dist/rules/mocha/enable_recommended.js.map +1 -0
- package/dist/rules/{_mocha.d.ts → mocha.d.ts} +1 -1
- package/dist/rules/mocha.d.ts.map +1 -0
- package/dist/rules/mocha.js +4 -0
- package/dist/rules/mocha.js.map +1 -0
- package/dist/rules/svelte/disable.d.ts +5 -0
- package/dist/rules/svelte/disable.d.ts.map +1 -0
- package/dist/rules/svelte/disable.js +8 -0
- package/dist/rules/svelte/disable.js.map +1 -0
- package/dist/rules/svelte/disable_js.d.ts.map +1 -1
- package/dist/rules/svelte/disable_js.js +8 -3
- package/dist/rules/svelte/disable_js.js.map +1 -1
- package/dist/rules/svelte/disable_ts.d.ts.map +1 -1
- package/dist/rules/svelte/disable_ts.js +8 -3
- package/dist/rules/svelte/disable_ts.js.map +1 -1
- package/dist/rules/svelte/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/svelte/enable.d.ts.map +1 -0
- package/dist/rules/svelte/enable.js +190 -0
- package/dist/rules/svelte/enable.js.map +1 -0
- package/dist/rules/svelte/enable_x.d.ts.map +1 -1
- package/dist/rules/svelte/enable_x.js +15 -3
- package/dist/rules/svelte/enable_x.js.map +1 -1
- package/dist/rules/{_svelte.d.ts → svelte.d.ts} +27 -27
- package/dist/rules/{_svelte.d.ts.map → svelte.d.ts.map} +1 -1
- package/dist/rules/{_svelte.js → svelte.js} +4 -4
- package/dist/rules/svelte.js.map +1 -0
- package/dist/rules/ts/{disable_compiler.d.ts → disable.d.ts} +2 -2
- package/dist/rules/ts/disable.d.ts.map +1 -0
- package/dist/rules/ts/{disable_compiler.js → disable.js} +3 -4
- package/dist/rules/ts/disable.js.map +1 -0
- package/dist/rules/ts/disable_x.d.ts.map +1 -1
- package/dist/rules/ts/disable_x.js +1 -2
- package/dist/rules/ts/disable_x.js.map +1 -1
- package/dist/rules/ts/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/ts/enable.d.ts.map +1 -0
- package/dist/rules/ts/{_enable.js → enable.js} +173 -29
- package/dist/rules/ts/enable.js.map +1 -0
- package/dist/rules/ts/enable_x.d.ts.map +1 -1
- package/dist/rules/ts/enable_x.js +32 -5
- package/dist/rules/ts/enable_x.js.map +1 -1
- package/dist/rules/{_ts.d.ts → ts.d.ts} +26 -26
- package/dist/rules/{_ts.d.ts.map → ts.d.ts.map} +1 -1
- package/dist/rules/{_ts.js → ts.js} +4 -4
- package/dist/rules/ts.js.map +1 -0
- package/dist/rules/yml/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/yml/enable.d.ts.map +1 -0
- package/dist/rules/yml/enable.js +60 -0
- package/dist/rules/yml/enable.js.map +1 -0
- package/dist/rules/yml/enable_x.d.ts.map +1 -1
- package/dist/rules/yml/enable_x.js +57 -9
- package/dist/rules/yml/enable_x.js.map +1 -1
- package/dist/rules/{_yml.d.ts → yml.d.ts} +1 -1
- package/dist/rules/yml.d.ts.map +1 -0
- package/dist/rules/{_yml.js → yml.js} +2 -2
- package/dist/rules/yml.js.map +1 -0
- package/dist/rules.d.ts +75 -75
- package/dist/rules.js +9 -9
- package/dist/rules.js.map +1 -1
- package/package.json +2 -2
- package/src/rules/html/enable.ts +16 -0
- package/src/rules/html/enable_recommended.ts +9 -0
- package/src/rules/html.ts +4 -0
- package/src/rules/js/enable.ts +524 -0
- package/src/rules/js/enable_stylistic.ts +608 -0
- package/src/rules/js.ts +4 -0
- package/src/rules/json/{_enable.ts → enable.ts} +3 -5
- package/src/rules/json/enable_x.ts +48 -9
- package/src/rules/{_json.ts → json.ts} +1 -1
- package/src/rules/jsonc/override.ts +13 -6
- package/src/rules/{_jsonc.ts → jsonc.ts} +1 -1
- package/src/rules/md/enable.ts +15 -0
- package/src/rules/md.ts +3 -0
- package/src/rules/mocha/enable.ts +3 -0
- package/src/rules/mocha/enable_recommended.ts +9 -0
- package/src/rules/mocha.ts +4 -0
- package/src/rules/svelte/disable.ts +9 -0
- package/src/rules/svelte/disable_js.ts +10 -6
- package/src/rules/svelte/disable_ts.ts +8 -4
- package/src/rules/svelte/{_enable.ts → enable.ts} +120 -21
- package/src/rules/svelte/enable_x.ts +15 -4
- package/src/rules/{_svelte.ts → svelte.ts} +3 -3
- package/src/rules/ts/{disable_compiler.ts → disable.ts} +3 -4
- package/src/rules/ts/disable_x.ts +2 -6
- package/src/rules/ts/{_enable.ts → enable.ts} +176 -33
- package/src/rules/ts/enable_x.ts +37 -12
- package/src/rules/{_ts.ts → ts.ts} +3 -3
- package/src/rules/yml/{_enable.ts → enable.ts} +38 -7
- package/src/rules/yml/enable_x.ts +56 -9
- package/src/rules/{_yml.ts → yml.ts} +1 -1
- package/src/rules.ts +9 -9
- package/dist/rules/_html.d.ts.map +0 -1
- package/dist/rules/_html.js +0 -4
- package/dist/rules/_html.js.map +0 -1
- package/dist/rules/_js.js +0 -4
- package/dist/rules/_js.js.map +0 -1
- package/dist/rules/_json.d.ts.map +0 -1
- package/dist/rules/_json.js.map +0 -1
- package/dist/rules/_jsonc.d.ts.map +0 -1
- package/dist/rules/_jsonc.js.map +0 -1
- package/dist/rules/_md.d.ts.map +0 -1
- package/dist/rules/_md.js +0 -3
- package/dist/rules/_md.js.map +0 -1
- package/dist/rules/_mocha.d.ts.map +0 -1
- package/dist/rules/_mocha.js +0 -4
- package/dist/rules/_mocha.js.map +0 -1
- package/dist/rules/_svelte.js.map +0 -1
- package/dist/rules/_ts.js.map +0 -1
- package/dist/rules/_yml.d.ts.map +0 -1
- package/dist/rules/_yml.js.map +0 -1
- package/dist/rules/html/_enable.d.ts.map +0 -1
- package/dist/rules/html/_enable.js +0 -10
- package/dist/rules/html/_enable.js.map +0 -1
- package/dist/rules/html/_recommended.d.ts.map +0 -1
- package/dist/rules/html/_recommended.js +0 -5
- package/dist/rules/html/_recommended.js.map +0 -1
- package/dist/rules/js/_enable.js.map +0 -1
- package/dist/rules/js/stylistic.js +0 -270
- package/dist/rules/js/stylistic.js.map +0 -1
- package/dist/rules/json/_enable.d.ts.map +0 -1
- package/dist/rules/json/_enable.js.map +0 -1
- package/dist/rules/md/_enable.d.ts.map +0 -1
- package/dist/rules/md/_enable.js +0 -9
- package/dist/rules/md/_enable.js.map +0 -1
- package/dist/rules/mocha/_enable.d.ts.map +0 -1
- package/dist/rules/mocha/_enable.js +0 -4
- package/dist/rules/mocha/_enable.js.map +0 -1
- package/dist/rules/mocha/_recommended.d.ts.map +0 -1
- package/dist/rules/mocha/_recommended.js +0 -5
- package/dist/rules/mocha/_recommended.js.map +0 -1
- package/dist/rules/svelte/_enable.d.ts.map +0 -1
- package/dist/rules/svelte/_enable.js +0 -90
- package/dist/rules/svelte/_enable.js.map +0 -1
- package/dist/rules/svelte/disable_x.d.ts +0 -5
- package/dist/rules/svelte/disable_x.d.ts.map +0 -1
- package/dist/rules/svelte/disable_x.js +0 -4
- package/dist/rules/svelte/disable_x.js.map +0 -1
- package/dist/rules/ts/_enable.d.ts.map +0 -1
- package/dist/rules/ts/_enable.js.map +0 -1
- package/dist/rules/ts/disable_compiler.d.ts.map +0 -1
- package/dist/rules/ts/disable_compiler.js.map +0 -1
- package/dist/rules/yml/_enable.d.ts.map +0 -1
- package/dist/rules/yml/_enable.js +0 -28
- package/dist/rules/yml/_enable.js.map +0 -1
- package/src/rules/_html.ts +0 -4
- package/src/rules/_js.ts +0 -4
- package/src/rules/_md.ts +0 -3
- package/src/rules/_mocha.ts +0 -4
- package/src/rules/html/_enable.ts +0 -13
- package/src/rules/html/_recommended.ts +0 -7
- package/src/rules/js/_enable.ts +0 -287
- package/src/rules/js/stylistic.ts +0 -294
- package/src/rules/md/_enable.ts +0 -14
- package/src/rules/mocha/_enable.ts +0 -5
- package/src/rules/mocha/_recommended.ts +0 -7
- package/src/rules/svelte/disable_x.ts +0 -8
@@ -1,16 +1,24 @@
|
|
1
|
-
import {
|
2
|
-
const {
|
1
|
+
import { enable, level, state } from "../_strings.js";
|
2
|
+
const { ERROR, OFF } = level, { Never, Explicit } = state;
|
3
3
|
export default [
|
4
4
|
enable,
|
5
5
|
{
|
6
6
|
"@typescript-eslint/adjacent-overload-signatures": OFF,
|
7
|
-
"@typescript-eslint/array-type": [
|
7
|
+
"@typescript-eslint/array-type": [
|
8
|
+
ERROR,
|
9
|
+
{
|
10
|
+
"default": "array",
|
11
|
+
readonly: "array",
|
12
|
+
},
|
13
|
+
],
|
8
14
|
"@typescript-eslint/await-thenable": ERROR,
|
9
15
|
"@typescript-eslint/ban-ts-comment": [
|
10
16
|
ERROR,
|
11
17
|
{
|
12
18
|
"ts-check": false,
|
13
|
-
"ts-expect-error": {
|
19
|
+
"ts-expect-error": {
|
20
|
+
descriptionFormat: "^: BUG: .+$",
|
21
|
+
},
|
14
22
|
"ts-ignore": true,
|
15
23
|
"ts-nocheck": true,
|
16
24
|
minimumDescriptionLength: 32,
|
@@ -20,10 +28,28 @@ export default [
|
|
20
28
|
"@typescript-eslint/class-literal-property-style": [ERROR, "fields"],
|
21
29
|
"@typescript-eslint/consistent-generic-constructors": [ERROR, "constructor"],
|
22
30
|
"@typescript-eslint/consistent-indexed-object-style": [ERROR, "record"],
|
23
|
-
"@typescript-eslint/consistent-type-assertions": [
|
31
|
+
"@typescript-eslint/consistent-type-assertions": [
|
32
|
+
ERROR,
|
33
|
+
{
|
34
|
+
assertionStyle: "as",
|
35
|
+
objectLiteralTypeAssertions: Never,
|
36
|
+
},
|
37
|
+
],
|
24
38
|
"@typescript-eslint/consistent-type-definitions": OFF,
|
25
|
-
"@typescript-eslint/consistent-type-exports": [
|
26
|
-
|
39
|
+
"@typescript-eslint/consistent-type-exports": [
|
40
|
+
ERROR,
|
41
|
+
{
|
42
|
+
fixMixedExportsWithInlineTypeSpecifier: false,
|
43
|
+
},
|
44
|
+
],
|
45
|
+
"@typescript-eslint/consistent-type-imports": [
|
46
|
+
ERROR,
|
47
|
+
{
|
48
|
+
disallowTypeAnnotations: true,
|
49
|
+
fixStyle: "separate-type-imports",
|
50
|
+
prefer: "type-imports",
|
51
|
+
},
|
52
|
+
],
|
27
53
|
"@typescript-eslint/explicit-function-return-type": OFF,
|
28
54
|
"@typescript-eslint/explicit-member-accessibility": [
|
29
55
|
ERROR,
|
@@ -183,9 +209,21 @@ export default [
|
|
183
209
|
},
|
184
210
|
],
|
185
211
|
"@typescript-eslint/no-confusing-non-null-assertion": ERROR,
|
186
|
-
"@typescript-eslint/no-confusing-void-expression": [
|
212
|
+
"@typescript-eslint/no-confusing-void-expression": [
|
213
|
+
ERROR,
|
214
|
+
{
|
215
|
+
ignoreArrowShorthand: true,
|
216
|
+
ignoreVoidOperator: true,
|
217
|
+
},
|
218
|
+
],
|
187
219
|
"@typescript-eslint/no-duplicate-enum-values": ERROR,
|
188
|
-
"@typescript-eslint/no-duplicate-type-constituents": [
|
220
|
+
"@typescript-eslint/no-duplicate-type-constituents": [
|
221
|
+
ERROR,
|
222
|
+
{
|
223
|
+
ignoreIntersections: false,
|
224
|
+
ignoreUnions: false,
|
225
|
+
},
|
226
|
+
],
|
189
227
|
"@typescript-eslint/no-dynamic-delete": ERROR,
|
190
228
|
"@typescript-eslint/no-empty-object-type": [
|
191
229
|
ERROR,
|
@@ -194,7 +232,13 @@ export default [
|
|
194
232
|
allowObjectTypes: Never,
|
195
233
|
},
|
196
234
|
],
|
197
|
-
"@typescript-eslint/no-explicit-any": [
|
235
|
+
"@typescript-eslint/no-explicit-any": [
|
236
|
+
ERROR,
|
237
|
+
{
|
238
|
+
fixToUnknown: true,
|
239
|
+
ignoreRestArgs: false,
|
240
|
+
},
|
241
|
+
],
|
198
242
|
"@typescript-eslint/no-extra-non-null-assertion": ERROR,
|
199
243
|
"@typescript-eslint/no-extraneous-class": [
|
200
244
|
ERROR,
|
@@ -205,12 +249,36 @@ export default [
|
|
205
249
|
allowWithDecorator: false,
|
206
250
|
},
|
207
251
|
],
|
208
|
-
"@typescript-eslint/no-floating-promises": [
|
252
|
+
"@typescript-eslint/no-floating-promises": [
|
253
|
+
ERROR,
|
254
|
+
{
|
255
|
+
checkThenables: true,
|
256
|
+
ignoreVoid: true,
|
257
|
+
ignoreIIFE: false,
|
258
|
+
},
|
259
|
+
],
|
209
260
|
"@typescript-eslint/no-for-in-array": ERROR,
|
210
261
|
"@typescript-eslint/no-import-type-side-effects": ERROR,
|
211
|
-
"@typescript-eslint/no-inferrable-types": [
|
212
|
-
|
213
|
-
|
262
|
+
"@typescript-eslint/no-inferrable-types": [
|
263
|
+
ERROR,
|
264
|
+
{
|
265
|
+
ignoreParameters: false,
|
266
|
+
ignoreProperties: false,
|
267
|
+
},
|
268
|
+
],
|
269
|
+
"@typescript-eslint/no-invalid-void-type": [
|
270
|
+
ERROR,
|
271
|
+
{
|
272
|
+
allowInGenericTypeArguments: true,
|
273
|
+
allowAsThisParameter: false,
|
274
|
+
},
|
275
|
+
],
|
276
|
+
"@typescript-eslint/no-meaningless-void-operator": [
|
277
|
+
ERROR,
|
278
|
+
{
|
279
|
+
checkNever: true,
|
280
|
+
},
|
281
|
+
],
|
214
282
|
"@typescript-eslint/no-misused-new": ERROR,
|
215
283
|
"@typescript-eslint/no-misused-promises": [
|
216
284
|
ERROR,
|
@@ -233,14 +301,42 @@ export default [
|
|
233
301
|
"@typescript-eslint/no-non-null-assertion": ERROR,
|
234
302
|
"@typescript-eslint/no-redundant-type-constituents": ERROR,
|
235
303
|
"@typescript-eslint/no-restricted-types": OFF,
|
236
|
-
"@typescript-eslint/no-require-imports": [
|
237
|
-
|
238
|
-
|
239
|
-
|
304
|
+
"@typescript-eslint/no-require-imports": [
|
305
|
+
ERROR,
|
306
|
+
{
|
307
|
+
allow: [],
|
308
|
+
},
|
309
|
+
],
|
310
|
+
"@typescript-eslint/no-this-alias": [
|
311
|
+
ERROR,
|
312
|
+
{
|
313
|
+
allowDestructuring: true,
|
314
|
+
allowedNames: [],
|
315
|
+
},
|
316
|
+
],
|
317
|
+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": [
|
318
|
+
ERROR,
|
319
|
+
{
|
320
|
+
allowComparingNullableBooleansToTrue: true,
|
321
|
+
allowComparingNullableBooleansToFalse: true,
|
322
|
+
},
|
323
|
+
],
|
324
|
+
"@typescript-eslint/no-unnecessary-condition": [
|
325
|
+
ERROR,
|
326
|
+
{
|
327
|
+
allowConstantLoopConditions: false,
|
328
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
|
329
|
+
},
|
330
|
+
],
|
240
331
|
"@typescript-eslint/no-unnecessary-qualifier": ERROR,
|
241
332
|
"@typescript-eslint/no-unnecessary-template-expression": ERROR,
|
242
333
|
"@typescript-eslint/no-unnecessary-type-arguments": ERROR,
|
243
|
-
"@typescript-eslint/no-unnecessary-type-assertion": [
|
334
|
+
"@typescript-eslint/no-unnecessary-type-assertion": [
|
335
|
+
ERROR,
|
336
|
+
{
|
337
|
+
typesToIgnore: [],
|
338
|
+
},
|
339
|
+
],
|
244
340
|
"@typescript-eslint/no-unnecessary-type-constraint": ERROR,
|
245
341
|
"@typescript-eslint/no-unnecessary-type-parameters": ERROR,
|
246
342
|
"@typescript-eslint/no-unsafe-argument": ERROR,
|
@@ -255,14 +351,24 @@ export default [
|
|
255
351
|
"@typescript-eslint/no-useless-empty-export": ERROR,
|
256
352
|
"@typescript-eslint/no-wrapper-object-types": ERROR,
|
257
353
|
"@typescript-eslint/non-nullable-type-assertion-style": OFF,
|
258
|
-
"@typescript-eslint/parameter-properties": [
|
354
|
+
"@typescript-eslint/parameter-properties": [
|
355
|
+
ERROR,
|
356
|
+
{
|
357
|
+
prefer: "parameter-property",
|
358
|
+
},
|
359
|
+
],
|
259
360
|
"@typescript-eslint/prefer-as-const": ERROR,
|
260
361
|
"@typescript-eslint/prefer-enum-initializers": ERROR,
|
261
362
|
"@typescript-eslint/prefer-find": ERROR,
|
262
363
|
"@typescript-eslint/prefer-for-of": ERROR,
|
263
364
|
"@typescript-eslint/prefer-function-type": ERROR,
|
264
365
|
"@typescript-eslint/prefer-includes": ERROR,
|
265
|
-
"@typescript-eslint/prefer-literal-enum-member": [
|
366
|
+
"@typescript-eslint/prefer-literal-enum-member": [
|
367
|
+
ERROR,
|
368
|
+
{
|
369
|
+
allowBitwiseExpressions: false,
|
370
|
+
},
|
371
|
+
],
|
266
372
|
"@typescript-eslint/prefer-namespace-keyword": ERROR,
|
267
373
|
"@typescript-eslint/prefer-nullish-coalescing": [
|
268
374
|
ERROR,
|
@@ -292,12 +398,22 @@ export default [
|
|
292
398
|
requireNullish: false,
|
293
399
|
},
|
294
400
|
],
|
295
|
-
"@typescript-eslint/prefer-readonly": [
|
401
|
+
"@typescript-eslint/prefer-readonly": [
|
402
|
+
ERROR,
|
403
|
+
{
|
404
|
+
onlyInlineLambdas: false,
|
405
|
+
},
|
406
|
+
],
|
296
407
|
"@typescript-eslint/prefer-readonly-parameter-types": OFF,
|
297
408
|
"@typescript-eslint/prefer-reduce-type-parameter": ERROR,
|
298
409
|
"@typescript-eslint/prefer-regexp-exec": ERROR,
|
299
410
|
"@typescript-eslint/prefer-return-this-type": ERROR,
|
300
|
-
"@typescript-eslint/prefer-string-starts-ends-with": [
|
411
|
+
"@typescript-eslint/prefer-string-starts-ends-with": [
|
412
|
+
ERROR,
|
413
|
+
{
|
414
|
+
allowSingleElementEquality: Never,
|
415
|
+
},
|
416
|
+
],
|
301
417
|
"@typescript-eslint/promise-function-async": [
|
302
418
|
ERROR,
|
303
419
|
{
|
@@ -309,7 +425,12 @@ export default [
|
|
309
425
|
checkMethodDeclarations: true,
|
310
426
|
},
|
311
427
|
],
|
312
|
-
"@typescript-eslint/require-array-sort-compare": [
|
428
|
+
"@typescript-eslint/require-array-sort-compare": [
|
429
|
+
ERROR,
|
430
|
+
{
|
431
|
+
ignoreStringArrays: true,
|
432
|
+
},
|
433
|
+
],
|
313
434
|
"@typescript-eslint/restrict-plus-operands": [
|
314
435
|
ERROR,
|
315
436
|
{
|
@@ -348,12 +469,35 @@ export default [
|
|
348
469
|
allowNullableString: false,
|
349
470
|
},
|
350
471
|
],
|
351
|
-
"@typescript-eslint/switch-exhaustiveness-check": [
|
352
|
-
|
472
|
+
"@typescript-eslint/switch-exhaustiveness-check": [
|
473
|
+
ERROR,
|
474
|
+
{
|
475
|
+
allowDefaultCaseForExhaustiveSwitch: false,
|
476
|
+
requireDefaultForNonUnion: true,
|
477
|
+
},
|
478
|
+
],
|
479
|
+
"@typescript-eslint/triple-slash-reference": [
|
480
|
+
ERROR,
|
481
|
+
{
|
482
|
+
lib: Never,
|
483
|
+
path: Never,
|
484
|
+
types: Never,
|
485
|
+
},
|
486
|
+
],
|
353
487
|
"@typescript-eslint/typedef": OFF,
|
354
|
-
"@typescript-eslint/unbound-method": [
|
355
|
-
|
488
|
+
"@typescript-eslint/unbound-method": [
|
489
|
+
ERROR,
|
490
|
+
{
|
491
|
+
ignoreStatic: false,
|
492
|
+
},
|
493
|
+
],
|
494
|
+
"@typescript-eslint/unified-signatures": [
|
495
|
+
ERROR,
|
496
|
+
{
|
497
|
+
ignoreDifferentlyNamedParameters: false,
|
498
|
+
},
|
499
|
+
],
|
356
500
|
"@typescript-eslint/use-unknown-in-catch-callback-variable": ERROR,
|
357
501
|
},
|
358
502
|
];
|
359
|
-
//# sourceMappingURL=
|
503
|
+
//# sourceMappingURL=enable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/ts/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MACA,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK,EACtB,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;AAE5B,eAAe;IACb,MAAM;IACN;QAEE,iDAAiD,EAAE,GAAG;QACtD,+BAA+B,EAAE;YAC/B,KAAK;YACL;gBACE,SAAS,EAAE,OAAO;gBAClB,QAAQ,EAAE,OAAO;aAClB;SACF;QACD,mCAAmC,EAAE,KAAK;QAC1C,mCAAmC,EAAE;YACnC,KAAK;YACL;gBACE,UAAU,EAAE,KAAK;gBACjB,iBAAiB,EAAE;oBACjB,iBAAiB,EAAE,aAAa;iBACjC;gBACD,WAAW,EAAE,IAAI;gBACjB,YAAY,EAAE,IAAI;gBAClB,wBAAwB,EAAE,EAAE;aAC7B;SACF;QACD,uCAAuC,EAAE,KAAK;QAC9C,iDAAiD,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;QACpE,oDAAoD,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC;QAC5E,oDAAoD,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;QACvE,+CAA+C,EAAE;YAC/C,KAAK;YACL;gBACE,cAAc,EAAE,IAAI;gBACpB,2BAA2B,EAAE,KAAK;aACnC;SACF;QACD,gDAAgD,EAAE,GAAG;QACrD,4CAA4C,EAAE;YAC5C,KAAK;YACL;gBACE,sCAAsC,EAA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I;aAChC;SACF;QACD,2CAA2C,EAAE;YAC3C,KAAK;YACL;gBACE,GAAG,EAAE,KAAK;gBACV,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;aACb;SACF;QACD,4BAA4B,EAAE,GAAG;QACjC,mCAAmC,EAAE;YACnC,KAAK;YACL;gBACE,YAAY,EAAE,KAAK;aACpB;SACF;QACD,uCAAuC,EAAE;YACvC,KAAK;YACL;gBACE,gCAAgC,EAAE,KAAK;aACxC;SACF;QACD,2DAA2D,EAAE,KAAK;KACnE;CACO,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/enable_x.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/enable_x.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA4GW"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
const {
|
1
|
+
import { enable_x, level, state } from "../_strings.js";
|
2
|
+
const { ERROR, OFF } = level, { Always, All } = state;
|
3
3
|
export default [
|
4
4
|
enable_x,
|
5
5
|
{
|
@@ -73,9 +73,36 @@ export default [
|
|
73
73
|
},
|
74
74
|
],
|
75
75
|
"@typescript-eslint/no-useless-constructor": ERROR,
|
76
|
-
"@typescript-eslint/only-throw-error": [
|
77
|
-
|
78
|
-
|
76
|
+
"@typescript-eslint/only-throw-error": [
|
77
|
+
ERROR,
|
78
|
+
{
|
79
|
+
allowThrowingAny: false,
|
80
|
+
allowThrowingUnknown: false,
|
81
|
+
},
|
82
|
+
],
|
83
|
+
"@typescript-eslint/prefer-destructuring": [
|
84
|
+
ERROR,
|
85
|
+
{
|
86
|
+
VariableDeclarator: {
|
87
|
+
array: true,
|
88
|
+
object: true,
|
89
|
+
},
|
90
|
+
AssignmentExpression: {
|
91
|
+
array: false,
|
92
|
+
object: false,
|
93
|
+
},
|
94
|
+
},
|
95
|
+
{
|
96
|
+
enforceForRenamedProperties: false,
|
97
|
+
enforceForDeclarationWithTypeAnnotation: false,
|
98
|
+
},
|
99
|
+
],
|
100
|
+
"@typescript-eslint/prefer-promise-reject-errors": [
|
101
|
+
ERROR,
|
102
|
+
{
|
103
|
+
allowEmptyReject: false,
|
104
|
+
},
|
105
|
+
],
|
79
106
|
"@typescript-eslint/require-await": ERROR,
|
80
107
|
},
|
81
108
|
];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/ts/enable_x.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/ts/enable_x.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAExD,MACA,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK,EACtB,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;AAExB,eAAe;IACb,QAAQ;IACR;QAEE,2CAA2C,EAAE,GAAG;QAChD,sCAAsC,EAAE,GAAG;QAC3C,uCAAuC,EAAE,KAAK;QAC9C,iCAAiC,EAAE;YACjC,KAAK;YACL;gBACE,aAAa,EAAE,IAAI;gBAGnB,+BAA+B,EAAE,IAAI;gBACrC,iCAAiC,EAAE,IAAI;gBACvC,iCAAiC,EAAE,IAAI;aACxC;SACF;QACD,sCAAsC,EAAE;YACtC,KAAK;YACL,MAAM;SACP;QACD,+BAA+B,EAAE,GAAG;QACpC,yCAAyC,EAAE,KAAK;QAChD,0CAA0C,EAAE,GAAG;QAC/C,sCAAsC,EAAE;YACtC,K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,uCAAuC,EAAE,KAAK;aAC/C;SACF;QACD,iDAAiD,EAAE;YACjD,KAAK;YACL;gBACE,gBAAgB,EAAE,KAAK;aACxB;SACF;QACD,kCAAkC,EAAE,KAAK;KAC1C;CACO,CAAC"}
|
@@ -133,17 +133,17 @@ declare const _default: readonly [readonly ["stylistic", {
|
|
133
133
|
}];
|
134
134
|
readonly "@stylistic/lines-between-class-members": readonly ["error", {
|
135
135
|
readonly enforce: readonly [{
|
136
|
-
readonly blankLine: "never";
|
137
136
|
readonly prev: "field";
|
138
137
|
readonly next: "field";
|
138
|
+
readonly blankLine: "never";
|
139
139
|
}, {
|
140
|
-
readonly blankLine: "always";
|
141
140
|
readonly prev: "field";
|
142
141
|
readonly next: "method";
|
143
|
-
}, {
|
144
142
|
readonly blankLine: "always";
|
143
|
+
}, {
|
145
144
|
readonly prev: "method";
|
146
145
|
readonly next: "*";
|
146
|
+
readonly blankLine: "always";
|
147
147
|
}];
|
148
148
|
}, {
|
149
149
|
readonly exceptAfterSingleLine: false;
|
@@ -266,89 +266,89 @@ declare const _default: readonly [readonly ["stylistic", {
|
|
266
266
|
readonly allowSingleLineBlocks: true;
|
267
267
|
}];
|
268
268
|
readonly "@stylistic/padding-line-between-statements": readonly ["error", {
|
269
|
-
readonly blankLine: "always";
|
270
269
|
readonly prev: "directive";
|
271
270
|
readonly next: "*";
|
271
|
+
readonly blankLine: "always";
|
272
272
|
}, {
|
273
|
-
readonly blankLine: "never";
|
274
273
|
readonly prev: "directive";
|
275
274
|
readonly next: "directive";
|
275
|
+
readonly blankLine: "never";
|
276
276
|
}, {
|
277
|
-
readonly blankLine: "always";
|
278
277
|
readonly prev: readonly ["import", "cjs-import"];
|
279
278
|
readonly next: "*";
|
279
|
+
readonly blankLine: "always";
|
280
280
|
}, {
|
281
|
-
readonly blankLine: "never";
|
282
281
|
readonly prev: readonly ["import", "cjs-import"];
|
283
282
|
readonly next: readonly ["import", "cjs-import"];
|
283
|
+
readonly blankLine: "never";
|
284
284
|
}, {
|
285
|
-
readonly blankLine: "always";
|
286
285
|
readonly prev: readonly ["class", "interface", "try", "for", "if", "do", "while", "switch", "block", "block-like", "iife", "empty", "debugger", "with"];
|
287
286
|
readonly next: "*";
|
288
|
-
}, {
|
289
287
|
readonly blankLine: "always";
|
288
|
+
}, {
|
290
289
|
readonly prev: "case";
|
291
290
|
readonly next: "*";
|
292
|
-
}, {
|
293
291
|
readonly blankLine: "always";
|
292
|
+
}, {
|
294
293
|
readonly prev: "case";
|
295
294
|
readonly next: readonly ["case", "default"];
|
296
|
-
}, {
|
297
295
|
readonly blankLine: "always";
|
296
|
+
}, {
|
298
297
|
readonly prev: "default";
|
299
298
|
readonly next: "*";
|
300
|
-
}, {
|
301
299
|
readonly blankLine: "always";
|
300
|
+
}, {
|
302
301
|
readonly prev: "type";
|
303
302
|
readonly next: "*";
|
303
|
+
readonly blankLine: "always";
|
304
304
|
}, {
|
305
|
-
readonly blankLine: "never";
|
306
305
|
readonly prev: "type";
|
307
306
|
readonly next: "type";
|
307
|
+
readonly blankLine: "never";
|
308
308
|
}, {
|
309
|
-
readonly blankLine: "always";
|
310
309
|
readonly prev: "function";
|
311
310
|
readonly next: "*";
|
312
|
-
}, {
|
313
311
|
readonly blankLine: "always";
|
312
|
+
}, {
|
314
313
|
readonly prev: "function-overload";
|
315
314
|
readonly next: "*";
|
315
|
+
readonly blankLine: "always";
|
316
316
|
}, {
|
317
|
-
readonly blankLine: "never";
|
318
317
|
readonly prev: "function-overload";
|
319
318
|
readonly next: "function-overload";
|
320
|
-
}, {
|
321
319
|
readonly blankLine: "never";
|
320
|
+
}, {
|
322
321
|
readonly prev: "function-overload";
|
323
322
|
readonly next: "function";
|
323
|
+
readonly blankLine: "never";
|
324
324
|
}, {
|
325
|
-
readonly blankLine: "always";
|
326
325
|
readonly prev: readonly ["const", "let", "var"];
|
327
326
|
readonly next: "*";
|
327
|
+
readonly blankLine: "always";
|
328
328
|
}, {
|
329
|
-
readonly blankLine: "never";
|
330
329
|
readonly prev: readonly ["const", "let", "var"];
|
331
330
|
readonly next: readonly ["const", "let", "var"];
|
331
|
+
readonly blankLine: "never";
|
332
332
|
}, {
|
333
|
-
readonly blankLine: "always";
|
334
333
|
readonly prev: "expression";
|
335
334
|
readonly next: "*";
|
335
|
+
readonly blankLine: "always";
|
336
336
|
}, {
|
337
|
-
readonly blankLine: "never";
|
338
337
|
readonly prev: "expression";
|
339
338
|
readonly next: "expression";
|
339
|
+
readonly blankLine: "never";
|
340
340
|
}, {
|
341
|
-
readonly blankLine: "always";
|
342
341
|
readonly prev: "*";
|
343
342
|
readonly next: readonly ["throw", "return", "break", "continue"];
|
344
|
-
}, {
|
345
343
|
readonly blankLine: "always";
|
344
|
+
}, {
|
346
345
|
readonly prev: "*";
|
347
346
|
readonly next: readonly ["export", "cjs-export"];
|
347
|
+
readonly blankLine: "always";
|
348
348
|
}, {
|
349
|
-
readonly blankLine: "never";
|
350
349
|
readonly prev: readonly ["export", "cjs-export"];
|
351
350
|
readonly next: readonly ["export", "cjs-export"];
|
351
|
+
readonly blankLine: "never";
|
352
352
|
}];
|
353
353
|
readonly "@stylistic/quote-props": readonly ["error", "as-needed", {
|
354
354
|
readonly keywords: true;
|
@@ -760,7 +760,7 @@ declare const _default: readonly [readonly ["stylistic", {
|
|
760
760
|
readonly onlyEquality: false;
|
761
761
|
}];
|
762
762
|
readonly "unicode-bom": "off";
|
763
|
-
}], readonly ["disable
|
763
|
+
}], readonly ["disable", {
|
764
764
|
readonly "constructor-super": "off";
|
765
765
|
readonly "no-const-assign": "off";
|
766
766
|
readonly "no-dupe-args": "off";
|
@@ -1130,4 +1130,4 @@ declare const _default: readonly [readonly ["stylistic", {
|
|
1130
1130
|
readonly "@typescript-eslint/use-unknown-in-catch-callback-variable": "error";
|
1131
1131
|
}]];
|
1132
1132
|
export default _default;
|
1133
|
-
//# sourceMappingURL=
|
1133
|
+
//# sourceMappingURL=ts.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAMW"}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Js from "./
|
2
|
-
import DisableCompiler from "./ts/
|
1
|
+
import Js from "./js.js";
|
2
|
+
import DisableCompiler from "./ts/disable.js";
|
3
3
|
import DisableX from "./ts/disable_x.js";
|
4
4
|
import EnableX from "./ts/enable_x.js";
|
5
|
-
import Enable from "./ts/
|
5
|
+
import Enable from "./ts/enable.js";
|
6
6
|
export default [
|
7
7
|
...Js,
|
8
8
|
DisableCompiler,
|
@@ -10,4 +10,4 @@ export default [
|
|
10
10
|
EnableX,
|
11
11
|
Enable,
|
12
12
|
];
|
13
|
-
//# sourceMappingURL=
|
13
|
+
//# sourceMappingURL=ts.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../src/rules/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,eAAe,MAAM,iBAAiB,CAAC;AAC9C,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,MAAM,MAAM,gBAAgB,CAAC;AAEpC,eAAe;IACb,GAAG,EAAE;IACL,eAAe;IACf,QAAQ;IACR,OAAO;IACP,MAAM;CACE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/enable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAyDW"}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import { enable, level, state } from "../_strings.js";
|
2
|
+
const { ERROR, OFF } = level, { Never, Always, Double } = state;
|
3
|
+
export default [
|
4
|
+
enable,
|
5
|
+
{
|
6
|
+
"yml/block-mapping-colon-indicator-newline": [ERROR, Never],
|
7
|
+
"yml/block-mapping-question-indicator-newline": [ERROR, Never],
|
8
|
+
"yml/block-mapping": [
|
9
|
+
ERROR,
|
10
|
+
{
|
11
|
+
singleline: Never,
|
12
|
+
multiline: Always,
|
13
|
+
},
|
14
|
+
],
|
15
|
+
"yml/block-sequence-hyphen-indicator-newline": [
|
16
|
+
ERROR,
|
17
|
+
Never,
|
18
|
+
{
|
19
|
+
nestedHyphen: Always,
|
20
|
+
blockMapping: Never,
|
21
|
+
},
|
22
|
+
],
|
23
|
+
"yml/block-sequence": [
|
24
|
+
ERROR,
|
25
|
+
{
|
26
|
+
singleline: Always,
|
27
|
+
multiline: Always,
|
28
|
+
},
|
29
|
+
],
|
30
|
+
"yml/file-extension": OFF,
|
31
|
+
"yml/indent": [
|
32
|
+
ERROR,
|
33
|
+
2,
|
34
|
+
{
|
35
|
+
indentBlockSequences: true,
|
36
|
+
indicatorValueIndent: 2,
|
37
|
+
},
|
38
|
+
],
|
39
|
+
"yml/key-name-casing": OFF,
|
40
|
+
"yml/no-empty-document": ERROR,
|
41
|
+
"yml/no-empty-key": ERROR,
|
42
|
+
"yml/no-empty-mapping-value": ERROR,
|
43
|
+
"yml/no-empty-sequence-entry": ERROR,
|
44
|
+
"yml/no-tab-indent": ERROR,
|
45
|
+
"yml/no-trailing-zeros": ERROR,
|
46
|
+
"yml/plain-scalar": [ERROR, Always],
|
47
|
+
"yml/quotes": [
|
48
|
+
ERROR,
|
49
|
+
{
|
50
|
+
prefer: Double,
|
51
|
+
avoidEscape: true,
|
52
|
+
},
|
53
|
+
],
|
54
|
+
"yml/require-string-key": ERROR,
|
55
|
+
"yml/sort-keys": OFF,
|
56
|
+
"yml/sort-sequence-values": OFF,
|
57
|
+
"yml/vue-custom-block/no-parsing-error": ERROR,
|
58
|
+
},
|
59
|
+
];
|
60
|
+
//# sourceMappingURL=enable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/yml/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MACA,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK,EACtB,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;AAElC,eAAe;IACb,MAAM;IACN;QAEE,2CAA2C,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QAC3D,8CAA8C,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QAC9D,mBAAmB,EAAE;YACnB,KAAK;YACL;gBACE,UAAU,EAAE,KAAK;gBACjB,SAAS,EAAE,MAAM;aAClB;SACF;QACD,6CAA6C,EAAE;YAC7C,KAAK;YACL,KAAK;YACL;gBACE,YAAY,EAAE,MAAM;gBACpB,YAAY,EAAE,KAAK;aACpB;SACF;QACD,oBAAoB,EAAE;YACpB,KAAK;YACL;gBACE,UAAU,EAAE,MAAM;gBAClB,SAAS,EAAE,MAAM;aAClB;SACF;QACD,oBAAoB,EAAE,GAAG;QACzB,YAAY,EAAE;YACZ,KAAK;YACL,CAAC;YACD;gBACE,oBAAoB,EAAE,IAAI;gBAC1B,oBAAoB,EAAE,CAAC;aACxB;SACF;QACD,qBAAqB,EAAE,GAAG;QAC1B,uBAAuB,EAAE,KAAK;QAC9B,kBAAkB,EAAE,KAAK;QACzB,4BAA4B,EAAE,KAAK;QACnC,6BAA6B,EAAE,KAAK;QACpC,mBAAmB,EAAE,KAAK;QAC1B,uBAAuB,EAAE,KAAK;QAC9B,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;QACnC,YAAY,EAAE;YACZ,KAAK;YACL;gBACE,MAAM,EAAE,MAAM;gBACd,WAAW,EAAE,IAAI;aAClB;SACF;QACD,wBAAwB,EAAE,KAAK;QAC/B,eAAe,EAAE,GAAG;QACpB,0BAA0B,EAAE,GAAG;QAC/B,uCAAuC,EAAE,KAAK;KAC/C;CACO,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/enable_x.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/enable_x.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA6DW"}
|