@html-eslint/eslint-plugin 0.51.0 → 0.52.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/lib/configs/recommended.js +8 -2
- package/lib/index.js +2 -6
- package/lib/languages/html-language.js +23 -15
- package/lib/languages/html-source-code.js +34 -26
- package/lib/languages/html-traversal-step.js +6 -10
- package/lib/rules/attrs-newline.js +15 -11
- package/lib/rules/class-spacing.js +148 -0
- package/lib/rules/element-newline.js +18 -21
- package/lib/rules/id-naming-convention.js +15 -12
- package/lib/rules/indent/indent-level.js +10 -17
- package/lib/rules/indent/indent.js +51 -56
- package/lib/rules/index.js +5 -1
- package/lib/rules/lowercase.js +11 -23
- package/lib/rules/max-element-depth.js +8 -10
- package/lib/rules/no-abstract-roles.js +8 -8
- package/lib/rules/no-accesskey-attrs.js +8 -8
- package/lib/rules/no-aria-hidden-body.js +2 -6
- package/lib/rules/no-aria-hidden-on-focusable.js +4 -5
- package/lib/rules/no-duplicate-attrs.js +12 -8
- package/lib/rules/no-duplicate-class.js +8 -14
- package/lib/rules/no-duplicate-id.js +9 -15
- package/lib/rules/no-duplicate-in-head.js +10 -17
- package/lib/rules/no-empty-headings.js +7 -8
- package/lib/rules/no-extra-spacing-attrs.js +13 -8
- package/lib/rules/no-extra-spacing-text.js +11 -14
- package/lib/rules/no-heading-inside-button.js +2 -6
- package/lib/rules/no-ineffective-attrs.js +14 -15
- package/lib/rules/no-inline-styles.js +2 -6
- package/lib/rules/no-invalid-entity.js +4 -8
- package/lib/rules/no-invalid-role.js +3 -10
- package/lib/rules/no-multiple-empty-lines.js +7 -7
- package/lib/rules/no-multiple-h1.js +4 -8
- package/lib/rules/no-nested-interactive.js +5 -9
- package/lib/rules/no-non-scalable-viewport.js +2 -6
- package/lib/rules/no-obsolete-attrs.js +83 -0
- package/lib/rules/no-obsolete-tags.js +2 -6
- package/lib/rules/no-positive-tabindex.js +8 -8
- package/lib/rules/no-restricted-attr-values.js +18 -21
- package/lib/rules/no-restricted-attrs.js +18 -22
- package/lib/rules/no-restricted-tags.js +17 -20
- package/lib/rules/no-script-style-type.js +7 -6
- package/lib/rules/no-skip-heading-levels.js +4 -8
- package/lib/rules/no-target-blank.js +3 -6
- package/lib/rules/no-trailing-spaces.js +7 -6
- package/lib/rules/no-whitespace-only-children.js +7 -8
- package/lib/rules/prefer-https.js +11 -14
- package/lib/rules/quotes.js +13 -16
- package/lib/rules/require-attrs.js +18 -17
- package/lib/rules/require-button-type.js +6 -5
- package/lib/rules/require-closing-tags.js +9 -12
- package/lib/rules/require-doctype.js +2 -6
- package/lib/rules/require-explicit-size.js +2 -5
- package/lib/rules/require-form-method.js +2 -6
- package/lib/rules/require-frame-title.js +2 -6
- package/lib/rules/require-img-alt.js +3 -6
- package/lib/rules/require-input-label.js +3 -5
- package/lib/rules/require-lang.js +2 -6
- package/lib/rules/require-li-container.js +2 -6
- package/lib/rules/require-meta-charset.js +6 -5
- package/lib/rules/require-meta-description.js +6 -5
- package/lib/rules/require-meta-viewport.js +6 -5
- package/lib/rules/require-open-graph-protocol.js +7 -8
- package/lib/rules/require-title.js +7 -5
- package/lib/rules/sort-attrs.js +13 -19
- package/lib/rules/use-baseline.js +8 -6
- package/lib/rules/utils/baseline.js +4 -6
- package/lib/rules/utils/naming.js +14 -7
- package/lib/rules/utils/node.js +63 -29
- package/lib/rules/utils/rule.js +1 -4
- package/lib/rules/utils/settings.js +9 -3
- package/lib/rules/utils/source-code.js +2 -6
- package/lib/rules/utils/template-literal.js +16 -7
- package/lib/rules/utils/visitors.js +4 -1
- package/lib/specs/index.js +5 -0
- package/lib/specs/obsolete-attrs.js +604 -0
- package/lib/types/ast.ts +5 -2
- package/package.json +6 -6
- package/types/configs/recommended.d.ts +2 -1
- package/types/configs/recommended.d.ts.map +1 -1
- package/types/index.d.ts +2 -6
- package/types/index.d.ts.map +1 -1
- package/types/languages/html-language.d.ts +12 -10
- package/types/languages/html-language.d.ts.map +1 -1
- package/types/languages/html-source-code.d.ts +13 -6
- package/types/languages/html-source-code.d.ts.map +1 -1
- package/types/languages/html-traversal-step.d.ts +5 -5
- package/types/languages/html-traversal-step.d.ts.map +1 -1
- package/types/rules/attrs-newline.d.ts +1 -1
- package/types/rules/attrs-newline.d.ts.map +1 -1
- package/types/rules/class-spacing.d.ts +4 -0
- package/types/rules/class-spacing.d.ts.map +1 -0
- package/types/rules/element-newline.d.ts +3 -3
- package/types/rules/element-newline.d.ts.map +1 -1
- package/types/rules/id-naming-convention.d.ts.map +1 -1
- package/types/rules/indent/indent-level.d.ts +10 -17
- package/types/rules/indent/indent-level.d.ts.map +1 -1
- package/types/rules/indent/indent.d.ts.map +1 -1
- package/types/rules/lowercase.d.ts.map +1 -1
- package/types/rules/max-element-depth.d.ts.map +1 -1
- package/types/rules/no-abstract-roles.d.ts.map +1 -1
- package/types/rules/no-accesskey-attrs.d.ts.map +1 -1
- package/types/rules/no-aria-hidden-body.d.ts.map +1 -1
- package/types/rules/no-aria-hidden-on-focusable.d.ts.map +1 -1
- package/types/rules/no-duplicate-attrs.d.ts.map +1 -1
- package/types/rules/no-duplicate-class.d.ts.map +1 -1
- package/types/rules/no-duplicate-id.d.ts.map +1 -1
- package/types/rules/no-duplicate-in-head.d.ts.map +1 -1
- package/types/rules/no-empty-headings.d.ts.map +1 -1
- package/types/rules/no-extra-spacing-attrs.d.ts.map +1 -1
- package/types/rules/no-extra-spacing-text.d.ts.map +1 -1
- package/types/rules/no-heading-inside-button.d.ts.map +1 -1
- package/types/rules/no-ineffective-attrs.d.ts.map +1 -1
- package/types/rules/no-inline-styles.d.ts.map +1 -1
- package/types/rules/no-invalid-entity.d.ts.map +1 -1
- package/types/rules/no-invalid-role.d.ts.map +1 -1
- package/types/rules/no-multiple-empty-lines.d.ts.map +1 -1
- package/types/rules/no-multiple-h1.d.ts.map +1 -1
- package/types/rules/no-nested-interactive.d.ts.map +1 -1
- package/types/rules/no-non-scalable-viewport.d.ts.map +1 -1
- package/types/rules/no-obsolete-attrs.d.ts +4 -0
- package/types/rules/no-obsolete-attrs.d.ts.map +1 -0
- package/types/rules/no-obsolete-tags.d.ts.map +1 -1
- package/types/rules/no-positive-tabindex.d.ts.map +1 -1
- package/types/rules/no-restricted-attr-values.d.ts.map +1 -1
- package/types/rules/no-restricted-attrs.d.ts.map +1 -1
- package/types/rules/no-restricted-tags.d.ts.map +1 -1
- package/types/rules/no-script-style-type.d.ts.map +1 -1
- package/types/rules/no-skip-heading-levels.d.ts.map +1 -1
- package/types/rules/no-target-blank.d.ts.map +1 -1
- package/types/rules/no-trailing-spaces.d.ts.map +1 -1
- package/types/rules/no-whitespace-only-children.d.ts.map +1 -1
- package/types/rules/prefer-https.d.ts.map +1 -1
- package/types/rules/quotes.d.ts.map +1 -1
- package/types/rules/require-attrs.d.ts.map +1 -1
- package/types/rules/require-button-type.d.ts.map +1 -1
- package/types/rules/require-closing-tags.d.ts.map +1 -1
- package/types/rules/require-doctype.d.ts.map +1 -1
- package/types/rules/require-explicit-size.d.ts.map +1 -1
- package/types/rules/require-form-method.d.ts.map +1 -1
- package/types/rules/require-frame-title.d.ts.map +1 -1
- package/types/rules/require-img-alt.d.ts.map +1 -1
- package/types/rules/require-input-label.d.ts.map +1 -1
- package/types/rules/require-lang.d.ts.map +1 -1
- package/types/rules/require-li-container.d.ts.map +1 -1
- package/types/rules/require-meta-charset.d.ts.map +1 -1
- package/types/rules/require-meta-description.d.ts.map +1 -1
- package/types/rules/require-meta-viewport.d.ts.map +1 -1
- package/types/rules/require-open-graph-protocol.d.ts.map +1 -1
- package/types/rules/require-title.d.ts.map +1 -1
- package/types/rules/sort-attrs.d.ts.map +1 -1
- package/types/rules/use-baseline.d.ts.map +1 -1
- package/types/rules/utils/baseline.d.ts +1 -3
- package/types/rules/utils/baseline.d.ts.map +1 -1
- package/types/rules/utils/naming.d.ts +14 -7
- package/types/rules/utils/naming.d.ts.map +1 -1
- package/types/rules/utils/node.d.ts +11 -10
- package/types/rules/utils/node.d.ts.map +1 -1
- package/types/rules/utils/rule.d.ts +1 -4
- package/types/rules/utils/rule.d.ts.map +1 -1
- package/types/rules/utils/settings.d.ts +0 -1
- package/types/rules/utils/settings.d.ts.map +1 -1
- package/types/rules/utils/source-code.d.ts +2 -6
- package/types/rules/utils/source-code.d.ts.map +1 -1
- package/types/rules/utils/template-literal.d.ts +2 -1
- package/types/rules/utils/template-literal.d.ts.map +1 -1
- package/types/rules/utils/visitors.d.ts.map +1 -1
- package/types/specs/index.d.ts +3 -0
- package/types/specs/index.d.ts.map +1 -0
- package/types/specs/obsolete-attrs.d.ts +19 -0
- package/types/specs/obsolete-attrs.d.ts.map +1 -0
- package/types/types/ast.d.ts +5 -2
- package/types/types/ast.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/naming.js"],"names":[],"mappings":"AAOE
|
|
1
|
+
{"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/naming.js"],"names":[],"mappings":"AAOE;;;;;;GAMG;AACH,kCAJW,MAAM,GACJ,OAAO,CAKnB;AAED;;;;;;GAMG;AACH,kCAJW,MAAM,GACJ,OAAO,CAKnB;AAED;;;;;;GAMG;AACH,mCAJW,MAAM,GACJ,OAAO,CAKnB;AAED;;;;;GAKG;AACH,kCAHW,MAAM,GACJ,OAAO,CAInB"}
|
|
@@ -6,27 +6,30 @@
|
|
|
6
6
|
export function findAttr(node: Tag | ScriptTag | StyleTag, key: string): Attribute | undefined;
|
|
7
7
|
/**
|
|
8
8
|
* Checks whether a node's attributes is empty or not.
|
|
9
|
+
*
|
|
9
10
|
* @param {Tag | ScriptTag | StyleTag} node
|
|
10
11
|
* @returns {boolean}
|
|
11
12
|
*/
|
|
12
13
|
export function isAttributesEmpty(node: Tag | ScriptTag | StyleTag): boolean;
|
|
13
14
|
/**
|
|
14
15
|
* Checks whether a node's all tokens are on the same line or not.
|
|
16
|
+
*
|
|
15
17
|
* @param {AnyNode} node A node to check
|
|
16
|
-
* @returns {boolean} `true` if a node's tokens are on the same line, otherwise
|
|
18
|
+
* @returns {boolean} `true` if a node's tokens are on the same line, otherwise
|
|
19
|
+
* `false`.
|
|
17
20
|
*/
|
|
18
21
|
export function isNodeTokensOnSameLine(node: AnyNode): boolean;
|
|
19
22
|
/**
|
|
20
|
-
*
|
|
21
23
|
* @param {Text | CommentContent} node
|
|
22
24
|
* @returns {Line[]}
|
|
23
25
|
*/
|
|
24
26
|
export function splitToLineNodes(node: Text | CommentContent): Line[];
|
|
25
27
|
/**
|
|
26
28
|
* Get location between two nodes.
|
|
27
|
-
*
|
|
28
|
-
* @param {{loc: AST.SourceLocation}}
|
|
29
|
-
* @
|
|
29
|
+
*
|
|
30
|
+
* @param {{ loc: AST.SourceLocation }} before A node placed in before
|
|
31
|
+
* @param {{ loc: AST.SourceLocation }} after A node placed in after
|
|
32
|
+
* @returns {AST.SourceLocation} Location between two nodes.
|
|
30
33
|
*/
|
|
31
34
|
export function getLocBetween(before: {
|
|
32
35
|
loc: AST.SourceLocation;
|
|
@@ -70,7 +73,7 @@ export function isScript(node: BaseNode): node is ScriptTag;
|
|
|
70
73
|
*/
|
|
71
74
|
export function isStyle(node: BaseNode): node is StyleTag;
|
|
72
75
|
/**
|
|
73
|
-
* @param {(Text | CommentContent)[
|
|
76
|
+
* @param {(Text | CommentContent)["parts"]} parts
|
|
74
77
|
* @param {AST.Range} range
|
|
75
78
|
* @returns {boolean}
|
|
76
79
|
*/
|
|
@@ -81,18 +84,16 @@ export function isOverlapWithTemplates(parts: (Text | CommentContent)["parts"],
|
|
|
81
84
|
*/
|
|
82
85
|
export function codeToLines(source: string): string[];
|
|
83
86
|
/**
|
|
84
|
-
*
|
|
85
87
|
* @param {AST.Range} rangeA
|
|
86
88
|
* @param {AST.Range} rangeB
|
|
87
89
|
* @returns {boolean}
|
|
88
90
|
*/
|
|
89
91
|
export function isRangesOverlap(rangeA: AST.Range, rangeB: AST.Range): boolean;
|
|
90
92
|
/**
|
|
91
|
-
*
|
|
92
93
|
* @param {AnyToken[]} tokens
|
|
93
|
-
* @returns {(
|
|
94
|
+
* @returns {(CommentContent | Text)["parts"][number][]}
|
|
94
95
|
*/
|
|
95
|
-
export function getTemplateTokens(tokens: AnyToken[]): (
|
|
96
|
+
export function getTemplateTokens(tokens: AnyToken[]): (CommentContent | Text)["parts"][number][];
|
|
96
97
|
/**
|
|
97
98
|
* @param {AttributeKey | AttributeValue | Text | CommentContent} node
|
|
98
99
|
* @returns {boolean}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/node.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/node.js"],"names":[],"mappings":"AAyBA;;;;GAIG;AACH,+BAJW,GAAG,GAAG,SAAS,GAAG,QAAQ,OAC1B,MAAM,GACJ,SAAS,GAAG,SAAS,CAMjC;AAaD;;;;;GAKG;AACH,wCAHW,GAAG,GAAG,SAAS,GAAG,QAAQ,GACxB,OAAO,CAInB;AAED;;;;;;GAMG;AACH,6CAJW,OAAO,GACL,OAAO,CAKnB;AA8BD;;;GAGG;AACH,uCAHW,IAAI,GAAG,cAAc,GACnB,IAAI,EAAE,CAwElB;AAED;;;;;;GAMG;AACH,sCAJW;IAAE,GAAG,EAAE,kBAAkB,CAAA;CAAE,SAC3B;IAAE,GAAG,EAAE,kBAAkB,CAAA;CAAE,GACzB,kBAAkB,CAO9B;AA4DD;;;;GAIG;AACH,iCAJW,OAAO,aACP,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,GACxB,IAAI,GAAG,OAAO,CAiB1B;AA9ED;;;GAGG;AACH,4BAHW,QAAQ,GACN,IAAI,IAAI,GAAG,CAIvB;AAkBD;;;GAGG;AACH,gCAHW,QAAQ,GACN,IAAI,IAAI,OAAO,CAI3B;AAED;;;GAGG;AACH,6BAHW,QAAQ,GACN,IAAI,IAAI,IAAI,CAIxB;AAED;;;GAGG;AACH,6BAHW,QAAQ,GACN,IAAI,IAAI,IAAI,CAIxB;AAtCD;;;GAGG;AACH,+BAHW,QAAQ,GACN,IAAI,IAAI,SAAS,CAI7B;AAED;;;GAGG;AACH,8BAHW,QAAQ,GACN,IAAI,IAAI,QAAQ,CAI5B;AAnID;;;;GAIG;AACH,8CAJW,CAAC,IAAI,GAAG,cAAc,CAAC,CAAC,OAAO,CAAC,SAChC,SAAS,GACP,OAAO,CAMnB;AAsJD;;;GAGG;AACH,oCAHW,MAAM,GACJ,MAAM,EAAE,CAIpB;AA9KD;;;;GAIG;AACH,wCAJW,SAAS,UACT,SAAS,GACP,OAAO,CAInB;AA+LD;;;GAGG;AACH,0CAHW,QAAQ,EAAE,GACR,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,EAAE,CAatD;AAjMD;;;GAGG;AACH,kCAHW,YAAY,GAAG,cAAc,GAAG,IAAI,GAAG,cAAc,GACnD,OAAO,CAInB;AA1DD;;;;GAIG;AACH,8BAJW,GAAG,GAAG,SAAS,YACf,MAAM,GACJ,OAAO,CAMnB;AA8OD;;;GAGG;AACH,gCAHW,GAAG,GAAG,SAAS,GAAG,QAAQ,GACxB,MAAM,CAUlB;yBAxRS,oBAAoB;+BAApB,oBAAoB;8BAApB,oBAAoB;+BAApB,oBAAoB;6BAApB,oBAAoB;0BAApB,oBAAoB;oCAApB,oBAAoB;0BAKpB,aAAa;yBAJD,QAAQ;8BAIpB,aAAa;6BALb,oBAAoB;8BAApB,oBAAoB;kCAApB,oBAAoB;oCAApB,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/rule.js"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"rule.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/rule.js"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,qCADY,MAAM,UAGjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/settings.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/settings.js"],"names":[],"mappings":"AA8DA;;;;GAIG;AACH,iDAJW,eAAe,WACf,QAAQ,GAAG,EAAE,CAAC,GACZ,OAAO,CAWnB;AA5BD;;;;GAIG;AACH,0DAJW,wBAAwB,WACxB,QAAQ,GAAG,EAAE,CAAC,GACZ,OAAO,CASnB;qCAxDS,oBAAoB;6BAKpB,aAAa;8CALb,oBAAoB"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @param {Context<any[]>} context
|
|
6
|
-
*/
|
|
1
|
+
/** @import {Context} from "../../types" */
|
|
2
|
+
/** @param {Context<any[]>} context */
|
|
7
3
|
export function getSourceCode(context: Context<any[]>): import("eslint").SourceCode;
|
|
8
4
|
import type { Context } from "../../types";
|
|
9
5
|
//# sourceMappingURL=source-code.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-code.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/source-code.js"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"source-code.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/source-code.js"],"names":[],"mappings":"AAAA,2CAA2C;AAE3C,sCAAsC;AACtC,uCADY,QAAQ,GAAG,EAAE,CAAC,+BAGzB;6BAL0B,aAAa"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Get or create cached parse result for a template literal.
|
|
3
|
+
*
|
|
3
4
|
* @param {TemplateLiteral} node
|
|
4
5
|
* @param {SourceCode} sourceCode
|
|
5
6
|
* @param {TemplateHTMLVisitor} [visitor]
|
|
6
|
-
* @returns {{ast: DocumentNode
|
|
7
|
+
* @returns {{ ast: DocumentNode; html: string; tokens: AnyToken[] }}
|
|
7
8
|
*/
|
|
8
9
|
export function parseTemplateLiteral(node: TemplateLiteral, sourceCode: SourceCode, visitor?: TemplateHTMLVisitor): {
|
|
9
10
|
ast: DocumentNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-literal.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/template-literal.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"template-literal.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/template-literal.js"],"names":[],"mappings":"AAwBA;;;;;;;GAOG;AACH,2CALW,eAAe,cACf,UAAU,YACV,mBAAmB,GACjB;IAAE,GAAG,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,QAAQ,EAAE,CAAA;CAAE,CAmBnE;qCA/CiC,oBAAoB;gCAKzB,QAAQ;yCANC,8BAA8B;kCAK1D,gBAAgB;8BAAhB,gBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visitors.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/visitors.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"visitors.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/visitors.js"],"names":[],"mappings":"AAkCA;;;;;GAKG;AACH,wCALW,QAAQ,GAAG,EAAE,CAAC,YACd,YAAY,qBACZ,GAAG,GACD,YAAY,CAWxB;6BA7CS,aAAa;kCAAb,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/specs/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare namespace _exports {
|
|
2
|
+
export { ObsoleteAttrConfig, ObsoleteAttrs };
|
|
3
|
+
}
|
|
4
|
+
declare const _exports: ObsoleteAttrs;
|
|
5
|
+
export = _exports;
|
|
6
|
+
type ObsoleteAttrConfig = {
|
|
7
|
+
/**
|
|
8
|
+
* - List of HTML elements where this attribute is
|
|
9
|
+
* obsolete. Use "*" for all elements.
|
|
10
|
+
*/
|
|
11
|
+
elements: string[];
|
|
12
|
+
/**
|
|
13
|
+
* - Suggestion for what to use instead of this
|
|
14
|
+
* obsolete attribute.
|
|
15
|
+
*/
|
|
16
|
+
suggestion: string;
|
|
17
|
+
};
|
|
18
|
+
type ObsoleteAttrs = Record<string, ObsoleteAttrConfig[]>;
|
|
19
|
+
//# sourceMappingURL=obsolete-attrs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"obsolete-attrs.d.ts","sourceRoot":"","sources":["../../lib/specs/obsolete-attrs.js"],"names":[],"mappings":";;;wBAWW,aAAa;;;;;;;cATV,MAAM,EAAE;;;;;gBAER,MAAM;;qBAIN,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,CAAC"}
|
package/types/types/ast.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import eslint from "eslint";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* This is not a node generated by es-html-parser; it is created by utils's
|
|
4
|
+
* splitToLineNodes.
|
|
4
5
|
*/
|
|
5
6
|
export interface Line extends BaseNode {
|
|
6
7
|
type: "Line";
|
|
7
8
|
value: string;
|
|
8
|
-
|
|
9
|
+
isOverlapTemplate: boolean;
|
|
10
|
+
hasOpenTemplate: boolean;
|
|
11
|
+
hasCloseTemplate: boolean;
|
|
9
12
|
}
|
|
10
13
|
export interface BaseNode {
|
|
11
14
|
parent?: BaseNode | null;
|
package/types/types/ast.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../lib/types/ast.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B
|
|
1
|
+
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../lib/types/ast.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B;;;GAGG;AACH,MAAM,WAAW,IAAK,SAAQ,QAAQ;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC;CAChC"}
|