linted 18.2.2 → 19.0.0-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/rules/html/enable.d.ts +1 -6
- package/dist/rules/html/enable.d.ts.map +1 -1
- package/dist/rules/html/enable.js +90 -11
- package/dist/rules/html/enable.js.map +1 -1
- package/dist/rules/html/index.d.ts +1 -6
- package/dist/rules/html/index.d.ts.map +1 -1
- package/dist/rules/html/index.js +1 -2
- package/dist/rules/html/index.js.map +1 -1
- package/dist/rules/index.d.ts +2 -12
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/mocha/index.d.ts +1 -6
- package/dist/rules/mocha/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/rules/html/enable.ts +115 -11
- package/src/rules/html/index.ts +1 -2
- package/src/rules/js/enable.ts +6 -6
- package/src/rules/svelte/enable.ts +12 -12
- package/dist/rules/html/enable_recommended.d.ts +0 -3
- package/dist/rules/html/enable_recommended.d.ts.map +0 -1
- package/dist/rules/html/enable_recommended.js +0 -8
- package/dist/rules/html/enable_recommended.js.map +0 -1
- package/src/rules/html/enable_recommended.ts +0 -9
@@ -1,8 +1,3 @@
|
|
1
|
-
declare const _default: readonly ["enable",
|
2
|
-
readonly "@html-eslint/require-title": "off";
|
3
|
-
readonly "@html-eslint/element-newline": readonly ["error", {
|
4
|
-
readonly skip: readonly ["head"];
|
5
|
-
}];
|
6
|
-
}];
|
1
|
+
declare const _default: readonly ["enable", Partial<Record<"@html-eslint/require-lang" | "@html-eslint/require-img-alt" | "@html-eslint/require-doctype" | "@html-eslint/require-title" | "@html-eslint/no-duplicate-id" | "@html-eslint/no-inline-styles" | "@html-eslint/no-multiple-h1" | "@html-eslint/no-extra-spacing-attrs" | "@html-eslint/no-extra-spacing-text" | "@html-eslint/attrs-newline" | "@html-eslint/element-newline" | "@html-eslint/no-skip-heading-levels" | "@html-eslint/require-li-container" | "@html-eslint/indent" | "@html-eslint/quotes" | "@html-eslint/id-naming-convention" | "@html-eslint/no-obsolete-tags" | "@html-eslint/require-attrs" | "@html-eslint/require-closing-tags" | "@html-eslint/require-meta-description" | "@html-eslint/require-frame-title" | "@html-eslint/no-non-scalable-viewport" | "@html-eslint/no-positive-tabindex" | "@html-eslint/require-meta-viewport" | "@html-eslint/require-meta-charset" | "@html-eslint/no-target-blank" | "@html-eslint/no-duplicate-attrs" | "@html-eslint/no-abstract-roles" | "@html-eslint/require-button-type" | "@html-eslint/no-aria-hidden-body" | "@html-eslint/no-multiple-empty-lines" | "@html-eslint/no-accesskey-attrs" | "@html-eslint/no-restricted-attrs" | "@html-eslint/no-trailing-spaces" | "@html-eslint/no-restricted-attr-values" | "@html-eslint/no-script-style-type" | "@html-eslint/lowercase" | "@html-eslint/require-open-graph-protocol" | "@html-eslint/sort-attrs", unknown>>];
|
7
2
|
export default _default;
|
8
3
|
//# sourceMappingURL=enable.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../src/rules/html/enable.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../src/rules/html/enable.ts"],"names":[],"mappings":";AAoHA,wBAGW"}
|
@@ -1,15 +1,94 @@
|
|
1
|
-
import { enable,
|
2
|
-
const
|
1
|
+
import { enable, ERROR, OFF, Never, } from "../../_strings/index.js";
|
2
|
+
const rules = {
|
3
|
+
"@html-eslint/no-duplicate-attrs": ERROR,
|
4
|
+
"@html-eslint/no-duplicate-id": ERROR,
|
5
|
+
"@html-eslint/no-extra-spacing-text": [
|
6
|
+
ERROR,
|
7
|
+
{
|
8
|
+
skip: [],
|
9
|
+
},
|
10
|
+
],
|
11
|
+
"@html-eslint/no-inline-styles": ERROR,
|
12
|
+
"@html-eslint/no-obsolete-tags": ERROR,
|
13
|
+
"@html-eslint/no-restricted-attr-values": OFF,
|
14
|
+
"@html-eslint/no-restricted-attrs": OFF,
|
15
|
+
"@html-eslint/no-script-style-type": OFF,
|
16
|
+
"@html-eslint/no-target-blank": ERROR,
|
17
|
+
"@html-eslint/require-attrs": OFF,
|
18
|
+
"@html-eslint/require-button-type": ERROR,
|
19
|
+
"@html-eslint/require-closing-tags": [
|
20
|
+
ERROR,
|
21
|
+
{
|
22
|
+
selfClosing: Never,
|
23
|
+
selfClosingCustomPatterns: [""],
|
24
|
+
},
|
25
|
+
],
|
26
|
+
"@html-eslint/require-doctype": ERROR,
|
27
|
+
"@html-eslint/require-li-container": ERROR,
|
28
|
+
"@html-eslint/require-meta-charset": ERROR,
|
29
|
+
"@html-eslint/no-multiple-h1": ERROR,
|
30
|
+
"@html-eslint/require-lang": ERROR,
|
31
|
+
"@html-eslint/require-meta-description": OFF,
|
32
|
+
"@html-eslint/require-open-graph-protocol": OFF,
|
33
|
+
"@html-eslint/require-title": OFF,
|
34
|
+
"@html-eslint/no-abstract-roles": ERROR,
|
35
|
+
"@html-eslint/no-accesskey-attrs": ERROR,
|
36
|
+
"@html-eslint/no-aria-hidden-body": ERROR,
|
37
|
+
"@html-eslint/no-non-scalable-viewport": ERROR,
|
38
|
+
"@html-eslint/no-positive-tabindex": ERROR,
|
39
|
+
"@html-eslint/no-skip-heading-levels": ERROR,
|
40
|
+
"@html-eslint/require-frame-title": ERROR,
|
41
|
+
"@html-eslint/require-img-alt": [
|
42
|
+
ERROR,
|
43
|
+
{
|
44
|
+
substitute: [],
|
45
|
+
},
|
46
|
+
],
|
47
|
+
"@html-eslint/require-meta-viewport": ERROR,
|
48
|
+
"@html-eslint/attrs-newline": [
|
49
|
+
ERROR,
|
50
|
+
{
|
51
|
+
ifAttrsMoreThan: 0,
|
52
|
+
closeStyle: "sameline",
|
53
|
+
},
|
54
|
+
],
|
55
|
+
"@html-eslint/element-newline": [
|
56
|
+
ERROR,
|
57
|
+
{
|
58
|
+
skip: ["head"],
|
59
|
+
inline: ["$inline"],
|
60
|
+
},
|
61
|
+
],
|
62
|
+
"@html-eslint/id-naming-convention": OFF,
|
63
|
+
"@html-eslint/indent": [
|
64
|
+
ERROR,
|
65
|
+
2,
|
66
|
+
],
|
67
|
+
"@html-eslint/lowercase": ERROR,
|
68
|
+
"@html-eslint/no-extra-spacing-attrs": [
|
69
|
+
ERROR,
|
70
|
+
{
|
71
|
+
enforceBeforeSelfClose: true,
|
72
|
+
disallowMissing: true,
|
73
|
+
disallowTabs: true,
|
74
|
+
disallowInAssignment: true,
|
75
|
+
},
|
76
|
+
],
|
77
|
+
"@html-eslint/no-multiple-empty-lines": [
|
78
|
+
ERROR,
|
79
|
+
{
|
80
|
+
max: 1,
|
81
|
+
},
|
82
|
+
],
|
83
|
+
"@html-eslint/no-trailing-spaces": ERROR,
|
84
|
+
"@html-eslint/quotes": [
|
85
|
+
ERROR,
|
86
|
+
"double",
|
87
|
+
],
|
88
|
+
"@html-eslint/sort-attrs": OFF,
|
89
|
+
};
|
3
90
|
export default [
|
4
91
|
enable,
|
5
|
-
|
6
|
-
"@html-eslint/require-title": OFF,
|
7
|
-
"@html-eslint/element-newline": [
|
8
|
-
ERROR,
|
9
|
-
{
|
10
|
-
skip: ["head"],
|
11
|
-
},
|
12
|
-
],
|
13
|
-
},
|
92
|
+
rules,
|
14
93
|
];
|
15
94
|
//# sourceMappingURL=enable.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/html/enable.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/html/enable.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EACN,KAAK,EACL,GAAG,EACH,KAAK,GACN,MAAM,gBAAgB,CAAC;AAExB,MAAM,KAAK,GAAkE;IAG3E,iCAAiC,EAAE,KAAK;IACxC,8BAA8B,EAAE,KAAK;IACrC,oCAAoC,EAAE;QACpC,KAAK;QACL;YACE,IAAI,EAAE,EAAE;SACT;KACF;IACD,+BAA+B,EAAE,KAAK;IACtC,+BAA+B,EAAE,KAAK;IACtC,wCAAwC,EAAE,GAAG;IAC7C,kCAAk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L;YACE,GAAG,EAAE,CAAC;SACP;KACF;IACD,iCAAiC,EAAE,KAAK;IACxC,qBAAqB,EAAE;QACrB,KAAK;QACL,QAAQ;KACT;IACD,yBAAyB,EAAE,GAAG;CACtB,CAAC;AAEX,eAAe;IACb,MAAM;IACN,KAAK;CACG,CAAC"}
|
@@ -1,8 +1,3 @@
|
|
1
|
-
declare const _default: (readonly ["
|
2
|
-
readonly "@html-eslint/require-title": "off";
|
3
|
-
readonly "@html-eslint/element-newline": readonly ["error", {
|
4
|
-
readonly skip: readonly ["head"];
|
5
|
-
}];
|
6
|
-
}])[];
|
1
|
+
declare const _default: (readonly ["enable", Partial<Record<"@html-eslint/require-lang" | "@html-eslint/require-img-alt" | "@html-eslint/require-doctype" | "@html-eslint/require-title" | "@html-eslint/no-duplicate-id" | "@html-eslint/no-inline-styles" | "@html-eslint/no-multiple-h1" | "@html-eslint/no-extra-spacing-attrs" | "@html-eslint/no-extra-spacing-text" | "@html-eslint/attrs-newline" | "@html-eslint/element-newline" | "@html-eslint/no-skip-heading-levels" | "@html-eslint/require-li-container" | "@html-eslint/indent" | "@html-eslint/quotes" | "@html-eslint/id-naming-convention" | "@html-eslint/no-obsolete-tags" | "@html-eslint/require-attrs" | "@html-eslint/require-closing-tags" | "@html-eslint/require-meta-description" | "@html-eslint/require-frame-title" | "@html-eslint/no-non-scalable-viewport" | "@html-eslint/no-positive-tabindex" | "@html-eslint/require-meta-viewport" | "@html-eslint/require-meta-charset" | "@html-eslint/no-target-blank" | "@html-eslint/no-duplicate-attrs" | "@html-eslint/no-abstract-roles" | "@html-eslint/require-button-type" | "@html-eslint/no-aria-hidden-body" | "@html-eslint/no-multiple-empty-lines" | "@html-eslint/no-accesskey-attrs" | "@html-eslint/no-restricted-attrs" | "@html-eslint/no-trailing-spaces" | "@html-eslint/no-restricted-attr-values" | "@html-eslint/no-script-style-type" | "@html-eslint/lowercase" | "@html-eslint/require-open-graph-protocol" | "@html-eslint/sort-attrs", unknown>>])[];
|
7
2
|
export default _default;
|
8
3
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/html/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/html/index.ts"],"names":[],"mappings":";AAEA,wBAAwB"}
|
package/dist/rules/html/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAe,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/rules/index.d.ts
CHANGED
@@ -3161,18 +3161,8 @@ declare const _default: {
|
|
3161
3161
|
}];
|
3162
3162
|
readonly "svelte/system": "error";
|
3163
3163
|
}])[];
|
3164
|
-
mocha: (readonly ["recommended", Record<string, "off">] | readonly ["enable",
|
3165
|
-
|
3166
|
-
readonly "@html-eslint/element-newline": readonly ["error", {
|
3167
|
-
readonly skip: readonly ["head"];
|
3168
|
-
}];
|
3169
|
-
}])[];
|
3170
|
-
html: (readonly ["recommended", Record<string, "off">] | readonly ["enable", {
|
3171
|
-
readonly "@html-eslint/require-title": "off";
|
3172
|
-
readonly "@html-eslint/element-newline": readonly ["error", {
|
3173
|
-
readonly skip: readonly ["head"];
|
3174
|
-
}];
|
3175
|
-
}])[];
|
3164
|
+
mocha: (readonly ["recommended", Record<string, "off">] | readonly ["enable", Partial<Record<"@html-eslint/require-lang" | "@html-eslint/require-img-alt" | "@html-eslint/require-doctype" | "@html-eslint/require-title" | "@html-eslint/no-duplicate-id" | "@html-eslint/no-inline-styles" | "@html-eslint/no-multiple-h1" | "@html-eslint/no-extra-spacing-attrs" | "@html-eslint/no-extra-spacing-text" | "@html-eslint/attrs-newline" | "@html-eslint/element-newline" | "@html-eslint/no-skip-heading-levels" | "@html-eslint/require-li-container" | "@html-eslint/indent" | "@html-eslint/quotes" | "@html-eslint/id-naming-convention" | "@html-eslint/no-obsolete-tags" | "@html-eslint/require-attrs" | "@html-eslint/require-closing-tags" | "@html-eslint/require-meta-description" | "@html-eslint/require-frame-title" | "@html-eslint/no-non-scalable-viewport" | "@html-eslint/no-positive-tabindex" | "@html-eslint/require-meta-viewport" | "@html-eslint/require-meta-charset" | "@html-eslint/no-target-blank" | "@html-eslint/no-duplicate-attrs" | "@html-eslint/no-abstract-roles" | "@html-eslint/require-button-type" | "@html-eslint/no-aria-hidden-body" | "@html-eslint/no-multiple-empty-lines" | "@html-eslint/no-accesskey-attrs" | "@html-eslint/no-restricted-attrs" | "@html-eslint/no-trailing-spaces" | "@html-eslint/no-restricted-attr-values" | "@html-eslint/no-script-style-type" | "@html-eslint/lowercase" | "@html-eslint/require-open-graph-protocol" | "@html-eslint/sort-attrs", unknown>>])[];
|
3165
|
+
html: (readonly ["enable", Partial<Record<"@html-eslint/require-lang" | "@html-eslint/require-img-alt" | "@html-eslint/require-doctype" | "@html-eslint/require-title" | "@html-eslint/no-duplicate-id" | "@html-eslint/no-inline-styles" | "@html-eslint/no-multiple-h1" | "@html-eslint/no-extra-spacing-attrs" | "@html-eslint/no-extra-spacing-text" | "@html-eslint/attrs-newline" | "@html-eslint/element-newline" | "@html-eslint/no-skip-heading-levels" | "@html-eslint/require-li-container" | "@html-eslint/indent" | "@html-eslint/quotes" | "@html-eslint/id-naming-convention" | "@html-eslint/no-obsolete-tags" | "@html-eslint/require-attrs" | "@html-eslint/require-closing-tags" | "@html-eslint/require-meta-description" | "@html-eslint/require-frame-title" | "@html-eslint/no-non-scalable-viewport" | "@html-eslint/no-positive-tabindex" | "@html-eslint/require-meta-viewport" | "@html-eslint/require-meta-charset" | "@html-eslint/no-target-blank" | "@html-eslint/no-duplicate-attrs" | "@html-eslint/no-abstract-roles" | "@html-eslint/require-button-type" | "@html-eslint/no-aria-hidden-body" | "@html-eslint/no-multiple-empty-lines" | "@html-eslint/no-accesskey-attrs" | "@html-eslint/no-restricted-attrs" | "@html-eslint/no-trailing-spaces" | "@html-eslint/no-restricted-attr-values" | "@html-eslint/no-script-style-type" | "@html-eslint/lowercase" | "@html-eslint/require-open-graph-protocol" | "@html-eslint/sort-attrs", unknown>>])[];
|
3176
3166
|
json: (readonly ["enable-extend", {
|
3177
3167
|
readonly "jsonc/array-bracket-newline": "off";
|
3178
3168
|
readonly "jsonc/array-bracket-spacing": readonly ["error", "never", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBASE"}
|
@@ -1,8 +1,3 @@
|
|
1
|
-
declare const _default: (readonly ["recommended", Record<string, "off">] | readonly ["enable",
|
2
|
-
readonly "@html-eslint/require-title": "off";
|
3
|
-
readonly "@html-eslint/element-newline": readonly ["error", {
|
4
|
-
readonly skip: readonly ["head"];
|
5
|
-
}];
|
6
|
-
}])[];
|
1
|
+
declare const _default: (readonly ["recommended", Record<string, "off">] | readonly ["enable", Partial<Record<"@html-eslint/require-lang" | "@html-eslint/require-img-alt" | "@html-eslint/require-doctype" | "@html-eslint/require-title" | "@html-eslint/no-duplicate-id" | "@html-eslint/no-inline-styles" | "@html-eslint/no-multiple-h1" | "@html-eslint/no-extra-spacing-attrs" | "@html-eslint/no-extra-spacing-text" | "@html-eslint/attrs-newline" | "@html-eslint/element-newline" | "@html-eslint/no-skip-heading-levels" | "@html-eslint/require-li-container" | "@html-eslint/indent" | "@html-eslint/quotes" | "@html-eslint/id-naming-convention" | "@html-eslint/no-obsolete-tags" | "@html-eslint/require-attrs" | "@html-eslint/require-closing-tags" | "@html-eslint/require-meta-description" | "@html-eslint/require-frame-title" | "@html-eslint/no-non-scalable-viewport" | "@html-eslint/no-positive-tabindex" | "@html-eslint/require-meta-viewport" | "@html-eslint/require-meta-charset" | "@html-eslint/no-target-blank" | "@html-eslint/no-duplicate-attrs" | "@html-eslint/no-abstract-roles" | "@html-eslint/require-button-type" | "@html-eslint/no-aria-hidden-body" | "@html-eslint/no-multiple-empty-lines" | "@html-eslint/no-accesskey-attrs" | "@html-eslint/no-restricted-attrs" | "@html-eslint/no-trailing-spaces" | "@html-eslint/no-restricted-attr-values" | "@html-eslint/no-script-style-type" | "@html-eslint/lowercase" | "@html-eslint/require-open-graph-protocol" | "@html-eslint/sort-attrs", unknown>>])[];
|
7
2
|
export default _default;
|
8
3
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/mocha/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/mocha/index.ts"],"names":[],"mappings":";AAGA,wBAAqC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"_schemaVersion": "20.18.0",
|
3
3
|
"name": "linted",
|
4
|
-
"version": "
|
4
|
+
"version": "19.0.0-rc.0",
|
5
5
|
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
6
6
|
"keywords": [
|
7
7
|
"eslint",
|
package/src/rules/html/enable.ts
CHANGED
@@ -1,16 +1,120 @@
|
|
1
|
-
import
|
1
|
+
import type * as Rule from "@html-eslint/eslint-plugin/types/rules";
|
2
|
+
import {
|
3
|
+
enable,
|
4
|
+
ERROR,
|
5
|
+
OFF,
|
6
|
+
Never,
|
7
|
+
} from "../../_strings";
|
8
|
+
|
9
|
+
const rules: Partial<Record<`@html-eslint/${keyof typeof Rule}`, unknown>> = {
|
10
|
+
// #region BEST PRACTICE
|
11
|
+
// https://html-eslint.org/docs/rules#best-practice
|
12
|
+
"@html-eslint/no-duplicate-attrs": ERROR,
|
13
|
+
"@html-eslint/no-duplicate-id": ERROR,
|
14
|
+
"@html-eslint/no-extra-spacing-text": [
|
15
|
+
ERROR,
|
16
|
+
{
|
17
|
+
skip: [],
|
18
|
+
},
|
19
|
+
],
|
20
|
+
"@html-eslint/no-inline-styles": ERROR,
|
21
|
+
"@html-eslint/no-obsolete-tags": ERROR,
|
22
|
+
"@html-eslint/no-restricted-attr-values": OFF,
|
23
|
+
"@html-eslint/no-restricted-attrs": OFF,
|
24
|
+
"@html-eslint/no-script-style-type": OFF,
|
25
|
+
"@html-eslint/no-target-blank": ERROR,
|
26
|
+
"@html-eslint/require-attrs": OFF,
|
27
|
+
"@html-eslint/require-button-type": ERROR,
|
28
|
+
"@html-eslint/require-closing-tags": [
|
29
|
+
ERROR,
|
30
|
+
{
|
31
|
+
selfClosing: Never,
|
32
|
+
selfClosingCustomPatterns: [""] /* regex[], intention: any custom pattern is allowed */,
|
33
|
+
},
|
34
|
+
],
|
35
|
+
"@html-eslint/require-doctype": ERROR,
|
36
|
+
"@html-eslint/require-li-container": ERROR,
|
37
|
+
"@html-eslint/require-meta-charset": ERROR,
|
38
|
+
|
39
|
+
// #endregion BEST PRACTICE
|
40
|
+
|
41
|
+
// #region SEO
|
42
|
+
// https://html-eslint.org/docs/rules#seo
|
43
|
+
"@html-eslint/no-multiple-h1": ERROR,
|
44
|
+
"@html-eslint/require-lang": ERROR,
|
45
|
+
"@html-eslint/require-meta-description": OFF /* breaks Svelte which leaves meta descriptions to route leaves */,
|
46
|
+
"@html-eslint/require-open-graph-protocol": OFF /* idk what this is */,
|
47
|
+
"@html-eslint/require-title": OFF /* breaks Svelte which leaves title to route leaves */,
|
48
|
+
|
49
|
+
// #endregion SEO
|
50
|
+
|
51
|
+
// #region ACCESSIBILITY
|
52
|
+
// https://html-eslint.org/docs/rules#accessibility
|
53
|
+
"@html-eslint/no-abstract-roles": ERROR,
|
54
|
+
"@html-eslint/no-accesskey-attrs": ERROR,
|
55
|
+
"@html-eslint/no-aria-hidden-body": ERROR,
|
56
|
+
"@html-eslint/no-non-scalable-viewport": ERROR,
|
57
|
+
"@html-eslint/no-positive-tabindex": ERROR,
|
58
|
+
"@html-eslint/no-skip-heading-levels": ERROR,
|
59
|
+
"@html-eslint/require-frame-title": ERROR,
|
60
|
+
"@html-eslint/require-img-alt": [
|
61
|
+
ERROR,
|
62
|
+
{
|
63
|
+
substitute: [],
|
64
|
+
},
|
65
|
+
],
|
66
|
+
"@html-eslint/require-meta-viewport": ERROR,
|
67
|
+
|
68
|
+
// #endregion ACCESSIBILITY
|
69
|
+
|
70
|
+
// #region STYLE
|
71
|
+
// https://html-eslint.org/docs/rules#style
|
2
72
|
|
3
|
-
|
73
|
+
// #endregion STYLE
|
74
|
+
"@html-eslint/attrs-newline": [
|
75
|
+
ERROR,
|
76
|
+
{
|
77
|
+
ifAttrsMoreThan: 0,
|
78
|
+
closeStyle: "sameline",
|
79
|
+
},
|
80
|
+
],
|
81
|
+
"@html-eslint/element-newline": [
|
82
|
+
ERROR,
|
83
|
+
{
|
84
|
+
skip: ["head"],
|
85
|
+
inline: ["$inline"],
|
86
|
+
},
|
87
|
+
],
|
88
|
+
"@html-eslint/id-naming-convention": OFF,
|
89
|
+
"@html-eslint/indent": [
|
90
|
+
ERROR,
|
91
|
+
2,
|
92
|
+
],
|
93
|
+
"@html-eslint/lowercase": ERROR,
|
94
|
+
"@html-eslint/no-extra-spacing-attrs": [
|
95
|
+
ERROR,
|
96
|
+
{
|
97
|
+
enforceBeforeSelfClose: true,
|
98
|
+
disallowMissing: true,
|
99
|
+
disallowTabs: true,
|
100
|
+
disallowInAssignment: true,
|
101
|
+
},
|
102
|
+
],
|
103
|
+
"@html-eslint/no-multiple-empty-lines": [
|
104
|
+
ERROR,
|
105
|
+
{
|
106
|
+
max: 1,
|
107
|
+
},
|
108
|
+
],
|
109
|
+
"@html-eslint/no-trailing-spaces": ERROR,
|
110
|
+
"@html-eslint/quotes": [
|
111
|
+
ERROR,
|
112
|
+
"double",
|
113
|
+
],
|
114
|
+
"@html-eslint/sort-attrs": OFF,
|
115
|
+
} as const;
|
4
116
|
|
5
117
|
export default [
|
6
118
|
enable,
|
7
|
-
|
8
|
-
"@html-eslint/require-title": OFF,
|
9
|
-
"@html-eslint/element-newline": [
|
10
|
-
ERROR,
|
11
|
-
{
|
12
|
-
skip: ["head"],
|
13
|
-
},
|
14
|
-
],
|
15
|
-
},
|
119
|
+
rules,
|
16
120
|
] as const;
|
package/src/rules/html/index.ts
CHANGED
package/src/rules/js/enable.ts
CHANGED
@@ -16,7 +16,7 @@ const
|
|
16
16
|
export default [
|
17
17
|
enable,
|
18
18
|
{
|
19
|
-
// #region
|
19
|
+
// #region PROBLEMS
|
20
20
|
// https://eslint.org/docs/latest/rules/#possible-problems
|
21
21
|
"array-callback-return": [
|
22
22
|
ERROR,
|
@@ -184,9 +184,9 @@ export default [
|
|
184
184
|
},
|
185
185
|
],
|
186
186
|
|
187
|
-
// #endregion
|
187
|
+
// #endregion PROBLEMS
|
188
188
|
|
189
|
-
// #region
|
189
|
+
// #region SUGGESTIONS
|
190
190
|
// [ https://eslint.org/docs/latest/rules/#suggestions ]
|
191
191
|
"accessor-pairs": [
|
192
192
|
ERROR,
|
@@ -513,12 +513,12 @@ export default [
|
|
513
513
|
},
|
514
514
|
],
|
515
515
|
|
516
|
-
// #endregion
|
516
|
+
// #endregion SUGGESTIONS
|
517
517
|
|
518
|
-
// #region
|
518
|
+
// #region LAYOUT & FORMATTING
|
519
519
|
// [ https://eslint.org/docs/latest/rules/#layout--formatting ]
|
520
520
|
"unicode-bom": OFF /* preference: don't care */,
|
521
521
|
|
522
|
-
// #endregion
|
522
|
+
// #endregion LAYOUT & FORMATTING
|
523
523
|
},
|
524
524
|
] as const;
|
@@ -13,7 +13,7 @@ const
|
|
13
13
|
export default [
|
14
14
|
enable,
|
15
15
|
{
|
16
|
-
// #region
|
16
|
+
// #region ERRORS
|
17
17
|
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#possible-errors
|
18
18
|
"svelte/infinite-reactive-loop": ERROR,
|
19
19
|
"svelte/no-dom-manipulating": ERROR,
|
@@ -49,9 +49,9 @@ export default [
|
|
49
49
|
],
|
50
50
|
"svelte/valid-prop-names-in-kit-pages": ERROR,
|
51
51
|
|
52
|
-
// #endregion
|
52
|
+
// #endregion ERRORS
|
53
53
|
|
54
|
-
// #region
|
54
|
+
// #region SECURITY
|
55
55
|
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#security-vulnerability
|
56
56
|
"svelte/no-at-html-tags": ERROR,
|
57
57
|
"svelte/no-target-blank": [
|
@@ -62,9 +62,9 @@ export default [
|
|
62
62
|
},
|
63
63
|
],
|
64
64
|
|
65
|
-
// #endregion
|
65
|
+
// #endregion SECURITY
|
66
66
|
|
67
|
-
// #region
|
67
|
+
// #region BEST PRACTICES
|
68
68
|
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#best-practices
|
69
69
|
"svelte/block-lang": [
|
70
70
|
ERROR,
|
@@ -114,9 +114,9 @@ export default [
|
|
114
114
|
"svelte/require-stores-init": ERROR,
|
115
115
|
"svelte/valid-each-key": ERROR,
|
116
116
|
|
117
|
-
// #endregion
|
117
|
+
// #endregion BEST PRACTICES
|
118
118
|
|
119
|
-
// #region
|
119
|
+
// #region STYLE
|
120
120
|
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#stylistic-issues
|
121
121
|
"svelte/derived-has-same-inputs-outputs": ERROR,
|
122
122
|
"svelte/first-attribute-linebreak": [
|
@@ -206,15 +206,15 @@ export default [
|
|
206
206
|
"svelte/sort-attributes": OFF /* INVESTIGATE: */,
|
207
207
|
"svelte/spaced-html-comment": [ERROR, Always],
|
208
208
|
|
209
|
-
// #endregion
|
209
|
+
// #endregion STYLE
|
210
210
|
|
211
|
-
// #region
|
211
|
+
// #region SVELTE-KIT
|
212
212
|
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#svelte-kit
|
213
213
|
"svelte/no-goto-without-base": ERROR,
|
214
214
|
|
215
|
-
// #endregion
|
215
|
+
// #endregion SVELTE-KIT
|
216
216
|
|
217
|
-
// #region
|
217
|
+
// #region REQUIRED
|
218
218
|
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#system
|
219
219
|
"svelte/comment-directive": [
|
220
220
|
ERROR,
|
@@ -224,7 +224,7 @@ export default [
|
|
224
224
|
],
|
225
225
|
"svelte/system": ERROR,
|
226
226
|
|
227
|
-
// #endregion
|
227
|
+
// #endregion REQUIRED
|
228
228
|
|
229
229
|
},
|
230
230
|
] as const;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"enable_recommended.d.ts","sourceRoot":"","sources":["../../../src/rules/html/enable_recommended.ts"],"names":[],"mappings":";AAIA,wBAIW"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"enable_recommended.js","sourceRoot":"","sources":["../../../src/rules/html/enable_recommended.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAG9C,eAAe;IACb,WAAW;IACV,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAA4C;SACzE,KAAK;CACA,CAAC"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { recommended } from "../../_strings";
|
2
|
-
import html from "@html-eslint/eslint-plugin";
|
3
|
-
|
4
|
-
// REMOVE shared config once manually configured
|
5
|
-
export default [
|
6
|
-
recommended,
|
7
|
-
(html.configs["flat/recommended"] as Record<"rules", Record<string, "off">>)
|
8
|
-
.rules,
|
9
|
-
] as const;
|