@askviraj/linter 1.1.2 → 1.1.4

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 (651) hide show
  1. package/node_modules/{synckit → @astrojs/compiler-binding}/LICENSE +1 -1
  2. package/node_modules/@astrojs/compiler-binding/browser.js +1 -0
  3. package/node_modules/@astrojs/compiler-binding/index.d.ts +337 -0
  4. package/node_modules/@astrojs/compiler-binding/index.js +599 -0
  5. package/node_modules/@astrojs/compiler-binding/package.json +83 -0
  6. package/node_modules/@astrojs/compiler-binding/webcontainer-fallback.cjs +23 -0
  7. package/node_modules/@astrojs/compiler-binding-linux-x64-gnu/README.md +3 -0
  8. package/node_modules/@astrojs/compiler-binding-linux-x64-gnu/astro.linux-x64-gnu.node +0 -0
  9. package/node_modules/@astrojs/compiler-binding-linux-x64-gnu/package.json +40 -0
  10. package/node_modules/{parse5 → @astrojs/compiler-rs}/LICENSE +7 -5
  11. package/node_modules/@astrojs/compiler-rs/README.md +62 -0
  12. package/node_modules/@astrojs/compiler-rs/async.d.ts +1 -0
  13. package/node_modules/@astrojs/compiler-rs/dist/async.d.mts +9 -0
  14. package/node_modules/@astrojs/compiler-rs/dist/async.mjs +1 -0
  15. package/node_modules/@astrojs/compiler-rs/dist/index.d.mts +9 -0
  16. package/node_modules/@astrojs/compiler-rs/dist/index.mjs +1 -0
  17. package/node_modules/@astrojs/compiler-rs/dist/shared.d.mts +45 -0
  18. package/node_modules/@astrojs/compiler-rs/dist/shared.mjs +1 -0
  19. package/node_modules/@astrojs/compiler-rs/dist/types.d.mts +94 -0
  20. package/node_modules/@astrojs/compiler-rs/dist/types.mjs +1 -0
  21. package/node_modules/@astrojs/compiler-rs/dist/utils.d.mts +4 -0
  22. package/node_modules/@astrojs/compiler-rs/dist/utils.mjs +1 -0
  23. package/node_modules/@astrojs/compiler-rs/package.json +55 -0
  24. package/node_modules/@astrojs/compiler-rs/types.d.ts +1 -0
  25. package/node_modules/@eslint/config-helpers/README.md +2 -2
  26. package/node_modules/@eslint/config-helpers/dist/cjs/index.cjs +27 -26
  27. package/node_modules/@eslint/config-helpers/dist/cjs/index.d.cts +13 -12
  28. package/node_modules/@eslint/config-helpers/dist/cjs/types.cts +4 -2
  29. package/node_modules/@eslint/config-helpers/dist/esm/index.d.ts +13 -12
  30. package/node_modules/@eslint/config-helpers/dist/esm/index.js +27 -26
  31. package/node_modules/@eslint/config-helpers/dist/esm/types.d.ts +2 -0
  32. package/node_modules/@eslint/config-helpers/dist/esm/types.ts +4 -2
  33. package/node_modules/@eslint/config-helpers/package.json +1 -1
  34. package/node_modules/@eslint/css/README.md +2 -2
  35. package/node_modules/@eslint/css/dist/build/rules.d.ts +75 -21
  36. package/node_modules/@eslint/css/dist/build/rules.js +15 -15
  37. package/node_modules/@eslint/css/dist/data/baseline-data.js +256 -32
  38. package/node_modules/@eslint/css/dist/index.js +1 -1
  39. package/node_modules/@eslint/css/dist/rules/font-family-fallbacks.d.ts +15 -15
  40. package/node_modules/@eslint/css/dist/rules/font-family-fallbacks.js +2 -5
  41. package/node_modules/@eslint/css/dist/rules/no-duplicate-imports.d.ts +18 -18
  42. package/node_modules/@eslint/css/dist/rules/no-duplicate-imports.js +9 -12
  43. package/node_modules/@eslint/css/dist/rules/no-duplicate-keyframe-selectors.d.ts +14 -14
  44. package/node_modules/@eslint/css/dist/rules/no-duplicate-keyframe-selectors.js +2 -3
  45. package/node_modules/@eslint/css/dist/rules/no-empty-blocks.d.ts +14 -14
  46. package/node_modules/@eslint/css/dist/rules/no-empty-blocks.js +2 -3
  47. package/node_modules/@eslint/css/dist/rules/no-important.d.ts +16 -16
  48. package/node_modules/@eslint/css/dist/rules/no-important.js +2 -3
  49. package/node_modules/@eslint/css/dist/rules/no-invalid-at-rule-placement.d.ts +16 -16
  50. package/node_modules/@eslint/css/dist/rules/no-invalid-at-rule-placement.js +2 -3
  51. package/node_modules/@eslint/css/dist/rules/no-invalid-at-rules.d.ts +21 -21
  52. package/node_modules/@eslint/css/dist/rules/no-invalid-at-rules.js +2 -3
  53. package/node_modules/@eslint/css/dist/rules/no-invalid-named-grid-areas.d.ts +16 -16
  54. package/node_modules/@eslint/css/dist/rules/no-invalid-named-grid-areas.js +2 -3
  55. package/node_modules/@eslint/css/dist/rules/no-invalid-properties.d.ts +18 -18
  56. package/node_modules/@eslint/css/dist/rules/no-invalid-properties.js +2 -3
  57. package/node_modules/@eslint/css/dist/rules/no-unmatchable-selectors.d.ts +14 -14
  58. package/node_modules/@eslint/css/dist/rules/no-unmatchable-selectors.js +2 -3
  59. package/node_modules/@eslint/css/dist/rules/prefer-logical-properties.d.ts +22 -19
  60. package/node_modules/@eslint/css/dist/rules/prefer-logical-properties.js +66 -23
  61. package/node_modules/@eslint/css/dist/rules/relative-font-units.d.ts +16 -16
  62. package/node_modules/@eslint/css/dist/rules/relative-font-units.js +13 -7
  63. package/node_modules/@eslint/css/dist/rules/selector-complexity.d.ts +17 -17
  64. package/node_modules/@eslint/css/dist/rules/selector-complexity.js +2 -3
  65. package/node_modules/@eslint/css/dist/rules/use-baseline.d.ts +22 -22
  66. package/node_modules/@eslint/css/dist/rules/use-baseline.js +2 -3
  67. package/node_modules/@eslint/css/dist/rules/use-layers.d.ts +18 -18
  68. package/node_modules/@eslint/css/dist/rules/use-layers.js +3 -4
  69. package/node_modules/@eslint/css/package.json +7 -12
  70. package/node_modules/@eslint/css-tree/README.md +2 -2
  71. package/node_modules/@eslint/css-tree/dist/csstree.esm.js +1 -1
  72. package/node_modules/@eslint/css-tree/dist/csstree.js +1 -1
  73. package/node_modules/@eslint/css-tree/dist/data.cjs +4 -1
  74. package/node_modules/@eslint/css-tree/dist/data.js +4 -1
  75. package/node_modules/@eslint/css-tree/dist/version.cjs +1 -1
  76. package/node_modules/@eslint/css-tree/dist/version.js +1 -1
  77. package/node_modules/@eslint/css-tree/package.json +3 -3
  78. package/node_modules/@eslint/json/README.md +2 -2
  79. package/node_modules/@eslint/json/dist/index.js +1 -1
  80. package/node_modules/@eslint/json/package.json +4 -9
  81. package/node_modules/@eslint/markdown/README.md +3 -3
  82. package/node_modules/@eslint/markdown/dist/build/rules.d.ts +105 -27
  83. package/node_modules/@eslint/markdown/dist/build/rules.js +21 -21
  84. package/node_modules/@eslint/markdown/dist/index.d.ts +2 -2
  85. package/node_modules/@eslint/markdown/dist/index.js +4 -4
  86. package/node_modules/@eslint/markdown/dist/processor.d.ts +4 -9
  87. package/node_modules/@eslint/markdown/dist/processor.js +12 -15
  88. package/node_modules/@eslint/markdown/dist/rules/fenced-code-language.d.ts +17 -17
  89. package/node_modules/@eslint/markdown/dist/rules/fenced-code-language.js +2 -3
  90. package/node_modules/@eslint/markdown/dist/rules/fenced-code-meta.d.ts +17 -17
  91. package/node_modules/@eslint/markdown/dist/rules/fenced-code-meta.js +2 -3
  92. package/node_modules/@eslint/markdown/dist/rules/heading-increment.d.ts +16 -16
  93. package/node_modules/@eslint/markdown/dist/rules/heading-increment.js +2 -3
  94. package/node_modules/@eslint/markdown/dist/rules/no-bare-urls.d.ts +14 -14
  95. package/node_modules/@eslint/markdown/dist/rules/no-bare-urls.js +2 -3
  96. package/node_modules/@eslint/markdown/dist/rules/no-duplicate-definitions.d.ts +17 -17
  97. package/node_modules/@eslint/markdown/dist/rules/no-duplicate-definitions.js +2 -3
  98. package/node_modules/@eslint/markdown/dist/rules/no-duplicate-headings.d.ts +15 -15
  99. package/node_modules/@eslint/markdown/dist/rules/no-duplicate-headings.js +2 -3
  100. package/node_modules/@eslint/markdown/dist/rules/no-empty-definitions.d.ts +17 -17
  101. package/node_modules/@eslint/markdown/dist/rules/no-empty-definitions.js +2 -3
  102. package/node_modules/@eslint/markdown/dist/rules/no-empty-images.d.ts +14 -14
  103. package/node_modules/@eslint/markdown/dist/rules/no-empty-images.js +2 -3
  104. package/node_modules/@eslint/markdown/dist/rules/no-empty-links.d.ts +14 -14
  105. package/node_modules/@eslint/markdown/dist/rules/no-empty-links.js +2 -3
  106. package/node_modules/@eslint/markdown/dist/rules/no-html.d.ts +15 -15
  107. package/node_modules/@eslint/markdown/dist/rules/no-html.js +2 -3
  108. package/node_modules/@eslint/markdown/dist/rules/no-invalid-label-refs.d.ts +14 -14
  109. package/node_modules/@eslint/markdown/dist/rules/no-invalid-label-refs.js +2 -3
  110. package/node_modules/@eslint/markdown/dist/rules/no-missing-atx-heading-space.d.ts +17 -17
  111. package/node_modules/@eslint/markdown/dist/rules/no-missing-atx-heading-space.js +2 -3
  112. package/node_modules/@eslint/markdown/dist/rules/no-missing-label-refs.d.ts +16 -16
  113. package/node_modules/@eslint/markdown/dist/rules/no-missing-label-refs.js +2 -3
  114. package/node_modules/@eslint/markdown/dist/rules/no-missing-link-fragments.d.ts +16 -16
  115. package/node_modules/@eslint/markdown/dist/rules/no-missing-link-fragments.js +2 -3
  116. package/node_modules/@eslint/markdown/dist/rules/no-multiple-h1.d.ts +16 -16
  117. package/node_modules/@eslint/markdown/dist/rules/no-multiple-h1.js +2 -3
  118. package/node_modules/@eslint/markdown/dist/rules/no-reference-like-urls.d.ts +15 -15
  119. package/node_modules/@eslint/markdown/dist/rules/no-reference-like-urls.js +2 -3
  120. package/node_modules/@eslint/markdown/dist/rules/no-reversed-media-syntax.d.ts +15 -15
  121. package/node_modules/@eslint/markdown/dist/rules/no-reversed-media-syntax.js +2 -3
  122. package/node_modules/@eslint/markdown/dist/rules/no-space-in-emphasis.d.ts +17 -17
  123. package/node_modules/@eslint/markdown/dist/rules/no-space-in-emphasis.js +2 -3
  124. package/node_modules/@eslint/markdown/dist/rules/no-unused-definitions.d.ts +17 -17
  125. package/node_modules/@eslint/markdown/dist/rules/no-unused-definitions.js +2 -3
  126. package/node_modules/@eslint/markdown/dist/rules/require-alt-text.d.ts +14 -14
  127. package/node_modules/@eslint/markdown/dist/rules/require-alt-text.js +2 -3
  128. package/node_modules/@eslint/markdown/dist/rules/table-column-count.d.ts +17 -17
  129. package/node_modules/@eslint/markdown/dist/rules/table-column-count.js +2 -3
  130. package/node_modules/@eslint/markdown/package.json +5 -10
  131. package/node_modules/@eslint-community/eslint-utils/index.js +1 -1
  132. package/node_modules/@eslint-community/eslint-utils/index.js.map +1 -1
  133. package/node_modules/@eslint-community/eslint-utils/index.mjs +1 -1
  134. package/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -1
  135. package/node_modules/@eslint-community/eslint-utils/package.json +12 -7
  136. package/node_modules/@html-eslint/core/dist/index.js +1 -0
  137. package/node_modules/@html-eslint/core/dist/index.js.map +1 -1
  138. package/node_modules/@html-eslint/core/dist/index.mjs +1 -0
  139. package/node_modules/@html-eslint/core/dist/index.mjs.map +1 -1
  140. package/node_modules/@html-eslint/core/package.json +3 -3
  141. package/node_modules/@html-eslint/eslint-plugin/lib/rules/require-content.js +20 -1
  142. package/node_modules/@html-eslint/eslint-plugin/lib/rules/require-input-label.js +110 -8
  143. package/node_modules/@html-eslint/eslint-plugin/lib/rules/utils/node.js +13 -0
  144. package/node_modules/@html-eslint/eslint-plugin/package.json +7 -7
  145. package/node_modules/@html-eslint/eslint-plugin/types/rules/require-content.d.ts.map +1 -1
  146. package/node_modules/@html-eslint/eslint-plugin/types/rules/require-input-label.d.ts.map +1 -1
  147. package/node_modules/@html-eslint/eslint-plugin/types/rules/utils/node.d.ts +7 -0
  148. package/node_modules/@html-eslint/eslint-plugin/types/rules/utils/node.d.ts.map +1 -1
  149. package/node_modules/@html-eslint/parser/lib/parser.js +0 -1
  150. package/node_modules/@html-eslint/parser/package.json +4 -4
  151. package/node_modules/@html-eslint/parser/types/parser.d.ts.map +1 -1
  152. package/node_modules/@html-eslint/template-parser/package.json +3 -3
  153. package/node_modules/@html-eslint/template-syntax-parser/package.json +3 -3
  154. package/node_modules/@html-eslint/types/package.json +2 -2
  155. package/node_modules/@rviscomi/capo.js/README.md +4 -4
  156. package/node_modules/@rviscomi/capo.js/dist/adapters/adapter.cjs +7 -2
  157. package/node_modules/@rviscomi/capo.js/dist/adapters/browser.cjs +31 -3
  158. package/node_modules/@rviscomi/capo.js/dist/adapters/index.cjs +36 -4
  159. package/node_modules/@rviscomi/capo.js/dist/adapters/test-suite.cjs +6 -1
  160. package/node_modules/@rviscomi/capo.js/dist/analyzer.cjs +53 -24
  161. package/node_modules/@rviscomi/capo.js/dist/chrome/README.md +53 -0
  162. package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/capo.html +1 -1
  163. package/node_modules/@rviscomi/capo.js/dist/chrome/capo.js +3 -0
  164. package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/chrome.js +56 -18
  165. package/node_modules/@rviscomi/capo.js/dist/chrome/manifest.json +26 -0
  166. package/node_modules/@rviscomi/capo.js/dist/chrome/options/options.js +1 -0
  167. package/node_modules/@rviscomi/capo.js/dist/chrome.zip +0 -0
  168. package/node_modules/@rviscomi/capo.js/dist/firefox/README.md +53 -0
  169. package/node_modules/@rviscomi/capo.js/dist/firefox/background.js +7 -0
  170. package/node_modules/@rviscomi/capo.js/dist/firefox/capo.css +59 -0
  171. package/node_modules/@rviscomi/capo.js/dist/firefox/capo.html +12 -0
  172. package/node_modules/@rviscomi/capo.js/dist/firefox/capo.js +3 -0
  173. package/node_modules/@rviscomi/capo.js/dist/firefox/chrome.js +120 -0
  174. package/node_modules/@rviscomi/capo.js/dist/firefox/images/icon128.png +0 -0
  175. package/node_modules/@rviscomi/capo.js/dist/firefox/manifest.json +39 -0
  176. package/node_modules/@rviscomi/capo.js/dist/firefox/options/options.css +81 -0
  177. package/node_modules/@rviscomi/capo.js/dist/firefox/options/options.html +43 -0
  178. package/node_modules/@rviscomi/capo.js/dist/firefox/options/options.js +1 -0
  179. package/node_modules/@rviscomi/capo.js/dist/firefox/styles/open-props.css +291 -0
  180. package/node_modules/@rviscomi/capo.js/dist/firefox.zip +0 -0
  181. package/node_modules/@rviscomi/capo.js/dist/index.cjs +93 -33
  182. package/node_modules/@rviscomi/capo.js/dist/lib/colors.cjs +1 -0
  183. package/node_modules/@rviscomi/capo.js/dist/lib/io.cjs +137 -28
  184. package/node_modules/@rviscomi/capo.js/dist/lib/options.cjs +61 -0
  185. package/node_modules/@rviscomi/capo.js/dist/lib/rules.cjs +28 -13
  186. package/node_modules/@rviscomi/capo.js/dist/lib/validation.cjs +31 -16
  187. package/node_modules/@rviscomi/capo.js/dist/source.zip +0 -0
  188. package/node_modules/@rviscomi/capo.js/dist/types/adapters/adapter.d.ts +105 -0
  189. package/node_modules/@rviscomi/capo.js/dist/types/adapters/browser.d.ts +107 -0
  190. package/node_modules/@rviscomi/capo.js/dist/types/adapters/index.d.ts +7 -0
  191. package/node_modules/@rviscomi/capo.js/dist/types/adapters/test-suite.d.ts +52 -0
  192. package/node_modules/@rviscomi/capo.js/dist/types/analyzer.d.ts +195 -0
  193. package/node_modules/@rviscomi/capo.js/dist/types/index.d.ts +29 -0
  194. package/node_modules/@rviscomi/capo.js/dist/types/lib/colors.d.ts +20 -0
  195. package/node_modules/@rviscomi/capo.js/dist/types/lib/io.d.ts +166 -0
  196. package/node_modules/@rviscomi/capo.js/dist/types/lib/options.d.ts +114 -0
  197. package/node_modules/@rviscomi/capo.js/dist/types/lib/rules.d.ts +111 -0
  198. package/node_modules/@rviscomi/capo.js/dist/types/lib/validation.d.ts +61 -0
  199. package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/adapter.d.ts +105 -0
  200. package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/browser.d.ts +107 -0
  201. package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/index.d.ts +7 -0
  202. package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/test-suite.d.ts +52 -0
  203. package/node_modules/@rviscomi/capo.js/dist/types/src/analyzer.d.ts +195 -0
  204. package/node_modules/@rviscomi/capo.js/dist/types/src/index.d.ts +13 -0
  205. package/node_modules/@rviscomi/capo.js/dist/types/src/lib/colors.d.ts +20 -0
  206. package/node_modules/@rviscomi/capo.js/dist/types/src/lib/io.d.ts +166 -0
  207. package/node_modules/@rviscomi/capo.js/dist/types/src/lib/options.d.ts +114 -0
  208. package/node_modules/@rviscomi/capo.js/dist/types/src/lib/rules.d.ts +111 -0
  209. package/node_modules/@rviscomi/capo.js/dist/types/src/lib/validation.d.ts +61 -0
  210. package/node_modules/@rviscomi/capo.js/package.json +34 -16
  211. package/node_modules/@rviscomi/capo.js/src/adapters/adapter.js +16 -5
  212. package/node_modules/@rviscomi/capo.js/src/adapters/browser.js +30 -4
  213. package/node_modules/@rviscomi/capo.js/src/adapters/test-suite.js +11 -10
  214. package/node_modules/@rviscomi/capo.js/src/analyzer.js +47 -25
  215. package/node_modules/@rviscomi/capo.js/src/extension/README.md +53 -0
  216. package/node_modules/@rviscomi/capo.js/src/extension/background.js +7 -0
  217. package/node_modules/@rviscomi/capo.js/src/extension/capo.css +59 -0
  218. package/node_modules/@rviscomi/capo.js/src/extension/capo.html +12 -0
  219. package/node_modules/@rviscomi/capo.js/src/extension/capo.js +93 -0
  220. package/node_modules/@rviscomi/capo.js/src/extension/chrome.js +120 -0
  221. package/node_modules/@rviscomi/capo.js/src/extension/images/icon128.png +0 -0
  222. package/node_modules/@rviscomi/capo.js/src/extension/images/icon256.png +0 -0
  223. package/node_modules/@rviscomi/capo.js/{crx → src/extension}/manifest.json +1 -1
  224. package/node_modules/@rviscomi/capo.js/src/extension/options/options.css +81 -0
  225. package/node_modules/@rviscomi/capo.js/src/extension/options/options.html +43 -0
  226. package/node_modules/@rviscomi/capo.js/src/extension/options.js +87 -0
  227. package/node_modules/@rviscomi/capo.js/src/extension/styles/open-props.css +291 -0
  228. package/node_modules/@rviscomi/capo.js/src/index.js +10 -0
  229. package/node_modules/@rviscomi/capo.js/src/lib/colors.js +14 -0
  230. package/node_modules/@rviscomi/capo.js/src/lib/io.js +171 -32
  231. package/node_modules/@rviscomi/capo.js/src/lib/options.js +82 -1
  232. package/node_modules/@rviscomi/capo.js/src/lib/rules.js +120 -43
  233. package/node_modules/@rviscomi/capo.js/src/lib/validation.js +211 -86
  234. package/node_modules/@rviscomi/capo.js/src/web/capo.js +5 -8
  235. package/node_modules/@types/hast/README.md +2 -2
  236. package/node_modules/@types/hast/index.d.ts +642 -0
  237. package/node_modules/@types/hast/package.json +9 -3
  238. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.d.ts +0 -4
  239. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.js +0 -4
  240. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/all.js +0 -4
  241. package/node_modules/@typescript-eslint/eslint-plugin/dist/index.d.ts +0 -4
  242. package/node_modules/@typescript-eslint/eslint-plugin/dist/index.js +47 -0
  243. package/node_modules/@typescript-eslint/eslint-plugin/dist/raw-plugin.d.ts +0 -4
  244. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +4 -4
  245. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.d.ts +1 -1
  246. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +23 -10
  247. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +1 -1
  248. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js +16 -2
  249. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +41 -3
  250. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js +12 -0
  251. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.d.ts +1 -1
  252. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +5 -4
  253. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js +1 -1
  254. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js +1 -1
  255. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js +2 -2
  256. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +5 -1
  257. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +1 -1
  258. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -1
  259. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +1 -1
  260. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +36 -9
  261. package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/index.js +11 -2
  262. package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/legacy.js +11 -2
  263. package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/package.json +1 -1
  264. package/node_modules/@typescript-eslint/eslint-plugin/package.json +22 -11
  265. package/node_modules/@typescript-eslint/parser/dist/index.js +47 -0
  266. package/node_modules/@typescript-eslint/parser/dist/parser.js +11 -6
  267. package/node_modules/@typescript-eslint/parser/package.json +9 -7
  268. package/node_modules/@typescript-eslint/project-service/package.json +7 -5
  269. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +2 -2
  270. package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts +1 -0
  271. package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +1 -0
  272. package/node_modules/@typescript-eslint/scope-manager/package.json +8 -6
  273. package/node_modules/@typescript-eslint/tsconfig-utils/package.json +5 -3
  274. package/node_modules/@typescript-eslint/type-utils/package.json +9 -7
  275. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +10 -0
  276. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +13 -0
  277. package/node_modules/@typescript-eslint/types/package.json +5 -3
  278. package/node_modules/@typescript-eslint/typescript-estree/dist/check-syntax-errors.js +22 -6
  279. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +5 -4
  280. package/node_modules/@typescript-eslint/typescript-estree/dist/getImportClausePhaseModifier.d.ts +4 -0
  281. package/node_modules/@typescript-eslint/typescript-estree/dist/getImportClausePhaseModifier.js +56 -0
  282. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +1 -1
  283. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts +1 -1
  284. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +27 -18
  285. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +8 -0
  286. package/node_modules/@typescript-eslint/typescript-estree/package.json +9 -7
  287. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +1 -1
  288. package/node_modules/@typescript-eslint/utils/package.json +8 -6
  289. package/node_modules/@typescript-eslint/visitor-keys/package.json +6 -4
  290. package/node_modules/acorn/CHANGELOG.md +12 -0
  291. package/node_modules/acorn/README.md +5 -0
  292. package/node_modules/acorn/dist/acorn.d.mts +8 -0
  293. package/node_modules/acorn/dist/acorn.d.ts +8 -0
  294. package/node_modules/acorn/dist/acorn.js +16 -7
  295. package/node_modules/acorn/dist/acorn.mjs +16 -7
  296. package/node_modules/acorn/package.json +1 -1
  297. package/node_modules/astro-eslint-parser/lib/index.d.mts +113 -18
  298. package/node_modules/astro-eslint-parser/lib/index.mjs +871 -1172
  299. package/node_modules/astro-eslint-parser/package.json +7 -9
  300. package/node_modules/brace-expansion/README.md +11 -0
  301. package/node_modules/brace-expansion/dist/commonjs/index.d.ts +2 -0
  302. package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -1
  303. package/node_modules/brace-expansion/dist/commonjs/index.js +162 -84
  304. package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
  305. package/node_modules/brace-expansion/dist/esm/index.d.ts +2 -0
  306. package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -1
  307. package/node_modules/brace-expansion/dist/esm/index.js +161 -83
  308. package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
  309. package/node_modules/brace-expansion/package.json +2 -2
  310. package/node_modules/eslint/README.md +2 -2
  311. package/node_modules/eslint/lib/cli-engine/formatters/html.js +1 -1
  312. package/node_modules/eslint/lib/languages/js/index.js +1 -1
  313. package/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +1 -1
  314. package/node_modules/eslint/lib/linter/vfile.js +1 -1
  315. package/node_modules/eslint/lib/rules/class-methods-use-this.js +6 -5
  316. package/node_modules/eslint/lib/rules/complexity.js +1 -1
  317. package/node_modules/eslint/lib/rules/eqeqeq.js +26 -6
  318. package/node_modules/eslint/lib/rules/func-name-matching.js +3 -3
  319. package/node_modules/eslint/lib/rules/generator-star-spacing.js +4 -6
  320. package/node_modules/eslint/lib/rules/indent.js +4 -6
  321. package/node_modules/eslint/lib/rules/key-spacing.js +5 -7
  322. package/node_modules/eslint/lib/rules/max-len.js +1 -1
  323. package/node_modules/eslint/lib/rules/max-nested-callbacks.js +11 -1
  324. package/node_modules/eslint/lib/rules/no-compare-neg-zero.js +91 -8
  325. package/node_modules/eslint/lib/rules/no-control-regex.js +3 -0
  326. package/node_modules/eslint/lib/rules/no-implicit-coercion.js +22 -8
  327. package/node_modules/eslint/lib/rules/no-invalid-regexp.js +3 -1
  328. package/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +5 -7
  329. package/node_modules/eslint/lib/rules/no-promise-executor-return.js +5 -7
  330. package/node_modules/eslint/lib/rules/no-script-url.js +4 -6
  331. package/node_modules/eslint/lib/rules/no-shadow.js +14 -20
  332. package/node_modules/eslint/lib/rules/no-unreachable-loop.js +8 -4
  333. package/node_modules/eslint/lib/rules/prefer-numeric-literals.js +14 -6
  334. package/node_modules/eslint/lib/rules/prefer-object-has-own.js +4 -6
  335. package/node_modules/eslint/lib/rules/prefer-object-spread.js +9 -1
  336. package/node_modules/eslint/lib/rules/prefer-template.js +1 -1
  337. package/node_modules/eslint/lib/rules/preserve-caught-error.js +268 -116
  338. package/node_modules/eslint/lib/rules/quotes.js +1 -1
  339. package/node_modules/eslint/lib/rules/radix.js +58 -57
  340. package/node_modules/eslint/lib/rules/use-isnan.js +20 -12
  341. package/node_modules/eslint/lib/rules/utils/ast-utils.js +1 -1
  342. package/node_modules/eslint/lib/shared/serialization.js +1 -1
  343. package/node_modules/eslint/lib/shared/translate-cli-options.js +3 -3
  344. package/node_modules/eslint/lib/types/config-api.d.ts +8 -1
  345. package/node_modules/eslint/lib/types/index.d.ts +3 -6
  346. package/node_modules/eslint/lib/types/rules.d.ts +17 -9
  347. package/node_modules/eslint/package.json +7 -7
  348. package/node_modules/eslint-plugin-astro/README.md +10 -2
  349. package/node_modules/eslint-plugin-astro/lib/index.d.mts +0 -1
  350. package/node_modules/eslint-plugin-astro/lib/index.mjs +76 -637
  351. package/node_modules/eslint-plugin-astro/package.json +11 -11
  352. package/node_modules/eslint-plugin-toml/README.md +2 -0
  353. package/node_modules/eslint-plugin-toml/lib/index.d.mts +6 -5
  354. package/node_modules/eslint-plugin-toml/lib/index.mjs +32 -3
  355. package/node_modules/eslint-plugin-toml/package.json +7 -7
  356. package/node_modules/eslint-plugin-yml/README.md +1 -0
  357. package/node_modules/eslint-plugin-yml/lib/index.mjs +125 -21
  358. package/node_modules/eslint-plugin-yml/package.json +7 -7
  359. package/node_modules/flatted/golang/pkg/flatted/flatted.go +16 -14
  360. package/node_modules/flatted/package.json +10 -5
  361. package/node_modules/flatted/types/index.d.ts +1 -1
  362. package/node_modules/globals/globals.json +105 -33
  363. package/node_modules/globals/index.d.ts +105 -33
  364. package/node_modules/globals/package.json +2 -2
  365. package/node_modules/mdn-data/css/properties.json +64 -16
  366. package/node_modules/mdn-data/css/properties.schema.json +1 -7
  367. package/node_modules/mdn-data/css/syntaxes.json +1 -1
  368. package/node_modules/mdn-data/l10n/css.json +3 -62
  369. package/node_modules/mdn-data/package.json +1 -1
  370. package/node_modules/minimatch/package.json +9 -9
  371. package/node_modules/nanoid/non-secure/index.cjs +2 -2
  372. package/node_modules/nanoid/non-secure/index.js +2 -2
  373. package/node_modules/nanoid/package.json +1 -1
  374. package/node_modules/picomatch/README.md +15 -21
  375. package/node_modules/picomatch/lib/parse.js +39 -9
  376. package/node_modules/picomatch/lib/picomatch.js +14 -2
  377. package/node_modules/picomatch/package.json +3 -2
  378. package/node_modules/postcss/README.md +1 -2
  379. package/node_modules/postcss/lib/container.js +81 -34
  380. package/node_modules/postcss/lib/fromJSON.js +65 -26
  381. package/node_modules/postcss/lib/input.js +7 -1
  382. package/node_modules/postcss/lib/lazy-result.js +77 -14
  383. package/node_modules/postcss/lib/list.js +1 -0
  384. package/node_modules/postcss/lib/node.d.ts +2 -2
  385. package/node_modules/postcss/lib/node.js +90 -52
  386. package/node_modules/postcss/lib/postcss.d.ts +4 -1
  387. package/node_modules/postcss/lib/previous-map.js +6 -3
  388. package/node_modules/postcss/lib/processor.js +1 -1
  389. package/node_modules/postcss/lib/root.js +16 -1
  390. package/node_modules/postcss/lib/stringifier.js +112 -25
  391. package/node_modules/postcss/lib/warning.js +10 -0
  392. package/node_modules/postcss/package.json +2 -2
  393. package/node_modules/typescript-eslint/dist/index.js +47 -0
  394. package/node_modules/typescript-eslint/package.json +14 -6
  395. package/node_modules/yaml-eslint-parser/lib/chunk-CfYAbeIz.mjs +13 -0
  396. package/node_modules/yaml-eslint-parser/lib/index.d.mts +2 -2
  397. package/node_modules/yaml-eslint-parser/lib/index.mjs +164 -157
  398. package/node_modules/yaml-eslint-parser/package.json +17 -18
  399. package/package.json +23 -23
  400. package/node_modules/@astrojs/compiler/LICENSE +0 -53
  401. package/node_modules/@astrojs/compiler/README.md +0 -72
  402. package/node_modules/@astrojs/compiler/dist/astro.wasm +0 -0
  403. package/node_modules/@astrojs/compiler/dist/browser/index.cjs +0 -2
  404. package/node_modules/@astrojs/compiler/dist/browser/index.d.ts +0 -11
  405. package/node_modules/@astrojs/compiler/dist/browser/index.js +0 -1
  406. package/node_modules/@astrojs/compiler/dist/browser/utils.cjs +0 -3
  407. package/node_modules/@astrojs/compiler/dist/browser/utils.d.ts +0 -29
  408. package/node_modules/@astrojs/compiler/dist/browser/utils.js +0 -3
  409. package/node_modules/@astrojs/compiler/dist/browser/wasm_exec.cjs +0 -2
  410. package/node_modules/@astrojs/compiler/dist/browser/wasm_exec.d.ts +0 -37
  411. package/node_modules/@astrojs/compiler/dist/browser/wasm_exec.js +0 -1
  412. package/node_modules/@astrojs/compiler/dist/chunk-QR6QDSEV.js +0 -2
  413. package/node_modules/@astrojs/compiler/dist/chunk-W5DTLHV4.js +0 -1
  414. package/node_modules/@astrojs/compiler/dist/node/index.cjs +0 -1
  415. package/node_modules/@astrojs/compiler/dist/node/index.d.ts +0 -12
  416. package/node_modules/@astrojs/compiler/dist/node/index.js +0 -1
  417. package/node_modules/@astrojs/compiler/dist/node/sync.cjs +0 -1
  418. package/node_modules/@astrojs/compiler/dist/node/sync.d.ts +0 -16
  419. package/node_modules/@astrojs/compiler/dist/node/sync.js +0 -1
  420. package/node_modules/@astrojs/compiler/dist/node/utils.cjs +0 -3
  421. package/node_modules/@astrojs/compiler/dist/node/utils.d.ts +0 -29
  422. package/node_modules/@astrojs/compiler/dist/node/utils.js +0 -3
  423. package/node_modules/@astrojs/compiler/dist/node/wasm_exec.cjs +0 -1
  424. package/node_modules/@astrojs/compiler/dist/node/wasm_exec.d.ts +0 -37
  425. package/node_modules/@astrojs/compiler/dist/node/wasm_exec.js +0 -1
  426. package/node_modules/@astrojs/compiler/dist/shared/ast.cjs +0 -1
  427. package/node_modules/@astrojs/compiler/dist/shared/ast.d.ts +0 -74
  428. package/node_modules/@astrojs/compiler/dist/shared/ast.js +0 -0
  429. package/node_modules/@astrojs/compiler/dist/shared/diagnostics.cjs +0 -1
  430. package/node_modules/@astrojs/compiler/dist/shared/diagnostics.d.ts +0 -18
  431. package/node_modules/@astrojs/compiler/dist/shared/diagnostics.js +0 -1
  432. package/node_modules/@astrojs/compiler/dist/shared/types.cjs +0 -1
  433. package/node_modules/@astrojs/compiler/dist/shared/types.d.ts +0 -153
  434. package/node_modules/@astrojs/compiler/dist/shared/types.js +0 -1
  435. package/node_modules/@astrojs/compiler/package.json +0 -58
  436. package/node_modules/@astrojs/compiler/sync.d.ts +0 -1
  437. package/node_modules/@astrojs/compiler/types.d.ts +0 -1
  438. package/node_modules/@astrojs/compiler/utils.d.ts +0 -1
  439. package/node_modules/@pkgr/core/index.d.cts +0 -3
  440. package/node_modules/@pkgr/core/lib/constants.d.ts +0 -6
  441. package/node_modules/@pkgr/core/lib/constants.js +0 -9
  442. package/node_modules/@pkgr/core/lib/constants.js.map +0 -1
  443. package/node_modules/@pkgr/core/lib/helpers.d.ts +0 -19
  444. package/node_modules/@pkgr/core/lib/helpers.js +0 -67
  445. package/node_modules/@pkgr/core/lib/helpers.js.map +0 -1
  446. package/node_modules/@pkgr/core/lib/index.cjs +0 -91
  447. package/node_modules/@pkgr/core/lib/index.d.ts +0 -2
  448. package/node_modules/@pkgr/core/lib/index.js +0 -3
  449. package/node_modules/@pkgr/core/lib/index.js.map +0 -1
  450. package/node_modules/@pkgr/core/package.json +0 -38
  451. package/node_modules/@rviscomi/capo.js/crx/README.md +0 -10
  452. package/node_modules/@rviscomi/capo.js/crx/capo.js +0 -3
  453. package/node_modules/@rviscomi/capo.js/crx/options/options.js +0 -1
  454. package/node_modules/@rviscomi/capo.js/docs/.vscode/extensions.json +0 -4
  455. package/node_modules/@rviscomi/capo.js/docs/.vscode/launch.json +0 -11
  456. package/node_modules/@rviscomi/capo.js/docs/README.md +0 -51
  457. package/node_modules/@rviscomi/capo.js/docs/astro.config.mjs +0 -82
  458. package/node_modules/@rviscomi/capo.js/docs/package-lock.json +0 -7439
  459. package/node_modules/@rviscomi/capo.js/docs/package.json +0 -21
  460. package/node_modules/@rviscomi/capo.js/docs/public/capo-social-alt.webp +0 -0
  461. package/node_modules/@rviscomi/capo.js/docs/public/capo-social.png +0 -0
  462. package/node_modules/@rviscomi/capo.js/docs/public/capo-social.webp +0 -0
  463. package/node_modules/@rviscomi/capo.js/docs/public/favicon.svg +0 -13
  464. package/node_modules/@rviscomi/capo.js/docs/src/assets/bookmarklet-setup.png +0 -0
  465. package/node_modules/@rviscomi/capo.js/docs/src/assets/bookmarklet.png +0 -0
  466. package/node_modules/@rviscomi/capo.js/docs/src/assets/capo-chrome.png +0 -0
  467. package/node_modules/@rviscomi/capo.js/docs/src/assets/capo-extension.png +0 -0
  468. package/node_modules/@rviscomi/capo.js/docs/src/assets/capo800.png +0 -0
  469. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-console-expanded.png +0 -0
  470. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-console-interactive.png +0 -0
  471. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-console.png +0 -0
  472. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-hover-validation.png +0 -0
  473. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-menu.png +0 -0
  474. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-options-dark.png +0 -0
  475. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-options-light.png +0 -0
  476. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-store.png +0 -0
  477. package/node_modules/@rviscomi/capo.js/docs/src/assets/custom-palette.png +0 -0
  478. package/node_modules/@rviscomi/capo.js/docs/src/assets/developer-mode.png +0 -0
  479. package/node_modules/@rviscomi/capo.js/docs/src/assets/devtools-console.png +0 -0
  480. package/node_modules/@rviscomi/capo.js/docs/src/assets/devtools-snippet.png +0 -0
  481. package/node_modules/@rviscomi/capo.js/docs/src/assets/devtools-sources.png +0 -0
  482. package/node_modules/@rviscomi/capo.js/docs/src/assets/houston.webp +0 -0
  483. package/node_modules/@rviscomi/capo.js/docs/src/assets/load-unpacked.png +0 -0
  484. package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-areas.png +0 -0
  485. package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-base.png +0 -0
  486. package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-crx-stripes.png +0 -0
  487. package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-csp.png +0 -0
  488. package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-invalid-element.png +0 -0
  489. package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-origin-trial.png +0 -0
  490. package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-title.png +0 -0
  491. package/node_modules/@rviscomi/capo.js/docs/src/components/CapoClient.astro +0 -165
  492. package/node_modules/@rviscomi/capo.js/docs/src/components/CapoOptions.astro +0 -10
  493. package/node_modules/@rviscomi/capo.js/docs/src/components/CapoPalette.astro +0 -26
  494. package/node_modules/@rviscomi/capo.js/docs/src/components/InlineCapoIcon.astro +0 -15
  495. package/node_modules/@rviscomi/capo.js/docs/src/components/InlineCapoWeightBars.astro +0 -39
  496. package/node_modules/@rviscomi/capo.js/docs/src/components/VirtualConsole.astro +0 -11
  497. package/node_modules/@rviscomi/capo.js/docs/src/content/config.ts +0 -7
  498. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/developer/contributing.mdx +0 -8
  499. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/developer/crx-local.mdx +0 -28
  500. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/developer/custom-adapters.mdx +0 -273
  501. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/index.mdx +0 -108
  502. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/migration-v2.mdx +0 -62
  503. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/actionability.mdx +0 -6
  504. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/assessment-mode.mdx +0 -29
  505. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/config.mdx +0 -195
  506. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/demo.mdx +0 -9
  507. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/extension.mdx +0 -116
  508. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/performance.mdx +0 -6
  509. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/quick-start.mdx +0 -26
  510. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/rules.mdx +0 -202
  511. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/validation.mdx +0 -197
  512. package/node_modules/@rviscomi/capo.js/docs/src/env.d.ts +0 -2
  513. package/node_modules/@rviscomi/capo.js/docs/src/lib/VirtualConsole.js +0 -190
  514. package/node_modules/@rviscomi/capo.js/docs/src/lib/capo.js +0 -1533
  515. package/node_modules/@rviscomi/capo.js/docs/src/styles/custom.css +0 -7
  516. package/node_modules/@rviscomi/capo.js/docs/src/styles/virtual-console.css +0 -131
  517. package/node_modules/@rviscomi/capo.js/docs/tests/VirtualConsole.test.js +0 -108
  518. package/node_modules/@rviscomi/capo.js/docs/tsconfig.json +0 -3
  519. package/node_modules/@rviscomi/capo.js/src/crx/capo.js +0 -62
  520. package/node_modules/@rviscomi/capo.js/src/crx/options.js +0 -69
  521. package/node_modules/astrojs-compiler-sync/LICENSE +0 -53
  522. package/node_modules/astrojs-compiler-sync/README.md +0 -3
  523. package/node_modules/astrojs-compiler-sync/browser/index.d.ts +0 -6
  524. package/node_modules/astrojs-compiler-sync/browser/index.js +0 -76
  525. package/node_modules/astrojs-compiler-sync/browser/wasm_exec.js +0 -665
  526. package/node_modules/astrojs-compiler-sync/lib/astrojs-compiler-worker.js +0 -5
  527. package/node_modules/astrojs-compiler-sync/lib/compiler-sync.cjs +0 -31
  528. package/node_modules/astrojs-compiler-sync/lib/index.cjs +0 -30
  529. package/node_modules/astrojs-compiler-sync/lib/index.d.cts +0 -3
  530. package/node_modules/astrojs-compiler-sync/lib/index.d.ts +0 -14
  531. package/node_modules/astrojs-compiler-sync/lib/index.js +0 -18
  532. package/node_modules/astrojs-compiler-sync/package.json +0 -100
  533. package/node_modules/entities/LICENSE +0 -11
  534. package/node_modules/entities/dist/decode-codepoint.d.ts +0 -8
  535. package/node_modules/entities/dist/decode-codepoint.d.ts.map +0 -1
  536. package/node_modules/entities/dist/decode-codepoint.js +0 -46
  537. package/node_modules/entities/dist/decode-codepoint.js.map +0 -1
  538. package/node_modules/entities/dist/decode.d.ts +0 -194
  539. package/node_modules/entities/dist/decode.d.ts.map +0 -1
  540. package/node_modules/entities/dist/decode.js +0 -544
  541. package/node_modules/entities/dist/decode.js.map +0 -1
  542. package/node_modules/entities/dist/encode.d.ts +0 -24
  543. package/node_modules/entities/dist/encode.d.ts.map +0 -1
  544. package/node_modules/entities/dist/encode.js +0 -90
  545. package/node_modules/entities/dist/encode.js.map +0 -1
  546. package/node_modules/entities/dist/escape.d.ts +0 -48
  547. package/node_modules/entities/dist/escape.d.ts.map +0 -1
  548. package/node_modules/entities/dist/escape.js +0 -132
  549. package/node_modules/entities/dist/escape.js.map +0 -1
  550. package/node_modules/entities/dist/generated/decode-data-html.d.ts +0 -3
  551. package/node_modules/entities/dist/generated/decode-data-html.d.ts.map +0 -1
  552. package/node_modules/entities/dist/generated/decode-data-html.js +0 -5
  553. package/node_modules/entities/dist/generated/decode-data-html.js.map +0 -1
  554. package/node_modules/entities/dist/generated/decode-data-xml.d.ts +0 -3
  555. package/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +0 -1
  556. package/node_modules/entities/dist/generated/decode-data-xml.js +0 -5
  557. package/node_modules/entities/dist/generated/decode-data-xml.js.map +0 -1
  558. package/node_modules/entities/dist/generated/encode-html.d.ts +0 -5
  559. package/node_modules/entities/dist/generated/encode-html.d.ts.map +0 -1
  560. package/node_modules/entities/dist/generated/encode-html.js +0 -12
  561. package/node_modules/entities/dist/generated/encode-html.js.map +0 -1
  562. package/node_modules/entities/dist/index.d.ts +0 -89
  563. package/node_modules/entities/dist/index.d.ts.map +0 -1
  564. package/node_modules/entities/dist/index.js +0 -91
  565. package/node_modules/entities/dist/index.js.map +0 -1
  566. package/node_modules/entities/dist/internal/bin-trie-flags.d.ts +0 -17
  567. package/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +0 -1
  568. package/node_modules/entities/dist/internal/bin-trie-flags.js +0 -18
  569. package/node_modules/entities/dist/internal/bin-trie-flags.js.map +0 -1
  570. package/node_modules/entities/dist/internal/decode-shared.d.ts +0 -7
  571. package/node_modules/entities/dist/internal/decode-shared.d.ts.map +0 -1
  572. package/node_modules/entities/dist/internal/decode-shared.js +0 -17
  573. package/node_modules/entities/dist/internal/decode-shared.js.map +0 -1
  574. package/node_modules/entities/dist/internal/encode-shared.d.ts +0 -33
  575. package/node_modules/entities/dist/internal/encode-shared.d.ts.map +0 -1
  576. package/node_modules/entities/dist/internal/encode-shared.js +0 -93
  577. package/node_modules/entities/dist/internal/encode-shared.js.map +0 -1
  578. package/node_modules/entities/package.json +0 -83
  579. package/node_modules/entities/readme.md +0 -131
  580. package/node_modules/entities/src/decode-codepoint.ts +0 -50
  581. package/node_modules/entities/src/decode.ts +0 -671
  582. package/node_modules/entities/src/encode.ts +0 -95
  583. package/node_modules/entities/src/escape.ts +0 -160
  584. package/node_modules/entities/src/generated/decode-data-html.ts +0 -7
  585. package/node_modules/entities/src/generated/decode-data-xml.ts +0 -7
  586. package/node_modules/entities/src/generated/encode-html.ts +0 -18
  587. package/node_modules/entities/src/index.ts +0 -162
  588. package/node_modules/entities/src/internal/bin-trie-flags.ts +0 -16
  589. package/node_modules/entities/src/internal/decode-shared.ts +0 -18
  590. package/node_modules/entities/src/internal/encode-shared.ts +0 -123
  591. package/node_modules/parse5/README.md +0 -38
  592. package/node_modules/parse5/dist/common/doctype.d.ts +0 -4
  593. package/node_modules/parse5/dist/common/doctype.js +0 -114
  594. package/node_modules/parse5/dist/common/error-codes.d.ts +0 -67
  595. package/node_modules/parse5/dist/common/error-codes.js +0 -63
  596. package/node_modules/parse5/dist/common/foreign-content.d.ts +0 -9
  597. package/node_modules/parse5/dist/common/foreign-content.js +0 -228
  598. package/node_modules/parse5/dist/common/html.d.ts +0 -289
  599. package/node_modules/parse5/dist/common/html.js +0 -523
  600. package/node_modules/parse5/dist/common/token.d.ts +0 -84
  601. package/node_modules/parse5/dist/common/token.js +0 -20
  602. package/node_modules/parse5/dist/common/unicode.d.ts +0 -42
  603. package/node_modules/parse5/dist/common/unicode.js +0 -62
  604. package/node_modules/parse5/dist/index.d.ts +0 -71
  605. package/node_modules/parse5/dist/index.js +0 -42
  606. package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +0 -36
  607. package/node_modules/parse5/dist/parser/formatting-element-list.js +0 -110
  608. package/node_modules/parse5/dist/parser/index.d.ts +0 -221
  609. package/node_modules/parse5/dist/parser/index.js +0 -3245
  610. package/node_modules/parse5/dist/parser/open-element-stack.d.ts +0 -53
  611. package/node_modules/parse5/dist/parser/open-element-stack.js +0 -324
  612. package/node_modules/parse5/dist/serializer/index.d.ts +0 -60
  613. package/node_modules/parse5/dist/serializer/index.js +0 -168
  614. package/node_modules/parse5/dist/tokenizer/index.d.ts +0 -247
  615. package/node_modules/parse5/dist/tokenizer/index.js +0 -2712
  616. package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +0 -36
  617. package/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -196
  618. package/node_modules/parse5/dist/tree-adapters/default.d.ts +0 -84
  619. package/node_modules/parse5/dist/tree-adapters/default.js +0 -173
  620. package/node_modules/parse5/dist/tree-adapters/interface.d.ts +0 -255
  621. package/node_modules/parse5/dist/tree-adapters/interface.js +0 -1
  622. package/node_modules/parse5/package.json +0 -53
  623. package/node_modules/synckit/README.md +0 -256
  624. package/node_modules/synckit/lib/common.d.ts +0 -5
  625. package/node_modules/synckit/lib/common.js +0 -22
  626. package/node_modules/synckit/lib/common.js.map +0 -1
  627. package/node_modules/synckit/lib/constants.d.ts +0 -38
  628. package/node_modules/synckit/lib/constants.js +0 -54
  629. package/node_modules/synckit/lib/constants.js.map +0 -1
  630. package/node_modules/synckit/lib/helpers.d.ts +0 -27
  631. package/node_modules/synckit/lib/helpers.js +0 -411
  632. package/node_modules/synckit/lib/helpers.js.map +0 -1
  633. package/node_modules/synckit/lib/index.cjs +0 -588
  634. package/node_modules/synckit/lib/index.d.cts +0 -138
  635. package/node_modules/synckit/lib/index.d.ts +0 -7
  636. package/node_modules/synckit/lib/index.js +0 -68
  637. package/node_modules/synckit/lib/index.js.map +0 -1
  638. package/node_modules/synckit/lib/types.d.ts +0 -48
  639. package/node_modules/synckit/lib/types.js +0 -2
  640. package/node_modules/synckit/lib/types.js.map +0 -1
  641. package/node_modules/synckit/package.json +0 -45
  642. package/node_modules/yaml-eslint-parser/lib/chunk-15K8U1wQ.mjs +0 -18
  643. /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/background.js +0 -0
  644. /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/capo.css +0 -0
  645. /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/images/icon128.png +0 -0
  646. /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/images/icon256.png +0 -0
  647. /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/options/options.css +0 -0
  648. /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/options/options.html +0 -0
  649. /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/styles/open-props.css +0 -0
  650. /package/node_modules/@rviscomi/capo.js/{docs/src/assets/capo256.png → dist/firefox/images/icon256.png} +0 -0
  651. /package/node_modules/eslint-plugin-toml/lib/{chunk-CfYAbeIz.mjs → rolldown-runtime-D7D4PA-g.mjs} +0 -0
