@eslinted/defaults 10.24.1 → 10.26.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 +6 -17
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/scopes/js/enable.d.ts +3 -0
- package/dist/rules/scopes/js/enable.d.ts.map +1 -1
- package/dist/rules/scopes/js/enable.js +8 -5
- package/dist/rules/scopes/js/enable.js.map +1 -1
- package/dist/rules/scopes/js/index.d.ts +3 -0
- package/dist/rules/scopes/js/index.d.ts.map +1 -1
- package/dist/rules/scopes/json/enable-ext.d.ts +1 -1
- package/dist/rules/scopes/json/enable-ext.d.ts.map +1 -1
- package/dist/rules/scopes/json/enable-ext.js +11 -8
- package/dist/rules/scopes/json/enable-ext.js.map +1 -1
- package/dist/rules/scopes/json/index.d.ts +1 -1
- package/dist/rules/scopes/mocha/disable.js +1 -1
- package/dist/rules/scopes/mocha/disable.js.map +1 -1
- package/dist/rules/scopes/mocha/enable.js +1 -1
- package/dist/rules/scopes/mocha/enable.js.map +1 -1
- package/dist/rules/scopes/ts/disable-ext.d.ts +0 -3
- package/dist/rules/scopes/ts/disable-ext.d.ts.map +1 -1
- package/dist/rules/scopes/ts/disable-ext.js +3 -3
- package/dist/rules/scopes/ts/disable-ext.js.map +1 -1
- package/dist/rules/scopes/ts/enable-ext.d.ts +0 -11
- package/dist/rules/scopes/ts/enable-ext.d.ts.map +1 -1
- package/dist/rules/scopes/ts/enable-ext.js +3 -14
- package/dist/rules/scopes/ts/enable-ext.js.map +1 -1
- package/dist/rules/scopes/ts/index.d.ts +0 -14
- package/dist/rules/scopes/ts/index.d.ts.map +1 -1
- package/dist/rules/scopes/yml/enable-ext.d.ts +1 -1
- package/dist/rules/scopes/yml/enable-ext.js +8 -8
- package/dist/rules/scopes/yml/enable-ext.js.map +1 -1
- package/dist/rules/scopes/yml/enable.d.ts +1 -1
- package/dist/rules/scopes/yml/enable.d.ts.map +1 -1
- package/dist/rules/scopes/yml/enable.js +15 -5
- package/dist/rules/scopes/yml/enable.js.map +1 -1
- package/dist/rules/scopes/yml/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/rules/scopes/js/enable.ts +8 -5
- package/src/rules/scopes/json/enable-ext.ts +11 -8
- package/src/rules/scopes/mocha/disable.ts +1 -1
- package/src/rules/scopes/mocha/enable.ts +1 -1
- package/src/rules/scopes/ts/disable-ext.ts +3 -3
- package/src/rules/scopes/ts/enable-ext.ts +3 -14
- package/src/rules/scopes/yml/enable-ext.ts +8 -8
- package/src/rules/scopes/yml/enable.ts +15 -5
package/dist/rules/index.d.ts
CHANGED
|
@@ -100,6 +100,9 @@ export declare const rules: {
|
|
|
100
100
|
readonly classes: true;
|
|
101
101
|
readonly variables: true;
|
|
102
102
|
readonly allowNamedExports: false;
|
|
103
|
+
readonly enums: true;
|
|
104
|
+
readonly typedefs: false;
|
|
105
|
+
readonly ignoreTypeReferences: true;
|
|
103
106
|
}];
|
|
104
107
|
readonly "no-useless-assignment": "error";
|
|
105
108
|
readonly "no-useless-backreference": "error";
|
|
@@ -762,12 +765,9 @@ export declare const rules: {
|
|
|
762
765
|
rules: {
|
|
763
766
|
readonly "dot-notation": "off";
|
|
764
767
|
readonly "no-implied-eval": "off";
|
|
765
|
-
readonly "no-magic-numbers": "off";
|
|
766
768
|
readonly "no-restricted-imports": "off";
|
|
767
|
-
readonly "no-shadow": "off";
|
|
768
769
|
readonly "no-throw-literal": "off";
|
|
769
770
|
readonly "no-unused-vars": "off";
|
|
770
|
-
readonly "no-use-before-define": "off";
|
|
771
771
|
readonly "prefer-destructuring": "off";
|
|
772
772
|
readonly "prefer-promise-reject-errors": "off";
|
|
773
773
|
readonly "require-await": "off";
|
|
@@ -1058,9 +1058,7 @@ export declare const rules: {
|
|
|
1058
1058
|
readonly allowIndexSignaturePropertyAccess: true;
|
|
1059
1059
|
}];
|
|
1060
1060
|
readonly "@typescript-eslint/no-implied-eval": "error";
|
|
1061
|
-
readonly "@typescript-eslint/no-magic-numbers": "off";
|
|
1062
1061
|
readonly "@typescript-eslint/no-restricted-imports": "off";
|
|
1063
|
-
readonly "@typescript-eslint/no-shadow": "off";
|
|
1064
1062
|
readonly "@typescript-eslint/no-unused-vars": readonly ["error", {
|
|
1065
1063
|
readonly vars: "all";
|
|
1066
1064
|
readonly args: "all";
|
|
@@ -1069,15 +1067,6 @@ export declare const rules: {
|
|
|
1069
1067
|
readonly ignoreClassWithStaticInitBlock: false;
|
|
1070
1068
|
readonly reportUsedIgnorePattern: true;
|
|
1071
1069
|
}];
|
|
1072
|
-
readonly "@typescript-eslint/no-use-before-define": readonly ["error", {
|
|
1073
|
-
readonly functions: true;
|
|
1074
|
-
readonly classes: true;
|
|
1075
|
-
readonly variables: true;
|
|
1076
|
-
readonly allowNamedExports: false;
|
|
1077
|
-
readonly enums: true;
|
|
1078
|
-
readonly typedefs: false;
|
|
1079
|
-
readonly ignoreTypeReferences: true;
|
|
1080
|
-
}];
|
|
1081
1070
|
readonly "@typescript-eslint/only-throw-error": readonly ["error", {
|
|
1082
1071
|
readonly allowRethrowing: true;
|
|
1083
1072
|
readonly allowThrowingAny: false;
|
|
@@ -1519,7 +1508,7 @@ export declare const rules: {
|
|
|
1519
1508
|
readonly "jsonc/object-curly-newline": readonly ["error", {
|
|
1520
1509
|
readonly consistent: true;
|
|
1521
1510
|
readonly multiline: true;
|
|
1522
|
-
readonly minProperties:
|
|
1511
|
+
readonly minProperties: 2;
|
|
1523
1512
|
}];
|
|
1524
1513
|
readonly "jsonc/object-curly-spacing": readonly ["error", "always", {
|
|
1525
1514
|
readonly arraysInObjects: true;
|
|
@@ -1548,7 +1537,7 @@ export declare const rules: {
|
|
|
1548
1537
|
readonly "yml/block-mapping-colon-indicator-newline": readonly ["error", "never"];
|
|
1549
1538
|
readonly "yml/block-mapping-question-indicator-newline": readonly ["error", "never"];
|
|
1550
1539
|
readonly "yml/block-mapping": readonly ["error", {
|
|
1551
|
-
readonly singleline: "
|
|
1540
|
+
readonly singleline: "always";
|
|
1552
1541
|
readonly multiline: "always";
|
|
1553
1542
|
}];
|
|
1554
1543
|
readonly "yml/block-sequence-hyphen-indicator-newline": readonly ["error", "never", {
|
|
@@ -1586,7 +1575,7 @@ export declare const rules: {
|
|
|
1586
1575
|
id: string;
|
|
1587
1576
|
rules: {
|
|
1588
1577
|
readonly "yml/flow-mapping-curly-newline": readonly ["error", {
|
|
1589
|
-
readonly consistent:
|
|
1578
|
+
readonly consistent: true;
|
|
1590
1579
|
readonly multiline: true;
|
|
1591
1580
|
readonly minProperties: 2;
|
|
1592
1581
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUjB,CAAC"}
|
|
@@ -99,6 +99,9 @@ export declare const Enable: {
|
|
|
99
99
|
readonly classes: true;
|
|
100
100
|
readonly variables: true;
|
|
101
101
|
readonly allowNamedExports: false;
|
|
102
|
+
readonly enums: true;
|
|
103
|
+
readonly typedefs: false;
|
|
104
|
+
readonly ignoreTypeReferences: true;
|
|
102
105
|
}];
|
|
103
106
|
readonly "no-useless-assignment": "error";
|
|
104
107
|
readonly "no-useless-backreference": "error";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/js/enable.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/js/enable.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAkUD,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkO9D,CAAC"}
|
|
@@ -150,8 +150,11 @@ export const Enable = {
|
|
|
150
150
|
classes: true,
|
|
151
151
|
variables: true,
|
|
152
152
|
allowNamedExports: false,
|
|
153
|
+
enums: true,
|
|
154
|
+
typedefs: false /* changed 14.2.2 (still questionable) */,
|
|
155
|
+
ignoreTypeReferences: true,
|
|
153
156
|
},
|
|
154
|
-
] /*
|
|
157
|
+
] /* TS-capable */,
|
|
155
158
|
"no-useless-assignment": ON,
|
|
156
159
|
"no-useless-backreference": ON,
|
|
157
160
|
"require-atomic-updates": [
|
|
@@ -222,7 +225,7 @@ export const Enable = {
|
|
|
222
225
|
],
|
|
223
226
|
"func-name-matching": OFF /* preference */,
|
|
224
227
|
"func-names": OFF /* preference */,
|
|
225
|
-
"func-style": OFF /* preference */,
|
|
228
|
+
"func-style": OFF /* TS-capable BUT preference */,
|
|
226
229
|
"grouped-accessor-pairs": OFF /* preference -- BUG: requires adjacency, not as described in documentation */,
|
|
227
230
|
"guard-for-in": OFF /* preference - not helpful because using for-in on non-literal objects is bad practice and this rule doesn't guard against that anyway, while adding a pointless check to known object literals */,
|
|
228
231
|
"id-denylist": OFF /* preference */,
|
|
@@ -332,7 +335,7 @@ export const Enable = {
|
|
|
332
335
|
"no-lone-blocks": ON,
|
|
333
336
|
"no-lonely-if": OFF /* preference */,
|
|
334
337
|
"no-loop-func": ON /* TS-capable */,
|
|
335
|
-
"no-magic-numbers": OFF /* preference - breaks TypeScript number literals, even with most liberal exceptions */,
|
|
338
|
+
"no-magic-numbers": OFF /* TS-capable BUT preference - breaks TypeScript number literals, even with most liberal exceptions */,
|
|
336
339
|
"no-multi-assign": [
|
|
337
340
|
ON,
|
|
338
341
|
{
|
|
@@ -382,7 +385,7 @@ export const Enable = {
|
|
|
382
385
|
allowInParentheses: true,
|
|
383
386
|
},
|
|
384
387
|
],
|
|
385
|
-
"no-shadow": OFF /*
|
|
388
|
+
"no-shadow": OFF /* TS-capable BUT investigate */,
|
|
386
389
|
"no-shadow-restricted-names": [
|
|
387
390
|
ON,
|
|
388
391
|
{
|
|
@@ -473,7 +476,7 @@ export const Enable = {
|
|
|
473
476
|
allowNamedFunctions: false,
|
|
474
477
|
allowUnboundThis: true,
|
|
475
478
|
},
|
|
476
|
-
]
|
|
479
|
+
] /* TS-capable */,
|
|
477
480
|
"prefer-const": [
|
|
478
481
|
ON,
|
|
479
482
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../../src/rules/scopes/js/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,EAAE,EACF,GAAG,EACH,KAAK,EACL,MAAM,EACN,SAAS,EACT,WAAW,EACX,KAAK,EACL,GAAG,EACH,KAAK,EACL,IAAI,GACL,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,EAAE,EAAE,EAAE,CAAC,MAAM;IACb,KAAK,EAAE;QACL,mBAAmB;QACnB,+DAA+D;QAC/D,uBAAuB,EAAE;YACvB,EAAE;YACF;gBACE,aAAa,EAAE,KAAK;gBACpB,YAAY,EAAE,IAAI;gBAClB,SAAS,EAAE,IAAI;aAChB;SACF;QACD,mBAAmB,EAAE,EAAE,CAAC,SAAS;QACjC,eAAe,EAAE,EAAE;QACnB,eAAe,EAAE;YACf,EAAE;YACF;gBACE,aAAa,EAAE,KAAK;aACrB;SACF,CAAC,SAAS;QACX,2BAA2B,EAAE,EAAE;QAC/B,kBAAkB,EAAE,EAAE;QACtB,iBAAiB,EAAE,EAAE;QACrB,qBAAqB,EAAE,EAAE;QACzB,gBAAgB,EAAE;YAChB,EAAE;YACF,MAAM;SACP;QACD,iBAAiB,EAAE,EAAE,CAAC,SAAS;QAC/B,+BAA+B,EAAE,EAAE;QACnC,uBAAuB,EAAE;YACvB,EAAE;YACF;gBACE,UAAU,EAAE,IAAI;aACjB;SACF,CAAC,wHAAwH;QAC1H,uBAAuB,EAAE,EAAE;QAC3B,kBAAkB,EAAE,EAAE;QACtB,aAAa,EAAE,EAAE;QACjB,cAAc,EAAE,EAAE,CAAC,SAAS;QAC5B,uBAAuB,EAAE,EAAE,CAAC,wBAAwB;QACpD,iBAAiB,EAAE,EAAE;QACrB,cAAc,EAAE,EAAE,CA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SAAS;QACxB,yBAAyB,EAAE,EAAE;QAC7B,8BAA8B,EAAE,EAAE;QAClC,gBAAgB,EAAE,EAAE,CAAC,SAAS;QAC9B,qBAAqB,EAAE;YACrB,EAAE;YACF;gBACE,MAAM,EAAE,EAAE,CAAC,oFAAoF;aAChG;SACF;QACD,mBAAmB,EAAE,EAAE;QACvB,oBAAoB,EAAE;YACpB,EAAE;YACF;gBACE,2BAA2B,EAAE,IAAI;aAClC;SACF,CAAC,SAAS;QACX,6BAA6B,EAAE;YAC7B,EAAE;YACF;gBACE,2BAA2B,EAAE,IAAI;aAClC;SACF;QACD,iCAAiC,EAAE,EAAE;QACrC,gBAAgB,EAAE;YAChB,EAAE;YACF;gBACE,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,GAAG;gBACT,YAAY,EAAE,GAAG;gBACjB,kBAAkB,EAAE,KAAK;gBACzB,8BAA8B,EAAE,KAAK;gBACrC,uBAAuB,EAAE,IAAI;aAC9B;SACF,CAAC,YAAY;QACd,sBAAsB,EAAE;YACtB,EAAE;YACF;gBACE,SAAS,EAAE,IAAI;gBACf,OAAO,EAAE,IAAI;gBACb,SAAS,EAAE,IAAI;gBACf,iBAAiB,EAAE,KAAK;
|
|
1
|
+
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../../src/rules/scopes/js/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,EAAE,EACF,GAAG,EACH,KAAK,EACL,MAAM,EACN,SAAS,EACT,WAAW,EACX,KAAK,EACL,GAAG,EACH,KAAK,EACL,IAAI,GACL,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,EAAE,EAAE,EAAE,CAAC,MAAM;IACb,KAAK,EAAE;QACL,mBAAmB;QACnB,+DAA+D;QAC/D,uBAAuB,EAAE;YACvB,EAAE;YACF;gBACE,aAAa,EAAE,KAAK;gBACpB,YAAY,EAAE,IAAI;gBAClB,SAAS,EAAE,IAAI;aAChB;SACF;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gBAAgB;QACpC,WAAW,EAAE,GAAG,CAAC,gBAAgB;QACjC,WAAW,EAAE,GAAG,CAAC,gBAAgB;QACjC,MAAM,EAAE,GAAG,CAAC,gBAAgB;QAC5B,oBAAoB,EAAE,GAAG,CAAC,gBAAgB;QAC1C,aAAa,EAAE,EAAE;QACjB,IAAI,EAAE;YACJ,EAAE;YACF,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,YAAY,EAAE,KAAK;aACpB;SACF;QACD,aAAa;QAEb,qBAAqB;QACrB,+DAA+D;QAC/D,aAAa,EAAE,GAAG,CAAC,4BAA4B;QAC/C,aAAa;KACL;CACX,CAAC"}
|
|
@@ -99,6 +99,9 @@ declare const _default: ({
|
|
|
99
99
|
readonly classes: true;
|
|
100
100
|
readonly variables: true;
|
|
101
101
|
readonly allowNamedExports: false;
|
|
102
|
+
readonly enums: true;
|
|
103
|
+
readonly typedefs: false;
|
|
104
|
+
readonly ignoreTypeReferences: true;
|
|
102
105
|
}];
|
|
103
106
|
readonly "no-useless-assignment": "error";
|
|
104
107
|
readonly "no-useless-backreference": "error";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/js/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/js/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
|
|
@@ -33,7 +33,7 @@ export declare const JsonEnableExtension: {
|
|
|
33
33
|
readonly "jsonc/object-curly-newline": readonly ["error", {
|
|
34
34
|
readonly consistent: true;
|
|
35
35
|
readonly multiline: true;
|
|
36
|
-
readonly minProperties:
|
|
36
|
+
readonly minProperties: 2;
|
|
37
37
|
}];
|
|
38
38
|
readonly "jsonc/object-curly-spacing": readonly ["error", "always", {
|
|
39
39
|
readonly arraysInObjects: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-ext.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/json/enable-ext.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"enable-ext.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/json/enable-ext.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiF/B,CAAC"}
|
|
@@ -3,7 +3,7 @@ export const JsonEnableExtension = {
|
|
|
3
3
|
id: ID.EnableExtension,
|
|
4
4
|
rules: {
|
|
5
5
|
// DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
|
|
6
|
-
"jsonc/array-bracket-newline": OFF /* DO NOT CHANGE */,
|
|
6
|
+
"jsonc/array-bracket-newline": OFF /* @OVERRIDE DO NOT CHANGE (? why?) @stylistic/array-bracket-newline */,
|
|
7
7
|
"jsonc/array-bracket-spacing": [
|
|
8
8
|
ON,
|
|
9
9
|
never,
|
|
@@ -12,7 +12,7 @@ export const JsonEnableExtension = {
|
|
|
12
12
|
objectsInArrays: false,
|
|
13
13
|
arraysInArrays: false,
|
|
14
14
|
},
|
|
15
|
-
] /* MUST match
|
|
15
|
+
] /* MUST match @stylistic/array-bracket-spacing */,
|
|
16
16
|
"jsonc/array-element-newline": [
|
|
17
17
|
ON,
|
|
18
18
|
consistent,
|
|
@@ -27,7 +27,7 @@ export const JsonEnableExtension = {
|
|
|
27
27
|
afterColon: true,
|
|
28
28
|
mode: strict,
|
|
29
29
|
},
|
|
30
|
-
] /* MUST match
|
|
30
|
+
] /* MUST match @stylistic/key-spacing */,
|
|
31
31
|
"jsonc/no-dupe-keys": ON,
|
|
32
32
|
"jsonc/no-floating-decimal": ON,
|
|
33
33
|
"jsonc/no-irregular-whitespace": [
|
|
@@ -50,9 +50,9 @@ export const JsonEnableExtension = {
|
|
|
50
50
|
{
|
|
51
51
|
consistent: true,
|
|
52
52
|
multiline: true,
|
|
53
|
-
minProperties:
|
|
53
|
+
minProperties: 2,
|
|
54
54
|
},
|
|
55
|
-
] /*
|
|
55
|
+
] /* @OVERRIDE CHILD of @stylistic/object-curly-newline */,
|
|
56
56
|
"jsonc/object-curly-spacing": [
|
|
57
57
|
ON,
|
|
58
58
|
always,
|
|
@@ -60,14 +60,17 @@ export const JsonEnableExtension = {
|
|
|
60
60
|
arraysInObjects: true,
|
|
61
61
|
objectsInObjects: true,
|
|
62
62
|
},
|
|
63
|
-
] /* MUST match
|
|
63
|
+
] /* MUST match @stylistic/object-curly-spacing */,
|
|
64
64
|
"jsonc/object-property-newline": [
|
|
65
65
|
ON,
|
|
66
66
|
{
|
|
67
67
|
allowAllPropertiesOnSameLine: true,
|
|
68
68
|
},
|
|
69
|
-
] /* MUST match
|
|
70
|
-
"jsonc/quote-props": [
|
|
69
|
+
] /* MUST match @stylistic/object-property-newline */,
|
|
70
|
+
"jsonc/quote-props": [
|
|
71
|
+
ON,
|
|
72
|
+
always,
|
|
73
|
+
],
|
|
71
74
|
"jsonc/quotes": [
|
|
72
75
|
ON,
|
|
73
76
|
double,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-ext.js","sourceRoot":"","sources":["../../../../src/rules/scopes/json/enable-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,EAAE,EACF,GAAG,EACH,MAAM,EACN,UAAU,EACV,MAAM,EACN,IAAI,EACJ,KAAK,EACL,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,EAAE,EAAE,EAAE,CAAC,eAAe;IACtB,KAAK,EAAE;QACP,8EAA8E;QAC5E,6BAA6B,EAAE,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"enable-ext.js","sourceRoot":"","sources":["../../../../src/rules/scopes/json/enable-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,EAAE,EACF,GAAG,EACH,MAAM,EACN,UAAU,EACV,MAAM,EACN,IAAI,EACJ,KAAK,EACL,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,EAAE,EAAE,EAAE,CAAC,eAAe;IACtB,KAAK,EAAE;QACP,8EAA8E;QAC5E,6BAA6B,EAAE,GAAG,CAAC,uEAAuE;QAC1G,6BAA6B,EAAE;YAC7B,EAAE;YACF,KAAK;YACL;gBACE,W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AAE;YACF,MAAM;YACN;gBACE,WAAW,EAAE,KAAK;aACnB;SACF;QACD,uBAAuB,EAAE,EAAE;KACnB;CACX,CAAC"}
|
|
@@ -60,7 +60,7 @@ declare const _default: ({
|
|
|
60
60
|
readonly "jsonc/object-curly-newline": readonly ["error", {
|
|
61
61
|
readonly consistent: true;
|
|
62
62
|
readonly multiline: true;
|
|
63
|
-
readonly minProperties:
|
|
63
|
+
readonly minProperties: 2;
|
|
64
64
|
}];
|
|
65
65
|
readonly "jsonc/object-curly-spacing": readonly ["error", "always", {
|
|
66
66
|
readonly arraysInObjects: true;
|
|
@@ -2,7 +2,7 @@ import { ID, OFF, } from "../../strings/index.js";
|
|
|
2
2
|
export const MochaDisable = {
|
|
3
3
|
id: ID.Disable,
|
|
4
4
|
rules: {
|
|
5
|
-
"prefer-arrow-callback": OFF
|
|
5
|
+
"prefer-arrow-callback": OFF /* TS-capable */,
|
|
6
6
|
"no-unused-expressions": OFF,
|
|
7
7
|
// "@typescript-eslint/no-unused-expressions": OFF /* ESLint now supports TS */,
|
|
8
8
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disable.js","sourceRoot":"","sources":["../../../../src/rules/scopes/mocha/disable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,GAAG,GACJ,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,EAAE,EAAE,EAAE,CAAC,OAAO;IACd,KAAK,EAAE;QACL,uBAAuB,EAAE,GAAG;
|
|
1
|
+
{"version":3,"file":"disable.js","sourceRoot":"","sources":["../../../../src/rules/scopes/mocha/disable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,GAAG,GACJ,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,EAAE,EAAE,EAAE,CAAC,OAAO;IACd,KAAK,EAAE;QACL,uBAAuB,EAAE,GAAG,CAAC,gBAAgB;QAC7C,uBAAuB,EAAE,GAAG;QAC5B,gFAAgF;KACxE;CACX,CAAC"}
|
|
@@ -40,7 +40,7 @@ export const MochaEnable = {
|
|
|
40
40
|
allowNamedFunctions: false,
|
|
41
41
|
allowUnboundThis: true,
|
|
42
42
|
},
|
|
43
|
-
] /* MUST match ../js/enable.ts */,
|
|
43
|
+
] /* MUST match ../js/enable.ts, which is TS-capable -- is this?? */,
|
|
44
44
|
"mocha/valid-suite-title": OFF /* preference */,
|
|
45
45
|
"mocha/valid-test-title": OFF /* preference */,
|
|
46
46
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../../src/rules/scopes/mocha/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,EAAE,EACF,GAAG,GACJ,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,EAAE,EAAE,EAAE,CAAC,MAAM;IACb,KAAK,EAAE;QACP,yFAAyF;QACvF,4BAA4B,EAAE,GAAG,EAAE,0CAA0C;QAC7E,yCAAyC,EAAE,GAAG;QAC9C,4BAA4B,EAAE;YAC5B,EAAE;YACF;gBACE,aAAa,EAAE,KAAK;aACrB;SACF;QACD,4BAA4B,EAAE;YAC5B,EAAE;YACF;gBACE,KAAK,EAAE,CAAC;aACT;SACF;QACD,sBAAsB,EAAE,EAAE;QAC1B,sBAAsB,EAAE,EAAE;QAC1B,0BAA0B,EAAE,EAAE;QAC9B,kBAAkB,EAAE,EAAE;QACtB,uBAAuB,EAAE,EAAE;QAC3B,gCAAgC,EAAE,GAAG;QACrC,gBAAgB,EAAE,GAAG;QACrB,0BAA0B,EAAE,EAAE;QAC9B,uBAAuB,EAAE,EAAE;QAC3B,uBAAuB,EAAE,EAAE;QAC3B,wBAAwB,EAAE,EAAE;QAC5B,8BAA8B,EAAE,EAAE;QAClC,4BAA4B,EAAE,EAAE;QAChC,4BAA4B,EAAE,GAAG,CAAC,6BAA6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AE,IAAI;aACvB;SACF,CAAC,kEAAkE;QACpE,yBAAyB,EAAE,GAAG,CAAC,gBAAgB;QAC/C,wBAAwB,EAAE,GAAG,CAAC,gBAAgB;KACtC;CACX,CAAC"}
|
|
@@ -3,12 +3,9 @@ export declare const TsDisableExtension: {
|
|
|
3
3
|
rules: {
|
|
4
4
|
readonly "dot-notation": "off";
|
|
5
5
|
readonly "no-implied-eval": "off";
|
|
6
|
-
readonly "no-magic-numbers": "off";
|
|
7
6
|
readonly "no-restricted-imports": "off";
|
|
8
|
-
readonly "no-shadow": "off";
|
|
9
7
|
readonly "no-throw-literal": "off";
|
|
10
8
|
readonly "no-unused-vars": "off";
|
|
11
|
-
readonly "no-use-before-define": "off";
|
|
12
9
|
readonly "prefer-destructuring": "off";
|
|
13
10
|
readonly "prefer-promise-reject-errors": "off";
|
|
14
11
|
readonly "require-await": "off";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disable-ext.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/ts/disable-ext.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"disable-ext.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/ts/disable-ext.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;CA6B9B,CAAC"}
|
|
@@ -15,14 +15,14 @@ export const TsDisableExtension = {
|
|
|
15
15
|
"no-implied-eval": OFF,
|
|
16
16
|
// "no-invalid-this": OFF /* tsc, although ESLint now supports TS */,
|
|
17
17
|
// "no-loop-func": OFF /* ESLint now supports TS */,
|
|
18
|
-
"no-magic-numbers": OFF
|
|
18
|
+
// "no-magic-numbers": OFF /* ESLint now supports TS */,
|
|
19
19
|
// "no-redeclare": OFF /* tsc */,
|
|
20
20
|
"no-restricted-imports": OFF,
|
|
21
|
-
"no-shadow": OFF
|
|
21
|
+
// "no-shadow": OFF /* ESLint now supports TS */,
|
|
22
22
|
"no-throw-literal": OFF /* @typescript-eslint/only-throw-error */,
|
|
23
23
|
// "no-unused-expressions": OFF /* ESLint now supports TS */,
|
|
24
24
|
"no-unused-vars": OFF,
|
|
25
|
-
"no-use-before-define": OFF
|
|
25
|
+
// "no-use-before-define": OFF /* ESLint now supports TS */,
|
|
26
26
|
// "no-useless-constructor": OFF /* ESLint now supports TS */,
|
|
27
27
|
"prefer-destructuring": OFF,
|
|
28
28
|
"prefer-promise-reject-errors": OFF,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disable-ext.js","sourceRoot":"","sources":["../../../../src/rules/scopes/ts/disable-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,GAAG,GACJ,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,EAAE,EAAE,EAAE,CAAC,gBAAgB;IACvB,KAAK,EAAE;QACL,wEAAwE;QACxE,8DAA8D;QAC9D,sCAAsC;QACtC,0DAA0D;QAC1D,cAAc,EAAE,GAAG;QACnB,yDAAyD;QACzD,kDAAkD;QAClD,4DAA4D;QAC5D,2EAA2E;QAC3E,yDAAyD;QACzD,iBAAiB,EAAE,GAAG;QACtB,qEAAqE;QACrE,oDAAoD;QACpD,
|
|
1
|
+
{"version":3,"file":"disable-ext.js","sourceRoot":"","sources":["../../../../src/rules/scopes/ts/disable-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,GAAG,GACJ,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,EAAE,EAAE,EAAE,CAAC,gBAAgB;IACvB,KAAK,EAAE;QACL,wEAAwE;QACxE,8DAA8D;QAC9D,sCAAsC;QACtC,0DAA0D;QAC1D,cAAc,EAAE,GAAG;QACnB,yDAAyD;QACzD,kDAAkD;QAClD,4DAA4D;QAC5D,2EAA2E;QAC3E,yDAAyD;QACzD,iBAAiB,EAAE,GAAG;QACtB,qEAAqE;QACrE,oDAAoD;QACpD,wDAAwD;QACxD,iCAAiC;QACjC,uBAAuB,EAAE,GAAG;QAC5B,iDAAiD;QACjD,kBAAkB,EAAE,GAAG,CAAC,yCAAyC;QACjE,6DAA6D;QAC7D,gBAAgB,EAAE,GAAG;QACrB,4DAA4D;QAC5D,8DAA8D;QAC9D,sBAAsB,EAAE,GAAG;QAC3B,8BAA8B,EAAE,GAAG;QACnC,eAAe,EAAE,GAAG;KACZ;CACX,CAAC"}
|
|
@@ -8,9 +8,7 @@ export declare const TsEnableExtension: {
|
|
|
8
8
|
readonly allowIndexSignaturePropertyAccess: true;
|
|
9
9
|
}];
|
|
10
10
|
readonly "@typescript-eslint/no-implied-eval": "error";
|
|
11
|
-
readonly "@typescript-eslint/no-magic-numbers": "off";
|
|
12
11
|
readonly "@typescript-eslint/no-restricted-imports": "off";
|
|
13
|
-
readonly "@typescript-eslint/no-shadow": "off";
|
|
14
12
|
readonly "@typescript-eslint/no-unused-vars": readonly ["error", {
|
|
15
13
|
readonly vars: "all";
|
|
16
14
|
readonly args: "all";
|
|
@@ -19,15 +17,6 @@ export declare const TsEnableExtension: {
|
|
|
19
17
|
readonly ignoreClassWithStaticInitBlock: false;
|
|
20
18
|
readonly reportUsedIgnorePattern: true;
|
|
21
19
|
}];
|
|
22
|
-
readonly "@typescript-eslint/no-use-before-define": readonly ["error", {
|
|
23
|
-
readonly functions: true;
|
|
24
|
-
readonly classes: true;
|
|
25
|
-
readonly variables: true;
|
|
26
|
-
readonly allowNamedExports: false;
|
|
27
|
-
readonly enums: true;
|
|
28
|
-
readonly typedefs: false;
|
|
29
|
-
readonly ignoreTypeReferences: true;
|
|
30
|
-
}];
|
|
31
20
|
readonly "@typescript-eslint/only-throw-error": readonly ["error", {
|
|
32
21
|
readonly allowRethrowing: true;
|
|
33
22
|
readonly allowThrowingAny: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-ext.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/ts/enable-ext.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"enable-ext.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/ts/enable-ext.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+E7B,CAAC"}
|
|
@@ -24,10 +24,10 @@ export const TsEnableExtension = {
|
|
|
24
24
|
"@typescript-eslint/no-implied-eval": ON,
|
|
25
25
|
// "@typescript-eslint/no-invalid-this": OFF /* tsc: { strict, noImplicitThis }, although ESLint now supports TS */,
|
|
26
26
|
// "@typescript-eslint/no-loop-func": OFF /* ESLint now supports TS */,
|
|
27
|
-
"@typescript-eslint/no-magic-numbers": OFF /* preference */,
|
|
27
|
+
// "@typescript-eslint/no-magic-numbers": OFF /* preference, although ESLint now supports TS */,
|
|
28
28
|
// "@typescript-eslint/no-redeclare": OFF /* tsc (let, const, -var) */,
|
|
29
29
|
"@typescript-eslint/no-restricted-imports": OFF /* preference */,
|
|
30
|
-
"@typescript-eslint/no-shadow": OFF /* investigate */,
|
|
30
|
+
// "@typescript-eslint/no-shadow": OFF /* ESLint now supports TS (was: investigate) */,
|
|
31
31
|
// "@typescript-eslint/no-unused-expressions": OFF /* ESLint now supports TS (preference -- eslint:OFF) */,
|
|
32
32
|
"@typescript-eslint/no-unused-vars": [
|
|
33
33
|
ON,
|
|
@@ -40,18 +40,7 @@ export const TsEnableExtension = {
|
|
|
40
40
|
reportUsedIgnorePattern: true,
|
|
41
41
|
},
|
|
42
42
|
],
|
|
43
|
-
"@typescript-eslint/no-use-before-define":
|
|
44
|
-
ON,
|
|
45
|
-
{
|
|
46
|
-
functions: true,
|
|
47
|
-
classes: true,
|
|
48
|
-
variables: true,
|
|
49
|
-
allowNamedExports: false,
|
|
50
|
-
enums: true,
|
|
51
|
-
typedefs: false /* changed 14.2.2 (still questionable) */,
|
|
52
|
-
ignoreTypeReferences: true,
|
|
53
|
-
},
|
|
54
|
-
],
|
|
43
|
+
// "@typescript-eslint/no-use-before-define": OFF /* ESLint now supports TS */,
|
|
55
44
|
// "@typescript-eslint/no-useless-constructor": OFF /* ESLint now supports TS */,
|
|
56
45
|
"@typescript-eslint/only-throw-error": [
|
|
57
46
|
ON,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-ext.js","sourceRoot":"","sources":["../../../../src/rules/scopes/ts/enable-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,EAAE,EACF,GAAG,EACH,GAAG,GACJ,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,EAAE,EAAE,EAAE,CAAC,eAAe;IACtB,KAAK,EAAE;QACL,wEAAwE;QACxE,4GAA4G;QAC5G,4EAA4E;QAC5E,6EAA6E;QAC7E,iCAAiC,EAAE;YACjC,EAAE;YACF;gBACE,aAAa,EAAE,IAAI;gBAEnB,UAAU;gBACV,+BAA+B,EAAE,IAAI;gBACrC,iCAAiC,EAAE,IAAI;gBACvC,iCAAiC,EAAE,IAAI;aACxC;SACF;QACD,4EAA4E;QAC5E,0FAA0F;QAC1F,+EAA+E;QAC/E,8FAA8F;QAC9F,4EAA4E;QAC5E,oCAAoC,EAAE,EAAE;QACxC,oHAAoH;QACpH,uEAAuE;QACvE,
|
|
1
|
+
{"version":3,"file":"enable-ext.js","sourceRoot":"","sources":["../../../../src/rules/scopes/ts/enable-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,EAAE,EACF,GAAG,EACH,GAAG,GACJ,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,EAAE,EAAE,EAAE,CAAC,eAAe;IACtB,KAAK,EAAE;QACL,wEAAwE;QACxE,4GAA4G;QAC5G,4EAA4E;QAC5E,6EAA6E;QAC7E,iCAAiC,EAAE;YACjC,EAAE;YACF;gBACE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"dot-notation": "off";
|
|
28
28
|
readonly "no-implied-eval": "off";
|
|
29
|
-
readonly "no-magic-numbers": "off";
|
|
30
29
|
readonly "no-restricted-imports": "off";
|
|
31
|
-
readonly "no-shadow": "off";
|
|
32
30
|
readonly "no-throw-literal": "off";
|
|
33
31
|
readonly "no-unused-vars": "off";
|
|
34
|
-
readonly "no-use-before-define": "off";
|
|
35
32
|
readonly "prefer-destructuring": "off";
|
|
36
33
|
readonly "prefer-promise-reject-errors": "off";
|
|
37
34
|
readonly "require-await": "off";
|
|
@@ -322,9 +319,7 @@ declare const _default: ({
|
|
|
322
319
|
readonly allowIndexSignaturePropertyAccess: true;
|
|
323
320
|
}];
|
|
324
321
|
readonly "@typescript-eslint/no-implied-eval": "error";
|
|
325
|
-
readonly "@typescript-eslint/no-magic-numbers": "off";
|
|
326
322
|
readonly "@typescript-eslint/no-restricted-imports": "off";
|
|
327
|
-
readonly "@typescript-eslint/no-shadow": "off";
|
|
328
323
|
readonly "@typescript-eslint/no-unused-vars": readonly ["error", {
|
|
329
324
|
readonly vars: "all";
|
|
330
325
|
readonly args: "all";
|
|
@@ -333,15 +328,6 @@ declare const _default: ({
|
|
|
333
328
|
readonly ignoreClassWithStaticInitBlock: false;
|
|
334
329
|
readonly reportUsedIgnorePattern: true;
|
|
335
330
|
}];
|
|
336
|
-
readonly "@typescript-eslint/no-use-before-define": readonly ["error", {
|
|
337
|
-
readonly functions: true;
|
|
338
|
-
readonly classes: true;
|
|
339
|
-
readonly variables: true;
|
|
340
|
-
readonly allowNamedExports: false;
|
|
341
|
-
readonly enums: true;
|
|
342
|
-
readonly typedefs: false;
|
|
343
|
-
readonly ignoreTypeReferences: true;
|
|
344
|
-
}];
|
|
345
331
|
readonly "@typescript-eslint/only-throw-error": readonly ["error", {
|
|
346
332
|
readonly allowRethrowing: true;
|
|
347
333
|
readonly allowThrowingAny: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/ts/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/ts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAKE"}
|
|
@@ -6,11 +6,11 @@ export const YmlEnableExtension = {
|
|
|
6
6
|
"yml/flow-mapping-curly-newline": [
|
|
7
7
|
ON,
|
|
8
8
|
{
|
|
9
|
-
consistent:
|
|
9
|
+
consistent: true,
|
|
10
10
|
multiline: true,
|
|
11
11
|
minProperties: 2,
|
|
12
12
|
},
|
|
13
|
-
]
|
|
13
|
+
] /* MUST match jsonc/object-curly-newline */,
|
|
14
14
|
"yml/flow-mapping-curly-spacing": [
|
|
15
15
|
ON,
|
|
16
16
|
always,
|
|
@@ -18,14 +18,14 @@ export const YmlEnableExtension = {
|
|
|
18
18
|
arraysInObjects: true,
|
|
19
19
|
objectsInObjects: true,
|
|
20
20
|
},
|
|
21
|
-
]
|
|
21
|
+
] /* MUST match jsonc/object-curly-spacing */,
|
|
22
22
|
"yml/flow-sequence-bracket-newline": [
|
|
23
23
|
ON,
|
|
24
24
|
{
|
|
25
25
|
multiline: true,
|
|
26
26
|
minItems: null,
|
|
27
27
|
},
|
|
28
|
-
],
|
|
28
|
+
] /* @OVERRIDE jsonc/array-bracket-newline, instead -> MUST match its parent: @stylistic/array-bracket-newline */,
|
|
29
29
|
"yml/flow-sequence-bracket-spacing": [
|
|
30
30
|
ON,
|
|
31
31
|
never,
|
|
@@ -34,7 +34,7 @@ export const YmlEnableExtension = {
|
|
|
34
34
|
objectsInArrays: false,
|
|
35
35
|
arraysInArrays: false,
|
|
36
36
|
},
|
|
37
|
-
]
|
|
37
|
+
] /* MUST match jsonc/array-bracket-spacing */,
|
|
38
38
|
"yml/key-spacing": [
|
|
39
39
|
ON,
|
|
40
40
|
{
|
|
@@ -42,7 +42,7 @@ export const YmlEnableExtension = {
|
|
|
42
42
|
afterColon: true,
|
|
43
43
|
mode: strict,
|
|
44
44
|
},
|
|
45
|
-
]
|
|
45
|
+
] /* MUST match jsonc/key-spacing */,
|
|
46
46
|
"yml/no-irregular-whitespace": [
|
|
47
47
|
ON,
|
|
48
48
|
{
|
|
@@ -57,11 +57,11 @@ export const YmlEnableExtension = {
|
|
|
57
57
|
maxEOF: 1,
|
|
58
58
|
maxBOF: 0,
|
|
59
59
|
},
|
|
60
|
-
]
|
|
60
|
+
] /* MUST match @stylistic/no-multiple-empty-lines */,
|
|
61
61
|
"yml/spaced-comment": [
|
|
62
62
|
ON,
|
|
63
63
|
always,
|
|
64
|
-
]
|
|
64
|
+
] /* MUST match @stylistic/spaced-comment */,
|
|
65
65
|
},
|
|
66
66
|
};
|
|
67
67
|
//# sourceMappingURL=enable-ext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-ext.js","sourceRoot":"","sources":["../../../../src/rules/scopes/yml/enable-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,EAAE,EACF,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,EAAE,EAAE,EAAE,CAAC,eAAe;IACtB,KAAK,EAAE;QACP,4EAA4E;QAC1E,gCAAgC,EAAE;YAChC,EAAE;YACF;gBACE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"enable-ext.js","sourceRoot":"","sources":["../../../../src/rules/scopes/yml/enable-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,EAAE,EACF,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,EAAE,EAAE,EAAE,CAAC,eAAe;IACtB,KAAK,EAAE;QACP,4EAA4E;QAC1E,gCAAgC,EAAE;YAChC,EAAE;YACF;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF,CAAC,2CAA2C;QAC7C,gCAAgC,EAAE;YAChC,EAAE;YACF,MAAM;YACN;gBACE,eAAe,EAAE,IAAI;gBACrB,gBAAgB,EAAE,IAAI;aACvB;SACF,CAAC,2CAA2C;QAC7C,mCAAmC,EAAE;YACnC,EAAE;YACF;gBACE,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,IAAI;aACf;SACF,CAAC,+GAA+G;QACjH,mCAAmC,EAAE;YACnC,EAAE;YACF,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,eAAe,EAAE,KAAK;gBACtB,cAAc,EAAE,KAAK;aACtB;SACF,CAAC,4CAA4C;QAC9C,iBAAiB,EAAE;YACjB,EAAE;YACF;gBACE,WAAW,EAAE,KAAK;gBAClB,UAAU,EAAE,IAAI;gBAChB,IAAI,EAAE,MAAM;aACb;SACF,CAAC,kCAAkC;QACpC,6BAA6B,EAAE;YAC7B,EAAE;YACF;gBACE,iBAAiB,EAAE,IAAI;gBACvB,YAAY,EAAE,KAAK;aACpB;SACF;QACD,6BAA6B,EAAE;YAC7B,EAAE;YACF;gBACE,GAAG,EAAE,CAAC;gBACN,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,CAAC;aACV;SACF,CAAC,mDAAmD;QACrD,oBAAoB,EAAE;YACpB,EAAE;YACF,MAAM;SACP,CAAC,0CAA0C;KACpC;CACX,CAAC"}
|
|
@@ -4,7 +4,7 @@ export declare const YmlEnable: {
|
|
|
4
4
|
readonly "yml/block-mapping-colon-indicator-newline": readonly ["error", "never"];
|
|
5
5
|
readonly "yml/block-mapping-question-indicator-newline": readonly ["error", "never"];
|
|
6
6
|
readonly "yml/block-mapping": readonly ["error", {
|
|
7
|
-
readonly singleline: "
|
|
7
|
+
readonly singleline: "always";
|
|
8
8
|
readonly multiline: "always";
|
|
9
9
|
}];
|
|
10
10
|
readonly "yml/block-sequence-hyphen-indicator-newline": readonly ["error", "never", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/yml/enable.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/yml/enable.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ErB,CAAC"}
|
|
@@ -14,16 +14,16 @@ export const YmlEnable = {
|
|
|
14
14
|
"yml/block-mapping": [
|
|
15
15
|
ON,
|
|
16
16
|
{
|
|
17
|
-
singleline: never
|
|
18
|
-
multiline: always
|
|
17
|
+
singleline: always /* always | never | ignore */,
|
|
18
|
+
multiline: always /* always | never | ignore */,
|
|
19
19
|
},
|
|
20
20
|
],
|
|
21
21
|
"yml/block-sequence-hyphen-indicator-newline": [
|
|
22
22
|
ON,
|
|
23
23
|
never,
|
|
24
24
|
{
|
|
25
|
-
nestedHyphen: always
|
|
26
|
-
blockMapping: never
|
|
25
|
+
nestedHyphen: always /* never | @default: always */,
|
|
26
|
+
blockMapping: never /* never | always | @default: string option */,
|
|
27
27
|
},
|
|
28
28
|
],
|
|
29
29
|
"yml/block-sequence": [
|
|
@@ -40,7 +40,7 @@ export const YmlEnable = {
|
|
|
40
40
|
{
|
|
41
41
|
alignMultilineFlowScalars: true /* @default: false */,
|
|
42
42
|
indentBlockSequences: true,
|
|
43
|
-
indicatorValueIndent: 2
|
|
43
|
+
indicatorValueIndent: 2 /* @default: number option */,
|
|
44
44
|
},
|
|
45
45
|
],
|
|
46
46
|
"yml/key-name-casing": OFF,
|
|
@@ -53,6 +53,16 @@ export const YmlEnable = {
|
|
|
53
53
|
"yml/plain-scalar": [
|
|
54
54
|
ON,
|
|
55
55
|
always,
|
|
56
|
+
/*
|
|
57
|
+
{
|
|
58
|
+
ignorePatterns: [
|
|
59
|
+
"[\\v\\f\\u0085\\u00a0\\u1680\\u180e\\u2000-\\u200b\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]" // @default
|
|
60
|
+
],
|
|
61
|
+
overrides: {
|
|
62
|
+
[key]: null | "always" | "never",
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
*/
|
|
56
66
|
],
|
|
57
67
|
"yml/quotes": [
|
|
58
68
|
ON,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../../src/rules/scopes/yml/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,EAAE,EACF,GAAG,EACH,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,EAAE,EAAE,EAAE,CAAC,MAAM;IACb,KAAK,EAAE;QACP,uEAAuE;QACrE,2CAA2C,EAAE;YAC3C,EAAE;YACF,KAAK;SACN;QACD,8CAA8C,EAAE;YAC9C,EAAE;YACF,KAAK;SACN;QACD,mBAAmB,EAAE;YACnB,EAAE;YACF;gBACE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../../src/rules/scopes/yml/enable.ts"],"names":[],"mapp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C5B,eAAe,EAAE,GAAG;QACpB,0BAA0B,EAAE,GAAG;QAC/B,uCAAuC,EAAE,EAAE;KACnC;CACX,CAAC"}
|
|
@@ -4,7 +4,7 @@ declare const _default: ({
|
|
|
4
4
|
readonly "yml/block-mapping-colon-indicator-newline": readonly ["error", "never"];
|
|
5
5
|
readonly "yml/block-mapping-question-indicator-newline": readonly ["error", "never"];
|
|
6
6
|
readonly "yml/block-mapping": readonly ["error", {
|
|
7
|
-
readonly singleline: "
|
|
7
|
+
readonly singleline: "always";
|
|
8
8
|
readonly multiline: "always";
|
|
9
9
|
}];
|
|
10
10
|
readonly "yml/block-sequence-hyphen-indicator-newline": readonly ["error", "never", {
|
|
@@ -42,7 +42,7 @@ declare const _default: ({
|
|
|
42
42
|
id: string;
|
|
43
43
|
rules: {
|
|
44
44
|
readonly "yml/flow-mapping-curly-newline": readonly ["error", {
|
|
45
|
-
readonly consistent:
|
|
45
|
+
readonly consistent: true;
|
|
46
46
|
readonly multiline: true;
|
|
47
47
|
readonly minProperties: 2;
|
|
48
48
|
}];
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$schema": "https://json.schemastore.org/package",
|
|
4
4
|
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
|
5
5
|
"name": "@eslinted/defaults",
|
|
6
|
-
"version": "10.
|
|
6
|
+
"version": "10.26.0",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"private": false,
|
|
9
9
|
"engineStrict": true,
|
|
@@ -163,8 +163,11 @@ export const Enable = {
|
|
|
163
163
|
classes: true,
|
|
164
164
|
variables: true,
|
|
165
165
|
allowNamedExports: false,
|
|
166
|
+
enums: true,
|
|
167
|
+
typedefs: false /* changed 14.2.2 (still questionable) */,
|
|
168
|
+
ignoreTypeReferences: true,
|
|
166
169
|
},
|
|
167
|
-
] /*
|
|
170
|
+
] /* TS-capable */,
|
|
168
171
|
"no-useless-assignment": ON,
|
|
169
172
|
"no-useless-backreference": ON,
|
|
170
173
|
"require-atomic-updates": [
|
|
@@ -236,7 +239,7 @@ export const Enable = {
|
|
|
236
239
|
],
|
|
237
240
|
"func-name-matching": OFF /* preference */,
|
|
238
241
|
"func-names": OFF /* preference */,
|
|
239
|
-
"func-style": OFF /* preference */,
|
|
242
|
+
"func-style": OFF /* TS-capable BUT preference */,
|
|
240
243
|
"grouped-accessor-pairs": OFF /* preference -- BUG: requires adjacency, not as described in documentation */,
|
|
241
244
|
"guard-for-in": OFF /* preference - not helpful because using for-in on non-literal objects is bad practice and this rule doesn't guard against that anyway, while adding a pointless check to known object literals */,
|
|
242
245
|
"id-denylist": OFF /* preference */,
|
|
@@ -346,7 +349,7 @@ export const Enable = {
|
|
|
346
349
|
"no-lone-blocks": ON,
|
|
347
350
|
"no-lonely-if": OFF /* preference */,
|
|
348
351
|
"no-loop-func": ON /* TS-capable */,
|
|
349
|
-
"no-magic-numbers": OFF /* preference - breaks TypeScript number literals, even with most liberal exceptions */,
|
|
352
|
+
"no-magic-numbers": OFF /* TS-capable BUT preference - breaks TypeScript number literals, even with most liberal exceptions */,
|
|
350
353
|
"no-multi-assign": [
|
|
351
354
|
ON,
|
|
352
355
|
{
|
|
@@ -396,7 +399,7 @@ export const Enable = {
|
|
|
396
399
|
allowInParentheses: true,
|
|
397
400
|
},
|
|
398
401
|
],
|
|
399
|
-
"no-shadow": OFF /*
|
|
402
|
+
"no-shadow": OFF /* TS-capable BUT investigate */,
|
|
400
403
|
"no-shadow-restricted-names": [
|
|
401
404
|
ON,
|
|
402
405
|
{
|
|
@@ -487,7 +490,7 @@ export const Enable = {
|
|
|
487
490
|
allowNamedFunctions: false,
|
|
488
491
|
allowUnboundThis: true,
|
|
489
492
|
},
|
|
490
|
-
]
|
|
493
|
+
] /* TS-capable */,
|
|
491
494
|
"prefer-const": [
|
|
492
495
|
ON,
|
|
493
496
|
{
|
|
@@ -14,7 +14,7 @@ export const JsonEnableExtension = {
|
|
|
14
14
|
id: ID.EnableExtension,
|
|
15
15
|
rules: {
|
|
16
16
|
// DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
|
|
17
|
-
"jsonc/array-bracket-newline": OFF /* DO NOT CHANGE */,
|
|
17
|
+
"jsonc/array-bracket-newline": OFF /* @OVERRIDE DO NOT CHANGE (? why?) @stylistic/array-bracket-newline */,
|
|
18
18
|
"jsonc/array-bracket-spacing": [
|
|
19
19
|
ON,
|
|
20
20
|
never,
|
|
@@ -23,7 +23,7 @@ export const JsonEnableExtension = {
|
|
|
23
23
|
objectsInArrays: false,
|
|
24
24
|
arraysInArrays: false,
|
|
25
25
|
},
|
|
26
|
-
] /* MUST match
|
|
26
|
+
] /* MUST match @stylistic/array-bracket-spacing */,
|
|
27
27
|
"jsonc/array-element-newline": [
|
|
28
28
|
ON,
|
|
29
29
|
consistent,
|
|
@@ -38,7 +38,7 @@ export const JsonEnableExtension = {
|
|
|
38
38
|
afterColon: true,
|
|
39
39
|
mode: strict,
|
|
40
40
|
},
|
|
41
|
-
] /* MUST match
|
|
41
|
+
] /* MUST match @stylistic/key-spacing */,
|
|
42
42
|
"jsonc/no-dupe-keys": ON,
|
|
43
43
|
"jsonc/no-floating-decimal": ON,
|
|
44
44
|
"jsonc/no-irregular-whitespace": [
|
|
@@ -61,9 +61,9 @@ export const JsonEnableExtension = {
|
|
|
61
61
|
{
|
|
62
62
|
consistent: true,
|
|
63
63
|
multiline: true,
|
|
64
|
-
minProperties:
|
|
64
|
+
minProperties: 2,
|
|
65
65
|
},
|
|
66
|
-
] /*
|
|
66
|
+
] /* @OVERRIDE CHILD of @stylistic/object-curly-newline */,
|
|
67
67
|
"jsonc/object-curly-spacing": [
|
|
68
68
|
ON,
|
|
69
69
|
always,
|
|
@@ -71,14 +71,17 @@ export const JsonEnableExtension = {
|
|
|
71
71
|
arraysInObjects: true,
|
|
72
72
|
objectsInObjects: true,
|
|
73
73
|
},
|
|
74
|
-
] /* MUST match
|
|
74
|
+
] /* MUST match @stylistic/object-curly-spacing */,
|
|
75
75
|
"jsonc/object-property-newline": [
|
|
76
76
|
ON,
|
|
77
77
|
{
|
|
78
78
|
allowAllPropertiesOnSameLine: true,
|
|
79
79
|
},
|
|
80
|
-
] /* MUST match
|
|
81
|
-
"jsonc/quote-props": [
|
|
80
|
+
] /* MUST match @stylistic/object-property-newline */,
|
|
81
|
+
"jsonc/quote-props": [
|
|
82
|
+
ON,
|
|
83
|
+
always,
|
|
84
|
+
],
|
|
82
85
|
"jsonc/quotes": [
|
|
83
86
|
ON,
|
|
84
87
|
double,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
export const MochaDisable = {
|
|
7
7
|
id: ID.Disable,
|
|
8
8
|
rules: {
|
|
9
|
-
"prefer-arrow-callback": OFF
|
|
9
|
+
"prefer-arrow-callback": OFF /* TS-capable */,
|
|
10
10
|
"no-unused-expressions": OFF,
|
|
11
11
|
// "@typescript-eslint/no-unused-expressions": OFF /* ESLint now supports TS */,
|
|
12
12
|
} as const,
|
|
@@ -45,7 +45,7 @@ export const MochaEnable = {
|
|
|
45
45
|
allowNamedFunctions: false,
|
|
46
46
|
allowUnboundThis: true,
|
|
47
47
|
},
|
|
48
|
-
] /* MUST match ../js/enable.ts */,
|
|
48
|
+
] /* MUST match ../js/enable.ts, which is TS-capable -- is this?? */,
|
|
49
49
|
"mocha/valid-suite-title": OFF /* preference */,
|
|
50
50
|
"mocha/valid-test-title": OFF /* preference */,
|
|
51
51
|
} as const,
|
|
@@ -19,14 +19,14 @@ export const TsDisableExtension = {
|
|
|
19
19
|
"no-implied-eval": OFF,
|
|
20
20
|
// "no-invalid-this": OFF /* tsc, although ESLint now supports TS */,
|
|
21
21
|
// "no-loop-func": OFF /* ESLint now supports TS */,
|
|
22
|
-
"no-magic-numbers": OFF
|
|
22
|
+
// "no-magic-numbers": OFF /* ESLint now supports TS */,
|
|
23
23
|
// "no-redeclare": OFF /* tsc */,
|
|
24
24
|
"no-restricted-imports": OFF,
|
|
25
|
-
"no-shadow": OFF
|
|
25
|
+
// "no-shadow": OFF /* ESLint now supports TS */,
|
|
26
26
|
"no-throw-literal": OFF /* @typescript-eslint/only-throw-error */,
|
|
27
27
|
// "no-unused-expressions": OFF /* ESLint now supports TS */,
|
|
28
28
|
"no-unused-vars": OFF,
|
|
29
|
-
"no-use-before-define": OFF
|
|
29
|
+
// "no-use-before-define": OFF /* ESLint now supports TS */,
|
|
30
30
|
// "no-useless-constructor": OFF /* ESLint now supports TS */,
|
|
31
31
|
"prefer-destructuring": OFF,
|
|
32
32
|
"prefer-promise-reject-errors": OFF,
|
|
@@ -31,10 +31,10 @@ export const TsEnableExtension = {
|
|
|
31
31
|
"@typescript-eslint/no-implied-eval": ON,
|
|
32
32
|
// "@typescript-eslint/no-invalid-this": OFF /* tsc: { strict, noImplicitThis }, although ESLint now supports TS */,
|
|
33
33
|
// "@typescript-eslint/no-loop-func": OFF /* ESLint now supports TS */,
|
|
34
|
-
"@typescript-eslint/no-magic-numbers": OFF /* preference */,
|
|
34
|
+
// "@typescript-eslint/no-magic-numbers": OFF /* preference, although ESLint now supports TS */,
|
|
35
35
|
// "@typescript-eslint/no-redeclare": OFF /* tsc (let, const, -var) */,
|
|
36
36
|
"@typescript-eslint/no-restricted-imports": OFF /* preference */,
|
|
37
|
-
"@typescript-eslint/no-shadow": OFF /* investigate */,
|
|
37
|
+
// "@typescript-eslint/no-shadow": OFF /* ESLint now supports TS (was: investigate) */,
|
|
38
38
|
// "@typescript-eslint/no-unused-expressions": OFF /* ESLint now supports TS (preference -- eslint:OFF) */,
|
|
39
39
|
"@typescript-eslint/no-unused-vars": [
|
|
40
40
|
ON,
|
|
@@ -47,18 +47,7 @@ export const TsEnableExtension = {
|
|
|
47
47
|
reportUsedIgnorePattern: true,
|
|
48
48
|
},
|
|
49
49
|
],
|
|
50
|
-
"@typescript-eslint/no-use-before-define":
|
|
51
|
-
ON,
|
|
52
|
-
{
|
|
53
|
-
functions: true,
|
|
54
|
-
classes: true,
|
|
55
|
-
variables: true,
|
|
56
|
-
allowNamedExports: false,
|
|
57
|
-
enums: true,
|
|
58
|
-
typedefs: false /* changed 14.2.2 (still questionable) */,
|
|
59
|
-
ignoreTypeReferences: true,
|
|
60
|
-
},
|
|
61
|
-
],
|
|
50
|
+
// "@typescript-eslint/no-use-before-define": OFF /* ESLint now supports TS */,
|
|
62
51
|
// "@typescript-eslint/no-useless-constructor": OFF /* ESLint now supports TS */,
|
|
63
52
|
"@typescript-eslint/only-throw-error": [
|
|
64
53
|
ON,
|
|
@@ -13,11 +13,11 @@ export const YmlEnableExtension = {
|
|
|
13
13
|
"yml/flow-mapping-curly-newline": [
|
|
14
14
|
ON,
|
|
15
15
|
{
|
|
16
|
-
consistent:
|
|
16
|
+
consistent: true,
|
|
17
17
|
multiline: true,
|
|
18
18
|
minProperties: 2,
|
|
19
19
|
},
|
|
20
|
-
]
|
|
20
|
+
] /* MUST match jsonc/object-curly-newline */,
|
|
21
21
|
"yml/flow-mapping-curly-spacing": [
|
|
22
22
|
ON,
|
|
23
23
|
always,
|
|
@@ -25,14 +25,14 @@ export const YmlEnableExtension = {
|
|
|
25
25
|
arraysInObjects: true,
|
|
26
26
|
objectsInObjects: true,
|
|
27
27
|
},
|
|
28
|
-
]
|
|
28
|
+
] /* MUST match jsonc/object-curly-spacing */,
|
|
29
29
|
"yml/flow-sequence-bracket-newline": [
|
|
30
30
|
ON,
|
|
31
31
|
{
|
|
32
32
|
multiline: true,
|
|
33
33
|
minItems: null,
|
|
34
34
|
},
|
|
35
|
-
],
|
|
35
|
+
] /* @OVERRIDE jsonc/array-bracket-newline, instead -> MUST match its parent: @stylistic/array-bracket-newline */,
|
|
36
36
|
"yml/flow-sequence-bracket-spacing": [
|
|
37
37
|
ON,
|
|
38
38
|
never,
|
|
@@ -41,7 +41,7 @@ export const YmlEnableExtension = {
|
|
|
41
41
|
objectsInArrays: false,
|
|
42
42
|
arraysInArrays: false,
|
|
43
43
|
},
|
|
44
|
-
]
|
|
44
|
+
] /* MUST match jsonc/array-bracket-spacing */,
|
|
45
45
|
"yml/key-spacing": [
|
|
46
46
|
ON,
|
|
47
47
|
{
|
|
@@ -49,7 +49,7 @@ export const YmlEnableExtension = {
|
|
|
49
49
|
afterColon: true,
|
|
50
50
|
mode: strict,
|
|
51
51
|
},
|
|
52
|
-
]
|
|
52
|
+
] /* MUST match jsonc/key-spacing */,
|
|
53
53
|
"yml/no-irregular-whitespace": [
|
|
54
54
|
ON,
|
|
55
55
|
{
|
|
@@ -64,10 +64,10 @@ export const YmlEnableExtension = {
|
|
|
64
64
|
maxEOF: 1,
|
|
65
65
|
maxBOF: 0,
|
|
66
66
|
},
|
|
67
|
-
]
|
|
67
|
+
] /* MUST match @stylistic/no-multiple-empty-lines */,
|
|
68
68
|
"yml/spaced-comment": [
|
|
69
69
|
ON,
|
|
70
70
|
always,
|
|
71
|
-
]
|
|
71
|
+
] /* MUST match @stylistic/spaced-comment */,
|
|
72
72
|
} as const,
|
|
73
73
|
};
|
|
@@ -22,16 +22,16 @@ export const YmlEnable = {
|
|
|
22
22
|
"yml/block-mapping": [
|
|
23
23
|
ON,
|
|
24
24
|
{
|
|
25
|
-
singleline: never
|
|
26
|
-
multiline: always
|
|
25
|
+
singleline: always /* always | never | ignore */,
|
|
26
|
+
multiline: always /* always | never | ignore */,
|
|
27
27
|
},
|
|
28
28
|
],
|
|
29
29
|
"yml/block-sequence-hyphen-indicator-newline": [
|
|
30
30
|
ON,
|
|
31
31
|
never,
|
|
32
32
|
{
|
|
33
|
-
nestedHyphen: always
|
|
34
|
-
blockMapping: never
|
|
33
|
+
nestedHyphen: always /* never | @default: always */,
|
|
34
|
+
blockMapping: never /* never | always | @default: string option */,
|
|
35
35
|
},
|
|
36
36
|
],
|
|
37
37
|
"yml/block-sequence": [
|
|
@@ -48,7 +48,7 @@ export const YmlEnable = {
|
|
|
48
48
|
{
|
|
49
49
|
alignMultilineFlowScalars: true /* @default: false */,
|
|
50
50
|
indentBlockSequences: true,
|
|
51
|
-
indicatorValueIndent: 2
|
|
51
|
+
indicatorValueIndent: 2 /* @default: number option */,
|
|
52
52
|
},
|
|
53
53
|
],
|
|
54
54
|
"yml/key-name-casing": OFF,
|
|
@@ -61,6 +61,16 @@ export const YmlEnable = {
|
|
|
61
61
|
"yml/plain-scalar": [
|
|
62
62
|
ON,
|
|
63
63
|
always,
|
|
64
|
+
/*
|
|
65
|
+
{
|
|
66
|
+
ignorePatterns: [
|
|
67
|
+
"[\\v\\f\\u0085\\u00a0\\u1680\\u180e\\u2000-\\u200b\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]" // @default
|
|
68
|
+
],
|
|
69
|
+
overrides: {
|
|
70
|
+
[key]: null | "always" | "never",
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
*/
|
|
64
74
|
],
|
|
65
75
|
"yml/quotes": [
|
|
66
76
|
ON,
|