@html-eslint/eslint-plugin 0.35.0-alpha.0 → 0.35.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.
Files changed (182) hide show
  1. package/lib/rules/attrs-newline.js +11 -7
  2. package/lib/rules/element-newline.js +172 -160
  3. package/lib/rules/id-naming-convention.js +10 -4
  4. package/lib/rules/indent/indent-level.js +1 -1
  5. package/lib/rules/indent/indent.js +28 -15
  6. package/lib/rules/lowercase.js +4 -4
  7. package/lib/rules/max-element-depth.js +8 -5
  8. package/lib/rules/no-abstract-roles.js +4 -4
  9. package/lib/rules/no-accesskey-attrs.js +4 -4
  10. package/lib/rules/no-aria-hidden-body.js +1 -1
  11. package/lib/rules/no-duplicate-attrs.js +4 -4
  12. package/lib/rules/no-duplicate-id.js +5 -5
  13. package/lib/rules/no-extra-spacing-attrs.js +18 -12
  14. package/lib/rules/no-extra-spacing-text.js +8 -5
  15. package/lib/rules/no-heading-inside-button.js +1 -1
  16. package/lib/rules/no-inline-styles.js +1 -1
  17. package/lib/rules/no-invalid-role.js +1 -1
  18. package/lib/rules/no-multiple-empty-lines.js +8 -5
  19. package/lib/rules/no-multiple-h1.js +2 -2
  20. package/lib/rules/no-nested-interactive.js +2 -2
  21. package/lib/rules/no-non-scalable-viewport.js +1 -1
  22. package/lib/rules/no-obsolete-tags.js +1 -1
  23. package/lib/rules/no-positive-tabindex.js +4 -4
  24. package/lib/rules/no-restricted-attr-values.js +5 -5
  25. package/lib/rules/no-restricted-attrs.js +8 -7
  26. package/lib/rules/no-script-style-type.js +4 -4
  27. package/lib/rules/no-skip-heading-levels.js +2 -2
  28. package/lib/rules/no-target-blank.js +1 -1
  29. package/lib/rules/no-trailing-spaces.js +3 -3
  30. package/lib/rules/prefer-https.js +5 -5
  31. package/lib/rules/quotes.js +7 -5
  32. package/lib/rules/require-attrs.js +7 -5
  33. package/lib/rules/require-button-type.js +1 -1
  34. package/lib/rules/require-closing-tags.js +6 -2
  35. package/lib/rules/require-doctype.js +1 -1
  36. package/lib/rules/require-explicit-size.js +8 -3
  37. package/lib/rules/require-form-method.js +1 -1
  38. package/lib/rules/require-frame-title.js +1 -1
  39. package/lib/rules/require-img-alt.js +9 -8
  40. package/lib/rules/require-input-label.js +2 -2
  41. package/lib/rules/require-lang.js +4 -7
  42. package/lib/rules/require-li-container.js +1 -1
  43. package/lib/rules/require-meta-charset.js +3 -3
  44. package/lib/rules/require-meta-description.js +3 -3
  45. package/lib/rules/require-meta-viewport.js +3 -3
  46. package/lib/rules/require-open-graph-protocol.js +6 -3
  47. package/lib/rules/require-title.js +4 -4
  48. package/lib/rules/sort-attrs.js +11 -11
  49. package/lib/rules/utils/node.js +31 -19
  50. package/lib/rules/utils/settings.js +3 -3
  51. package/lib/rules/utils/source-code.js +1 -1
  52. package/lib/rules/utils/visitors.js +1 -1
  53. package/lib/types/ast.d.ts +4 -194
  54. package/lib/types/index.d.ts +1 -1
  55. package/lib/types/rule.d.ts +41 -10
  56. package/package.json +11 -20
  57. package/types/configs/recommended.d.ts +0 -20
  58. package/types/configs/recommended.d.ts.map +0 -1
  59. package/types/constants/index.d.ts +0 -5
  60. package/types/constants/index.d.ts.map +0 -1
  61. package/types/constants/obsolete-tags.d.ts +0 -3
  62. package/types/constants/obsolete-tags.d.ts.map +0 -1
  63. package/types/constants/rule-category.d.ts +0 -5
  64. package/types/constants/rule-category.d.ts.map +0 -1
  65. package/types/constants/svg-camel-case-attributes.d.ts +0 -3
  66. package/types/constants/svg-camel-case-attributes.d.ts.map +0 -1
  67. package/types/constants/void-elements.d.ts +0 -3
  68. package/types/constants/void-elements.d.ts.map +0 -1
  69. package/types/index.d.ts +0 -14
  70. package/types/index.d.ts.map +0 -1
  71. package/types/rules/attrs-newline.d.ts +0 -13
  72. package/types/rules/attrs-newline.d.ts.map +0 -1
  73. package/types/rules/element-newline.d.ts +0 -19
  74. package/types/rules/element-newline.d.ts.map +0 -1
  75. package/types/rules/id-naming-convention.d.ts +0 -10
  76. package/types/rules/id-naming-convention.d.ts.map +0 -1
  77. package/types/rules/indent/indent-level.d.ts +0 -55
  78. package/types/rules/indent/indent-level.d.ts.map +0 -1
  79. package/types/rules/indent/indent.d.ts +0 -30
  80. package/types/rules/indent/indent.d.ts.map +0 -1
  81. package/types/rules/indent/index.d.ts +0 -3
  82. package/types/rules/indent/index.d.ts.map +0 -1
  83. package/types/rules/index.d.ts +0 -51
  84. package/types/rules/index.d.ts.map +0 -1
  85. package/types/rules/lowercase.d.ts +0 -10
  86. package/types/rules/lowercase.d.ts.map +0 -1
  87. package/types/rules/max-element-depth.d.ts +0 -10
  88. package/types/rules/max-element-depth.d.ts.map +0 -1
  89. package/types/rules/no-abstract-roles.d.ts +0 -10
  90. package/types/rules/no-abstract-roles.d.ts.map +0 -1
  91. package/types/rules/no-accesskey-attrs.d.ts +0 -10
  92. package/types/rules/no-accesskey-attrs.d.ts.map +0 -1
  93. package/types/rules/no-aria-hidden-body.d.ts +0 -7
  94. package/types/rules/no-aria-hidden-body.d.ts.map +0 -1
  95. package/types/rules/no-duplicate-attrs.d.ts +0 -10
  96. package/types/rules/no-duplicate-attrs.d.ts.map +0 -1
  97. package/types/rules/no-duplicate-id.d.ts +0 -11
  98. package/types/rules/no-duplicate-id.d.ts.map +0 -1
  99. package/types/rules/no-extra-spacing-attrs.d.ts +0 -18
  100. package/types/rules/no-extra-spacing-attrs.d.ts.map +0 -1
  101. package/types/rules/no-extra-spacing-text.d.ts +0 -13
  102. package/types/rules/no-extra-spacing-text.d.ts.map +0 -1
  103. package/types/rules/no-heading-inside-button.d.ts +0 -7
  104. package/types/rules/no-heading-inside-button.d.ts.map +0 -1
  105. package/types/rules/no-inline-styles.d.ts +0 -7
  106. package/types/rules/no-inline-styles.d.ts.map +0 -1
  107. package/types/rules/no-invalid-role.d.ts +0 -7
  108. package/types/rules/no-invalid-role.d.ts.map +0 -1
  109. package/types/rules/no-multiple-empty-lines.d.ts +0 -11
  110. package/types/rules/no-multiple-empty-lines.d.ts.map +0 -1
  111. package/types/rules/no-multiple-h1.d.ts +0 -8
  112. package/types/rules/no-multiple-h1.d.ts.map +0 -1
  113. package/types/rules/no-nested-interactive.d.ts +0 -8
  114. package/types/rules/no-nested-interactive.d.ts.map +0 -1
  115. package/types/rules/no-non-scalable-viewport.d.ts +0 -7
  116. package/types/rules/no-non-scalable-viewport.d.ts.map +0 -1
  117. package/types/rules/no-obsolete-tags.d.ts +0 -7
  118. package/types/rules/no-obsolete-tags.d.ts.map +0 -1
  119. package/types/rules/no-positive-tabindex.d.ts +0 -10
  120. package/types/rules/no-positive-tabindex.d.ts.map +0 -1
  121. package/types/rules/no-restricted-attr-values.d.ts +0 -16
  122. package/types/rules/no-restricted-attr-values.d.ts.map +0 -1
  123. package/types/rules/no-restricted-attrs.d.ts +0 -16
  124. package/types/rules/no-restricted-attrs.d.ts.map +0 -1
  125. package/types/rules/no-script-style-type.d.ts +0 -10
  126. package/types/rules/no-script-style-type.d.ts.map +0 -1
  127. package/types/rules/no-skip-heading-levels.d.ts +0 -8
  128. package/types/rules/no-skip-heading-levels.d.ts.map +0 -1
  129. package/types/rules/no-target-blank.d.ts +0 -7
  130. package/types/rules/no-target-blank.d.ts.map +0 -1
  131. package/types/rules/no-trailing-spaces.d.ts +0 -9
  132. package/types/rules/no-trailing-spaces.d.ts.map +0 -1
  133. package/types/rules/prefer-https.d.ts +0 -11
  134. package/types/rules/prefer-https.d.ts.map +0 -1
  135. package/types/rules/quotes.d.ts +0 -12
  136. package/types/rules/quotes.d.ts.map +0 -1
  137. package/types/rules/require-attrs.d.ts +0 -15
  138. package/types/rules/require-attrs.d.ts.map +0 -1
  139. package/types/rules/require-button-type.d.ts +0 -7
  140. package/types/rules/require-button-type.d.ts.map +0 -1
  141. package/types/rules/require-closing-tags.d.ts +0 -8
  142. package/types/rules/require-closing-tags.d.ts.map +0 -1
  143. package/types/rules/require-doctype.d.ts +0 -7
  144. package/types/rules/require-doctype.d.ts.map +0 -1
  145. package/types/rules/require-explicit-size.d.ts +0 -9
  146. package/types/rules/require-explicit-size.d.ts.map +0 -1
  147. package/types/rules/require-form-method.d.ts +0 -7
  148. package/types/rules/require-form-method.d.ts.map +0 -1
  149. package/types/rules/require-frame-title.d.ts +0 -7
  150. package/types/rules/require-frame-title.d.ts.map +0 -1
  151. package/types/rules/require-img-alt.d.ts +0 -8
  152. package/types/rules/require-img-alt.d.ts.map +0 -1
  153. package/types/rules/require-input-label.d.ts +0 -8
  154. package/types/rules/require-input-label.d.ts.map +0 -1
  155. package/types/rules/require-lang.d.ts +0 -7
  156. package/types/rules/require-lang.d.ts.map +0 -1
  157. package/types/rules/require-li-container.d.ts +0 -7
  158. package/types/rules/require-li-container.d.ts.map +0 -1
  159. package/types/rules/require-meta-charset.d.ts +0 -9
  160. package/types/rules/require-meta-charset.d.ts.map +0 -1
  161. package/types/rules/require-meta-description.d.ts +0 -9
  162. package/types/rules/require-meta-description.d.ts.map +0 -1
  163. package/types/rules/require-meta-viewport.d.ts +0 -9
  164. package/types/rules/require-meta-viewport.d.ts.map +0 -1
  165. package/types/rules/require-open-graph-protocol.d.ts +0 -9
  166. package/types/rules/require-open-graph-protocol.d.ts.map +0 -1
  167. package/types/rules/require-title.d.ts +0 -10
  168. package/types/rules/require-title.d.ts.map +0 -1
  169. package/types/rules/sort-attrs.d.ts +0 -10
  170. package/types/rules/sort-attrs.d.ts.map +0 -1
  171. package/types/rules/utils/array.d.ts +0 -17
  172. package/types/rules/utils/array.d.ts.map +0 -1
  173. package/types/rules/utils/naming.d.ts +0 -25
  174. package/types/rules/utils/naming.d.ts.map +0 -1
  175. package/types/rules/utils/node.d.ts +0 -111
  176. package/types/rules/utils/node.d.ts.map +0 -1
  177. package/types/rules/utils/settings.d.ts +0 -19
  178. package/types/rules/utils/settings.d.ts.map +0 -1
  179. package/types/rules/utils/source-code.d.ts +0 -9
  180. package/types/rules/utils/source-code.d.ts.map +0 -1
  181. package/types/rules/utils/visitors.d.ts +0 -10
  182. package/types/rules/utils/visitors.d.ts.map +0 -1