@@ -5,7 +5,6 @@ import { parseTemplate, traverseNodes } from "astro-eslint-parser";
5
5
  import path from "node:path";
6
6
  import { AST_NODE_TYPES } from "@typescript-eslint/types";
7
7
  import { READ, ReferenceTracker, getPropertyName, getStaticValue, isClosingBraceToken, isClosingParenToken, isCommaToken, isOpeningParenToken, isParenthesized, isSemicolonToken } from "@eslint-community/eslint-utils";
8
- import { parse, parseFragment } from "parse5";
9
8
  import postcss from "postcss";
10
9
  import parser from "postcss-selector-parser";
11
10
  import { decode } from "@jridgewell/sourcemap-codec";
@@ -593,627 +592,27 @@ var no_exports_from_components_default = createRule("no-exports-from-components"
593
592
  }
594
593
  });
595
594
  //#endregion
596
- //#region src/utils/resources/html-elements.json
597
- var html_elements_default = [
598
- "a",
599
- "abbr",
600
- "address",
601
- "area",
602
- "article",
603
- "aside",
604
- "audio",
605
- "b",
606
- "base",
607
- "bdi",
608
- "bdo",
609
- "blockquote",
610
- "body",
611
- "br",
612
- "button",
613
- "canvas",
614
- "caption",
615
- "cite",
616
- "code",
617
- "col",
618
- "colgroup",
619
- "data",
620
- "datalist",
621
- "dd",
622
- "del",
623
- "details",
624
- "dfn",
625
- "dialog",
626
- "div",
627
- "dl",
628
- "dt",
629
- "em",
630
- "embed",
631
- "fencedframe",
632
- "fieldset",
633
- "figcaption",
634
- "figure",
635
- "footer",
636
- "form",
637
- "geolocation",
638
- "h1",
639
- "h2",
640
- "h3",
641
- "h4",
642
- "h5",
643
- "h6",
644
- "head",
645
- "header",
646
- "hgroup",
647
- "hr",
648
- "html",
649
- "i",
650
- "iframe",
651
- "img",
652
- "input",
653
- "ins",
654
- "kbd",
655
- "label",
656
- "legend",
657
- "li",
658
- "link",
659
- "main",
660
- "map",
661
- "mark",
662
- "menu",
663
- "meta",
664
- "meter",
665
- "nav",
666
- "noscript",
667
- "object",
668
- "ol",
669
- "optgroup",
670
- "option",
671
- "output",
672
- "p",
673
- "picture",
674
- "pre",
675
- "progress",
676
- "q",
677
- "rp",
678
- "rt",
679
- "ruby",
680
- "s",
681
- "samp",
682
- "script",
683
- "search",
684
- "section",
685
- "select",
686
- "selectedcontent",
687
- "slot",
688
- "small",
689
- "source",
690
- "span",
691
- "strong",
692
- "style",
693
- "sub",
694
- "summary",
695
- "sup",
696
- "table",
697
- "tbody",
698
- "td",
699
- "template",
700
- "textarea",
701
- "tfoot",
702
- "th",
703
- "thead",
704
- "time",
705
- "title",
706
- "tr",
707
- "track",
708
- "u",
709
- "ul",
710
- "var",
711
- "video",
712
- "wbr"
713
- ];
714
- //#endregion
715
- //#region src/utils/resources/svg-elements.json
716
- var svg_elements_default = [
717
- "a",
718
- "animate",
719
- "animateMotion",
720
- "animateTransform",
721
- "circle",
722
- "clipPath",
723
- "defs",
724
- "desc",
725
- "ellipse",
726
- "feBlend",
727
- "feColorMatrix",
728
- "feComponentTransfer",
729
- "feComposite",
730
- "feConvolveMatrix",
731
- "feDiffuseLighting",
732
- "feDisplacementMap",
733
- "feDistantLight",
734
- "feDropShadow",
735
- "feFlood",
736
- "feFuncA",
737
- "feFuncB",
738
- "feFuncG",
739
- "feFuncR",
740
- "feGaussianBlur",
741
- "feImage",
742
- "feMerge",
743
- "feMergeNode",
744
- "feMorphology",
745
- "feOffset",
746
- "fePointLight",
747
- "feSpecularLighting",
748
- "feSpotLight",
749
- "feTile",
750
- "feTurbulence",
751
- "filter",
752
- "foreignObject",
753
- "g",
754
- "image",
755
- "line",
756
- "linearGradient",
757
- "marker",
758
- "mask",
759
- "metadata",
760
- "mpath",
761
- "path",
762
- "pattern",
763
- "polygon",
764
- "polyline",
765
- "radialGradient",
766
- "rect",
767
- "script",
768
- "set",
769
- "stop",
770
- "style",
771
- "svg",
772
- "switch",
773
- "symbol",
774
- "text",
775
- "textPath",
776
- "title",
777
- "tspan",
778
- "use",
779
- "view"
780
- ];
781
- //#endregion
782
- //#region src/utils/resources/math-elements.json
783
- var math_elements_default = [
784
- "math",
785
- "maction",
786
- "annotation",
787
- "annotation-xml",
788
- "menclose",
789
- "merror",
790
- "mfenced",
791
- "mfrac",
792
- "mi",
793
- "mmultiscripts",
794
- "mn",
795
- "mo",
796
- "mover",
797
- "mpadded",
798
- "mphantom",
799
- "mprescripts",
800
- "mroot",
801
- "mrow",
802
- "ms",
803
- "semantics",
804
- "mspace",
805
- "msqrt",
806
- "mstyle",
807
- "msub",
808
- "msup",
809
- "msubsup",
810
- "mtable",
811
- "mtd",
812
- "mtext",
813
- "mtr",
814
- "munder",
815
- "munderover"
816
- ];
817
- //#endregion
818
595
  //#region src/rules/no-omitted-end-tags.ts
