@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
@@ -0,0 +1,23 @@
1
+ // Adapted from https://github.com/rolldown/rolldown/blob/41e26d6903d777bae3d37306a86da9fd1d80a1e3/packages/rolldown/src/webcontainer-fallback.cjs
2
+
3
+ const fs = require('node:fs');
4
+ const childProcess = require('node:child_process');
5
+
6
+ const pkg = JSON.parse(fs.readFileSync(require.resolve('@astrojs/compiler-binding/package.json'), 'utf-8'));
7
+ const version = pkg.version;
8
+
9
+ const baseDir = `/tmp/astro-compiler-${version}`;
10
+ const bindingEntry = `${baseDir}/node_modules/@astrojs/compiler-binding-wasm32-wasi/astro.wasi.cjs`;
11
+
12
+ if (!fs.existsSync(bindingEntry)) {
13
+ const bindingPkg = `@astrojs/compiler-binding-wasm32-wasi@${version}`;
14
+ fs.rmSync(baseDir, { recursive: true, force: true });
15
+ fs.mkdirSync(baseDir, { recursive: true });
16
+ console.log(`[astro] Downloading ${bindingPkg} on WebContainer...`);
17
+ childProcess.execFileSync('pnpm', ['i', bindingPkg], {
18
+ cwd: baseDir,
19
+ stdio: 'inherit',
20
+ });
21
+ }
22
+
23
+ module.exports = require(bindingEntry);
@@ -0,0 +1,3 @@
1
+ # `@astrojs/compiler-binding-linux-x64-gnu`
2
+
3
+ This is the **x86_64-unknown-linux-gnu** binary for `@astrojs/compiler-binding`
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@astrojs/compiler-binding-linux-x64-gnu",
3
+ "version": "0.3.2",
4
+ "cpu": [
5
+ "x64"
6
+ ],
7
+ "main": "astro.linux-x64-gnu.node",
8
+ "files": [
9
+ "astro.linux-x64-gnu.node"
10
+ ],
11
+ "description": "Astro Compiler",
12
+ "keywords": [
13
+ "astro",
14
+ "compiler",
15
+ "javascript",
16
+ "typescript"
17
+ ],
18
+ "author": "Astro contributors",
19
+ "homepage": "https://astro.build",
20
+ "license": "MIT",
21
+ "engines": {
22
+ "node": "^20.19.0 || >=22.12.0"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/withastro/compiler-rs.git",
27
+ "directory": "crates/astro_napi"
28
+ },
29
+ "bugs": "https://github.com/withastro/compiler/issues",
30
+ "publishConfig": {
31
+ "registry": "https://registry.npmjs.org/",
32
+ "access": "public"
33
+ },
34
+ "os": [
35
+ "linux"
36
+ ],
37
+ "libc": [
38
+ "glibc"
39
+ ]
40
+ }
@@ -1,4 +1,6 @@
1
- Copyright (c) 2013-2019 Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin)
1
+ MIT License
2
+
3
+ Copyright (c) 2026 [Astro contributors](https://github.com/withastro/compiler/graphs/contributors)
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
6
  of this software and associated documentation files (the "Software"), to deal
@@ -7,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
9
  copies of the Software, and to permit persons to whom the Software is
8
10
  furnished to do so, subject to the following conditions:
9
11
 
10
- The above copyright notice and this permission notice shall be included in
11
- all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
12
14
 
13
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- THE SOFTWARE.
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,62 @@
1
+ # Astro Compiler
2
+
3
+ Astro's compiler, written in Rust with [NAPI-RS](https://napi.rs/) bindings for Node.js.
4
+
5
+ ## Install
6
+
7
+ ```
8
+ npm install @astrojs/compiler-rs
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ #### Transform `.astro` to JavaScript
14
+
15
+ The Astro compiler transforms `.astro` component files into JavaScript modules whose default export generates HTML.
16
+
17
+ ```js
18
+ import { transform } from "@astrojs/compiler-rs";
19
+
20
+ const result = transform(source, {
21
+ filename: "/Users/astro/Code/project/src/pages/index.astro",
22
+ sourcemap: "both",
23
+ });
24
+ ```
25
+
26
+ #### Parse `.astro` and return an AST
27
+
28
+ The compiler can emit an ESTree-compatible AST using the `parse` method.
29
+
30
+ ```js
31
+ import { parse } from "@astrojs/compiler-rs";
32
+
33
+ const result = parse(source);
34
+
35
+ console.log(JSON.stringify(result.ast, null, 2));
36
+ ```
37
+
38
+ ## Contributing
39
+
40
+ **New contributors welcome!** Check out our [Contributors Guide](CONTRIBUTING.md) for help getting started.
41
+
42
+ Join us on [Discord](https://astro.build/chat) to meet other maintainers. We'll help you get your first contribution in no time!
43
+
44
+ ## Links
45
+
46
+ - [License (MIT)](LICENSE)
47
+ - [Code of Conduct](https://github.com/withastro/.github/blob/main/CODE_OF_CONDUCT.md)
48
+ - [Open Governance & Voting](https://github.com/withastro/.github/blob/main/GOVERNANCE.md)
49
+ - [Project Funding](https://github.com/withastro/.github/blob/main/FUNDING.md)
50
+ - [Website](https://astro.build/)
51
+
52
+ ## Sponsors
53
+
54
+ Astro is free, open source software made possible by these wonderful sponsors.
55
+
56
+ [❤️ Sponsor Astro! ❤️](https://github.com/withastro/.github/blob/main/FUNDING.md)
57
+
58
+ <p align="center">
59
+ <a target="_blank" href="https://opencollective.com/astrodotbuild">
60
+ <img src="https://astro.build/sponsors.png" alt="Sponsor logos including the current Astro Sponsors, Gold Sponsors, and Exclusive Partner Sponsors: Netlify, Sentry, and Project IDX." />
61
+ </a>
62
+ </p>
@@ -0,0 +1 @@
1
+ export * from './dist/async.mjs';
@@ -0,0 +1,9 @@
1
+ import { AsyncTransformOptions, CompileResult, DiagnosticLabel, DiagnosticMessage, DiagnosticSeverity, HoistedScript, ParseOptions, ParseResult, PreprocessedStyles, PreprocessorError, PreprocessorResult, TransformResult } from "./types.mjs";
2
+ import { preprocessStyles } from "./shared.mjs";
3
+
4
+ //#region src/async.d.ts
5
+ declare function transform(input: string, options?: AsyncTransformOptions): Promise<TransformResult>;
6
+ declare function parse(input: string): Promise<ParseResult>;
7
+ declare function convertToTSX(_input: string): Promise<never>;
8
+ //#endregion
9
+ export { type CompileResult, type DiagnosticLabel, type DiagnosticMessage, type DiagnosticSeverity, type HoistedScript, type ParseOptions, type ParseResult, type PreprocessedStyles, type PreprocessorError, type PreprocessorResult, type AsyncTransformOptions as TransformOptions, type TransformResult, convertToTSX, parse, preprocessStyles, transform };
@@ -0,0 +1 @@
1
+ import{mapOptions as e,mapParseResult as t,mapResult as n,preprocessStyles as r}from"./shared.mjs";import{compileAstro as i,parseAstro as a}from"@astrojs/compiler-binding";async function o(t,r){let a=n(await i(t,e(r)),r?.preprocessedStyles);if(typeof r?.resolvePath==`function`){let e=r.resolvePath,t=[...a.hydratedComponents,...a.clientOnlyComponents,...a.serverComponents];for(let n of t)n.resolvedPath=await e(n.specifier);let{code:n}=a;for(let e of t)e.resolvedPath&&e.resolvedPath!==e.specifier&&(n=n.split(`"client:component-path": "${e.specifier}"`).join(`"client:component-path": "${e.resolvedPath}"`));a.code=n}return a}async function s(e){return t(await a(e))}async function c(e){throw Error(`convertToTSX() is not yet implemented in the Rust compiler`)}export{c as convertToTSX,s as parse,r as preprocessStyles,o as transform};
@@ -0,0 +1,9 @@
1
+ import { CompileResult, ConvertToTSXOptions, DiagnosticLabel, DiagnosticMessage, DiagnosticSeverity, HoistedScript, ParseOptions, ParseResult, PreprocessedStyles, PreprocessorError, PreprocessorResult, TransformOptions, TransformResult } from "./types.mjs";
2
+ import { preprocessStyles } from "./shared.mjs";
3
+
4
+ //#region src/index.d.ts
5
+ declare function transform(input: string, options?: TransformOptions): TransformResult;
6
+ declare function parse(input: string): ParseResult;
7
+ declare function convertToTSX(_input: string, _options: ConvertToTSXOptions): never;
8
+ //#endregion
9
+ export { type CompileResult, type DiagnosticLabel, type DiagnosticMessage, type DiagnosticSeverity, type HoistedScript, type ParseOptions, type ParseResult, type PreprocessedStyles, type PreprocessorError, type PreprocessorResult, type TransformOptions, type TransformResult, convertToTSX, parse, preprocessStyles, transform };
@@ -0,0 +1 @@
1
+ import{mapOptions as e,mapParseResult as t,mapResult as n,preprocessStyles as r}from"./shared.mjs";import{compileAstroSync as i,parseAstroSync as a}from"@astrojs/compiler-binding";function o(t,r){let a=n(i(t,e(r)),r?.preprocessedStyles);if(typeof r?.resolvePath==`function`){let e=r.resolvePath,t=[...a.hydratedComponents,...a.clientOnlyComponents,...a.serverComponents];for(let n of t)n.resolvedPath=e(n.specifier);let{code:n}=a;for(let e of t)e.resolvedPath&&e.resolvedPath!==e.specifier&&(n=n.split(`"client:component-path": "${e.specifier}"`).join(`"client:component-path": "${e.resolvedPath}"`));a.code=n}return a}function s(e){return t(a(e))}function c(e,t){throw Error(`convertToTSX() is not yet implemented`)}export{c as convertToTSX,s as parse,r as preprocessStyles,o as transform};
@@ -0,0 +1,45 @@
1
+ import { AsyncTransformOptions, ParseResult, PreprocessedStyles, PreprocessorError, PreprocessorResult, TransformOptions, TransformResult } from "./types.mjs";
2
+ import { CompileOptions, CompileResult } from "@astrojs/compiler-binding";
3
+
4
+ //#region src/shared.d.ts
5
+ /**
6
+ * Map public `TransformOptions` to the NAPI `CompileOptions`.
7
+ *
8
+ * Handles:
9
+ * - `resolvePath` callback → `resolvePathProvided` flag
10
+ * - `preprocessedStyles` opaque type → raw array
11
+ */
12
+ declare function mapOptions(options?: TransformOptions | AsyncTransformOptions): CompileOptions | undefined;
13
+ /**
14
+ * Map the NAPI `CompileResult` to the public `TransformResult`.
15
+ *
16
+ * Merges preprocessed style errors into the result.
17
+ */
18
+ declare function mapResult(result: CompileResult, preprocessedStyles?: PreprocessedStyles): TransformResult;
19
+ /**
20
+ * Map the NAPI `ParseResult` to the public `ParseResult`.
21
+ *
22
+ * The only transformation is parsing the AST JSON string into an object.
23
+ */
24
+ declare function mapParseResult(result: {
25
+ ast: string;
26
+ diagnostics: CompileResult['diagnostics'];
27
+ }): ParseResult;
28
+ /** Sync callback signature for {@link preprocessStyles}. */
29
+ type SyncPreprocessStyleFn = (content: string, attrs: Record<string, string>) => null | PreprocessorResult | PreprocessorError;
30
+ /** Async callback signature for {@link preprocessStyles}. */
31
+ type AsyncPreprocessStyleFn = (content: string, attrs: Record<string, string>) => Promise<PreprocessorResult | PreprocessorError | null>;
32
+ /**
33
+ * Extract and preprocess `<style>` blocks from an Astro source string.
34
+ *
35
+ * Call this **before** `transform()` and pass the result via
36
+ * `options.preprocessedStyles`.
37
+ *
38
+ * The return type mirrors the callback: if `preprocessStyle` is sync,
39
+ * this returns `PreprocessedStyles` synchronously.
40
+ * If the callback is async, this returns `Promise<PreprocessedStyles>`.
41
+ */
42
+ declare function preprocessStyles(input: string, preprocessStyle: SyncPreprocessStyleFn): PreprocessedStyles;
43
+ declare function preprocessStyles(input: string, preprocessStyle: AsyncPreprocessStyleFn): Promise<PreprocessedStyles>;
44
+ //#endregion
45
+ export { mapOptions, mapParseResult, mapResult, preprocessStyles };
@@ -0,0 +1 @@
1
+ import{extractStylesSync as e}from"@astrojs/compiler-binding";function t(e){if(!e)return;let t;e.preprocessedStyles&&e.preprocessedStyles.styles.some(e=>e!=null)&&(t=e.preprocessedStyles.styles);let n=(e.compact===!0?`html`:e.compact===`jsx`?`jsx`:void 0)??`none`;return{filename:e.filename,normalizedFilename:e.normalizedFilename,internalURL:e.internalURL,sourcemap:e.sourcemap,astroGlobalArgs:e.astroGlobalArgs,compact:n,resultScopedSlot:e.resultScopedSlot,scopedStyleStrategy:e.scopedStyleStrategy,transitionsAnimationURL:e.transitionsAnimationURL,annotateSourceFile:e.annotateSourceFile,resolvePathProvided:typeof e.resolvePath==`function`?!0:void 0,preprocessedStyles:t}}function n(e,t){return t?.styleError?.length?{...e,styleError:t.styleError}:e}function r(e){return{ast:JSON.parse(e.ast),diagnostics:e.diagnostics}}function i(e){return`error`in e&&typeof e.error==`string`}function a(e){let t=[];return{styles:e.map(e=>{if(e!=null)return i(e)?(t.push(e.error),``):e.code}),styleError:t}}function o(t,n){let r=e(t);if(r.length===0)return{styles:[],styleError:[]};let i=[],o=!1;for(let e of r)try{let t=n(e.content,e.attrs);t!=null&&typeof t.then==`function`&&(o=!0),i.push(t)}catch(e){i.push({error:e instanceof Error?e.message:String(e)})}return o?Promise.all(i.map(async e=>{try{return await e}catch(e){return{error:e instanceof Error?e.message:String(e)}}})).then(a):a(i)}export{t as mapOptions,r as mapParseResult,n as mapResult,o as preprocessStyles};
@@ -0,0 +1,94 @@
1
+ import { CompileOptions, CompileResult, CompileResult as CompileResult$1, Component, DiagnosticLabel, DiagnosticMessage, HoistedScript, ParseResult as BindingParseResult, StyleBlock } from "@astrojs/compiler-binding";
2
+
3
+ //#region src/types.d.ts
4
+ /** Severity level for a diagnostic message. */
5
+ type DiagnosticSeverity = 'error' | 'warning' | 'information' | 'hint';
6
+ interface PreprocessorResult {
7
+ code: string;
8
+ map?: string;
9
+ }
10
+ interface PreprocessorError {
11
+ error: string;
12
+ }
13
+ /**
14
+ * Result of preprocessing `<style>` blocks via {@link preprocessStyles}.
15
+ *
16
+ * This is an opaque value — pass it to `transform()` via the
17
+ * `preprocessedStyles` option. Do not inspect or modify it.
18
+ */
19
+ interface PreprocessedStyles {
20
+ /** Preprocessed CSS per extractable `<style>`, in document order.
21
+ * `undefined` = use original content, `""` = error (empty). */
22
+ styles: (string | undefined)[];
23
+ /** Error messages from the preprocessor. */
24
+ styleError: string[];
25
+ }
26
+ interface ParseOptions {
27
+ position?: boolean;
28
+ }
29
+ /**
30
+ * Options for compiling Astro files to JavaScript.
31
+ *
32
+ * Extends the NAPI `CompileOptions` with TS-only features:
33
+ * - `resolvePath` callback for post-compilation path resolution
34
+ * - `preprocessedStyles` uses the opaque `PreprocessedStyles` type
35
+ *
36
+ * Fields that are internal to the NAPI layer (`resolvePathProvided`,
37
+ * `stripSlotComments`) are omitted — they are set automatically by
38
+ * the wrapper functions.
39
+ */
40
+ interface TransformOptions extends Omit<CompileOptions, 'resolvePathProvided' | 'preprocessedStyles' | 'compact'> {
41
+ /**
42
+ * Controls whitespace collapsing in the HTML output.
43
+ *
44
+ * - `false`: no whitespace modification.
45
+ * - `true` (default): HTML-aware whitespace collapsing.
46
+ * - `"jsx"`: strips all whitespace-only text nodes and leading/trailing
47
+ * whitespace from text content.
48
+ *
49
+ * @default `true`
50
+ */
51
+ compact?: boolean | 'jsx';
52
+ resolvePath?: (specifier: string) => string;
53
+ /**
54
+ * Preprocessed style content from {@link preprocessStyles}.
55
+ *
56
+ * When provided, the compiler uses these preprocessed CSS strings
57
+ * instead of the raw `<style>` content from the template.
58
+ */
59
+ preprocessedStyles?: PreprocessedStyles;
60
+ }
61
+ /** TransformOptions variant for the async entrypoint, where resolvePath may return a Promise. */
62
+ interface AsyncTransformOptions extends Omit<TransformOptions, 'resolvePath'> {
63
+ resolvePath?: (specifier: string) => Promise<string> | string;
64
+ }
65
+ type ConvertToTSXOptions = Pick<TransformOptions, 'filename' | 'normalizedFilename' | 'sourcemap'> & {
66
+ /** If set to true, script tags content will be included in the generated TSX
67
+ * Scripts will be wrapped in an arrow function to be compatible with JSX's spec
68
+ */
69
+ includeScripts?: boolean;
70
+ /** If set to true, style tags content will be included in the generated TSX
71
+ * Styles will be wrapped in a template literal to be compatible with JSX's spec
72
+ */
73
+ includeStyles?: boolean;
74
+ };
75
+ /** The public result type returned by `transform()` / async `transform()`. */
76
+ type TransformResult = CompileResult$1;
77
+ interface SourceMap {
78
+ file: string;
79
+ mappings: string;
80
+ names: string[];
81
+ sources: string[];
82
+ sourcesContent: string[];
83
+ version: number;
84
+ }
85
+ /** Result of parsing an Astro file into an AST. */
86
+ interface ParseResult {
87
+ /** The oxc AST in ESTree-compatible JSON format. */
88
+ ast: Record<string, any>;
89
+ /** Diagnostic messages (parse errors, warnings). */
90
+ diagnostics: import('@astrojs/compiler-binding').DiagnosticMessage[];
91
+ }
92
+ type TSXResult = any;
93
+ //#endregion
94
+ export { AsyncTransformOptions, type BindingParseResult, type CompileResult, type Component, ConvertToTSXOptions, type DiagnosticLabel, type DiagnosticMessage, DiagnosticSeverity, type HoistedScript, ParseOptions, ParseResult, PreprocessedStyles, PreprocessorError, PreprocessorResult, SourceMap, type StyleBlock, TSXResult, TransformOptions, TransformResult };
@@ -0,0 +1 @@
1
+ export{};
@@ -0,0 +1,4 @@
1
+ //#region src/utils.d.ts
2
+ declare function serialize(_ast: any, _options?: any): string;
3
+ //#endregion
4
+ export { serialize };
@@ -0,0 +1 @@
1
+ function e(e,t){throw Error(`serialize() is not yet implemented in the Rust compiler`)}export{e as serialize};
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@astrojs/compiler-rs",
3
+ "version": "0.3.2",
4
+ "homepage": "https://astro.build",
5
+ "bugs": "https://github.com/withastro/compiler-rs/issues",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/withastro/compiler-rs.git"
9
+ },
10
+ "license": "MIT",
11
+ "author": "withastro",
12
+ "type": "module",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.mts",
16
+ "default": "./dist/index.mjs"
17
+ },
18
+ "./async": {
19
+ "types": "./dist/async.d.mts",
20
+ "default": "./dist/async.mjs"
21
+ },
22
+ "./utils": {
23
+ "types": "./dist/utils.d.mts",
24
+ "default": "./dist/utils.mjs"
25
+ },
26
+ "./package.json": "./package.json"
27
+ },
28
+ "main": "./dist/index.mjs",
29
+ "files": [
30
+ "dist",
31
+ "types.d.ts",
32
+ "utils.d.ts",
33
+ "async.d.ts"
34
+ ],
35
+ "dependencies": {
36
+ "@astrojs/compiler-binding": "0.3.2"
37
+ },
38
+ "devDependencies": {
39
+ "@jridgewell/trace-mapping": "^0.3.16",
40
+ "@types/node": "^22",
41
+ "publint": "^0.3.21",
42
+ "tsdown": "^0.22.3",
43
+ "typescript": "~5.5.3"
44
+ },
45
+ "engines": {
46
+ "node": ">=22.12.0"
47
+ },
48
+ "publishConfig": {
49
+ "access": "public",
50
+ "provenance": true
51
+ },
52
+ "scripts": {
53
+ "build": "tsdown && publint"
54
+ }
55
+ }
@@ -0,0 +1 @@
1
+ export type * from './dist/types.mjs';
@@ -141,9 +141,9 @@ to get your logo on our READMEs and [website](https://eslint.org/sponsors).
141
141
 
142
142
  <h3>Platinum Sponsors</h3>
143
143
  <p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="128"></a></p><h3>Gold Sponsors</h3>
144
- <p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a></p><h3>Silver Sponsors</h3>
144
+ <p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a> <a href="https://shopify.engineering/"><img src="https://avatars.githubusercontent.com/u/8085" alt="Shopify" height="96"></a> <a href="https://www.coderabbit.ai/?utm_source=cr_org&utm_medium=github"><img src="https://avatars.githubusercontent.com/u/132028505" alt="CodeRabbit" height="96"></a></p><h3>Silver Sponsors</h3>
145
145
  <p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/d472863/logo.png" alt="Vite" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/2d6c3b6/logo.png" alt="Liftoff" height="64"></a> <a href="https://stackblitz.com"><img src="https://avatars.githubusercontent.com/u/28635252" alt="StackBlitz" height="64"></a></p><h3>Bronze Sponsors</h3>
146
- <p><a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://opensource.sap.com"><img src="https://avatars.githubusercontent.com/u/2531208" alt="SAP" height="32"></a> <a href="https://www.crawljobs.com/"><img src="https://images.opencollective.com/crawljobs-poland/fa43a17/logo.png" alt="CrawlJobs" height="32"></a> <a href="https://depot.dev"><img src="https://images.opencollective.com/depot/39125a1/logo.png" alt="Depot" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a> <a href="https://citadel.co.jp"><img src="https://avatars.githubusercontent.com/u/75781367" alt="Citadel AI" height="32"></a> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="TestMu AI Open Source Office (Formerly LambdaTest)" height="32"></a></p>
146
+ <p><a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://opensource.sap.com"><img src="https://avatars.githubusercontent.com/u/2531208" alt="SAP" height="32"></a> <a href="https://syntax.fm"><img src="https://github.com/syntaxfm.png" alt="Syntax" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://citadel-ai.com"><img src="https://avatars.githubusercontent.com/u/75781367" alt="Citadel AI" height="32"></a></p>
147
147
  <h3>Technology Sponsors</h3>
148
148
  Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work.
149
149
  <p><a href="https://netlify.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/netlify-icon.svg" alt="Netlify" height="32"></a> <a href="https://algolia.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/algolia-icon.svg" alt="Algolia" height="32"></a> <a href="https://1password.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/1password-icon.svg" alt="1Password" height="32"></a></p>
@@ -13,16 +13,17 @@ var path = require('node:path');
13
13
  //-----------------------------------------------------------------------------
14
14
 
15
15
  /** @import * as $eslintcore from "@eslint/core"; */
16
- /** @typedef {$eslintcore.ConfigObject} Config */
16
+ /** @typedef {$eslintcore.ConfigObject} ConfigObject */
17
17
  /** @typedef {$eslintcore.LegacyConfigObject} LegacyConfig */
18
18
  /** @typedef {$eslintcore.Plugin} Plugin */
19
19
  /** @typedef {$eslintcore.RuleConfig} RuleConfig */
20
20
  /** @import * as $typests from "./types.ts"; */
21
+ /** @typedef {$typests.Config} Config */
21
22
  /** @typedef {$typests.ExtendsElement} ExtendsElement */
22
23
  /** @typedef {$typests.ExtensionConfigObject} ExtensionConfigObject */
23
24
  /** @typedef {$typests.SimpleExtendsElement} SimpleExtendsElement */
24
25
  /** @typedef {$typests.ConfigWithExtends} ConfigWithExtends */
25
- /** @typedef {$typests.InfiniteArray<Config>} InfiniteConfigArray */
26
+ /** @typedef {$typests.InfiniteArray<ConfigObject>} InfiniteConfigArray */
26
27
  /** @typedef {$typests.ConfigWithExtendsArray} ConfigWithExtendsArray */
27
28
 
28
29
  //-----------------------------------------------------------------------------
@@ -46,7 +47,7 @@ const allowedGlobalIgnoreKeys = new Set(["basePath", "ignores", "name"]);
46
47
 
47
48
  /**
48
49
  * Gets the name of a config object.
49
- * @param {Config} config The config object.
50
+ * @param {ConfigObject} config The config object.
50
51
  * @param {string} indexPath The index path of the config object.
51
52
  * @return {string} The name of the config object.
52
53
  */
@@ -78,7 +79,7 @@ function getExtensionName(extension, indexPath) {
78
79
 
79
80
  /**
80
81
  * Determines if a config object is a legacy config.
81
- * @param {Config|LegacyConfig} config The config object to check.
82
+ * @param {ConfigObject|LegacyConfig} config The config object to check.
82
83
  * @return {config is LegacyConfig} `true` if the config object is a legacy config.
83
84
  */
84
85
  function isLegacyConfig(config) {
@@ -98,7 +99,7 @@ function isLegacyConfig(config) {
98
99
 
99
100
  /**
100
101
  * Determines if a config object is a global ignores config.
101
- * @param {Config} config The config object to check.
102
+ * @param {ConfigObject} config The config object to check.
102
103
  * @return {boolean} `true` if the config object is a global ignores config.
103
104
  */
104
105
  function isGlobalIgnores(config) {
@@ -145,8 +146,8 @@ function getPluginMember(id) {
145
146
  * Normalizes the plugin config by replacing the namespace with the plugin namespace.
146
147
  * @param {string} userNamespace The namespace of the plugin.
147
148
  * @param {Plugin} plugin The plugin config object.
148
- * @param {Config} config The config object to normalize.
149
- * @return {Config} The normalized config object.
149
+ * @param {ConfigObject} config The config object to normalize.
150
+ * @return {ConfigObject} The normalized config object.
150
151
  */
151
152
  function normalizePluginConfig(userNamespace, plugin, config) {
152
153
  const pluginNamespace = plugin.meta?.namespace;
@@ -214,7 +215,7 @@ function normalizePluginConfig(userNamespace, plugin, config) {
214
215
  * Deeply normalizes a plugin config, traversing recursively into an arrays.
215
216
  * @param {string} userPluginNamespace The namespace of the plugin.
216
217
  * @param {Plugin} plugin The plugin object.
217
- * @param {Config|LegacyConfig|(Config|LegacyConfig)[]} pluginConfig The plugin config to normalize.
218
+ * @param {ConfigObject|LegacyConfig|(ConfigObject|LegacyConfig)[]} pluginConfig The plugin config to normalize.
218
219
  * @param {string} pluginConfigName The name of the plugin config.
219
220
  * @return {InfiniteConfigArray} The normalized plugin config.
220
221
  * @throws {TypeError} If the plugin config is a legacy config.
@@ -249,7 +250,7 @@ function deepNormalizePluginConfig(
249
250
 
250
251
  /**
251
252
  * Finds a plugin config by name in the given config.
252
- * @param {Config} config The config object.
253
+ * @param {ConfigObject} config The config object.
253
254
  * @param {string} pluginConfigName The name of the plugin config.
254
255
  * @return {InfiniteConfigArray} The plugin config.
255
256
  * @throws {TypeError} If the plugin config is not found or is a legacy config.
@@ -369,11 +370,11 @@ function extendConfigFiles(baseFiles = [], extensionFiles = []) {
369
370
 
370
371
  /**
371
372
  * Extends a config object with another config object.
372
- * @param {Config} baseConfig The base config object.
373
+ * @param {ConfigObject} baseConfig The base config object.
373
374
  * @param {string} baseConfigName The name of the base config object.
374
- * @param {Config} extension The extension config object.
375
+ * @param {ConfigObject} extension The extension config object.
375
376
  * @param {string} extensionName The index of the extension config object.
376
- * @return {Config} The extended config object.
377
+ * @return {ConfigObject} The extended config object.
377
378
  */
378
379
  function extendConfig(baseConfig, baseConfigName, extension, extensionName) {
379
380
  const result = { ...extension };
@@ -403,8 +404,8 @@ function extendConfig(baseConfig, baseConfigName, extension, extensionName) {
403
404
  /**
404
405
  * Processes a list of extends elements.
405
406
  * @param {ConfigWithExtends} config The config object.
406
- * @param {WeakMap<Config, string>} configNames The map of config objects to their names.
407
- * @return {Config[]} The flattened list of config objects.
407
+ * @param {WeakMap<ConfigObject, string>} configNames The map of config objects to their names.
408
+ * @return {ConfigObject[]} The flattened list of config objects.
408
409
  * @throws {TypeError} If the `extends` property is not an array or if nested `extends` is found.
409
410
  */
410
411
  function processExtends(config, configNames) {
@@ -417,10 +418,10 @@ function processExtends(config, configNames) {
417
418
  }
418
419
 
419
420
  const {
420
- /** @type {Config[]} */
421
+ /** @type {ConfigObject[]} */
421
422
  extends: extendsList,
422
423
 
423
- /** @type {Config} */
424
+ /** @type {ConfigObject} */
424
425
  ...configObject
425
426
  } = config;
426
427
 
@@ -446,7 +447,7 @@ function processExtends(config, configNames) {
446
447
  return pluginConfig;
447
448
  }
448
449
 
449
- return /** @type {Config} */ (extendsElement);
450
+ return /** @type {ConfigObject} */ (extendsElement);
450
451
  });
451
452
 
452
453
  const result = [];
@@ -454,7 +455,7 @@ function processExtends(config, configNames) {
454
455
  for (const { indexPath, value: extendsElement } of flatTraverse(
455
456
  objectExtends,
456
457
  )) {
457
- const extension = /** @type {Config} */ (extendsElement);
458
+ const extension = /** @type {ConfigObject} */ (extendsElement);
458
459
 
459
460
  if ("basePath" in extension) {
460
461
  throw new TypeError("'basePath' in `extends` is not allowed.");
@@ -499,8 +500,8 @@ function processExtends(config, configNames) {
499
500
  /**
500
501
  * Processes a list of config objects and arrays.
501
502
  * @param {ConfigWithExtends[]} configList The list of config objects and arrays.
502
- * @param {WeakMap<Config, string>} configNames The map of config objects to their names.
503
- * @return {Config[]} The flattened list of config objects.
503
+ * @param {WeakMap<ConfigObject, string>} configNames The map of config objects to their names.
504
+ * @return {ConfigObject[]} The flattened list of config objects.
504
505
  */
505
506
  function processConfigList(configList, configNames) {
506
507
  return configList.flatMap(config => processExtends(config, configNames));
@@ -513,7 +514,7 @@ function processConfigList(configList, configNames) {
513
514
  /**
514
515
  * Helper function to define a config array.
515
516
  * @param {ConfigWithExtendsArray} args The arguments to the function.
516
- * @returns {Config[]} The config array.
517
+ * @returns {ConfigObject[]} The config array.
517
518
  * @throws {TypeError} If no arguments are provided or if an argument is not an object.
518
519
  */
519
520
  function defineConfig(...args) {
@@ -566,7 +567,7 @@ let globalIgnoreCount = 0;
566
567
  * Creates a global ignores config with the given patterns.
567
568
  * @param {string[]} ignorePatterns The ignore patterns.
568
569
  * @param {string} [name] The name of the global ignores config.
569
- * @returns {Config} The global ignores config.
570
+ * @returns {ConfigObject} The global ignores config.
570
571
  * @throws {TypeError} If ignorePatterns is not an array or if it is empty.
571
572
  */
572
573
  function globalIgnores(ignorePatterns, name) {
@@ -722,7 +723,7 @@ function parseOptions(options) {
722
723
  *
723
724
  * @param {string[]} ignoreFilePathArg The paths of ignore files to include.
724
725
  * @param {IncludeIgnoreFileOptions} [options]
725
- * @returns {Config[]}
726
+ * @returns {ConfigObject[]}
726
727
  */
727
728
 
728
729
  /**
@@ -732,7 +733,7 @@ function parseOptions(options) {
732
733
  *
733
734
  * @param {string} ignoreFilePathArg The path of the ignore file to include.
734
735
  * @param {IncludeIgnoreFileOptions} [options]
735
- * @returns {Config}
736
+ * @returns {ConfigObject}
736
737
  */
737
738
 
738
739
  /**
@@ -742,7 +743,7 @@ function parseOptions(options) {
742
743
  *
743
744
  * @param {string[] | string} ignoreFilePathArg The path(s) of the ignore file(s) to include.
744
745
  * @param {IncludeIgnoreFileOptions} [options]
745
- * @returns {Config[] | Config}
746
+ * @returns {ConfigObject[] | ConfigObject}
746
747
  */
747
748
 
748
749
  /**
@@ -750,7 +751,7 @@ function parseOptions(options) {
750
751
  *
751
752
  * @param {string[] | string} ignoreFilePathArg The path(s) of the ignore file(s) to include.
752
753
  * @param {IncludeIgnoreFileOptions} [options]
753
- * @returns {Config[] | Config}
754
+ * @returns {ConfigObject[] | ConfigObject}
754
755
  */
755
756
  function includeIgnoreFile(ignoreFilePathArg, options) {
756
757
  const returnSingleObject = !Array.isArray(ignoreFilePathArg);