@@ -1,7 +0,0 @@
1
- declare namespace _exports {
2
- export { RuleModule };
3
- }
4
- declare const _exports: RuleModule;
5
- export = _exports;
6
- type RuleModule = import("../types").RuleModule;
7
- //# sourceMappingURL=require-doctype.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-doctype.d.ts","sourceRoot":"","sources":["../../lib/rules/require-doctype.js"],"names":[],"mappings":";;;wBAWU,UAAU;;kBAVN,OAAO,UAAU,EAAE,UAAU"}
@@ -1,9 +0,0 @@
1
- declare namespace _exports {
2
- export { RuleModule, Tag, AnyNode };
3
- }
4
- declare const _exports: RuleModule;
5
- export = _exports;
6
- type RuleModule = import("../types").RuleModule;
7
- type Tag = import("../types").Tag;
8
- type AnyNode = import("../types").AnyNode;
9
- //# sourceMappingURL=require-explicit-size.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-explicit-size.d.ts","sourceRoot":"","sources":["../../lib/rules/require-explicit-size.js"],"names":[],"mappings":";;;wBAkBU,UAAU;;kBAjBN,OAAO,UAAU,EAAE,UAAU;WAC7B,OAAO,UAAU,EAAE,GAAG;eACtB,OAAO,UAAU,EAAE,OAAO"}
@@ -1,7 +0,0 @@
1
- declare namespace _exports {
2
- export { RuleModule };
3
- }
4
- declare const _exports: RuleModule;
5
- export = _exports;
6
- type RuleModule = import("../types").RuleModule;
7
- //# sourceMappingURL=require-form-method.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-form-method.d.ts","sourceRoot":"","sources":["../../lib/rules/require-form-method.js"],"names":[],"mappings":";;;wBAkBU,UAAU;;kBAjBN,OAAO,UAAU,EAAE,UAAU"}
@@ -1,7 +0,0 @@
1
- declare namespace _exports {
2
- export { RuleModule };
3
- }
4
- declare const _exports: RuleModule;
5
- export = _exports;
6
- type RuleModule = import("../types").RuleModule;
7
- //# sourceMappingURL=require-frame-title.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-frame-title.d.ts","sourceRoot":"","sources":["../../lib/rules/require-frame-title.js"],"names":[],"mappings":";;;wBAcU,UAAU;;kBAbN,OAAO,UAAU,EAAE,UAAU"}
@@ -1,8 +0,0 @@
1
- declare namespace _exports {
2
- export { RuleModule, Tag };
3
- }
4
- declare const _exports: RuleModule;
5
- export = _exports;
6
- type RuleModule = import("../types").RuleModule;
7
- type Tag = import("../types").Tag;
8
- //# sourceMappingURL=require-img-alt.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-img-alt.d.ts","sourceRoot":"","sources":["../../lib/rules/require-img-alt.js"],"names":[],"mappings":";;;wBAaU,UAAU;;kBAZN,OAAO,UAAU,EAAE,UAAU;WAC7B,OAAO,UAAU,EAAE,GAAG"}
@@ -1,8 +0,0 @@
1
- declare namespace _exports {
2
- export { RuleModule, Tag };
3
- }
4
- declare const _exports: RuleModule;
5
- export = _exports;
6
- type RuleModule = import("../types").RuleModule;
7
- type Tag = import("../types").Tag;
8
- //# sourceMappingURL=require-input-label.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-input-label.d.ts","sourceRoot":"","sources":["../../lib/rules/require-input-label.js"],"names":[],"mappings":";;;wBAkBU,UAAU;;kBAjBN,OAAO,UAAU,EAAE,UAAU;WAC7B,OAAO,UAAU,EAAE,GAAG"}
@@ -1,7 +0,0 @@
1
- declare namespace _exports {
2
- export { RuleModule };
3
- }
4
- declare const _exports: RuleModule;
5
- export = _exports;
6
- type RuleModule = import("../types").RuleModule;
7
- //# sourceMappingURL=require-lang.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-lang.d.ts","sourceRoot":"","sources":["../../lib/rules/require-lang.js"],"names":[],"mappings":";;;wBAcU,UAAU;;kBAbN,OAAO,UAAU,EAAE,UAAU"}
@@ -1,7 +0,0 @@
1
- declare namespace _exports {
2
- export { RuleModule };
3
- }
4
- declare const _exports: RuleModule;
5
- export = _exports;
6
- type RuleModule = import("../types").RuleModule;
7
- //# sourceMappingURL=require-li-container.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-li-container.d.ts","sourceRoot":"","sources":["../../lib/rules/require-li-container.js"],"names":[],"mappings":";;;wBAcU,UAAU;;kBAbN,OAAO,UAAU,EAAE,UAAU"}
@@ -1,9 +0,0 @@
1
- declare namespace _exports {
2
- export { RuleModule, Tag, AnyNode };
3
- }
4
- declare const _exports: RuleModule;
5
- export = _exports;
6
- type RuleModule = import("../types").RuleModule;
7
- type Tag = import("../types").Tag;
8
- type AnyNode = import("../types").AnyNode;
9
- //# sourceMappingURL=require-meta-charset.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-meta-charset.d.ts","sourceRoot":"","sources":["../../lib/rules/require-meta-charset.js"],"names":[],"mappings":";;;wBAwBU,UAAU;;kBAvBN,OAAO,UAAU,EAAE,UAAU;WAC7B,OAAO,UAAU,EAAE,GAAG;eACtB,OAAO,UAAU,EAAE,OAAO"}
@@ -1,9 +0,0 @@
1
- declare namespace _exports {
2
- export { RuleModule, Tag, AnyNode };
3
- }
4
- declare const _exports: RuleModule;
5
- export = _exports;
6
- type RuleModule = import("../types").RuleModule;
7
- type Tag = import("../types").Tag;
8
- type AnyNode = import("../types").AnyNode;
9
- //# sourceMappingURL=require-meta-description.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-meta-description.d.ts","sourceRoot":"","sources":["../../lib/rules/require-meta-description.js"],"names":[],"mappings":";;;wBAuBU,UAAU;;kBAtBN,OAAO,UAAU,EAAE,UAAU;WAC7B,OAAO,UAAU,EAAE,GAAG;eACtB,OAAO,UAAU,EAAE,OAAO"}
@@ -1,9 +0,0 @@
1
- declare namespace _exports {
2
- export { RuleModule, Tag, AnyNode };
3
- }
4
- declare const _exports: RuleModule;
5
- export = _exports;
6
- type RuleModule = import("../types").RuleModule;
7
- type Tag = import("../types").Tag;
8
- type AnyNode = import("../types").AnyNode;
9
- //# sourceMappingURL=require-meta-viewport.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-meta-viewport.d.ts","sourceRoot":"","sources":["../../lib/rules/require-meta-viewport.js"],"names":[],"mappings":";;;wBAgCU,UAAU;;kBA/BN,OAAO,UAAU,EAAE,UAAU;WAC7B,OAAO,UAAU,EAAE,GAAG;eACtB,OAAO,UAAU,EAAE,OAAO"}
@@ -1,9 +0,0 @@
1
- declare namespace _exports {
2
- export { RuleModule, Tag, AnyNode };
3
- }
4
- declare const _exports: RuleModule;
5
- export = _exports;
6
- type RuleModule = import("../types").RuleModule;
7
- type Tag = import("../types").Tag;
8
- type AnyNode = import("../types").AnyNode;
9
- //# sourceMappingURL=require-open-graph-protocol.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-open-graph-protocol.d.ts","sourceRoot":"","sources":["../../lib/rules/require-open-graph-protocol.js"],"names":[],"mappings":";;;wBAkCU,UAAU;;kBAjCN,OAAO,UAAU,EAAE,UAAU;WAC7B,OAAO,UAAU,EAAE,GAAG;eACrB,OAAO,UAAU,EAAE,OAAO"}
@@ -1,10 +0,0 @@
1
- declare namespace _exports {
2
- export { RuleModule, Tag, Text, AnyNode };
3
- }
4
- declare const _exports: RuleModule;
5
- export = _exports;
6
- type RuleModule = import("../types").RuleModule;
7
- type Tag = import("../types").Tag;
8
- type Text = import("../types").Text;
9
- type AnyNode = import("../types").AnyNode;
10
- //# sourceMappingURL=require-title.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-title.d.ts","sourceRoot":"","sources":["../../lib/rules/require-title.js"],"names":[],"mappings":";;;wBAiCU,UAAU;;kBAhCN,OAAO,UAAU,EAAE,UAAU;WAC7B,OAAO,UAAU,EAAE,GAAG;YACtB,OAAO,UAAU,EAAE,IAAI;eACvB,OAAO,UAAU,EAAE,OAAO"}
@@ -1,10 +0,0 @@
1
- declare namespace _exports {
2
- export { RuleFixer, RuleModule, Attribute, Text };
3
- }
4
- declare const _exports: RuleModule;
5
- export = _exports;
6
- type RuleFixer = import("eslint").Rule.RuleFixer;
7
- type RuleModule = import("../types").RuleModule;
8
- type Attribute = import("../types").Attribute;
9
- type Text = import("../types").Text;
10
- //# sourceMappingURL=sort-attrs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sort-attrs.d.ts","sourceRoot":"","sources":["../../lib/rules/sort-attrs.js"],"names":[],"mappings":";;;wBAiBU,UAAU;;iBAhBN,OAAO,QAAQ,EAAE,IAAI,CAAC,SAAS;kBAC/B,OAAO,UAAU,EAAE,UAAU;iBAC7B,OAAO,UAAU,EAAE,SAAS;YAC5B,OAAO,UAAU,EAAE,IAAI"}
@@ -1,17 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/array.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,qBANa,CAAC,EACG,CAAC,SAAJ,CAAE,SACL,CAAC,EAAE,aACH,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC,GACpB,CAAC,GAAG,SAAS,CAIzB;AAED;;;;;;GAMG;AACH,uBANa,CAAC,EACG,CAAC,SAAJ,CAAE,SACL,CAAC,EAAE,aACH,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC,GACpB,CAAC,EAAE,CAIf"}
@@ -1,25 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/naming.js"],"names":[],"mappings":"AAOE;;;;GAIG;AACH,kCAHW,MAAM,GACJ,OAAO,CAInB;AAED;;;;GAIG;AACH,kCAHW,MAAM,GACJ,OAAO,CAInB;AAED;;;;GAIG;AACH,mCAHW,MAAM,GACJ,OAAO,CAInB;AAED;;;;GAIG;AACH,kCAHW,MAAM,GACJ,OAAO,CAInB"}
@@ -1,111 +0,0 @@
1
- export type Attribute = import("../../types").Attribute;
2
- export type Tag = import("../../types").Tag;
3
- export type ScriptTag = import("../../types").ScriptTag;
4
- export type StyleTag = import("../../types").StyleTag;
5
- export type Line = import("../../types").Line;
6
- export type Text = import("../../types").Text;
7
- export type CommentContent = import("../../types").CommentContent;
8
- export type Comment = import("../../types").Comment;
9
- export type AnyNode = import("../../types").AnyNode;
10
- export type AttributeValue = import("../../types").AttributeValue;
11
- export type AttributeKey = import("../../types").AttributeKey;
12
- export type TemplateText = import("../../types").TemplateText;
13
- export type Range = import("eslint").AST.Range;
14
- export type SourceLocation = import("eslint").AST.SourceLocation;
15
- export type AnyToken = import("es-html-parser").AnyToken;
16
- /**
17
- * @param {Tag | ScriptTag | StyleTag} node
18
- * @param {string} key
19
- * @returns {Attribute | undefined}
20
- */
21
- export function findAttr(node: Tag | ScriptTag | StyleTag, key: string): Attribute | undefined;
22
- /**
23
- * Checks whether a node's attributes is empty or not.
24
- * @param {Tag | ScriptTag | StyleTag} node
25
- * @returns {boolean}
26
- */
27
- export function isAttributesEmpty(node: Tag | ScriptTag | StyleTag): boolean;
28
- /**
29
- * Checks whether a node's all tokens are on the same line or not.
30
- * @param {AnyNode} node A node to check
31
- * @returns {boolean} `true` if a node's tokens are on the same line, otherwise `false`.
32
- */
33
- export function isNodeTokensOnSameLine(node: AnyNode): boolean;
34
- /**
35
- *
36
- * @param {Text | CommentContent} node
37
- * @returns {Line[]}
38
- */
39
- export function splitToLineNodes(node: Text | CommentContent): Line[];
40
- /**
41
- * Get location between two nodes.
42
- * @param {{loc: SourceLocation}} before A node placed in before
43
- * @param {{loc: SourceLocation}} after A node placed in after
44
- * @returns {SourceLocation} location between two nodes.
45
- */
46
- export function getLocBetween(before: {
47
- loc: SourceLocation;
48
- }, after: {
49
- loc: SourceLocation;
50
- }): SourceLocation;
51
- /**
52
- * @param {Exclude<AnyNode, Line>} node
53
- * @param {(node: AnyNode) => boolean} predicate
54
- * @returns {null | AnyNode}
55
- */
56
- export function findParent(node: Exclude<AnyNode, Line>, predicate: (node: AnyNode) => boolean): null | AnyNode;
57
- /**
58
- * @param {AnyNode} node
59
- * @returns {node is Tag}
60
- */
61
- export function isTag(node: AnyNode): node is Tag;
62
- /**
63
- * @param {AnyNode} node
64
- * @returns {node is Comment}
65
- */
66
- export function isComment(node: AnyNode): node is Comment;
67
- /**
68
- * @param {AnyNode} node
69
- * @returns {node is Text}
70
- */
71
- export function isText(node: AnyNode): node is Text;
72
- /**
73
- * @param {AnyNode | Line | TemplateText} node
74
- * @returns {node is Line}
75
- */
76
- export function isLine(node: AnyNode | Line | TemplateText): node is Line;
77
- /**
78
- * @param {AnyNode} node
79
- * @returns {node is ScriptTag}
80
- */
81
- export function isScript(node: AnyNode): node is ScriptTag;
82
- /**
83
- * @param {(Text | CommentContent)['parts']} parts
84
- * @param {Range} range
85
- * @returns {boolean}
86
- */
87
- export function isOverlapWithTemplates(parts: (Text | CommentContent)["parts"], range: Range): boolean;
88
- /**
89
- * @param {string} source
90
- * @returns {string[]}
91
- */
92
- export function codeToLines(source: string): string[];
93
- /**
94
- *
95
- * @param {Range} rangeA
96
- * @param {Range} rangeB
97
- * @returns {boolean}
98
- */
99
- export function isRangesOverlap(rangeA: Range, rangeB: Range): boolean;
100
- /**
101
- *
102
- * @param {AnyToken[]} tokens
103
- * @returns {((CommentContent | Text)['parts'][number])[]}
104
- */
105
- export function getTemplateTokens(tokens: AnyToken[]): ((CommentContent | Text)["parts"][number])[];
106
- /**
107
- * @param {AttributeKey | AttributeValue | Text | CommentContent} node
108
- * @returns {boolean}
109
- */
110
- export function hasTemplate(node: AttributeKey | AttributeValue | Text | CommentContent): boolean;
111
- //# sourceMappingURL=node.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/node.js"],"names":[],"mappings":"wBACc,OAAO,aAAa,EAAE,SAAS;kBAC/B,OAAO,aAAa,EAAE,GAAG;wBACzB,OAAO,aAAa,EAAE,SAAS;uBAC/B,OAAO,aAAa,EAAE,QAAQ;mBAC9B,OAAO,aAAa,EAAE,IAAI;mBAC1B,OAAO,aAAa,EAAE,IAAI;6BAC1B,OAAO,aAAa,EAAE,cAAc;sBACpC,OAAO,aAAa,EAAE,OAAO;sBAC7B,OAAO,aAAa,EAAE,OAAO;6BAC7B,OAAO,aAAa,EAAE,cAAc;2BACpC,OAAO,aAAa,EAAE,YAAY;2BAClC,OAAO,aAAa,EAAE,YAAY;oBAClC,OAAO,QAAQ,EAAE,GAAG,CAAC,KAAK;6BAC1B,OAAO,QAAQ,EAAE,GAAG,CAAC,cAAc;uBACnC,OAAO,gBAAgB,EAAE,QAAQ;AAO/C;;;;GAIG;AACH,+BAJW,GAAG,GAAG,SAAS,GAAG,QAAQ,OAC1B,MAAM,GACJ,SAAS,GAAG,SAAS,CAMjC;AAED;;;;GAIG;AACH,wCAHW,GAAG,GAAG,SAAS,GAAG,QAAQ,GACxB,OAAO,CAInB;AAED;;;;GAIG;AACH,6CAHW,OAAO,GACL,OAAO,CAInB;AA+BD;;;;GAIG;AACH,uCAHW,IAAI,GAAG,cAAc,GACnB,IAAI,EAAE,CAwDlB;AAED;;;;;GAKG;AACH,sCAJW;IAAC,GAAG,EAAE,cAAc,CAAA;CAAC,SACrB;IAAC,GAAG,EAAE,cAAc,CAAA;CAAC,GACnB,cAAc,CAO1B;AAoDD;;;;GAIG;AACH,iCAJW,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,aACtB,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,GACxB,IAAI,GAAG,OAAO,CAgB1B;AArED;;;GAGG;AACH,4BAHW,OAAO,GACL,IAAI,IAAI,GAAG,CAIvB;AAUD;;;GAGG;AACH,gCAHW,OAAO,GACL,IAAI,IAAI,OAAO,CAI3B;AAED;;;GAGG;AACH,6BAHW,OAAO,GACL,IAAI,IAAI,IAAI,CAIxB;AAED;;;GAGG;AACH,6BAHW,OAAO,GAAG,IAAI,GAAG,YAAY,GAC3B,IAAI,IAAI,IAAI,CAIxB;AA9BD;;;GAGG;AACH,+BAHW,OAAO,GACL,IAAI,IAAI,SAAS,CAI7B;AA3GD;;;;GAIG;AACH,8CAJW,CAAC,IAAI,GAAG,cAAc,CAAC,CAAC,OAAO,CAAC,SAChC,KAAK,GACH,OAAO,CAMnB;AA8HD;;;GAGG;AACH,oCAHW,MAAM,GACJ,MAAM,EAAE,CAIpB;AAvJD;;;;;GAKG;AACH,wCAJW,KAAK,UACL,KAAK,GACH,OAAO,CAInB;AAsKD;;;;GAIG;AACH,0CAHW,QAAQ,EAAE,GACR,CAAC,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAaxD;AAzKD;;;GAGG;AACH,kCAHW,YAAY,GAAG,cAAc,GAAG,IAAI,GAAG,cAAc,GACnD,OAAO,CAInB"}
@@ -1,19 +0,0 @@
1
- export type MaybeHTMLSettings = import("../../types").MaybeHTMLSettings;
2
- export type HTMLSettings = import("../../types").HTMLSettings;
3
- export type Context = import("../../types").Context;
4
- export type TaggedTemplateExpression = import("../../types").TaggedTemplateExpression;
5
- export type TemplateLiteral = import("../../types").TemplateLiteral;
6
- /**
7
- *
8
- * @param {TemplateLiteral} node
9
- * @param {Context} context
10
- * @returns {boolean}
11
- */
12
- export function shouldCheckTemplateLiteral(node: TemplateLiteral, context: Context): boolean;
13
- /**
14
- * @param {TaggedTemplateExpression} node
15
- * @param {Context} context
16
- * @returns {boolean}
17
- */
18
- export function shouldCheckTaggedTemplateExpression(node: TaggedTemplateExpression, context: Context): boolean;
19
- //# sourceMappingURL=settings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/settings.js"],"names":[],"mappings":"gCACa,OAAO,aAAa,EAAE,iBAAiB;2BACvC,OAAO,aAAa,EAAE,YAAY;sBAClC,OAAO,aAAa,EAAE,OAAO;uCAC7B,OAAO,aAAa,EAAE,wBAAwB;8BAC9C,OAAO,aAAa,EAAE,eAAe;AA8DlD;;;;;GAKG;AACH,iDAJW,eAAe,WACf,OAAO,GACL,OAAO,CAWnB;AA7BD;;;;GAIG;AACH,0DAJW,wBAAwB,WACxB,OAAO,GACL,OAAO,CASnB"}
@@ -1,9 +0,0 @@
1
- export type Context = import("../../types").Context;
2
- /**
3
- * @typedef {import("../../types").Context} Context
4
- */
5
- /**
6
- * @param {Context} context
7
- */
8
- export function getSourceCode(context: Context): any;
9
- //# sourceMappingURL=source-code.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source-code.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/source-code.js"],"names":[],"mappings":"sBACa,OAAO,aAAa,EAAE,OAAO;AAD1C;;GAEG;AAEH;;GAEG;AACH,uCAFW,OAAO,OAIjB"}
@@ -1,10 +0,0 @@
1
- export type Context = import("../../types").Context;
2
- export type RuleListener = import("../../types").RuleListener;
3
- /**
4
- * @param {Context} context
5
- * @param {RuleListener} visitors
6
- * @param {any} [templateVisitors]
7
- * @returns {RuleListener}
8
- */
9
- export function createVisitors(context: Context, visitors: RuleListener, templateVisitors?: any): RuleListener;
10
- //# sourceMappingURL=visitors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"visitors.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/visitors.js"],"names":[],"mappings":"sBACc,OAAO,aAAa,EAAE,OAAO;2BAC7B,OAAO,aAAa,EAAE,YAAY;AA8BhD;;;;;GAKG;AACH,wCALW,OAAO,YACP,YAAY,qBACZ,GAAG,GACD,YAAY,CAWxB"}