@eslinted/defaults 10.32.0-rc.0 → 10.32.0-rc.1
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 +8 -4
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/scopes/html/index.d.ts +8 -4
- package/dist/rules/scopes/html/index.d.ts.map +1 -1
- package/dist/rules/scopes/html/plugin/index.d.ts +8 -4
- package/dist/rules/scopes/html/plugin/index.d.ts.map +1 -1
- package/dist/rules/scopes/html/plugin/index.js +12 -8
- package/dist/rules/scopes/html/plugin/index.js.map +1 -1
- package/package.json +1 -1
- package/src/rules/scopes/html/plugin/index.ts +12 -8
package/dist/rules/index.d.ts
CHANGED
|
@@ -1361,13 +1361,13 @@ export declare const rules: {
|
|
|
1361
1361
|
html: {
|
|
1362
1362
|
id: "enable/plugin";
|
|
1363
1363
|
rules: {
|
|
1364
|
+
readonly "@html-eslint/max-element-depth": "off";
|
|
1364
1365
|
readonly "@html-eslint/no-duplicate-attrs": "error";
|
|
1365
1366
|
readonly "@html-eslint/no-duplicate-class": "error";
|
|
1366
1367
|
readonly "@html-eslint/no-duplicate-id": "error";
|
|
1367
|
-
readonly "@html-eslint/no-
|
|
1368
|
-
readonly skip: readonly [];
|
|
1369
|
-
}];
|
|
1368
|
+
readonly "@html-eslint/no-duplicate-in-head": "error";
|
|
1370
1369
|
readonly "@html-eslint/no-inline-styles": "off";
|
|
1370
|
+
readonly "@html-eslint/no-invalid-entity": "error";
|
|
1371
1371
|
readonly "@html-eslint/no-nested-interactive": "error";
|
|
1372
1372
|
readonly "@html-eslint/no-obsolete-tags": "error";
|
|
1373
1373
|
readonly "@html-eslint/no-restricted-attr-values": "off";
|
|
@@ -1396,6 +1396,8 @@ export declare const rules: {
|
|
|
1396
1396
|
readonly "@html-eslint/no-abstract-roles": "error";
|
|
1397
1397
|
readonly "@html-eslint/no-accesskey-attrs": "error";
|
|
1398
1398
|
readonly "@html-eslint/no-aria-hidden-body": "error";
|
|
1399
|
+
readonly "@html-eslint/no-aria-hidden-on-focusable": "error";
|
|
1400
|
+
readonly "@html-eslint/no-empty-headings": "error";
|
|
1399
1401
|
readonly "@html-eslint/no-heading-inside-button": "error";
|
|
1400
1402
|
readonly "@html-eslint/no-invalid-role": "error";
|
|
1401
1403
|
readonly "@html-eslint/no-non-scalable-viewport": "error";
|
|
@@ -1419,13 +1421,15 @@ export declare const rules: {
|
|
|
1419
1421
|
readonly "@html-eslint/id-naming-convention": "off";
|
|
1420
1422
|
readonly "@html-eslint/indent": readonly ["error", 2];
|
|
1421
1423
|
readonly "@html-eslint/lowercase": "error";
|
|
1422
|
-
readonly "@html-eslint/max-element-depth": "off";
|
|
1423
1424
|
readonly "@html-eslint/no-extra-spacing-attrs": readonly ["error", {
|
|
1424
1425
|
readonly enforceBeforeSelfClose: false;
|
|
1425
1426
|
readonly disallowMissing: true;
|
|
1426
1427
|
readonly disallowTabs: true;
|
|
1427
1428
|
readonly disallowInAssignment: true;
|
|
1428
1429
|
}];
|
|
1430
|
+
readonly "@html-eslint/no-extra-spacing-text": readonly ["error", {
|
|
1431
|
+
readonly skip: readonly [];
|
|
1432
|
+
}];
|
|
1429
1433
|
readonly "@html-eslint/no-multiple-empty-lines": readonly ["error", {
|
|
1430
1434
|
readonly max: 1;
|
|
1431
1435
|
}];
|
|
@@ -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"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
id: "enable/plugin";
|
|
3
3
|
rules: {
|
|
4
|
+
readonly "@html-eslint/max-element-depth": "off";
|
|
4
5
|
readonly "@html-eslint/no-duplicate-attrs": "error";
|
|
5
6
|
readonly "@html-eslint/no-duplicate-class": "error";
|
|
6
7
|
readonly "@html-eslint/no-duplicate-id": "error";
|
|
7
|
-
readonly "@html-eslint/no-
|
|
8
|
-
readonly skip: readonly [];
|
|
9
|
-
}];
|
|
8
|
+
readonly "@html-eslint/no-duplicate-in-head": "error";
|
|
10
9
|
readonly "@html-eslint/no-inline-styles": "off";
|
|
10
|
+
readonly "@html-eslint/no-invalid-entity": "error";
|
|
11
11
|
readonly "@html-eslint/no-nested-interactive": "error";
|
|
12
12
|
readonly "@html-eslint/no-obsolete-tags": "error";
|
|
13
13
|
readonly "@html-eslint/no-restricted-attr-values": "off";
|
|
@@ -36,6 +36,8 @@ declare const _default: {
|
|
|
36
36
|
readonly "@html-eslint/no-abstract-roles": "error";
|
|
37
37
|
readonly "@html-eslint/no-accesskey-attrs": "error";
|
|
38
38
|
readonly "@html-eslint/no-aria-hidden-body": "error";
|
|
39
|
+
readonly "@html-eslint/no-aria-hidden-on-focusable": "error";
|
|
40
|
+
readonly "@html-eslint/no-empty-headings": "error";
|
|
39
41
|
readonly "@html-eslint/no-heading-inside-button": "error";
|
|
40
42
|
readonly "@html-eslint/no-invalid-role": "error";
|
|
41
43
|
readonly "@html-eslint/no-non-scalable-viewport": "error";
|
|
@@ -59,13 +61,15 @@ declare const _default: {
|
|
|
59
61
|
readonly "@html-eslint/id-naming-convention": "off";
|
|
60
62
|
readonly "@html-eslint/indent": readonly ["error", 2];
|
|
61
63
|
readonly "@html-eslint/lowercase": "error";
|
|
62
|
-
readonly "@html-eslint/max-element-depth": "off";
|
|
63
64
|
readonly "@html-eslint/no-extra-spacing-attrs": readonly ["error", {
|
|
64
65
|
readonly enforceBeforeSelfClose: false;
|
|
65
66
|
readonly disallowMissing: true;
|
|
66
67
|
readonly disallowTabs: true;
|
|
67
68
|
readonly disallowInAssignment: true;
|
|
68
69
|
}];
|
|
70
|
+
readonly "@html-eslint/no-extra-spacing-text": readonly ["error", {
|
|
71
|
+
readonly skip: readonly [];
|
|
72
|
+
}];
|
|
69
73
|
readonly "@html-eslint/no-multiple-empty-lines": readonly ["error", {
|
|
70
74
|
readonly max: 1;
|
|
71
75
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/html/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/html/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAAkC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const HtmlEnablePlugin: {
|
|
2
2
|
id: "enable/plugin";
|
|
3
3
|
rules: {
|
|
4
|
+
readonly "@html-eslint/max-element-depth": "off";
|
|
4
5
|
readonly "@html-eslint/no-duplicate-attrs": "error";
|
|
5
6
|
readonly "@html-eslint/no-duplicate-class": "error";
|
|
6
7
|
readonly "@html-eslint/no-duplicate-id": "error";
|
|
7
|
-
readonly "@html-eslint/no-
|
|
8
|
-
readonly skip: readonly [];
|
|
9
|
-
}];
|
|
8
|
+
readonly "@html-eslint/no-duplicate-in-head": "error";
|
|
10
9
|
readonly "@html-eslint/no-inline-styles": "off";
|
|
10
|
+
readonly "@html-eslint/no-invalid-entity": "error";
|
|
11
11
|
readonly "@html-eslint/no-nested-interactive": "error";
|
|
12
12
|
readonly "@html-eslint/no-obsolete-tags": "error";
|
|
13
13
|
readonly "@html-eslint/no-restricted-attr-values": "off";
|
|
@@ -36,6 +36,8 @@ export declare const HtmlEnablePlugin: {
|
|
|
36
36
|
readonly "@html-eslint/no-abstract-roles": "error";
|
|
37
37
|
readonly "@html-eslint/no-accesskey-attrs": "error";
|
|
38
38
|
readonly "@html-eslint/no-aria-hidden-body": "error";
|
|
39
|
+
readonly "@html-eslint/no-aria-hidden-on-focusable": "error";
|
|
40
|
+
readonly "@html-eslint/no-empty-headings": "error";
|
|
39
41
|
readonly "@html-eslint/no-heading-inside-button": "error";
|
|
40
42
|
readonly "@html-eslint/no-invalid-role": "error";
|
|
41
43
|
readonly "@html-eslint/no-non-scalable-viewport": "error";
|
|
@@ -59,13 +61,15 @@ export declare const HtmlEnablePlugin: {
|
|
|
59
61
|
readonly "@html-eslint/id-naming-convention": "off";
|
|
60
62
|
readonly "@html-eslint/indent": readonly ["error", 2];
|
|
61
63
|
readonly "@html-eslint/lowercase": "error";
|
|
62
|
-
readonly "@html-eslint/max-element-depth": "off";
|
|
63
64
|
readonly "@html-eslint/no-extra-spacing-attrs": readonly ["error", {
|
|
64
65
|
readonly enforceBeforeSelfClose: false;
|
|
65
66
|
readonly disallowMissing: true;
|
|
66
67
|
readonly disallowTabs: true;
|
|
67
68
|
readonly disallowInAssignment: true;
|
|
68
69
|
}];
|
|
70
|
+
readonly "@html-eslint/no-extra-spacing-text": readonly ["error", {
|
|
71
|
+
readonly skip: readonly [];
|
|
72
|
+
}];
|
|
69
73
|
readonly "@html-eslint/no-multiple-empty-lines": readonly ["error", {
|
|
70
74
|
readonly max: 1;
|
|
71
75
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/rules/scopes/html/plugin/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/rules/scopes/html/plugin/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4H5B,CAAC"}
|
|
@@ -4,16 +4,13 @@ export const HtmlEnablePlugin = {
|
|
|
4
4
|
rules: {
|
|
5
5
|
// #region BEST PRACTICE
|
|
6
6
|
// DOC: https://html-eslint.org/docs/rules#best-practice
|
|
7
|
+
"@html-eslint/max-element-depth": OFF /* @preference: simply do not care */,
|
|
7
8
|
"@html-eslint/no-duplicate-attrs": ON,
|
|
8
9
|
"@html-eslint/no-duplicate-class": ON,
|
|
9
10
|
"@html-eslint/no-duplicate-id": ON,
|
|
10
|
-
"@html-eslint/no-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
skip: [],
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
"@html-eslint/no-inline-styles": OFF /* @CONFLICT: breaks Svele app.html */,
|
|
11
|
+
"@html-eslint/no-duplicate-in-head": ON,
|
|
12
|
+
"@html-eslint/no-inline-styles": OFF /* @CONFLICT: breaks Svelte app.html */,
|
|
13
|
+
"@html-eslint/no-invalid-entity": ON,
|
|
17
14
|
"@html-eslint/no-nested-interactive": ON,
|
|
18
15
|
"@html-eslint/no-obsolete-tags": ON,
|
|
19
16
|
"@html-eslint/no-restricted-attr-values": OFF,
|
|
@@ -54,6 +51,8 @@ export const HtmlEnablePlugin = {
|
|
|
54
51
|
"@html-eslint/no-abstract-roles": ON,
|
|
55
52
|
"@html-eslint/no-accesskey-attrs": ON,
|
|
56
53
|
"@html-eslint/no-aria-hidden-body": ON,
|
|
54
|
+
"@html-eslint/no-aria-hidden-on-focusable": ON,
|
|
55
|
+
"@html-eslint/no-empty-headings": ON,
|
|
57
56
|
"@html-eslint/no-heading-inside-button": ON,
|
|
58
57
|
"@html-eslint/no-invalid-role": ON,
|
|
59
58
|
"@html-eslint/no-non-scalable-viewport": ON,
|
|
@@ -92,7 +91,6 @@ export const HtmlEnablePlugin = {
|
|
|
92
91
|
2,
|
|
93
92
|
] /* @CONFIGURE: indents for specific child tags: https://html-eslint.org/docs/rules/indent */,
|
|
94
93
|
"@html-eslint/lowercase": ON,
|
|
95
|
-
"@html-eslint/max-element-depth": OFF /* @preference: simply do not care */,
|
|
96
94
|
"@html-eslint/no-extra-spacing-attrs": [
|
|
97
95
|
ON,
|
|
98
96
|
{
|
|
@@ -102,6 +100,12 @@ export const HtmlEnablePlugin = {
|
|
|
102
100
|
disallowInAssignment: true,
|
|
103
101
|
},
|
|
104
102
|
],
|
|
103
|
+
"@html-eslint/no-extra-spacing-text": [
|
|
104
|
+
ON,
|
|
105
|
+
{
|
|
106
|
+
skip: [],
|
|
107
|
+
},
|
|
108
|
+
],
|
|
105
109
|
"@html-eslint/no-multiple-empty-lines": [
|
|
106
110
|
ON,
|
|
107
111
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/rules/scopes/html/plugin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,EAAE,EACF,GAAG,EACH,KAAK,GACN,MAAM,kBAAkB,CAAC;AAE1B,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM;IAC3B,KAAK,EAAE;QACP,wBAAwB;QACxB,wDAAwD;QACtD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/rules/scopes/html/plugin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,EAAE,EACF,GAAG,EACH,KAAK,GACN,MAAM,kBAAkB,CAAC;AAE1B,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM;IAC3B,KAAK,EAAE;QACP,wBAAwB;QACxB,wDAAwD;QACtD,gCAAgC,EAAE,GAAG,CAAC,qCAAqC;QAC3E,iCAAiC,EAAE,EAAE;QACrC,iCAAiC,EAAE,EAAE;QACrC,8BAA8B,EAAE,EAAE;QAClC,mCAAmC,EAAE,EAAE;QACvC,+BAA+B,EAAE,GAAG,CAAC,uCAAuC;QAC5E,gCAAgC,EAAE,EAAE;QACpC,oCAAoC,EAAE,EAAE;QACxC,+BAA+B,EAAE,EAAE;QACnC,wCAAwC,EAAE,GAAG;QAC7C,kCAAkC,EAAE,GAAG;QACvC,mCAAmC,EAAE,GAAG;QACxC,8BAA8B,EAAE,EAAE;QAClC,2BAA2B,EAAE,GAAG,CAAC,wCAAwC;QACzE,4BAA4B,EAAE,GAAG;QACjC,kCAAkC,EAAE,EAAE;QACtC,mCAAmC,EAAE;YACnC,EAAE;YACF;gBACE,WAAW,EAAE,KAAK;gBAClB,yBAAyB,EAAE,CAAC,EAAE,CAAC,CAAC,0CAA0C;aAC3E;SACF;QACD,8BAA8B,EAAE,EAAE;QAClC,oCAAoC,EAAE,GAAG,CAAC,kCAAkC;QAC5E,mCAAmC,EAAE,EAAE;QACvC,mCAAmC,EAAE,EAAE;QACvC,2BAA2B,EAAE;YAC3B,EAAE;YACF;gBAC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AE,IAAI;gBAClB,oBAAoB,EAAE,IAAI;aAC3B;SACF;QACD,oCAAoC,EAAE;YACpC,EAAE;YACF;gBACE,IAAI,EAAE,EAAE;aACT;SACF;QACD,sCAAsC,EAAE;YACtC,EAAE;YACF;gBACE,GAAG,EAAE,CAAC;aACP;SACF;QACD,iCAAiC,EAAE,EAAE;QACrC,qBAAqB,EAAE;YACrB,EAAE;YACF,QAAQ;SACT;QACD,yBAAyB,EAAE,GAAG;QAC9B,aAAa;KACL;CACX,CAAC"}
|
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.32.0-rc.
|
|
6
|
+
"version": "10.32.0-rc.1",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"private": false,
|
|
9
9
|
"engineStrict": true,
|
|
@@ -10,16 +10,13 @@ export const HtmlEnablePlugin = {
|
|
|
10
10
|
rules: {
|
|
11
11
|
// #region BEST PRACTICE
|
|
12
12
|
// DOC: https://html-eslint.org/docs/rules#best-practice
|
|
13
|
+
"@html-eslint/max-element-depth": OFF /* @preference: simply do not care */,
|
|
13
14
|
"@html-eslint/no-duplicate-attrs": ON,
|
|
14
15
|
"@html-eslint/no-duplicate-class": ON,
|
|
15
16
|
"@html-eslint/no-duplicate-id": ON,
|
|
16
|
-
"@html-eslint/no-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
skip: [],
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
"@html-eslint/no-inline-styles": OFF /* @CONFLICT: breaks Svele app.html */,
|
|
17
|
+
"@html-eslint/no-duplicate-in-head": ON,
|
|
18
|
+
"@html-eslint/no-inline-styles": OFF /* @CONFLICT: breaks Svelte app.html */,
|
|
19
|
+
"@html-eslint/no-invalid-entity": ON,
|
|
23
20
|
"@html-eslint/no-nested-interactive": ON,
|
|
24
21
|
"@html-eslint/no-obsolete-tags": ON,
|
|
25
22
|
"@html-eslint/no-restricted-attr-values": OFF,
|
|
@@ -62,6 +59,8 @@ export const HtmlEnablePlugin = {
|
|
|
62
59
|
"@html-eslint/no-abstract-roles": ON,
|
|
63
60
|
"@html-eslint/no-accesskey-attrs": ON,
|
|
64
61
|
"@html-eslint/no-aria-hidden-body": ON,
|
|
62
|
+
"@html-eslint/no-aria-hidden-on-focusable": ON,
|
|
63
|
+
"@html-eslint/no-empty-headings": ON,
|
|
65
64
|
"@html-eslint/no-heading-inside-button": ON,
|
|
66
65
|
"@html-eslint/no-invalid-role": ON,
|
|
67
66
|
"@html-eslint/no-non-scalable-viewport": ON,
|
|
@@ -101,7 +100,6 @@ export const HtmlEnablePlugin = {
|
|
|
101
100
|
2,
|
|
102
101
|
] /* @CONFIGURE: indents for specific child tags: https://html-eslint.org/docs/rules/indent */,
|
|
103
102
|
"@html-eslint/lowercase": ON,
|
|
104
|
-
"@html-eslint/max-element-depth": OFF /* @preference: simply do not care */,
|
|
105
103
|
"@html-eslint/no-extra-spacing-attrs": [
|
|
106
104
|
ON,
|
|
107
105
|
{
|
|
@@ -111,6 +109,12 @@ export const HtmlEnablePlugin = {
|
|
|
111
109
|
disallowInAssignment: true,
|
|
112
110
|
},
|
|
113
111
|
],
|
|
112
|
+
"@html-eslint/no-extra-spacing-text": [
|
|
113
|
+
ON,
|
|
114
|
+
{
|
|
115
|
+
skip: [],
|
|
116
|
+
},
|
|
117
|
+
],
|
|
114
118
|
"@html-eslint/no-multiple-empty-lines": [
|
|
115
119
|
ON,
|
|
116
120
|
{
|