819
- const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
820
- const htmlVoidElements = /* @__PURE__ */ new Set([
821
- "area",
822
- "base",
823
- "basefont",
824
- "bgsound",
825
- "br",
826
- "col",
827
- "command",
828
- "embed",
829
- "frame",
830
- "hr",
831
- "img",
832
- "input",
833
- "keygen",
834
- "link",
835
- "meta",
836
- "param",
837
- "source",
838
- "track",
839
- "wbr"
840
- ]);
841
- const parse5HtmlVoidElementAliases = /* @__PURE__ */ new Set(["image"]);
842
- const wellknownHtmlElements = /* @__PURE__ */ new Set([
843
- ...html_elements_default,
844
- ...svg_elements_default,
845
- ...math_elements_default
846
- ]);
847
- const svgHtmlIntegrationPointNames = /* @__PURE__ */ new Set([
848
- "desc",
849
- "foreignObject",
850
- "title"
851
- ]);
852
- /** Check whether a tag name belongs to Astro/JSX component syntax. */
853
- function isComponentName(tagName) {
854
- return tagName.toLowerCase() !== tagName && !wellknownHtmlElements.has(tagName);
855
- }
856
- /** Add a source replacement for the parse5 input. */
857
- function replaceRange(templateStack, range, replacement) {
858
- if (!templateStack) return;
859
- const generatedStart = getGeneratedOffset(templateStack, range[0]);
860
- const generatedEnd = getGeneratedOffset(templateStack, range[1]);
861
- const replacementText = typeof replacement === "function" ? replacement([generatedStart, generatedEnd]) : replacement;
862
- templateStack.html = `${templateStack.html.slice(0, generatedStart)}${replacementText}${templateStack.html.slice(generatedEnd)}`;
863
- const delta = replacementText.length - (generatedEnd - generatedStart);
864
- if (delta === 0) return;
865
- const originalStart = range[0] - templateStack.startOffset;
866
- const originalEnd = range[1] - templateStack.startOffset;
867
- for (const entry of templateStack.offsetMap) if (originalEnd <= entry.originalStart) {
868
- entry.generatedStart += delta;
869
- entry.generatedEnd += delta;
870
- }
871
- const replacementEnd = generatedStart + replacementText.length;
872
- templateStack.offsetMap.push({
873
- generatedEnd: replacementEnd,
874
- generatedStart,
875
- originalEnd,
876
- originalStart
877
- });
878
- templateStack.offsetMap.sort((a, b) => a.originalStart - b.originalStart);
879
- }
880
- /** Map an original source offset to the current parse-target offset. */
881
- function getGeneratedOffset(templateStack, offset) {
882
- return toGeneratedOffset(templateStack.offsetMap, offset - templateStack.startOffset);
883
- }
884
- /** Map a parse5 offset in this target back to the original source. */
885
- function getOriginalOffset(templateStack, offset) {
886
- return templateStack.startOffset + toOriginalOffset(templateStack.offsetMap, offset);
887
- }
888
- /** Map an original target offset to the generated parse-target offset. */
889
- function toGeneratedOffset(offsetMap, originalOffset) {
890
- let generatedOffset = originalOffset;
891
- for (const entry of offsetMap) {
892
- if (originalOffset < entry.originalStart) break;
893
- if (originalOffset <= entry.originalEnd) return originalOffset === entry.originalEnd ? entry.generatedEnd : entry.generatedStart;
894
- generatedOffset += entry.generatedEnd - entry.generatedStart - (entry.originalEnd - entry.originalStart);
895
- }
896
- return generatedOffset;
897
- }
898
- /** Map a generated parse-target offset back to the original target offset. */
899
- function toOriginalOffset(offsetMap, generatedOffset) {
900
- let originalOffset = generatedOffset;
901
- for (const entry of offsetMap) {
902
- if (generatedOffset < entry.generatedStart) break;
903
- if (generatedOffset <= entry.generatedEnd) return generatedOffset === entry.generatedEnd ? entry.originalEnd : entry.originalStart;
904
- originalOffset -= entry.generatedEnd - entry.generatedStart - (entry.originalEnd - entry.originalStart);
905
- }
906
- return originalOffset;
907
- }
908
596
  var no_omitted_end_tags_default = createRule("no-omitted-end-tags", {
909
597
  meta: {
910
598
  docs: {
911
599
  description: "disallow omitted end tags",
912
600
  category: "Stylistic Issues",
913
- recommended: true
601
+ recommended: false
602
+ },
603
+ deprecated: {
604
+ message: "This rule is no longer useful because omitted end tags are now rejected before ESLint rules can run.",
605
+ url: "https://ota-meshi.github.io/eslint-plugin-astro/rules/no-omitted-end-tags/",
606
+ replacedBy: []
914
607
  },
915
608
  schema: [],
916
- messages: { missing: "Expected an end tag for `<{{tagName}}>`." },
917
- type: "layout",
918
- fixable: "code"
609
+ messages: {},
610
+ type: "layout"
919
611
  },
920
- create(context) {
921
- const sourceCode = context.sourceCode;
922
- if (!sourceCode.parserServices?.isAstro) return {};
923
- const rootAstroFragment = sourceCode.ast.body.find((node) => node.type === "AstroFragment");
924
- let templateStack = null;
925
- let syntheticTagId = 0;
926
- const syntheticTagNames = /* @__PURE__ */ new Map();
927
- /** Check whether this node belongs to the Astro template body. */
928
- function isInTemplate(node) {
929
- return rootAstroFragment != null && containsRange(rootAstroFragment.range, node.range);
930
- }
931
- /** Check whether this node should be parsed independently by parse5. */
932
- function isRoot(node) {
933
- if (!isInTemplate(node)) return false;
934
- if (node.type === "AstroFragment" || node.type === "JSXFragment") return true;
935
- if (isSvgHtmlIntegrationPoint(node)) return true;
936
- const parent = node.parent;
937
- return parent != null && parent.type !== "JSXElement" && parent.type !== "JSXFragment" && parent.type !== "AstroFragment";
938
- }
939
- /** Hide the node from parse5 while preserving offsets and line breaks. */
940
- function mask(node, maskChar = " ") {
941
- if (!templateStack) return;
942
- const html = templateStack.html;
943
- replaceRange(templateStack, node.range, (maskRange) => html.slice(...maskRange).replace(/[^\n\r]/gu, (char) => maskChar.repeat(char.length)));
944
- }
945
- /** Check whether parse5 would treat Astro self-closing syntax as unclosed HTML. */
946
- function isNonVoidSelfClosingElement(node) {
947
- if (!isSyntaxSelfClosingElement(node)) return false;
948
- const name = getElementName(node);
949
- if (name == null) return false;
950
- return !isHtmlVoidElementName(name);
951
- }
952
- /** Check whether the original opening tag uses `/>`. */
953
- function isSyntaxSelfClosingElement(node) {
954
- return isSelfClosingStartTag(sourceCode.text.slice(node.openingElement.range[0], node.openingElement.range[1]));
955
- }
956
- /** Report one omitted end tag. */
957
- function reportOmittedEndTag(omittedEndTag) {
958
- context.report({
959
- loc: {
960
- start: sourceCode.getLocFromIndex(omittedEndTag.nameRange[0]),
961
- end: sourceCode.getLocFromIndex(omittedEndTag.nameRange[1])
962
- },
963
- messageId: "missing",
964
- data: { tagName: omittedEndTag.tagName },
965
- fix(fixer) {
966
- if (hasOmittedEndTagDescendantAtSameIndex(omittedEndTag)) return null;
967
- return fixer.insertTextBeforeRange([omittedEndTag.insertIndex, omittedEndTag.insertIndex], buildEndTagsAtSameIndex(omittedEndTag));
968
- }
969
- });
970
- }
971
- /** Check whether the source tag name is an HTML void element name. */
972
- function isHtmlVoidElementName(tagName) {
973
- return htmlVoidElements.has(tagName);
974
- }
975
- /** Check whether parse5 will handle this tag name as an HTML void element. */
976
- function isParse5HtmlVoidElementName(tagName) {
977
- return isHtmlVoidElementName(tagName) || parse5HtmlVoidElementAliases.has(tagName);
978
- }
979
- /** Check whether parse5 would collapse this source tag into an HTML void element. */
980
- function hasParse5VoidNameCollision(tagName) {
981
- return !isHtmlVoidElementName(tagName) && isParse5HtmlVoidElementName(tagName.toLowerCase());
982
- }
983
- /** Replace source names that parse5 would otherwise treat as special HTML. */
984
- function replaceWithSyntheticTagName(node) {
985
- if (!templateStack) return;
986
- if (!needsSyntheticTagName(node)) return;
987
- const replacement = getSyntheticTagName(node);
988
- replaceRange(templateStack, node.openingElement.name.range, replacement);
989
- const closingElement = node.closingElement;
990
- if (closingElement && hasRealClosingElement(node)) replaceRange(templateStack, closingElement.name.range, replacement);
991
- }
992
- /** Get the synthetic tag name for a source tag name. */
993
- function getSyntheticTagName(node) {
994
- const sourceTagName = getElementName(node) || "unknown";
995
- let tagName = syntheticTagNames.get(sourceTagName);
996
- if (!tagName) {
997
- tagName = `x-astro-component-${syntheticTagId++}`;
998
- while (sourceCode.text.includes(tagName)) tagName = `x-astro-component-${syntheticTagId++}`;
999
- if (tagName.length < sourceTagName.length) tagName = tagName.padEnd(sourceTagName.length, "x");
1000
- syntheticTagNames.set(sourceTagName, tagName);
1001
- }
1002
- return tagName;
1003
- }
1004
- /** Check whether this element name should be hidden from HTML semantics. */
1005
- function needsSyntheticTagName(node) {
1006
- const tagName = getElementName(node);
1007
- return tagName == null || isComponentName(tagName) || hasParse5VoidNameCollision(tagName);
1008
- }
1009
- /** Check whether the closing element comes from source text. */
1010
- function hasRealClosingElement(node) {
1011
- return node.closingElement != null && node.closingElement.range[0] < node.closingElement.range[1];
1012
- }
1013
- /** Check whether this node should split HTML parsing inside SVG. */
1014
- function isSvgHtmlIntegrationPoint(node) {
1015
- if (node.type !== "JSXElement") return false;
1016
- const name = getElementName(node);
1017
- return name != null && svgHtmlIntegrationPointNames.has(name) && hasSvgAncestor(node);
1018
- }
1019
- /** Check whether this node is in SVG before entering an HTML integration point. */
1020
- function hasSvgAncestor(node) {
1021
- let parent = node.parent;
1022
- while (parent) {
1023
- if (parent.type === "JSXElement") {
1024
- const name = getElementName(parent);
1025
- if (name === "svg") return true;
1026
- if (name != null && svgHtmlIntegrationPointNames.has(name)) return false;
1027
- }
1028
- parent = parent.parent;
1029
- }
1030
- return false;
1031
- }
1032
- /** Get the source range containing only an element's children. */
1033
- function getChildrenRange(node) {
1034
- return [node.openingElement.range[1], hasRealClosingElement(node) ? node.closingElement.range[0] : node.range[1]];
1035
- }
1036
- /** Handle an entered template node. */
1037
- function enterElement(node) {
1038
- if (isRoot(node)) {
1039
- if (!isSvgHtmlIntegrationPoint(node)) mask(node);
1040
- else for (const child of node.children) mask(child);
1041
- const range = getTemplateHTMLRange(node);
1042
- templateStack = {
1043
- node,
1044
- html: sourceCode.text.slice(range[0], range[1]),
1045
- offsetMap: [],
1046
- startOffset: range[0],
1047
- upper: templateStack
1048
- };
1049
- }
1050
- }
1051
- /** Get the source range to parse as the current HTML target. */
1052
- function getTemplateHTMLRange(node) {
1053
- if (node.type === "JSXFragment") return [node.openingFragment.range[1], node.closingFragment.range[0]];
1054
- if (isSvgHtmlIntegrationPoint(node)) return getChildrenRange(node);
1055
- const childrenRange = getRangeFromChildren(node);
1056
- return childrenRange ? [Math.min(node.range[0], childrenRange[0]), Math.max(node.range[1], childrenRange[1])] : node.range;
1057
- /**
1058
- * Get the source range containing only an element's children, including
1059
- * any nested elements. This is used to mask the children from the parent
1060
- * parse target while still allowing them to be parsed as their own target.
1061
- * The range is used to extract the HTML text for parse5, so it must be
1062
- * contiguous and include all children, even if they are nested.
1063
- */
1064
- function getRangeFromChildren(node) {
1065
- if (node.children.length === 0) return null;
1066
- const first = node.children[0];
1067
- const last = node.children[node.children.length - 1];
1068
- const firstChildrenRange = first.type === "JSXElement" || first.type === "JSXFragment" ? getRangeFromChildren(first) : null;
1069
- const lastChildrenRange = last.type === "JSXElement" || last.type === "JSXFragment" ? getRangeFromChildren(last) : null;
1070
- return [firstChildrenRange ? Math.min(first.range[0], firstChildrenRange[0]) : first.range[0], lastChildrenRange ? Math.max(last.range[1], lastChildrenRange[1]) : last.range[1]];
1071
- }
1072
- }
1073
- /** Verify a template node as its own parse5 target. */
1074
- function exitElement(node) {
1075
- if (templateStack?.node === node) {
1076
- verifyTarget(templateStack);
1077
- templateStack = templateStack?.upper ?? null;
1078
- }
1079
- }
1080
- /** Verify one source range with parse5 and report omitted end tags. */
1081
- function verifyTarget(currentStack) {
1082
- let parseAsDocument = false;
1083
- if (currentStack.node === rootAstroFragment && rootAstroFragment.children.some((node) => {
1084
- if (node.type !== "JSXElement") return false;
1085
- const name = getElementName(node);
1086
- return name === "html" || name === "head" || name === "body";
1087
- })) {
1088
- parseAsDocument = true;
1089
- if (rootAstroFragment.children.every((node) => node.type !== "AstroDoctype")) replaceRange(currentStack, [currentStack.startOffset, currentStack.startOffset], "<!DOCTYPE html>");
1090
- }
1091
- const omittedEndTags = collectOmittedEndTags({
1092
- fragmentHtml: currentStack.html,
1093
- getOriginalOffset: (offset) => getOriginalOffset(currentStack, offset),
1094
- parseAsDocument,
1095
- originalText: sourceCode.text
1096
- });
1097
- for (const omittedEndTag of omittedEndTags) reportOmittedEndTag(omittedEndTag);
1098
- }
1099
- return {
1100
- AstroFragment: (node) => enterElement(node),
1101
- "AstroFragment:exit": (node) => exitElement(node),
1102
- JSXElement: (node) => {
1103
- enterElement(node);
1104
- if (isNonVoidSelfClosingElement(node)) mask(node);
1105
- else replaceWithSyntheticTagName(node);
1106
- },
1107
- "JSXElement:exit": (node) => exitElement(node),
1108
- JSXFragment: (node) => enterElement(node),
1109
- "JSXFragment:exit": (node) => exitElement(node),
1110
- AstroRawText: (node) => mask(node, "x"),
1111
- AstroShorthandAttribute: (node) => mask(node),
1112
- AstroTemplateLiteralAttribute: (node) => mask(node),
1113
- JSXExpressionContainer: (node) => mask(node),
1114
- JSXSpreadAttribute: (node) => mask(node),
1115
- JSXSpreadChild: (node) => mask(node)
1116
- };
612
+ create() {
613
+ return {};
1117
614
  }
1118
615
  });
1119
- /** Check whether the outer range contains the inner range. */
1120
- function containsRange(outer, inner) {
1121
- return outer[0] <= inner[0] && inner[1] <= outer[1];
1122
- }
1123
- /** Collect omitted end tags using parse5's HTML tree construction. */
1124
- function collectOmittedEndTags({ fragmentHtml, getOriginalOffset, parseAsDocument, originalText }) {
1125
- const document = parseAsDocument ? parse(fragmentHtml, { sourceCodeLocationInfo: true }) : parseFragment(fragmentHtml, { sourceCodeLocationInfo: true });
1126
- const omittedEndTags = [];
1127
- /** Traverse the parse5 tree and keep omitted-tag ancestry for fixes. */
1128
- function traverse(node, parent) {
1129
- const omittedEndTag = getOmittedEndTag(node, originalText, getOriginalOffset, parent);
1130
- const currentParent = omittedEndTag ?? parent;
1131
- if (omittedEndTag) {
1132
- omittedEndTags.push(omittedEndTag);
1133
- parent?.children.push(omittedEndTag);
1134
- }
1135
- if ("childNodes" in node) for (const child of node.childNodes) traverse(child, currentParent);
1136
- if ("content" in node) traverse(node.content, currentParent);
1137
- }
1138
- traverse(document, null);
1139
- return omittedEndTags;
1140
- }
1141
- /** Get omitted end tag data for a parse5 node. */
1142
- function getOmittedEndTag(node, text, getOriginalOffset, parent) {
1143
- if (!isParse5Element(node)) return null;
1144
- const loc = node.sourceCodeLocation;
1145
- if (!loc?.startTag || loc.endTag) return null;
1146
- if (node.namespaceURI === HTML_NAMESPACE && htmlVoidElements.has(node.tagName)) return null;
1147
- const startTagText = text.slice(getOriginalOffset(loc.startTag.startOffset), getOriginalOffset(loc.startTag.endOffset));
1148
- if (isSelfClosingStartTag(startTagText)) return null;
1149
- const tagNameData = getRawTagName(startTagText);
1150
- if (!tagNameData) return null;
1151
- const nameStart = getOriginalOffset(loc.startTag.startOffset) + tagNameData.startOffset;
1152
- return {
1153
- children: [],
1154
- insertIndex: getOriginalOffset(getChildrenEndOffset(node) ?? loc.endOffset),
1155
- nameRange: [nameStart, nameStart + tagNameData.tagName.length],
1156
- parent,
1157
- tagName: tagNameData.tagName
1158
- };
1159
- }
1160
- /** Check whether a parse5 node is an element. */
1161
- function isParse5Element(node) {
1162
- return "tagName" in node;
1163
- }
1164
- /** Get the maximum end offset among the children of a parse5 element. */
1165
- function getChildrenEndOffset(node) {
1166
- let endOffset = null;
1167
- for (const child of node.childNodes) endOffset = max(endOffset, getSourceEndOffset(child));
1168
- if ("content" in node) endOffset = max(endOffset, getSourceEndOffset(node.content));
1169
- return endOffset;
1170
- }
1171
- /** Get the furthest source end offset in the parse5 subtree. */
1172
- function getSourceEndOffset(node) {
1173
- let endOffset = null;
1174
- const loc = node.sourceCodeLocation;
1175
- if (loc) endOffset = loc.endOffset;
1176
- if ("childNodes" in node) endOffset = max(endOffset, getChildrenEndOffset(node));
1177
- if ("content" in node) endOffset = max(endOffset, getSourceEndOffset(node.content));
1178
- return endOffset;
1179
- }
1180
- /** Check whether the original start tag used self-closing syntax. */
1181
- function isSelfClosingStartTag(startTagText) {
1182
- return /\/\s*>$/u.test(startTagText);
1183
- }
1184
- /** Extract the original tag name and its offset within the start tag. */
1185
- function getRawTagName(startTagText) {
1186
- const beforeName = /^<\s*/u.exec(startTagText)?.[0];
1187
- if (beforeName == null) return null;
1188
- const tagName = /^[^\s/>]+/u.exec(startTagText.slice(beforeName.length))?.[0];
1189
- if (!tagName) return null;
1190
- return {
1191
- startOffset: beforeName.length,
1192
- tagName
1193
- };
1194
- }
1195
- /** Check whether a descendant report owns the same insertion point. */
1196
- function hasOmittedEndTagDescendantAtSameIndex(omittedEndTag) {
1197
- for (const child of omittedEndTag.children) {
1198
- if (child.insertIndex === omittedEndTag.insertIndex) return true;
1199
- if (hasOmittedEndTagDescendantAtSameIndex(child)) return true;
1200
- }
1201
- return false;
1202
- }
1203
- /** Build the end-tag chain owned by the deepest report at this offset. */
1204
- function buildEndTagsAtSameIndex(omittedEndTag) {
1205
- const endTags = [`</${omittedEndTag.tagName}>`];
1206
- for (let parent = omittedEndTag.parent; parent && parent.insertIndex === omittedEndTag.insertIndex; parent = parent.parent) endTags.push(`</${parent.tagName}>`);
1207
- return endTags.join("");
1208
- }
1209
- /**
1210
- * Get the maximum of two numbers, treating `null` as negative infinity.
1211
- */
1212
- function max(a, b) {
1213
- if (a === null) return b;
1214
- if (b === null) return a;
1215
- return Math.max(a, b);
1216
- }
1217
616
  //#endregion
1218
617
  //#region src/rules/no-prerender-export-outside-pages.ts
1219
618
  const PAGES_DIR_PATTERN = /(?:^|[/\\])pages[/\\]/;
@@ -3928,7 +3327,12 @@ var valid_compile_default = createRule("valid-compile", {
3928
3327
  docs: {
3929
3328
  description: "disallow warnings when compiling.",
3930
3329
  category: "Possible Errors",
3931
- recommended: true
3330
+ recommended: false
3331
+ },
3332
+ deprecated: {
3333
+ message: "This rule is deprecated. Use `astro check` to check your project for errors instead.",
3334
+ url: "https://ota-meshi.github.io/eslint-plugin-astro/rules/valid-compile/",
3335
+ replacedBy: []
3932
3336
  },
3933
3337
  schema: [],
3934
3338
  messages: {},
@@ -3940,13 +3344,25 @@ var valid_compile_default = createRule("valid-compile", {
3940
3344
  const diagnostics = sourceCode.parserServices?.getAstroResult?.().diagnostics;
3941
3345
  if (!diagnostics) return {};
3942
3346
  return { Program() {
3943
- for (const { text, code, location, severity } of diagnostics) if (severity === 2) context.report({
3944
- loc: {
3945
- start: location,
3946
- end: location
3947
- },
3948
- message: `${text} [${code}]`
3949
- });
3347
+ for (const { text, labels, severity } of diagnostics) if (severity === "warning") {
3348
+ const label = labels?.[0];
3349
+ context.report({
3350
+ loc: label ? {
3351
+ start: sourceCode.getLocFromIndex(label.start),
3352
+ end: sourceCode.getLocFromIndex(label.end)
3353
+ } : {
3354
+ start: {
3355
+ line: 1,
3356
+ column: 0
3357
+ },
3358
+ end: {
3359
+ line: 1,
3360
+ column: 0
3361
+ }
3362
+ },
3363
+ message: `${text}`
3364
+ });
3365
+ }
3950
3366
  } };
3951
3367
  }
3952
3368
  });
@@ -3971,9 +3387,6 @@ let loaded = false;
3971
3387
  function getPluginJsxA11y() {
3972
3388
  if (loaded) return pluginJsxA11yCache;
3973
3389
  if (!pluginJsxA11yCache) pluginJsxA11yCache = requireUserLocal("eslint-plugin-jsx-a11y");
3974
- if (!pluginJsxA11yCache) try {
3975
- if (typeof _ESLINT_PLUGIN_ASTRO_MODULES !== "undefined") pluginJsxA11yCache = _ESLINT_PLUGIN_ASTRO_MODULES.require("eslint-plugin-jsx-a11y");
3976
- } catch {}
3977
3390
  loaded = true;
3978
3391
  return pluginJsxA11yCache || null;
3979
3392
  }
@@ -4223,9 +3636,6 @@ function resolveParser() {
4223
3636
  if (!parser) continue;
4224
3637
  return parser;
4225
3638
  }
4226
- try {
4227
- return toParserForESLint(_ESLINT_PLUGIN_ASTRO_MODULES.require("@typescript-eslint/parser"));
4228
- } catch {}
4229
3639
  return toParserForESLint(getEspree());
4230
3640
  }
4231
3641
  /** To the parser for ESLint */
@@ -4306,9 +3716,12 @@ var ClientScript = class {
4306
3716
  this.block = this.initBlock();
4307
3717
  }
4308
3718
  initBlock() {
4309
- const textNode = this.script.children[0];
4310
- const startOffset = textNode.position.start.offset;
4311
- const endOffset = this.parsed.getEndOffset(textNode);
3719
+ const textRangeData = {
3720
+ start: this.script.openingElement.end,
3721
+ end: this.script.closingElement.start
3722
+ };
3723
+ const startOffset = textRangeData.start;
3724
+ const endOffset = textRangeData.end;
4312
3725
  const startLoc = this.parsed.getLocFromIndex(startOffset);
4313
3726
  const lines = this.code.slice(startOffset, endOffset).split(/(?<=\n)/u);
4314
3727
  const firstLine = lines.shift();
@@ -4406,10 +3819,10 @@ var ClientScript = class {
4406
3819
  };
4407
3820
  }
4408
3821
  extractDefineVars() {
4409
- const defineVars = this.script.attributes.find((attr) => attr.kind === "expression" && attr.name === "define:vars");
3822
+ const defineVars = this.script.openingElement.attributes.find((attr) => attr.type === "JSXAttribute" && attr.name.type === "JSXIdentifier" && attr.name.name === "define:vars" && attr.value?.type === "JSXExpressionContainer");
4410
3823
  if (!defineVars) return [];
4411
- const valueStart = this.parsed.calcAttributeValueStartOffset(defineVars);
4412
- const valueEnd = this.parsed.calcAttributeEndOffset(defineVars);
3824
+ const valueStart = defineVars.value.start;
3825
+ const valueEnd = defineVars.value.end;
4413
3826
  let expression;
4414
3827
  try {
4415
3828
  expression = parseExpression(this.code.slice(valueStart + 1, valueEnd - 1));
@@ -4495,7 +3908,7 @@ function terminateShared(filename) {
4495
3908
  //#endregion
4496
3909
  //#region package.json
4497
3910
  var name$1 = "eslint-plugin-astro";
4498
- var version$1 = "2.1.1";
3911
+ var version$1 = "3.0.1";
4499
3912
  //#endregion
4500
3913
  //#region src/meta.ts
4501
3914
  var meta_exports = /* @__PURE__ */ __exportAll({
@@ -4505,6 +3918,28 @@ var meta_exports = /* @__PURE__ */ __exportAll({
4505
3918
  const name = name$1;
4506
3919
  const version = version$1;
4507
3920
  //#endregion
3921
+ //#region src/processor/astro/node.ts
3922
+ /** Check whether the given node is a JSX element */
3923
+ function isJSXElement(node) {
3924
+ return node.type === "JSXElement";
3925
+ }
3926
+ /** Check whether the given node is a JSX opening element. */
3927
+ function isJSXOpeningElement(node) {
3928
+ return node.type === "JSXOpeningElement";
3929
+ }
3930
+ /** Check whether the given node is a JSX closing element. */
3931
+ function isJSXClosingElement(node) {
3932
+ return node.type === "JSXClosingElement";
3933
+ }
3934
+ /** Check whether the given node is a Astro frontmatter node. */
3935
+ function isAstroFrontmatter(node) {
3936
+ return node.type === "AstroFrontmatter";
3937
+ }
3938
+ /** Check whether the given node is a Astro script node. */
3939
+ function isAstroScriptNode(node) {
3940
+ return node.type === "AstroScript";
3941
+ }
3942
+ //#endregion
4508
3943
  //#region src/processor/index.ts
4509
3944
  const astroProcessor = {
4510
3945
  preprocess(code, filename) {
@@ -4535,8 +3970,14 @@ function preprocess(code, filename, virtualFileExt) {
4535
3970
  } catch {
4536
3971
  return [code];
4537
3972
  }
4538
- parsed.walk(parsed.result.ast, (node) => {
4539
- if (node.type === "element" && node.name === "script" && node.children.length && !node.attributes.some(({ name, value }) => name === "type" && /json$|importmap/i.test(value))) shared.addClientScript(code, node, parsed);
3973
+ parsed.walk(parsed.result.ast, (node, _, ctx) => {
3974
+ if (isAstroFrontmatter(node) || isJSXOpeningElement(node) || isJSXClosingElement(node) || isAstroScriptNode(node)) {
3975
+ ctx.skipChildren();
3976
+ return;
3977
+ }
3978
+ if (isJSXElement(node)) {
3979
+ if (node.openingElement.name.type === "JSXIdentifier" && node.openingElement.name.name === "script" && node.children.length && !node.openingElement.selfClosing && !node.openingElement.attributes.some((attr) => attr.type === "JSXAttribute" && attr.name.type === "JSXIdentifier" && attr.name.name === "type" && attr.value?.type === "Literal" && /json$|importmap/i.test(String(attr.value.value)))) shared.addClientScript(code, node, parsed);
3980
+ }
4540
3981
  });
4541
3982
  return [code, ...shared.clientScripts.map((cs) => cs.getProcessorFile(virtualFileExt))];
4542
3983
  }
@@ -4633,10 +4074,8 @@ var recommended_default = [...base_default, {
4633
4074
  "astro/no-deprecated-astro-resolve": "error",
4634
4075
  "astro/no-deprecated-getentrybyslug": "error",
4635
4076
  "astro/no-exports-from-components": "error",
4636
- "astro/no-omitted-end-tags": "error",
4637
4077
  "astro/no-prerender-export-outside-pages": "error",
4638
- "astro/no-unused-define-vars-in-style": "error",
4639
- "astro/valid-compile": "error"
4078
+ "astro/no-unused-define-vars-in-style": "error"
4640
4079
  }
4641
4080
  }];
4642
4081
  //#endregion