@html-eslint/eslint-plugin 0.24.1 → 0.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/lib/configs/recommended.js +1 -0
- package/lib/rules/attrs-newline.js +163 -0
- package/lib/rules/index.js +2 -0
- package/lib/rules/no-extra-spacing-attrs.js +121 -87
- package/lib/rules/require-closing-tags.js +45 -16
- package/package.json +3 -3
- package/types/configs/recommended.d.ts +18 -0
- package/types/configs/recommended.d.ts.map +1 -0
- package/types/constants/index.d.ts +5 -0
- package/types/constants/index.d.ts.map +1 -0
- package/types/constants/obsolete-tags.d.ts +3 -0
- package/types/constants/obsolete-tags.d.ts.map +1 -0
- package/types/constants/rule-category.d.ts +5 -0
- package/types/constants/rule-category.d.ts.map +1 -0
- package/types/constants/void-elements.d.ts +3 -0
- package/types/constants/void-elements.d.ts.map +1 -0
- package/types/rules/attrs-newline.d.ts +11 -0
- package/types/rules/attrs-newline.d.ts.map +1 -0
- package/types/rules/element-newline.d.ts +7 -0
- package/types/rules/element-newline.d.ts.map +1 -0
- package/types/rules/id-naming-convention.d.ts +7 -0
- package/types/rules/indent.d.ts +15 -0
- package/types/rules/indent.d.ts.map +1 -0
- package/types/rules/index.d.ts +42 -0
- package/types/rules/lowercase.d.ts +7 -0
- package/types/rules/no-abstract-roles.d.ts +7 -0
- package/types/rules/no-abstract-roles.d.ts.map +1 -0
- package/types/rules/no-accesskey-attrs.d.ts +7 -0
- package/types/rules/no-accesskey-attrs.d.ts.map +1 -0
- package/types/rules/no-aria-hidden-body.d.ts +4 -0
- package/types/rules/no-aria-hidden-body.d.ts.map +1 -0
- package/types/rules/no-duplicate-attrs.d.ts +7 -0
- package/types/rules/no-duplicate-attrs.d.ts.map +1 -0
- package/types/rules/no-duplicate-id.d.ts +7 -0
- package/types/rules/no-duplicate-id.d.ts.map +1 -0
- package/types/rules/no-extra-spacing-attrs.d.ts +15 -0
- package/types/rules/no-extra-spacing-attrs.d.ts.map +1 -0
- package/types/rules/no-inline-styles.d.ts +4 -0
- package/types/rules/no-inline-styles.d.ts.map +1 -0
- package/types/rules/no-multiple-empty-lines.d.ts +5 -0
- package/types/rules/no-multiple-empty-lines.d.ts.map +1 -0
- package/types/rules/no-multiple-h1.d.ts +5 -0
- package/types/rules/no-multiple-h1.d.ts.map +1 -0
- package/types/rules/no-non-scalable-viewport.d.ts +4 -0
- package/types/rules/no-non-scalable-viewport.d.ts.map +1 -0
- package/types/rules/no-obsolete-tags.d.ts +4 -0
- package/types/rules/no-obsolete-tags.d.ts.map +1 -0
- package/types/rules/no-positive-tabindex.d.ts +7 -0
- package/types/rules/no-positive-tabindex.d.ts.map +1 -0
- package/types/rules/no-restricted-attr-values.d.ts +13 -0
- package/types/rules/no-restricted-attr-values.d.ts.map +1 -0
- package/types/rules/no-restricted-attrs.d.ts +13 -0
- package/types/rules/no-script-style-type.d.ts +7 -0
- package/types/rules/no-script-style-type.d.ts.map +1 -0
- package/types/rules/no-skip-heading-levels.d.ts +5 -0
- package/types/rules/no-skip-heading-levels.d.ts.map +1 -0
- package/types/rules/no-target-blank.d.ts +4 -0
- package/types/rules/no-target-blank.d.ts.map +1 -0
- package/types/rules/no-trailing-spaces.d.ts +4 -0
- package/types/rules/no-trailing-spaces.d.ts.map +1 -0
- package/types/rules/quotes.d.ts +9 -0
- package/types/rules/quotes.d.ts.map +1 -0
- package/types/rules/require-attrs.d.ts +7 -0
- package/types/rules/require-button-type.d.ts +4 -0
- package/types/rules/require-button-type.d.ts.map +1 -0
- package/types/rules/require-closing-tags.d.ts +5 -0
- package/types/rules/require-closing-tags.d.ts.map +1 -0
- package/types/rules/require-doctype.d.ts +4 -0
- package/types/rules/require-doctype.d.ts.map +1 -0
- package/types/rules/require-frame-title.d.ts +4 -0
- package/types/rules/require-frame-title.d.ts.map +1 -0
- package/types/rules/require-img-alt.d.ts +5 -0
- package/types/rules/require-img-alt.d.ts.map +1 -0
- package/types/rules/require-lang.d.ts +4 -0
- package/types/rules/require-lang.d.ts.map +1 -0
- package/types/rules/require-li-container.d.ts +4 -0
- package/types/rules/require-meta-charset.d.ts +5 -0
- package/types/rules/require-meta-description.d.ts +5 -0
- package/types/rules/require-meta-viewport.d.ts +5 -0
- package/types/rules/require-open-graph-protocol.d.ts +5 -0
- package/types/rules/require-title.d.ts +6 -0
- package/types/rules/sort-attrs.d.ts +7 -0
- package/types/rules/sort-attrs.d.ts.map +1 -0
- package/types/rules/utils/array.d.ts +17 -0
- package/types/rules/utils/array.d.ts.map +1 -0
- package/types/rules/utils/naming.d.ts +25 -0
- package/types/rules/utils/naming.d.ts.map +1 -0
- package/types/rules/utils/node.d.ts +37 -0
- package/types/rules/utils/node.d.ts.map +1 -0
- package/types/constants/svg-camelcase-attributes.d.ts +0 -3
- package/types/constants/svg-camelcase-attributes.d.ts.map +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type AnyNode = import("../types").AnyNode;
|
|
5
|
+
export type LineNode = import("../types").LineNode;
|
|
6
|
+
export type BaseNode = import("../types").BaseNode;
|
|
7
|
+
export type TagNode = import("../types").TagNode;
|
|
8
|
+
export type IndentType = {
|
|
9
|
+
TAB: "tab";
|
|
10
|
+
SPACE: "space";
|
|
11
|
+
};
|
|
12
|
+
export type MessageId = {
|
|
13
|
+
WRONG_INDENT: "wrongIndent";
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=indent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indent.d.ts","sourceRoot":"","sources":["../../lib/rules/indent.js"],"names":[],"mappings":"wBA8BU,UAAU;;yBA7BN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;uBAC1B,OAAO,UAAU,EAAE,QAAQ;uBAC3B,OAAO,UAAU,EAAE,QAAQ;sBAC3B,OAAO,UAAU,EAAE,OAAO;;SAE1B,KAAK;WACL,OAAO;;;kBAEP,aAAa"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _exports: {
|
|
2
|
+
"require-lang": import("../types").RuleModule;
|
|
3
|
+
"require-img-alt": import("../types").RuleModule;
|
|
4
|
+
"require-doctype": import("../types").RuleModule;
|
|
5
|
+
"require-title": import("../types").RuleModule;
|
|
6
|
+
"no-duplicate-id": import("../types").RuleModule;
|
|
7
|
+
"no-inline-styles": import("../types").RuleModule;
|
|
8
|
+
"no-multiple-h1": import("../types").RuleModule;
|
|
9
|
+
"no-extra-spacing-attrs": import("../types").RuleModule;
|
|
10
|
+
"attrs-newline": import("../types").RuleModule;
|
|
11
|
+
"element-newline": import("../types").RuleModule;
|
|
12
|
+
"no-skip-heading-levels": import("../types").RuleModule;
|
|
13
|
+
"require-li-container": import("../types").RuleModule;
|
|
14
|
+
indent: import("../types").RuleModule;
|
|
15
|
+
quotes: import("../types").RuleModule;
|
|
16
|
+
"id-naming-convention": import("../types").RuleModule;
|
|
17
|
+
"no-obsolete-tags": import("../types").RuleModule;
|
|
18
|
+
"require-attrs": import("../types").RuleModule;
|
|
19
|
+
"require-closing-tags": import("../types").RuleModule;
|
|
20
|
+
"require-meta-description": import("../types").RuleModule;
|
|
21
|
+
"require-frame-title": import("../types").RuleModule;
|
|
22
|
+
"no-non-scalable-viewport": import("../types").RuleModule;
|
|
23
|
+
"no-positive-tabindex": import("../types").RuleModule;
|
|
24
|
+
"require-meta-viewport": import("../types").RuleModule;
|
|
25
|
+
"require-meta-charset": import("../types").RuleModule;
|
|
26
|
+
"no-target-blank": import("../types").RuleModule;
|
|
27
|
+
"no-duplicate-attrs": import("../types").RuleModule;
|
|
28
|
+
"no-abstract-roles": import("../types").RuleModule;
|
|
29
|
+
"require-button-type": import("../types").RuleModule;
|
|
30
|
+
"no-aria-hidden-body": import("../types").RuleModule;
|
|
31
|
+
"no-multiple-empty-lines": import("../types").RuleModule;
|
|
32
|
+
"no-accesskey-attrs": import("../types").RuleModule;
|
|
33
|
+
"no-restricted-attrs": import("../types").RuleModule;
|
|
34
|
+
"no-trailing-spaces": import("../types").RuleModule;
|
|
35
|
+
"no-restricted-attr-values": import("../types").RuleModule;
|
|
36
|
+
"no-script-style-type": import("../types").RuleModule;
|
|
37
|
+
lowercase: import("../types").RuleModule;
|
|
38
|
+
"require-open-graph-protocol": import("../types").RuleModule;
|
|
39
|
+
"sort-attrs": import("../types").RuleModule;
|
|
40
|
+
};
|
|
41
|
+
export = _exports;
|
|
42
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type TagNode = import("../types").TagNode;
|
|
5
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
6
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
7
|
+
//# sourceMappingURL=lowercase.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type TagNode = import("../types").TagNode;
|
|
5
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
6
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
7
|
+
//# sourceMappingURL=no-abstract-roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-abstract-roles.d.ts","sourceRoot":"","sources":["../../lib/rules/no-abstract-roles.js"],"names":[],"mappings":"wBA8BU,UAAU;;yBA7BN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;2BAC1B,OAAO,UAAU,EAAE,YAAY;4BAC/B,OAAO,UAAU,EAAE,aAAa"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type TagNode = import("../types").TagNode;
|
|
5
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
6
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
7
|
+
//# sourceMappingURL=no-accesskey-attrs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-accesskey-attrs.d.ts","sourceRoot":"","sources":["../../lib/rules/no-accesskey-attrs.js"],"names":[],"mappings":"wBAeU,UAAU;;yBAdN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;2BAC1B,OAAO,UAAU,EAAE,YAAY;4BAC/B,OAAO,UAAU,EAAE,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-aria-hidden-body.d.ts","sourceRoot":"","sources":["../../lib/rules/no-aria-hidden-body.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type TagNode = import("../types").TagNode;
|
|
5
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
6
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
7
|
+
//# sourceMappingURL=no-duplicate-attrs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-duplicate-attrs.d.ts","sourceRoot":"","sources":["../../lib/rules/no-duplicate-attrs.js"],"names":[],"mappings":"wBAcU,UAAU;;yBAbN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;2BAC1B,OAAO,UAAU,EAAE,YAAY;4BAC/B,OAAO,UAAU,EAAE,aAAa"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type TagNode = import("../types").TagNode;
|
|
5
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
6
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
7
|
+
//# sourceMappingURL=no-duplicate-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-duplicate-id.d.ts","sourceRoot":"","sources":["../../lib/rules/no-duplicate-id.js"],"names":[],"mappings":"wBAeU,UAAU;;yBAdN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;2BAC1B,OAAO,UAAU,EAAE,YAAY;4BAC/B,OAAO,UAAU,EAAE,aAAa"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type AttributeNode = import("../types").AttributeNode;
|
|
5
|
+
export type OpenTagEndNode = import("../types").OpenTagEndNode;
|
|
6
|
+
export type OpenScriptTagEndNode = import("../types").OpenScriptTagEndNode;
|
|
7
|
+
export type OpenStyleTagEndNode = import("../types").OpenStyleTagEndNode;
|
|
8
|
+
export type OpenScriptTagStartNode = import("../types").OpenScriptTagStartNode;
|
|
9
|
+
export type OpenTagStartNode = import("../types").OpenTagStartNode;
|
|
10
|
+
export type OpenStyleTagStartNode = import("../types").OpenStyleTagStartNode;
|
|
11
|
+
export type TagNode = import("../types").TagNode;
|
|
12
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
13
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
14
|
+
export type AnyNode = import("../types").AnyNode;
|
|
15
|
+
//# sourceMappingURL=no-extra-spacing-attrs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-extra-spacing-attrs.d.ts","sourceRoot":"","sources":["../../lib/rules/no-extra-spacing-attrs.js"],"names":[],"mappings":"wBAgCU,UAAU;;yBA/BN,OAAO,UAAU,EAAE,UAAU;4BAC7B,OAAO,UAAU,EAAE,aAAa;6BAChC,OAAO,UAAU,EAAE,cAAc;mCACjC,OAAO,UAAU,EAAE,oBAAoB;kCACvC,OAAO,UAAU,EAAE,mBAAmB;qCACtC,OAAO,UAAU,EAAE,sBAAsB;+BACzC,OAAO,UAAU,EAAE,gBAAgB;oCACnC,OAAO,UAAU,EAAE,qBAAqB;sBACxC,OAAO,UAAU,EAAE,OAAO;2BAC1B,OAAO,UAAU,EAAE,YAAY;4BAC/B,OAAO,UAAU,EAAE,aAAa;sBAChC,OAAO,UAAU,EAAE,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-inline-styles.d.ts","sourceRoot":"","sources":["../../lib/rules/no-inline-styles.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-multiple-empty-lines.d.ts","sourceRoot":"","sources":["../../lib/rules/no-multiple-empty-lines.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU;0BAC7B,OAAO,UAAU,EAAE,WAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-multiple-h1.d.ts","sourceRoot":"","sources":["../../lib/rules/no-multiple-h1.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-non-scalable-viewport.d.ts","sourceRoot":"","sources":["../../lib/rules/no-non-scalable-viewport.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-obsolete-tags.d.ts","sourceRoot":"","sources":["../../lib/rules/no-obsolete-tags.js"],"names":[],"mappings":"wBAaU,UAAU;;yBAZN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type TagNode = import("../types").TagNode;
|
|
5
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
6
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
7
|
+
//# sourceMappingURL=no-positive-tabindex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-positive-tabindex.d.ts","sourceRoot":"","sources":["../../lib/rules/no-positive-tabindex.js"],"names":[],"mappings":"wBAeU,UAAU;;yBAdN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;2BAC1B,OAAO,UAAU,EAAE,YAAY;4BAC/B,OAAO,UAAU,EAAE,aAAa"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
5
|
+
export type AttributeNode = import("../types").AttributeNode;
|
|
6
|
+
export type TagNode = import("../types").TagNode;
|
|
7
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
8
|
+
export type Options = {
|
|
9
|
+
attrPatterns: string[];
|
|
10
|
+
attrValuePatterns: string[];
|
|
11
|
+
message?: string;
|
|
12
|
+
}[];
|
|
13
|
+
//# sourceMappingURL=no-restricted-attr-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-restricted-attr-values.d.ts","sourceRoot":"","sources":["../../lib/rules/no-restricted-attr-values.js"],"names":[],"mappings":"wBAgBU,UAAU;;yBAfN,OAAO,UAAU,EAAE,UAAU;2BAC7B,OAAO,UAAU,EAAE,YAAY;4BAC/B,OAAO,UAAU,EAAE,aAAa;sBAChC,OAAO,UAAU,EAAE,OAAO;4BAC1B,OAAO,UAAU,EAAE,aAAa;sBACjC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAAC,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAC,EAAE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
5
|
+
export type AttributeNode = import("../types").AttributeNode;
|
|
6
|
+
export type TagNode = import("../types").TagNode;
|
|
7
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
8
|
+
export type Options = {
|
|
9
|
+
tagPatterns: string[];
|
|
10
|
+
attrPatterns: string[];
|
|
11
|
+
message?: string;
|
|
12
|
+
}[];
|
|
13
|
+
//# sourceMappingURL=no-restricted-attrs.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
5
|
+
export type TagNode = import("../types").TagNode;
|
|
6
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
7
|
+
//# sourceMappingURL=no-script-style-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-script-style-type.d.ts","sourceRoot":"","sources":["../../lib/rules/no-script-style-type.js"],"names":[],"mappings":"wBAeU,UAAU;;yBAdN,OAAO,UAAU,EAAE,UAAU;2BAC7B,OAAO,UAAU,EAAE,YAAY;sBAC/B,OAAO,UAAU,EAAE,OAAO;4BAC1B,OAAO,UAAU,EAAE,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-skip-heading-levels.d.ts","sourceRoot":"","sources":["../../lib/rules/no-skip-heading-levels.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-target-blank.d.ts","sourceRoot":"","sources":["../../lib/rules/no-target-blank.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-trailing-spaces.d.ts","sourceRoot":"","sources":["../../lib/rules/no-trailing-spaces.js"],"names":[],"mappings":"wBAWU,UAAU;;yBAVN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type Range = import("../types").Range;
|
|
5
|
+
export type AttributeNode = import("../types").AttributeNode;
|
|
6
|
+
export type TagNode = import("../types").TagNode;
|
|
7
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
8
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
9
|
+
//# sourceMappingURL=quotes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../../lib/rules/quotes.js"],"names":[],"mappings":"wBAwBU,UAAU;;yBAvBN,OAAO,UAAU,EAAE,UAAU;oBAC7B,OAAO,UAAU,EAAE,KAAK;4BACxB,OAAO,UAAU,EAAE,aAAa;sBAChC,OAAO,UAAU,EAAE,OAAO;4BAC1B,OAAO,UAAU,EAAE,aAAa;2BAChC,OAAO,UAAU,EAAE,YAAY"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type TagNode = import("../types").TagNode;
|
|
5
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
6
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
7
|
+
//# sourceMappingURL=require-attrs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-button-type.d.ts","sourceRoot":"","sources":["../../lib/rules/require-button-type.js"],"names":[],"mappings":"wBAeU,UAAU;;yBAdN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-closing-tags.d.ts","sourceRoot":"","sources":["../../lib/rules/require-closing-tags.js"],"names":[],"mappings":"wBAgBU,UAAU;;yBAfN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-doctype.d.ts","sourceRoot":"","sources":["../../lib/rules/require-doctype.js"],"names":[],"mappings":"wBAWU,UAAU;;yBAVN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-frame-title.d.ts","sourceRoot":"","sources":["../../lib/rules/require-frame-title.js"],"names":[],"mappings":"wBAaU,UAAU;;yBAZN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-img-alt.d.ts","sourceRoot":"","sources":["../../lib/rules/require-img-alt.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-lang.d.ts","sourceRoot":"","sources":["../../lib/rules/require-lang.js"],"names":[],"mappings":"wBAaU,UAAU;;yBAZN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type AttributeNode = import("../types").AttributeNode;
|
|
5
|
+
export type TextNode = import("../types").TextNode;
|
|
6
|
+
export type RuleFixer = import("../types").RuleFixer;
|
|
7
|
+
//# sourceMappingURL=sort-attrs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-attrs.d.ts","sourceRoot":"","sources":["../../lib/rules/sort-attrs.js"],"names":[],"mappings":"wBAcU,UAAU;;yBAbN,OAAO,UAAU,EAAE,UAAU;4BAC7B,OAAO,UAAU,EAAE,aAAa;uBAChC,OAAO,UAAU,EAAE,QAAQ;wBAC3B,OAAO,UAAU,EAAE,SAAS"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @template T
|
|
3
|
+
* @template {T} S
|
|
4
|
+
* @param {T[]} items
|
|
5
|
+
* @param {(node: T) => node is S} predicate
|
|
6
|
+
* @returns {S | undefined}
|
|
7
|
+
*/
|
|
8
|
+
export function find<T, S extends T>(items: T[], predicate: (node: T) => node is S): S | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* @template T
|
|
11
|
+
* @template {T} S
|
|
12
|
+
* @param {T[]} items
|
|
13
|
+
* @param {(node: T) => node is S} predicate
|
|
14
|
+
* @returns {S[]}
|
|
15
|
+
*/
|
|
16
|
+
export function filter<T, S extends T>(items: T[], predicate: (node: T) => node is S): S[];
|
|
17
|
+
//# sourceMappingURL=array.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/array.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,mGAEC;AAED;;;;;;GAMG;AACH,2FAEC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks a given name follows `kebab-case` or not.
|
|
3
|
+
* @param {string} name name to check
|
|
4
|
+
* @returns {boolean} `true` if a name follows `kebab-case`, otherwise `false`.
|
|
5
|
+
*/
|
|
6
|
+
export function isKebabCase(name: string): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Checks a given name follows `snake_case` or not.
|
|
9
|
+
* @param {string} name name to check
|
|
10
|
+
* @returns {boolean} `true` if a name follows `snake_case`, otherwise `false`.
|
|
11
|
+
*/
|
|
12
|
+
export function isSnakeCase(name: string): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Checks a given name follows `PascalCase` or not.
|
|
15
|
+
* @param {string} name name to check
|
|
16
|
+
* @returns {boolean} `true` if a name follows `PascalCase`, otherwise `false`.
|
|
17
|
+
*/
|
|
18
|
+
export function isPascalCase(name: string): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Checks a given name follows `camelCase` or not.
|
|
21
|
+
* @param {string} name name to check
|
|
22
|
+
* @returns {boolean} `true` if a name follows `camelCase`, otherwise `false`.
|
|
23
|
+
*/
|
|
24
|
+
export function isCamelCase(name: string): boolean;
|
|
25
|
+
//# sourceMappingURL=naming.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/naming.js"],"names":[],"mappings":"AAOE;;;;GAIG;AACH,mDAEC;AAED;;;;GAIG;AACH,mDAEC;AAED;;;;GAIG;AACH,oDAEC;AAED;;;;GAIG;AACH,mDAEC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type TagNode = import("../../types").TagNode;
|
|
2
|
+
export type ScriptTagNode = import("../../types").ScriptTagNode;
|
|
3
|
+
export type StyleTagNode = import("../../types").StyleTagNode;
|
|
4
|
+
export type AttributeNode = import("../../types").AttributeNode;
|
|
5
|
+
export type AnyNode = import("../../types").AnyNode;
|
|
6
|
+
export type TextNode = import("../../types").TextNode;
|
|
7
|
+
export type CommentContentNode = import("../../types").CommentContentNode;
|
|
8
|
+
export type LineNode = import("../../types").LineNode;
|
|
9
|
+
export type BaseNode = import("../../types").BaseNode;
|
|
10
|
+
export type Location = import("../../types").Location;
|
|
11
|
+
/**
|
|
12
|
+
* @param {TagNode | ScriptTagNode | StyleTagNode} node
|
|
13
|
+
* @param {string} key
|
|
14
|
+
* @returns {AttributeNode | undefined}
|
|
15
|
+
*/
|
|
16
|
+
declare function findAttr(node: import("../../types").TagNode | import("../../types").ScriptTagNode | import("../../types").StyleTagNode, key: string): import("../../types").AttributeNode | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Checks whether a node's all tokens are on the same line or not.
|
|
19
|
+
* @param {AnyNode} node A node to check
|
|
20
|
+
* @returns {boolean} `true` if a node's tokens are on the same line, otherwise `false`.
|
|
21
|
+
*/
|
|
22
|
+
declare function isNodeTokensOnSameLine(node: import("../../types").AnyNode): boolean;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @param {TextNode | CommentContentNode} node
|
|
26
|
+
* @returns {LineNode[]}
|
|
27
|
+
*/
|
|
28
|
+
declare function splitToLineNodes(node: import("../../types").TextNode | import("../../types").CommentContentNode): import("../../types").LineNode[];
|
|
29
|
+
/**
|
|
30
|
+
* Get location between two nodes.
|
|
31
|
+
* @param {BaseNode} before A node placed in before
|
|
32
|
+
* @param {BaseNode} after A node placed in after
|
|
33
|
+
* @returns {Location} location between two nodes.
|
|
34
|
+
*/
|
|
35
|
+
declare function getLocBetween(before: import("../../types").BaseNode, after: import("../../types").BaseNode): import("eslint").AST.SourceLocation;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/node.js"],"names":[],"mappings":"sBACc,OAAO,aAAa,EAAE,OAAO;4BAC7B,OAAO,aAAa,EAAE,aAAa;2BACnC,OAAO,aAAa,EAAE,YAAY;4BAClC,OAAO,aAAa,EAAE,aAAa;sBACnC,OAAO,aAAa,EAAE,OAAO;uBAC7B,OAAO,aAAa,EAAE,QAAQ;iCAC9B,OAAO,aAAa,EAAE,kBAAkB;uBACxC,OAAO,aAAa,EAAE,QAAQ;uBAC9B,OAAO,aAAa,EAAE,QAAQ;uBAC9B,OAAO,aAAa,EAAE,QAAQ;AAI1C;;;;GAIG;AACH,wMAIC;AAED;;;;GAIG;AACH,sFAEC;AAED;;;;GAIG;AACH,qJA8BC;AACD;;;;;GAKG;AACH,mJAKC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"svg-camelcase-attributes.d.ts","sourceRoot":"","sources":["../../lib/constants/svg-camelcase-attributes.js"],"names":[],"mappings":""}
|