@eslinted/defaults 8.0.0-rc.0 → 8.0.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/css/enable.d.ts +13 -10
- package/dist/rules/css/enable.d.ts.map +1 -1
- package/dist/rules/css/enable.js +4 -4
- package/dist/rules/css/enable.js.map +1 -1
- package/dist/rules/css/index.d.ts +13 -10
- package/dist/rules/css/index.d.ts.map +1 -1
- package/dist/rules/html/enable.d.ts +72 -69
- package/dist/rules/html/enable.d.ts.map +1 -1
- package/dist/rules/html/enable.js +4 -4
- package/dist/rules/html/enable.js.map +1 -1
- package/dist/rules/html/index.d.ts +72 -69
- package/dist/rules/html/index.d.ts.map +1 -1
- package/dist/rules/index.d.ts +1654 -1585
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/js/enable-stylistic.d.ts +416 -413
- package/dist/rules/js/enable-stylistic.d.ts.map +1 -1
- package/dist/rules/js/enable-stylistic.js +4 -4
- package/dist/rules/js/enable-stylistic.js.map +1 -1
- package/dist/rules/js/enable.d.ts +349 -346
- package/dist/rules/js/enable.d.ts.map +1 -1
- package/dist/rules/js/enable.js +4 -4
- package/dist/rules/js/enable.js.map +1 -1
- package/dist/rules/js/index.d.ts +764 -758
- package/dist/rules/js/index.d.ts.map +1 -1
- package/dist/rules/json/enable-ext.d.ts +51 -48
- package/dist/rules/json/enable-ext.d.ts.map +1 -1
- package/dist/rules/json/enable-ext.js +4 -4
- package/dist/rules/json/enable-ext.js.map +1 -1
- package/dist/rules/json/enable.d.ts +28 -25
- package/dist/rules/json/enable.d.ts.map +1 -1
- package/dist/rules/json/enable.js +4 -4
- package/dist/rules/json/enable.js.map +1 -1
- package/dist/rules/json/index.d.ts +78 -72
- package/dist/rules/json/index.d.ts.map +1 -1
- package/dist/rules/jsonc/index.d.ts +7 -4
- package/dist/rules/jsonc/index.d.ts.map +1 -1
- package/dist/rules/jsonc/override.d.ts +7 -4
- package/dist/rules/jsonc/override.d.ts.map +1 -1
- package/dist/rules/jsonc/override.js +4 -4
- package/dist/rules/jsonc/override.js.map +1 -1
- package/dist/rules/mocha/disable-ts.d.ts +7 -4
- package/dist/rules/mocha/disable-ts.d.ts.map +1 -1
- package/dist/rules/mocha/disable-ts.js +4 -4
- package/dist/rules/mocha/disable-ts.js.map +1 -1
- package/dist/rules/mocha/disable.d.ts +6 -3
- package/dist/rules/mocha/disable.d.ts.map +1 -1
- package/dist/rules/mocha/disable.js +4 -4
- package/dist/rules/mocha/disable.js.map +1 -1
- package/dist/rules/mocha/enable-chai-expect.d.ts +9 -6
- package/dist/rules/mocha/enable-chai-expect.d.ts.map +1 -1
- package/dist/rules/mocha/enable-chai-expect.js +4 -4
- package/dist/rules/mocha/enable-chai-expect.js.map +1 -1
- package/dist/rules/mocha/enable-chai.d.ts +11 -8
- package/dist/rules/mocha/enable-chai.d.ts.map +1 -1
- package/dist/rules/mocha/enable-chai.js +4 -4
- package/dist/rules/mocha/enable-chai.js.map +1 -1
- package/dist/rules/mocha/enable.d.ts +36 -33
- package/dist/rules/mocha/enable.d.ts.map +1 -1
- package/dist/rules/mocha/enable.js +4 -4
- package/dist/rules/mocha/enable.js.map +1 -1
- package/dist/rules/mocha/index.d.ts +65 -50
- package/dist/rules/mocha/index.d.ts.map +1 -1
- package/dist/rules/svelte/disable-ext.d.ts +8 -5
- package/dist/rules/svelte/disable-ext.d.ts.map +1 -1
- package/dist/rules/svelte/disable-ext.js +4 -4
- package/dist/rules/svelte/disable-ext.js.map +1 -1
- package/dist/rules/svelte/disable-ts.d.ts +7 -4
- package/dist/rules/svelte/disable-ts.d.ts.map +1 -1
- package/dist/rules/svelte/disable-ts.js +4 -4
- package/dist/rules/svelte/disable-ts.js.map +1 -1
- package/dist/rules/svelte/disable.d.ts +8 -5
- package/dist/rules/svelte/disable.d.ts.map +1 -1
- package/dist/rules/svelte/disable.js +4 -4
- package/dist/rules/svelte/disable.js.map +1 -1
- package/dist/rules/svelte/enable-ext.d.ts +12 -9
- package/dist/rules/svelte/enable-ext.d.ts.map +1 -1
- package/dist/rules/svelte/enable-ext.js +4 -4
- package/dist/rules/svelte/enable-ext.js.map +1 -1
- package/dist/rules/svelte/enable.d.ts +150 -147
- package/dist/rules/svelte/enable.d.ts.map +1 -1
- package/dist/rules/svelte/enable.js +4 -4
- package/dist/rules/svelte/enable.js.map +1 -1
- package/dist/rules/svelte/index.d.ts +181 -166
- package/dist/rules/svelte/index.d.ts.map +1 -1
- package/dist/rules/ts/disable-ext.d.ts +29 -26
- package/dist/rules/ts/disable-ext.d.ts.map +1 -1
- package/dist/rules/ts/disable-ext.js +4 -4
- package/dist/rules/ts/disable-ext.js.map +1 -1
- package/dist/rules/ts/disable.d.ts +24 -21
- package/dist/rules/ts/disable.d.ts.map +1 -1
- package/dist/rules/ts/disable.js +4 -4
- package/dist/rules/ts/disable.js.map +1 -1
- package/dist/rules/ts/enable-ext.d.ts +75 -72
- package/dist/rules/ts/enable-ext.d.ts.map +1 -1
- package/dist/rules/ts/enable-ext.js +4 -4
- package/dist/rules/ts/enable-ext.js.map +1 -1
- package/dist/rules/ts/enable.d.ts +274 -271
- package/dist/rules/ts/enable.d.ts.map +1 -1
- package/dist/rules/ts/enable.js +4 -4
- package/dist/rules/ts/enable.js.map +1 -1
- package/dist/rules/ts/index.d.ts +398 -386
- package/dist/rules/ts/index.d.ts.map +1 -1
- package/dist/rules/yml/enable-ext.d.ts +38 -35
- package/dist/rules/yml/enable-ext.d.ts.map +1 -1
- package/dist/rules/yml/enable-ext.js +4 -4
- package/dist/rules/yml/enable-ext.js.map +1 -1
- package/dist/rules/yml/enable.d.ts +40 -37
- package/dist/rules/yml/enable.d.ts.map +1 -1
- package/dist/rules/yml/enable.js +4 -4
- package/dist/rules/yml/enable.js.map +1 -1
- package/dist/rules/yml/index.d.ts +77 -71
- package/dist/rules/yml/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/rules/css/enable.ts +5 -5
- package/src/rules/html/enable.ts +6 -6
- package/src/rules/js/enable-stylistic.ts +5 -5
- package/src/rules/js/enable.ts +7 -7
- package/src/rules/json/enable-ext.ts +5 -5
- package/src/rules/json/enable.ts +5 -5
- package/src/rules/jsonc/override.ts +5 -5
- package/src/rules/mocha/disable-ts.ts +5 -5
- package/src/rules/mocha/disable.ts +4 -4
- package/src/rules/mocha/enable-chai-expect.ts +5 -5
- package/src/rules/mocha/enable-chai.ts +4 -4
- package/src/rules/mocha/enable.ts +5 -5
- package/src/rules/svelte/disable-ext.ts +5 -5
- package/src/rules/svelte/disable-ts.ts +4 -4
- package/src/rules/svelte/disable.ts +6 -6
- package/src/rules/svelte/enable-ext.ts +5 -5
- package/src/rules/svelte/enable.ts +6 -6
- package/src/rules/ts/disable-ext.ts +5 -5
- package/src/rules/ts/disable.ts +5 -5
- package/src/rules/ts/enable-ext.ts +5 -5
- package/src/rules/ts/enable.ts +6 -6
- package/src/rules/yml/enable-ext.ts +5 -5
- package/src/rules/yml/enable.ts +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAKE"}
|
|
@@ -1,36 +1,39 @@
|
|
|
1
|
-
export declare const YmlEnableExtension:
|
|
2
|
-
readonly
|
|
3
|
-
|
|
4
|
-
readonly
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
readonly
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
readonly
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
readonly
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
readonly
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
readonly
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}];
|
|
1
|
+
export declare const YmlEnableExtension: {
|
|
2
|
+
readonly id: "enable/extension";
|
|
3
|
+
readonly rules: {
|
|
4
|
+
readonly "yml/flow-mapping-curly-newline": readonly ["error", {
|
|
5
|
+
readonly consistent: false;
|
|
6
|
+
readonly multiline: true;
|
|
7
|
+
readonly minProperties: 2;
|
|
8
|
+
}];
|
|
9
|
+
readonly "yml/flow-mapping-curly-spacing": readonly ["error", "always", {
|
|
10
|
+
readonly arraysInObjects: true;
|
|
11
|
+
readonly objectsInObjects: true;
|
|
12
|
+
}];
|
|
13
|
+
readonly "yml/flow-sequence-bracket-newline": readonly ["error", {
|
|
14
|
+
readonly multiline: true;
|
|
15
|
+
readonly minItems: null;
|
|
16
|
+
}];
|
|
17
|
+
readonly "yml/flow-sequence-bracket-spacing": readonly ["error", "never", {
|
|
18
|
+
readonly singleValue: false;
|
|
19
|
+
readonly objectsInArrays: false;
|
|
20
|
+
readonly arraysInArrays: false;
|
|
21
|
+
}];
|
|
22
|
+
readonly "yml/key-spacing": readonly ["error", {
|
|
23
|
+
readonly beforeColon: false;
|
|
24
|
+
readonly afterColon: true;
|
|
25
|
+
readonly mode: "strict";
|
|
26
|
+
}];
|
|
27
|
+
readonly "yml/no-irregular-whitespace": readonly ["error", {
|
|
28
|
+
readonly skipQuotedScalars: true;
|
|
29
|
+
readonly skipComments: false;
|
|
30
|
+
}];
|
|
31
|
+
readonly "yml/no-multiple-empty-lines": readonly ["error", {
|
|
32
|
+
readonly max: 1;
|
|
33
|
+
readonly maxEOF: 1;
|
|
34
|
+
readonly maxBOF: 0;
|
|
35
|
+
}];
|
|
36
|
+
readonly "yml/spaced-comment": readonly ["error", "always"];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
36
39
|
//# sourceMappingURL=enable-ext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-ext.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/enable-ext.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"enable-ext.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/enable-ext.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgErB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ID, ERROR, never, always, strict, } from "../../_strings/index.js";
|
|
2
|
-
export const YmlEnableExtension =
|
|
3
|
-
ID.EnableExtension,
|
|
4
|
-
{
|
|
2
|
+
export const YmlEnableExtension = {
|
|
3
|
+
id: ID.EnableExtension,
|
|
4
|
+
rules: {
|
|
5
5
|
"yml/flow-mapping-curly-newline": [
|
|
6
6
|
ERROR,
|
|
7
7
|
{
|
|
@@ -62,5 +62,5 @@ export const YmlEnableExtension = [
|
|
|
62
62
|
always,
|
|
63
63
|
],
|
|
64
64
|
},
|
|
65
|
-
|
|
65
|
+
};
|
|
66
66
|
//# sourceMappingURL=enable-ext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-ext.js","sourceRoot":"","sources":["../../../src/rules/yml/enable-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,KAAK,EACL,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,EAAE,CAAC,eAAe;
|
|
1
|
+
{"version":3,"file":"enable-ext.js","sourceRoot":"","sources":["../../../src/rules/yml/enable-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,KAAK,EACL,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,EAAE,EAAE,EAAE,CAAC,eAAe;IACtB,KAAK,EAAE;QAEL,gCAAgC,EAAE;YAChC,KAAK;YACL;gBACE,UAAU,EAAE,KAAK;gBACjB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,gCAAgC,EAAE;YAChC,KAAK;YACL,MAAM;YACN;gBACE,eAAe,EAAE,IAAI;gBACrB,gBAAgB,EAAE,IAAI;aACvB;SACF;QACD,mCAAmC,EAAE;YACnC,KAAK;YACL;gBACE,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,IAAI;aACf;SACF;QACD,mCAAmC,EAAE;YACnC,KAAK;YACL,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,eAAe,EAAE,KAAK;gBACtB,cAAc,EAAE,KAAK;aACtB;SACF;QACD,iBAAiB,EAAE;YACjB,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,UAAU,EAAE,IAAI;gBAChB,IAAI,EAAE,MAAM;aACb;SACF;QACD,6BAA6B,EAAE;YAC7B,KAAK;YACL;gBACE,iBAAiB,EAAE,IAAI;gBACvB,YAAY,EAAE,KAAK;aACpB;SACF;QACD,6BAA6B,EAAE;YAC7B,KAAK;YACL;gBACE,GAAG,EAAE,CAAC;gBACN,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,CAAC;aACV;SACF;QACD,oBAAoB,EAAE;YACpB,KAAK;YACL,MAAM;SACP;KACO;CACF,CAAC"}
|
|
@@ -1,38 +1,41 @@
|
|
|
1
|
-
export declare const YmlEnable:
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
4
|
-
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
readonly
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
export declare const YmlEnable: {
|
|
2
|
+
readonly id: "enable";
|
|
3
|
+
readonly rules: {
|
|
4
|
+
readonly "yml/block-mapping-colon-indicator-newline": readonly ["error", "never"];
|
|
5
|
+
readonly "yml/block-mapping-question-indicator-newline": readonly ["error", "never"];
|
|
6
|
+
readonly "yml/block-mapping": readonly ["error", {
|
|
7
|
+
readonly singleline: "never";
|
|
8
|
+
readonly multiline: "always";
|
|
9
|
+
}];
|
|
10
|
+
readonly "yml/block-sequence-hyphen-indicator-newline": readonly ["error", "never", {
|
|
11
|
+
readonly nestedHyphen: "always";
|
|
12
|
+
readonly blockMapping: "never";
|
|
13
|
+
}];
|
|
14
|
+
readonly "yml/block-sequence": readonly ["error", {
|
|
15
|
+
readonly singleline: "always";
|
|
16
|
+
readonly multiline: "always";
|
|
17
|
+
}];
|
|
18
|
+
readonly "yml/file-extension": "off";
|
|
19
|
+
readonly "yml/indent": readonly ["error", 2, {
|
|
20
|
+
readonly indentBlockSequences: true;
|
|
21
|
+
readonly indicatorValueIndent: 2;
|
|
22
|
+
}];
|
|
23
|
+
readonly "yml/key-name-casing": "off";
|
|
24
|
+
readonly "yml/no-empty-document": "error";
|
|
25
|
+
readonly "yml/no-empty-key": "error";
|
|
26
|
+
readonly "yml/no-empty-mapping-value": "error";
|
|
27
|
+
readonly "yml/no-empty-sequence-entry": "error";
|
|
28
|
+
readonly "yml/no-tab-indent": "error";
|
|
29
|
+
readonly "yml/no-trailing-zeros": "error";
|
|
30
|
+
readonly "yml/plain-scalar": readonly ["error", "always"];
|
|
31
|
+
readonly "yml/quotes": readonly ["error", {
|
|
32
|
+
readonly prefer: "double";
|
|
33
|
+
readonly avoidEscape: true;
|
|
34
|
+
}];
|
|
35
|
+
readonly "yml/require-string-key": "error";
|
|
36
|
+
readonly "yml/sort-keys": "off";
|
|
37
|
+
readonly "yml/sort-sequence-values": "off";
|
|
38
|
+
readonly "yml/vue-custom-block/no-parsing-error": "error";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
38
41
|
//# sourceMappingURL=enable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/enable.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/enable.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEZ,CAAC"}
|
package/dist/rules/yml/enable.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ID, ERROR, OFF, never, always, double, } from "../../_strings/index.js";
|
|
2
|
-
export const YmlEnable =
|
|
3
|
-
ID.Enable,
|
|
4
|
-
{
|
|
2
|
+
export const YmlEnable = {
|
|
3
|
+
id: ID.Enable,
|
|
4
|
+
rules: {
|
|
5
5
|
"yml/block-mapping-colon-indicator-newline": [
|
|
6
6
|
ERROR,
|
|
7
7
|
never,
|
|
@@ -64,5 +64,5 @@ export const YmlEnable = [
|
|
|
64
64
|
"yml/sort-sequence-values": OFF,
|
|
65
65
|
"yml/vue-custom-block/no-parsing-error": ERROR,
|
|
66
66
|
},
|
|
67
|
-
|
|
67
|
+
};
|
|
68
68
|
//# sourceMappingURL=enable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/yml/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,KAAK,EACL,GAAG,EACH,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,EAAE,CAAC,MAAM;
|
|
1
|
+
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/yml/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,KAAK,EACL,GAAG,EACH,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,EAAE,EAAE,EAAE,CAAC,MAAM;IACb,KAAK,EAAE;QAEL,2CAA2C,EAAE;YAC3C,KAAK;YACL,KAAK;SACN;QACD,8CAA8C,EAAE;YAC9C,KAAK;YACL,KAAK;SACN;QACD,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;YAClB,KAAK;YACL,MAAM;SACP;QACD,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;KACtC;CACF,CAAC"}
|
|
@@ -1,73 +1,79 @@
|
|
|
1
|
-
declare const _default: (
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
4
|
-
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
readonly
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
readonly
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
readonly
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
readonly
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
readonly id: "enable";
|
|
3
|
+
readonly rules: {
|
|
4
|
+
readonly "yml/block-mapping-colon-indicator-newline": readonly ["error", "never"];
|
|
5
|
+
readonly "yml/block-mapping-question-indicator-newline": readonly ["error", "never"];
|
|
6
|
+
readonly "yml/block-mapping": readonly ["error", {
|
|
7
|
+
readonly singleline: "never";
|
|
8
|
+
readonly multiline: "always";
|
|
9
|
+
}];
|
|
10
|
+
readonly "yml/block-sequence-hyphen-indicator-newline": readonly ["error", "never", {
|
|
11
|
+
readonly nestedHyphen: "always";
|
|
12
|
+
readonly blockMapping: "never";
|
|
13
|
+
}];
|
|
14
|
+
readonly "yml/block-sequence": readonly ["error", {
|
|
15
|
+
readonly singleline: "always";
|
|
16
|
+
readonly multiline: "always";
|
|
17
|
+
}];
|
|
18
|
+
readonly "yml/file-extension": "off";
|
|
19
|
+
readonly "yml/indent": readonly ["error", 2, {
|
|
20
|
+
readonly indentBlockSequences: true;
|
|
21
|
+
readonly indicatorValueIndent: 2;
|
|
22
|
+
}];
|
|
23
|
+
readonly "yml/key-name-casing": "off";
|
|
24
|
+
readonly "yml/no-empty-document": "error";
|
|
25
|
+
readonly "yml/no-empty-key": "error";
|
|
26
|
+
readonly "yml/no-empty-mapping-value": "error";
|
|
27
|
+
readonly "yml/no-empty-sequence-entry": "error";
|
|
28
|
+
readonly "yml/no-tab-indent": "error";
|
|
29
|
+
readonly "yml/no-trailing-zeros": "error";
|
|
30
|
+
readonly "yml/plain-scalar": readonly ["error", "always"];
|
|
31
|
+
readonly "yml/quotes": readonly ["error", {
|
|
32
|
+
readonly prefer: "double";
|
|
33
|
+
readonly avoidEscape: true;
|
|
34
|
+
}];
|
|
35
|
+
readonly "yml/require-string-key": "error";
|
|
36
|
+
readonly "yml/sort-keys": "off";
|
|
37
|
+
readonly "yml/sort-sequence-values": "off";
|
|
38
|
+
readonly "yml/vue-custom-block/no-parsing-error": "error";
|
|
39
|
+
};
|
|
40
|
+
} | {
|
|
41
|
+
readonly id: "enable/extension";
|
|
42
|
+
readonly rules: {
|
|
43
|
+
readonly "yml/flow-mapping-curly-newline": readonly ["error", {
|
|
44
|
+
readonly consistent: false;
|
|
45
|
+
readonly multiline: true;
|
|
46
|
+
readonly minProperties: 2;
|
|
47
|
+
}];
|
|
48
|
+
readonly "yml/flow-mapping-curly-spacing": readonly ["error", "always", {
|
|
49
|
+
readonly arraysInObjects: true;
|
|
50
|
+
readonly objectsInObjects: true;
|
|
51
|
+
}];
|
|
52
|
+
readonly "yml/flow-sequence-bracket-newline": readonly ["error", {
|
|
53
|
+
readonly multiline: true;
|
|
54
|
+
readonly minItems: null;
|
|
55
|
+
}];
|
|
56
|
+
readonly "yml/flow-sequence-bracket-spacing": readonly ["error", "never", {
|
|
57
|
+
readonly singleValue: false;
|
|
58
|
+
readonly objectsInArrays: false;
|
|
59
|
+
readonly arraysInArrays: false;
|
|
60
|
+
}];
|
|
61
|
+
readonly "yml/key-spacing": readonly ["error", {
|
|
62
|
+
readonly beforeColon: false;
|
|
63
|
+
readonly afterColon: true;
|
|
64
|
+
readonly mode: "strict";
|
|
65
|
+
}];
|
|
66
|
+
readonly "yml/no-irregular-whitespace": readonly ["error", {
|
|
67
|
+
readonly skipQuotedScalars: true;
|
|
68
|
+
readonly skipComments: false;
|
|
69
|
+
}];
|
|
70
|
+
readonly "yml/no-multiple-empty-lines": readonly ["error", {
|
|
71
|
+
readonly max: 1;
|
|
72
|
+
readonly maxEOF: 1;
|
|
73
|
+
readonly maxBOF: 0;
|
|
74
|
+
}];
|
|
75
|
+
readonly "yml/spaced-comment": readonly ["error", "always"];
|
|
76
|
+
};
|
|
77
|
+
})[];
|
|
72
78
|
export default _default;
|
|
73
79
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
|
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": "8.0.0
|
|
6
|
+
"version": "8.0.0",
|
|
7
7
|
"description": "Default scopes for `linted`.",
|
|
8
8
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
9
9
|
"license": "MIT",
|
package/src/rules/css/enable.ts
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
OFF,
|
|
5
5
|
} from "../../_strings";
|
|
6
6
|
|
|
7
|
-
export const CssEnable =
|
|
8
|
-
ID.Enable,
|
|
9
|
-
{
|
|
10
|
-
|
|
7
|
+
export const CssEnable = {
|
|
8
|
+
id: ID.Enable,
|
|
9
|
+
rules: {
|
|
10
|
+
// DOC: https://github.com/eslint/css?tab=readme-ov-file#rules
|
|
11
11
|
"css/no-duplicate-imports": ERROR,
|
|
12
12
|
"css/no-empty-blocks": ERROR,
|
|
13
13
|
"css/no-invalid-at-rules": ERROR,
|
|
@@ -20,4 +20,4 @@ export const CssEnable = [
|
|
|
20
20
|
],
|
|
21
21
|
"css/use-layers": OFF /* not recommended by docs; also BUG: ESLint config inspector: css/use-layers: Invalid rule has no description [INVALID] */,
|
|
22
22
|
} as const,
|
|
23
|
-
|
|
23
|
+
} as const;
|
package/src/rules/html/enable.ts
CHANGED
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
never,
|
|
6
6
|
} from "../../_strings";
|
|
7
7
|
|
|
8
|
-
export const HtmlEnable =
|
|
9
|
-
ID.Enable,
|
|
10
|
-
{
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
export const HtmlEnable = {
|
|
9
|
+
id: ID.Enable,
|
|
10
|
+
rules: {
|
|
11
|
+
// #region BEST PRACTICE
|
|
12
|
+
// DOC: https://html-eslint.org/docs/rules#best-practice
|
|
13
13
|
"@html-eslint/no-duplicate-attrs": ERROR,
|
|
14
14
|
"@html-eslint/no-duplicate-id": ERROR,
|
|
15
15
|
"@html-eslint/no-extra-spacing-text": [
|
|
@@ -122,4 +122,4 @@ export const HtmlEnable = [
|
|
|
122
122
|
],
|
|
123
123
|
"@html-eslint/sort-attrs": OFF,
|
|
124
124
|
} as const,
|
|
125
|
-
|
|
125
|
+
} as const;
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
double,
|
|
20
20
|
} from "../../_strings";
|
|
21
21
|
|
|
22
|
-
export const EnableStylistic =
|
|
23
|
-
ID.EnableStylistic,
|
|
24
|
-
{
|
|
25
|
-
|
|
22
|
+
export const EnableStylistic = {
|
|
23
|
+
id: ID.EnableStylistic,
|
|
24
|
+
rules: {
|
|
25
|
+
// DOC: https://eslint.style/rules
|
|
26
26
|
"@stylistic/array-bracket-newline": [
|
|
27
27
|
ERROR,
|
|
28
28
|
{
|
|
@@ -659,4 +659,4 @@ export const EnableStylistic = [
|
|
|
659
659
|
},
|
|
660
660
|
],
|
|
661
661
|
} as const,
|
|
662
|
-
|
|
662
|
+
} as const;
|
package/src/rules/js/enable.ts
CHANGED
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
both,
|
|
13
13
|
} from "../../_strings";
|
|
14
14
|
|
|
15
|
-
export const Enable =
|
|
16
|
-
ID.Enable,
|
|
17
|
-
{
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
export const Enable = {
|
|
16
|
+
id: ID.Enable,
|
|
17
|
+
rules: {
|
|
18
|
+
// #region PROBLEMS
|
|
19
|
+
// DOC: https://eslint.org/docs/latest/rules/#possible-problems
|
|
20
20
|
"array-callback-return": [
|
|
21
21
|
ERROR,
|
|
22
22
|
{
|
|
@@ -542,6 +542,6 @@ export const Enable = [
|
|
|
542
542
|
// [ https://eslint.org/docs/latest/rules/#layout--formatting ]
|
|
543
543
|
"unicode-bom": OFF /* preference: don't care */,
|
|
544
544
|
|
|
545
|
-
|
|
545
|
+
// #endregion LAYOUT & FORMATTING
|
|
546
546
|
} as const,
|
|
547
|
-
|
|
547
|
+
} as const;
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
strict,
|
|
11
11
|
} from "../../_strings";
|
|
12
12
|
|
|
13
|
-
export const JsonEnableExtension =
|
|
14
|
-
ID.EnableExtension,
|
|
15
|
-
{
|
|
16
|
-
|
|
13
|
+
export const JsonEnableExtension = {
|
|
14
|
+
id: ID.EnableExtension,
|
|
15
|
+
rules: {
|
|
16
|
+
// DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
|
|
17
17
|
"jsonc/array-bracket-newline": OFF /* DO NOT CHANGE */,
|
|
18
18
|
"jsonc/array-bracket-spacing": [
|
|
19
19
|
ERROR,
|
|
@@ -88,4 +88,4 @@ export const JsonEnableExtension = [
|
|
|
88
88
|
],
|
|
89
89
|
"jsonc/space-unary-ops": ERROR,
|
|
90
90
|
} as const,
|
|
91
|
-
|
|
91
|
+
} as const;
|
package/src/rules/json/enable.ts
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
OFF,
|
|
5
5
|
} from "../../_strings";
|
|
6
6
|
|
|
7
|
-
export const JsonEnable =
|
|
8
|
-
ID.Enable,
|
|
9
|
-
{
|
|
10
|
-
|
|
7
|
+
export const JsonEnable = {
|
|
8
|
+
id: ID.Enable,
|
|
9
|
+
rules: {
|
|
10
|
+
// DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
|
|
11
11
|
"jsonc/auto": OFF,
|
|
12
12
|
"jsonc/key-name-casing": OFF,
|
|
13
13
|
"jsonc/no-bigint-literals": ERROR,
|
|
@@ -32,4 +32,4 @@ export const JsonEnable = [
|
|
|
32
32
|
"jsonc/valid-json-number": ERROR,
|
|
33
33
|
"jsonc/vue-custom-block/no-parsing-error": ERROR,
|
|
34
34
|
} as const,
|
|
35
|
-
|
|
35
|
+
} as const;
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
always_multiline,
|
|
6
6
|
} from "../../_strings";
|
|
7
7
|
|
|
8
|
-
export const JsoncOverride =
|
|
9
|
-
ID.Override,
|
|
10
|
-
{
|
|
11
|
-
|
|
8
|
+
export const JsoncOverride = {
|
|
9
|
+
id: ID.Override,
|
|
10
|
+
rules: {
|
|
11
|
+
// DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
|
|
12
12
|
"jsonc/no-comments": OFF /* comments ARE allowed in JSONC */,
|
|
13
13
|
"jsonc/comma-dangle": [
|
|
14
14
|
ERROR,
|
|
15
15
|
always_multiline,
|
|
16
16
|
] /* trailing commas ARE allowed in JSONC */,
|
|
17
17
|
} as const,
|
|
18
|
-
|
|
18
|
+
} as const;
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
OFF,
|
|
4
4
|
} from "../../_strings";
|
|
5
5
|
|
|
6
|
-
export const MochaDisableTs =
|
|
7
|
-
ID.DisableTs,
|
|
8
|
-
{
|
|
9
|
-
|
|
6
|
+
export const MochaDisableTs = {
|
|
7
|
+
id: ID.DisableTs,
|
|
8
|
+
rules: {
|
|
9
|
+
// DOC: https://github.com/ihordiachenko/eslint-plugin-chai-friendly?tab=readme-ov-file#usage
|
|
10
10
|
"no-unused-expressions": OFF,
|
|
11
11
|
"@typescript-eslint/no-unused-expressions": OFF,
|
|
12
12
|
} as const,
|
|
13
|
-
|
|
13
|
+
} as const;
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
OFF,
|
|
5
5
|
} from "../../_strings";
|
|
6
6
|
|
|
7
|
-
export const MochaEnableChaiExpect =
|
|
8
|
-
`${ID.Enable}/chai/expect`,
|
|
9
|
-
{
|
|
10
|
-
|
|
7
|
+
export const MochaEnableChaiExpect = {
|
|
8
|
+
id: `${ID.Enable}/chai/expect`,
|
|
9
|
+
rules: {
|
|
10
|
+
// DOC: https://github.com/turbo87/eslint-plugin-chai-expect?tab=readme-ov-file#rules
|
|
11
11
|
"chai-expect/no-inner-compare": ERROR,
|
|
12
12
|
"chai-expect/no-inner-literal": ERROR,
|
|
13
13
|
"chai-expect/missing-assertion": ERROR,
|
|
14
14
|
"chai-expect/terminating-properties": OFF,
|
|
15
15
|
} as const,
|
|
16
|
-
|
|
16
|
+
} as const;
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
ERROR,
|
|
4
4
|
} from "../../_strings";
|
|
5
5
|
|
|
6
|
-
export const MochaEnableChai =
|
|
7
|
-
`${ID.Enable}/chai`,
|
|
8
|
-
{
|
|
6
|
+
export const MochaEnableChai = {
|
|
7
|
+
id: `${ID.Enable}/chai`,
|
|
8
|
+
rules: {
|
|
9
9
|
|
|
10
10
|
// DOC: https://github.com/ihordiachenko/eslint-plugin-chai-friendly?tab=readme-ov-file#usage
|
|
11
11
|
"chai-friendly/no-unused-expressions": [
|
|
@@ -18,4 +18,4 @@ export const MochaEnableChai = [
|
|
|
18
18
|
},
|
|
19
19
|
] /* TSLint */,
|
|
20
20
|
} as const,
|
|
21
|
-
|
|
21
|
+
} as const;
|