@askviraj/linter 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/{synckit → @astrojs/compiler-binding}/LICENSE +1 -1
- package/node_modules/@astrojs/compiler-binding/browser.js +1 -0
- package/node_modules/@astrojs/compiler-binding/index.d.ts +337 -0
- package/node_modules/@astrojs/compiler-binding/index.js +599 -0
- package/node_modules/@astrojs/compiler-binding/package.json +83 -0
- package/node_modules/@astrojs/compiler-binding/webcontainer-fallback.cjs +23 -0
- package/node_modules/@astrojs/compiler-binding-linux-x64-gnu/README.md +3 -0
- package/node_modules/@astrojs/compiler-binding-linux-x64-gnu/astro.linux-x64-gnu.node +0 -0
- package/node_modules/@astrojs/compiler-binding-linux-x64-gnu/package.json +40 -0
- package/node_modules/{parse5 → @astrojs/compiler-rs}/LICENSE +7 -5
- package/node_modules/@astrojs/compiler-rs/README.md +62 -0
- package/node_modules/@astrojs/compiler-rs/async.d.ts +1 -0
- package/node_modules/@astrojs/compiler-rs/dist/async.d.mts +9 -0
- package/node_modules/@astrojs/compiler-rs/dist/async.mjs +1 -0
- package/node_modules/@astrojs/compiler-rs/dist/index.d.mts +9 -0
- package/node_modules/@astrojs/compiler-rs/dist/index.mjs +1 -0
- package/node_modules/@astrojs/compiler-rs/dist/shared.d.mts +45 -0
- package/node_modules/@astrojs/compiler-rs/dist/shared.mjs +1 -0
- package/node_modules/@astrojs/compiler-rs/dist/types.d.mts +94 -0
- package/node_modules/@astrojs/compiler-rs/dist/types.mjs +1 -0
- package/node_modules/@astrojs/compiler-rs/dist/utils.d.mts +4 -0
- package/node_modules/@astrojs/compiler-rs/dist/utils.mjs +1 -0
- package/node_modules/@astrojs/compiler-rs/package.json +55 -0
- package/node_modules/@astrojs/compiler-rs/types.d.ts +1 -0
- package/node_modules/@eslint/config-helpers/README.md +2 -2
- package/node_modules/@eslint/config-helpers/dist/cjs/index.cjs +27 -26
- package/node_modules/@eslint/config-helpers/dist/cjs/index.d.cts +13 -12
- package/node_modules/@eslint/config-helpers/dist/cjs/types.cts +4 -2
- package/node_modules/@eslint/config-helpers/dist/esm/index.d.ts +13 -12
- package/node_modules/@eslint/config-helpers/dist/esm/index.js +27 -26
- package/node_modules/@eslint/config-helpers/dist/esm/types.d.ts +2 -0
- package/node_modules/@eslint/config-helpers/dist/esm/types.ts +4 -2
- package/node_modules/@eslint/config-helpers/package.json +1 -1
- package/node_modules/@eslint/css/README.md +2 -2
- package/node_modules/@eslint/css/dist/build/rules.d.ts +75 -21
- package/node_modules/@eslint/css/dist/build/rules.js +15 -15
- package/node_modules/@eslint/css/dist/data/baseline-data.js +256 -32
- package/node_modules/@eslint/css/dist/index.js +1 -1
- package/node_modules/@eslint/css/dist/rules/font-family-fallbacks.d.ts +15 -15
- package/node_modules/@eslint/css/dist/rules/font-family-fallbacks.js +2 -5
- package/node_modules/@eslint/css/dist/rules/no-duplicate-imports.d.ts +18 -18
- package/node_modules/@eslint/css/dist/rules/no-duplicate-imports.js +9 -12
- package/node_modules/@eslint/css/dist/rules/no-duplicate-keyframe-selectors.d.ts +14 -14
- package/node_modules/@eslint/css/dist/rules/no-duplicate-keyframe-selectors.js +2 -3
- package/node_modules/@eslint/css/dist/rules/no-empty-blocks.d.ts +14 -14
- package/node_modules/@eslint/css/dist/rules/no-empty-blocks.js +2 -3
- package/node_modules/@eslint/css/dist/rules/no-important.d.ts +16 -16
- package/node_modules/@eslint/css/dist/rules/no-important.js +2 -3
- package/node_modules/@eslint/css/dist/rules/no-invalid-at-rule-placement.d.ts +16 -16
- package/node_modules/@eslint/css/dist/rules/no-invalid-at-rule-placement.js +2 -3
- package/node_modules/@eslint/css/dist/rules/no-invalid-at-rules.d.ts +21 -21
- package/node_modules/@eslint/css/dist/rules/no-invalid-at-rules.js +2 -3
- package/node_modules/@eslint/css/dist/rules/no-invalid-named-grid-areas.d.ts +16 -16
- package/node_modules/@eslint/css/dist/rules/no-invalid-named-grid-areas.js +2 -3
- package/node_modules/@eslint/css/dist/rules/no-invalid-properties.d.ts +18 -18
- package/node_modules/@eslint/css/dist/rules/no-invalid-properties.js +2 -3
- package/node_modules/@eslint/css/dist/rules/no-unmatchable-selectors.d.ts +14 -14
- package/node_modules/@eslint/css/dist/rules/no-unmatchable-selectors.js +2 -3
- package/node_modules/@eslint/css/dist/rules/prefer-logical-properties.d.ts +22 -19
- package/node_modules/@eslint/css/dist/rules/prefer-logical-properties.js +66 -23
- package/node_modules/@eslint/css/dist/rules/relative-font-units.d.ts +16 -16
- package/node_modules/@eslint/css/dist/rules/relative-font-units.js +13 -7
- package/node_modules/@eslint/css/dist/rules/selector-complexity.d.ts +17 -17
- package/node_modules/@eslint/css/dist/rules/selector-complexity.js +2 -3
- package/node_modules/@eslint/css/dist/rules/use-baseline.d.ts +22 -22
- package/node_modules/@eslint/css/dist/rules/use-baseline.js +2 -3
- package/node_modules/@eslint/css/dist/rules/use-layers.d.ts +18 -18
- package/node_modules/@eslint/css/dist/rules/use-layers.js +3 -4
- package/node_modules/@eslint/css/package.json +7 -12
- package/node_modules/@eslint/css-tree/README.md +2 -2
- package/node_modules/@eslint/css-tree/dist/csstree.esm.js +1 -1
- package/node_modules/@eslint/css-tree/dist/csstree.js +1 -1
- package/node_modules/@eslint/css-tree/dist/data.cjs +4 -1
- package/node_modules/@eslint/css-tree/dist/data.js +4 -1
- package/node_modules/@eslint/css-tree/dist/version.cjs +1 -1
- package/node_modules/@eslint/css-tree/dist/version.js +1 -1
- package/node_modules/@eslint/css-tree/package.json +3 -3
- package/node_modules/@eslint/json/README.md +2 -2
- package/node_modules/@eslint/json/dist/index.js +1 -1
- package/node_modules/@eslint/json/package.json +4 -9
- package/node_modules/@eslint/markdown/README.md +3 -3
- package/node_modules/@eslint/markdown/dist/build/rules.d.ts +105 -27
- package/node_modules/@eslint/markdown/dist/build/rules.js +21 -21
- package/node_modules/@eslint/markdown/dist/index.d.ts +2 -2
- package/node_modules/@eslint/markdown/dist/index.js +4 -4
- package/node_modules/@eslint/markdown/dist/processor.d.ts +4 -9
- package/node_modules/@eslint/markdown/dist/processor.js +12 -15
- package/node_modules/@eslint/markdown/dist/rules/fenced-code-language.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/fenced-code-language.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/fenced-code-meta.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/fenced-code-meta.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/heading-increment.d.ts +16 -16
- package/node_modules/@eslint/markdown/dist/rules/heading-increment.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-bare-urls.d.ts +14 -14
- package/node_modules/@eslint/markdown/dist/rules/no-bare-urls.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-duplicate-definitions.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/no-duplicate-definitions.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-duplicate-headings.d.ts +15 -15
- package/node_modules/@eslint/markdown/dist/rules/no-duplicate-headings.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-empty-definitions.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/no-empty-definitions.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-empty-images.d.ts +14 -14
- package/node_modules/@eslint/markdown/dist/rules/no-empty-images.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-empty-links.d.ts +14 -14
- package/node_modules/@eslint/markdown/dist/rules/no-empty-links.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-html.d.ts +15 -15
- package/node_modules/@eslint/markdown/dist/rules/no-html.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-invalid-label-refs.d.ts +14 -14
- package/node_modules/@eslint/markdown/dist/rules/no-invalid-label-refs.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-missing-atx-heading-space.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/no-missing-atx-heading-space.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-missing-label-refs.d.ts +16 -16
- package/node_modules/@eslint/markdown/dist/rules/no-missing-label-refs.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-missing-link-fragments.d.ts +16 -16
- package/node_modules/@eslint/markdown/dist/rules/no-missing-link-fragments.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-multiple-h1.d.ts +16 -16
- package/node_modules/@eslint/markdown/dist/rules/no-multiple-h1.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-reference-like-urls.d.ts +15 -15
- package/node_modules/@eslint/markdown/dist/rules/no-reference-like-urls.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-reversed-media-syntax.d.ts +15 -15
- package/node_modules/@eslint/markdown/dist/rules/no-reversed-media-syntax.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-space-in-emphasis.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/no-space-in-emphasis.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/no-unused-definitions.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/no-unused-definitions.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/require-alt-text.d.ts +14 -14
- package/node_modules/@eslint/markdown/dist/rules/require-alt-text.js +2 -3
- package/node_modules/@eslint/markdown/dist/rules/table-column-count.d.ts +17 -17
- package/node_modules/@eslint/markdown/dist/rules/table-column-count.js +2 -3
- package/node_modules/@eslint/markdown/package.json +5 -10
- package/node_modules/@eslint-community/eslint-utils/index.js +1 -1
- package/node_modules/@eslint-community/eslint-utils/index.js.map +1 -1
- package/node_modules/@eslint-community/eslint-utils/index.mjs +1 -1
- package/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -1
- package/node_modules/@eslint-community/eslint-utils/package.json +12 -7
- package/node_modules/@html-eslint/core/dist/index.js +1 -0
- package/node_modules/@html-eslint/core/dist/index.js.map +1 -1
- package/node_modules/@html-eslint/core/dist/index.mjs +1 -0
- package/node_modules/@html-eslint/core/dist/index.mjs.map +1 -1
- package/node_modules/@html-eslint/core/package.json +3 -3
- package/node_modules/@html-eslint/eslint-plugin/lib/rules/require-content.js +20 -1
- package/node_modules/@html-eslint/eslint-plugin/lib/rules/require-input-label.js +110 -8
- package/node_modules/@html-eslint/eslint-plugin/lib/rules/utils/node.js +13 -0
- package/node_modules/@html-eslint/eslint-plugin/package.json +7 -7
- package/node_modules/@html-eslint/eslint-plugin/types/rules/require-content.d.ts.map +1 -1
- package/node_modules/@html-eslint/eslint-plugin/types/rules/require-input-label.d.ts.map +1 -1
- package/node_modules/@html-eslint/eslint-plugin/types/rules/utils/node.d.ts +7 -0
- package/node_modules/@html-eslint/eslint-plugin/types/rules/utils/node.d.ts.map +1 -1
- package/node_modules/@html-eslint/parser/lib/parser.js +0 -1
- package/node_modules/@html-eslint/parser/package.json +4 -4
- package/node_modules/@html-eslint/parser/types/parser.d.ts.map +1 -1
- package/node_modules/@html-eslint/template-parser/package.json +3 -3
- package/node_modules/@html-eslint/template-syntax-parser/package.json +3 -3
- package/node_modules/@html-eslint/types/package.json +2 -2
- package/node_modules/@rviscomi/capo.js/README.md +4 -4
- package/node_modules/@rviscomi/capo.js/dist/adapters/adapter.cjs +7 -2
- package/node_modules/@rviscomi/capo.js/dist/adapters/browser.cjs +31 -3
- package/node_modules/@rviscomi/capo.js/dist/adapters/index.cjs +36 -4
- package/node_modules/@rviscomi/capo.js/dist/adapters/test-suite.cjs +6 -1
- package/node_modules/@rviscomi/capo.js/dist/analyzer.cjs +53 -24
- package/node_modules/@rviscomi/capo.js/dist/chrome/README.md +53 -0
- package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/capo.html +1 -1
- package/node_modules/@rviscomi/capo.js/dist/chrome/capo.js +3 -0
- package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/chrome.js +56 -18
- package/node_modules/@rviscomi/capo.js/dist/chrome/manifest.json +26 -0
- package/node_modules/@rviscomi/capo.js/dist/chrome/options/options.js +1 -0
- package/node_modules/@rviscomi/capo.js/dist/chrome.zip +0 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/README.md +53 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/background.js +7 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/capo.css +59 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/capo.html +12 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/capo.js +3 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/chrome.js +120 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/images/icon128.png +0 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/manifest.json +39 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/options/options.css +81 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/options/options.html +43 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/options/options.js +1 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/styles/open-props.css +291 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox.zip +0 -0
- package/node_modules/@rviscomi/capo.js/dist/index.cjs +93 -33
- package/node_modules/@rviscomi/capo.js/dist/lib/colors.cjs +1 -0
- package/node_modules/@rviscomi/capo.js/dist/lib/io.cjs +137 -28
- package/node_modules/@rviscomi/capo.js/dist/lib/options.cjs +61 -0
- package/node_modules/@rviscomi/capo.js/dist/lib/rules.cjs +28 -13
- package/node_modules/@rviscomi/capo.js/dist/lib/validation.cjs +31 -16
- package/node_modules/@rviscomi/capo.js/dist/source.zip +0 -0
- package/node_modules/@rviscomi/capo.js/dist/types/adapters/adapter.d.ts +105 -0
- package/node_modules/@rviscomi/capo.js/dist/types/adapters/browser.d.ts +107 -0
- package/node_modules/@rviscomi/capo.js/dist/types/adapters/index.d.ts +7 -0
- package/node_modules/@rviscomi/capo.js/dist/types/adapters/test-suite.d.ts +52 -0
- package/node_modules/@rviscomi/capo.js/dist/types/analyzer.d.ts +195 -0
- package/node_modules/@rviscomi/capo.js/dist/types/index.d.ts +29 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/colors.d.ts +20 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/io.d.ts +166 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/options.d.ts +114 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/rules.d.ts +111 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/validation.d.ts +61 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/adapter.d.ts +105 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/browser.d.ts +107 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/index.d.ts +7 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/test-suite.d.ts +52 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/analyzer.d.ts +195 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/index.d.ts +13 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/lib/colors.d.ts +20 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/lib/io.d.ts +166 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/lib/options.d.ts +114 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/lib/rules.d.ts +111 -0
- package/node_modules/@rviscomi/capo.js/dist/types/src/lib/validation.d.ts +61 -0
- package/node_modules/@rviscomi/capo.js/package.json +34 -16
- package/node_modules/@rviscomi/capo.js/src/adapters/adapter.js +16 -5
- package/node_modules/@rviscomi/capo.js/src/adapters/browser.js +30 -4
- package/node_modules/@rviscomi/capo.js/src/adapters/test-suite.js +11 -10
- package/node_modules/@rviscomi/capo.js/src/analyzer.js +47 -25
- package/node_modules/@rviscomi/capo.js/src/extension/README.md +53 -0
- package/node_modules/@rviscomi/capo.js/src/extension/background.js +7 -0
- package/node_modules/@rviscomi/capo.js/src/extension/capo.css +59 -0
- package/node_modules/@rviscomi/capo.js/src/extension/capo.html +12 -0
- package/node_modules/@rviscomi/capo.js/src/extension/capo.js +93 -0
- package/node_modules/@rviscomi/capo.js/src/extension/chrome.js +120 -0
- package/node_modules/@rviscomi/capo.js/src/extension/images/icon128.png +0 -0
- package/node_modules/@rviscomi/capo.js/src/extension/images/icon256.png +0 -0
- package/node_modules/@rviscomi/capo.js/{crx → src/extension}/manifest.json +1 -1
- package/node_modules/@rviscomi/capo.js/src/extension/options/options.css +81 -0
- package/node_modules/@rviscomi/capo.js/src/extension/options/options.html +43 -0
- package/node_modules/@rviscomi/capo.js/src/extension/options.js +87 -0
- package/node_modules/@rviscomi/capo.js/src/extension/styles/open-props.css +291 -0
- package/node_modules/@rviscomi/capo.js/src/index.js +10 -0
- package/node_modules/@rviscomi/capo.js/src/lib/colors.js +14 -0
- package/node_modules/@rviscomi/capo.js/src/lib/io.js +171 -32
- package/node_modules/@rviscomi/capo.js/src/lib/options.js +82 -1
- package/node_modules/@rviscomi/capo.js/src/lib/rules.js +120 -43
- package/node_modules/@rviscomi/capo.js/src/lib/validation.js +211 -86
- package/node_modules/@rviscomi/capo.js/src/web/capo.js +5 -8
- package/node_modules/@types/hast/README.md +2 -2
- package/node_modules/@types/hast/index.d.ts +642 -0
- package/node_modules/@types/hast/package.json +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.d.ts +0 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.js +0 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/all.js +0 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/index.d.ts +0 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/index.js +47 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/raw-plugin.d.ts +0 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +4 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.d.ts +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +23 -10
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js +16 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +41 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js +12 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.d.ts +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +5 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +5 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +36 -9
- package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/index.js +11 -2
- package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/legacy.js +11 -2
- package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/package.json +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/package.json +22 -11
- package/node_modules/@typescript-eslint/parser/dist/index.js +47 -0
- package/node_modules/@typescript-eslint/parser/dist/parser.js +11 -6
- package/node_modules/@typescript-eslint/parser/package.json +9 -7
- package/node_modules/@typescript-eslint/project-service/package.json +7 -5
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +2 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/package.json +8 -6
- package/node_modules/@typescript-eslint/tsconfig-utils/package.json +5 -3
- package/node_modules/@typescript-eslint/type-utils/package.json +9 -7
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +10 -0
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +13 -0
- package/node_modules/@typescript-eslint/types/package.json +5 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/check-syntax-errors.js +22 -6
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +5 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/getImportClausePhaseModifier.d.ts +4 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/getImportClausePhaseModifier.js +56 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +27 -18
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +8 -0
- package/node_modules/@typescript-eslint/typescript-estree/package.json +9 -7
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/package.json +8 -6
- package/node_modules/@typescript-eslint/visitor-keys/package.json +6 -4
- package/node_modules/acorn/CHANGELOG.md +12 -0
- package/node_modules/acorn/README.md +5 -0
- package/node_modules/acorn/dist/acorn.d.mts +8 -0
- package/node_modules/acorn/dist/acorn.d.ts +8 -0
- package/node_modules/acorn/dist/acorn.js +16 -7
- package/node_modules/acorn/dist/acorn.mjs +16 -7
- package/node_modules/acorn/package.json +1 -1
- package/node_modules/astro-eslint-parser/lib/index.d.mts +113 -18
- package/node_modules/astro-eslint-parser/lib/index.mjs +871 -1172
- package/node_modules/astro-eslint-parser/package.json +7 -9
- package/node_modules/brace-expansion/README.md +11 -0
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts +2 -0
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/brace-expansion/dist/commonjs/index.js +162 -84
- package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
- package/node_modules/brace-expansion/dist/esm/index.d.ts +2 -0
- package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -1
- package/node_modules/brace-expansion/dist/esm/index.js +161 -83
- package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
- package/node_modules/brace-expansion/package.json +2 -2
- package/node_modules/eslint/README.md +2 -2
- package/node_modules/eslint/lib/cli-engine/formatters/html.js +1 -1
- package/node_modules/eslint/lib/languages/js/index.js +1 -1
- package/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +1 -1
- package/node_modules/eslint/lib/linter/vfile.js +1 -1
- package/node_modules/eslint/lib/rules/class-methods-use-this.js +6 -5
- package/node_modules/eslint/lib/rules/complexity.js +1 -1
- package/node_modules/eslint/lib/rules/eqeqeq.js +26 -6
- package/node_modules/eslint/lib/rules/func-name-matching.js +3 -3
- package/node_modules/eslint/lib/rules/generator-star-spacing.js +4 -6
- package/node_modules/eslint/lib/rules/indent.js +4 -6
- package/node_modules/eslint/lib/rules/key-spacing.js +5 -7
- package/node_modules/eslint/lib/rules/max-len.js +1 -1
- package/node_modules/eslint/lib/rules/max-nested-callbacks.js +11 -1
- package/node_modules/eslint/lib/rules/no-compare-neg-zero.js +91 -8
- package/node_modules/eslint/lib/rules/no-control-regex.js +3 -0
- package/node_modules/eslint/lib/rules/no-implicit-coercion.js +22 -8
- package/node_modules/eslint/lib/rules/no-invalid-regexp.js +3 -1
- package/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +5 -7
- package/node_modules/eslint/lib/rules/no-promise-executor-return.js +5 -7
- package/node_modules/eslint/lib/rules/no-script-url.js +4 -6
- package/node_modules/eslint/lib/rules/no-shadow.js +14 -20
- package/node_modules/eslint/lib/rules/no-unreachable-loop.js +8 -4
- package/node_modules/eslint/lib/rules/prefer-numeric-literals.js +14 -6
- package/node_modules/eslint/lib/rules/prefer-object-has-own.js +4 -6
- package/node_modules/eslint/lib/rules/prefer-object-spread.js +9 -1
- package/node_modules/eslint/lib/rules/prefer-template.js +1 -1
- package/node_modules/eslint/lib/rules/preserve-caught-error.js +268 -116
- package/node_modules/eslint/lib/rules/quotes.js +1 -1
- package/node_modules/eslint/lib/rules/radix.js +58 -57
- package/node_modules/eslint/lib/rules/use-isnan.js +20 -12
- package/node_modules/eslint/lib/rules/utils/ast-utils.js +1 -1
- package/node_modules/eslint/lib/shared/serialization.js +1 -1
- package/node_modules/eslint/lib/shared/translate-cli-options.js +3 -3
- package/node_modules/eslint/lib/types/config-api.d.ts +8 -1
- package/node_modules/eslint/lib/types/index.d.ts +3 -6
- package/node_modules/eslint/lib/types/rules.d.ts +17 -9
- package/node_modules/eslint/package.json +7 -7
- package/node_modules/eslint-plugin-astro/README.md +10 -2
- package/node_modules/eslint-plugin-astro/lib/index.d.mts +0 -1
- package/node_modules/eslint-plugin-astro/lib/index.mjs +76 -637
- package/node_modules/eslint-plugin-astro/package.json +11 -11
- package/node_modules/eslint-plugin-toml/README.md +2 -0
- package/node_modules/eslint-plugin-toml/lib/index.d.mts +6 -5
- package/node_modules/eslint-plugin-toml/lib/index.mjs +32 -3
- package/node_modules/eslint-plugin-toml/package.json +7 -7
- package/node_modules/eslint-plugin-yml/lib/index.mjs +49 -19
- package/node_modules/eslint-plugin-yml/package.json +2 -2
- package/node_modules/flatted/golang/pkg/flatted/flatted.go +16 -14
- package/node_modules/flatted/package.json +10 -5
- package/node_modules/flatted/types/index.d.ts +1 -1
- package/node_modules/globals/globals.json +105 -33
- package/node_modules/globals/index.d.ts +105 -33
- package/node_modules/globals/package.json +2 -2
- package/node_modules/mdn-data/css/properties.json +64 -16
- package/node_modules/mdn-data/css/properties.schema.json +1 -7
- package/node_modules/mdn-data/css/syntaxes.json +1 -1
- package/node_modules/mdn-data/l10n/css.json +3 -62
- package/node_modules/mdn-data/package.json +1 -1
- package/node_modules/minimatch/package.json +9 -9
- package/node_modules/nanoid/non-secure/index.cjs +2 -2
- package/node_modules/nanoid/non-secure/index.js +2 -2
- package/node_modules/nanoid/package.json +1 -1
- package/node_modules/picomatch/README.md +15 -21
- package/node_modules/picomatch/lib/parse.js +39 -9
- package/node_modules/picomatch/lib/picomatch.js +14 -2
- package/node_modules/picomatch/package.json +3 -2
- package/node_modules/postcss/README.md +1 -2
- package/node_modules/postcss/lib/container.js +81 -34
- package/node_modules/postcss/lib/fromJSON.js +65 -26
- package/node_modules/postcss/lib/input.js +7 -1
- package/node_modules/postcss/lib/lazy-result.js +77 -14
- package/node_modules/postcss/lib/list.js +1 -0
- package/node_modules/postcss/lib/node.d.ts +2 -2
- package/node_modules/postcss/lib/node.js +90 -52
- package/node_modules/postcss/lib/postcss.d.ts +4 -1
- package/node_modules/postcss/lib/previous-map.js +6 -3
- package/node_modules/postcss/lib/processor.js +1 -1
- package/node_modules/postcss/lib/root.js +16 -1
- package/node_modules/postcss/lib/stringifier.js +112 -25
- package/node_modules/postcss/lib/warning.js +10 -0
- package/node_modules/postcss/package.json +2 -2
- package/node_modules/typescript-eslint/dist/index.js +47 -0
- package/node_modules/typescript-eslint/package.json +14 -6
- package/node_modules/yaml-eslint-parser/lib/chunk-CfYAbeIz.mjs +13 -0
- package/node_modules/yaml-eslint-parser/lib/index.d.mts +2 -2
- package/node_modules/yaml-eslint-parser/lib/index.mjs +164 -157
- package/node_modules/yaml-eslint-parser/package.json +17 -18
- package/package.json +23 -23
- package/node_modules/@astrojs/compiler/LICENSE +0 -53
- package/node_modules/@astrojs/compiler/README.md +0 -72
- package/node_modules/@astrojs/compiler/dist/astro.wasm +0 -0
- package/node_modules/@astrojs/compiler/dist/browser/index.cjs +0 -2
- package/node_modules/@astrojs/compiler/dist/browser/index.d.ts +0 -11
- package/node_modules/@astrojs/compiler/dist/browser/index.js +0 -1
- package/node_modules/@astrojs/compiler/dist/browser/utils.cjs +0 -3
- package/node_modules/@astrojs/compiler/dist/browser/utils.d.ts +0 -29
- package/node_modules/@astrojs/compiler/dist/browser/utils.js +0 -3
- package/node_modules/@astrojs/compiler/dist/browser/wasm_exec.cjs +0 -2
- package/node_modules/@astrojs/compiler/dist/browser/wasm_exec.d.ts +0 -37
- package/node_modules/@astrojs/compiler/dist/browser/wasm_exec.js +0 -1
- package/node_modules/@astrojs/compiler/dist/chunk-QR6QDSEV.js +0 -2
- package/node_modules/@astrojs/compiler/dist/chunk-W5DTLHV4.js +0 -1
- package/node_modules/@astrojs/compiler/dist/node/index.cjs +0 -1
- package/node_modules/@astrojs/compiler/dist/node/index.d.ts +0 -12
- package/node_modules/@astrojs/compiler/dist/node/index.js +0 -1
- package/node_modules/@astrojs/compiler/dist/node/sync.cjs +0 -1
- package/node_modules/@astrojs/compiler/dist/node/sync.d.ts +0 -16
- package/node_modules/@astrojs/compiler/dist/node/sync.js +0 -1
- package/node_modules/@astrojs/compiler/dist/node/utils.cjs +0 -3
- package/node_modules/@astrojs/compiler/dist/node/utils.d.ts +0 -29
- package/node_modules/@astrojs/compiler/dist/node/utils.js +0 -3
- package/node_modules/@astrojs/compiler/dist/node/wasm_exec.cjs +0 -1
- package/node_modules/@astrojs/compiler/dist/node/wasm_exec.d.ts +0 -37
- package/node_modules/@astrojs/compiler/dist/node/wasm_exec.js +0 -1
- package/node_modules/@astrojs/compiler/dist/shared/ast.cjs +0 -1
- package/node_modules/@astrojs/compiler/dist/shared/ast.d.ts +0 -74
- package/node_modules/@astrojs/compiler/dist/shared/ast.js +0 -0
- package/node_modules/@astrojs/compiler/dist/shared/diagnostics.cjs +0 -1
- package/node_modules/@astrojs/compiler/dist/shared/diagnostics.d.ts +0 -18
- package/node_modules/@astrojs/compiler/dist/shared/diagnostics.js +0 -1
- package/node_modules/@astrojs/compiler/dist/shared/types.cjs +0 -1
- package/node_modules/@astrojs/compiler/dist/shared/types.d.ts +0 -153
- package/node_modules/@astrojs/compiler/dist/shared/types.js +0 -1
- package/node_modules/@astrojs/compiler/package.json +0 -58
- package/node_modules/@astrojs/compiler/sync.d.ts +0 -1
- package/node_modules/@astrojs/compiler/types.d.ts +0 -1
- package/node_modules/@astrojs/compiler/utils.d.ts +0 -1
- package/node_modules/@pkgr/core/index.d.cts +0 -3
- package/node_modules/@pkgr/core/lib/constants.d.ts +0 -6
- package/node_modules/@pkgr/core/lib/constants.js +0 -9
- package/node_modules/@pkgr/core/lib/constants.js.map +0 -1
- package/node_modules/@pkgr/core/lib/helpers.d.ts +0 -19
- package/node_modules/@pkgr/core/lib/helpers.js +0 -67
- package/node_modules/@pkgr/core/lib/helpers.js.map +0 -1
- package/node_modules/@pkgr/core/lib/index.cjs +0 -91
- package/node_modules/@pkgr/core/lib/index.d.ts +0 -2
- package/node_modules/@pkgr/core/lib/index.js +0 -3
- package/node_modules/@pkgr/core/lib/index.js.map +0 -1
- package/node_modules/@pkgr/core/package.json +0 -38
- package/node_modules/@rviscomi/capo.js/crx/README.md +0 -10
- package/node_modules/@rviscomi/capo.js/crx/capo.js +0 -3
- package/node_modules/@rviscomi/capo.js/crx/options/options.js +0 -1
- package/node_modules/@rviscomi/capo.js/docs/.vscode/extensions.json +0 -4
- package/node_modules/@rviscomi/capo.js/docs/.vscode/launch.json +0 -11
- package/node_modules/@rviscomi/capo.js/docs/README.md +0 -51
- package/node_modules/@rviscomi/capo.js/docs/astro.config.mjs +0 -82
- package/node_modules/@rviscomi/capo.js/docs/package-lock.json +0 -7439
- package/node_modules/@rviscomi/capo.js/docs/package.json +0 -21
- package/node_modules/@rviscomi/capo.js/docs/public/capo-social-alt.webp +0 -0
- package/node_modules/@rviscomi/capo.js/docs/public/capo-social.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/public/capo-social.webp +0 -0
- package/node_modules/@rviscomi/capo.js/docs/public/favicon.svg +0 -13
- package/node_modules/@rviscomi/capo.js/docs/src/assets/bookmarklet-setup.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/bookmarklet.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/capo-chrome.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/capo-extension.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/capo800.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-console-expanded.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-console-interactive.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-console.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-hover-validation.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-menu.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-options-dark.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-options-light.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-store.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/custom-palette.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/developer-mode.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/devtools-console.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/devtools-snippet.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/devtools-sources.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/houston.webp +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/load-unpacked.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-areas.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-base.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-crx-stripes.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-csp.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-invalid-element.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-origin-trial.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-title.png +0 -0
- package/node_modules/@rviscomi/capo.js/docs/src/components/CapoClient.astro +0 -165
- package/node_modules/@rviscomi/capo.js/docs/src/components/CapoOptions.astro +0 -10
- package/node_modules/@rviscomi/capo.js/docs/src/components/CapoPalette.astro +0 -26
- package/node_modules/@rviscomi/capo.js/docs/src/components/InlineCapoIcon.astro +0 -15
- package/node_modules/@rviscomi/capo.js/docs/src/components/InlineCapoWeightBars.astro +0 -39
- package/node_modules/@rviscomi/capo.js/docs/src/components/VirtualConsole.astro +0 -11
- package/node_modules/@rviscomi/capo.js/docs/src/content/config.ts +0 -7
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/developer/contributing.mdx +0 -8
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/developer/crx-local.mdx +0 -28
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/developer/custom-adapters.mdx +0 -273
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/index.mdx +0 -108
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/migration-v2.mdx +0 -62
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/actionability.mdx +0 -6
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/assessment-mode.mdx +0 -29
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/config.mdx +0 -195
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/demo.mdx +0 -9
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/extension.mdx +0 -116
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/performance.mdx +0 -6
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/quick-start.mdx +0 -26
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/rules.mdx +0 -202
- package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/validation.mdx +0 -197
- package/node_modules/@rviscomi/capo.js/docs/src/env.d.ts +0 -2
- package/node_modules/@rviscomi/capo.js/docs/src/lib/VirtualConsole.js +0 -190
- package/node_modules/@rviscomi/capo.js/docs/src/lib/capo.js +0 -1533
- package/node_modules/@rviscomi/capo.js/docs/src/styles/custom.css +0 -7
- package/node_modules/@rviscomi/capo.js/docs/src/styles/virtual-console.css +0 -131
- package/node_modules/@rviscomi/capo.js/docs/tests/VirtualConsole.test.js +0 -108
- package/node_modules/@rviscomi/capo.js/docs/tsconfig.json +0 -3
- package/node_modules/@rviscomi/capo.js/src/crx/capo.js +0 -62
- package/node_modules/@rviscomi/capo.js/src/crx/options.js +0 -69
- package/node_modules/astrojs-compiler-sync/LICENSE +0 -53
- package/node_modules/astrojs-compiler-sync/README.md +0 -3
- package/node_modules/astrojs-compiler-sync/browser/index.d.ts +0 -6
- package/node_modules/astrojs-compiler-sync/browser/index.js +0 -76
- package/node_modules/astrojs-compiler-sync/browser/wasm_exec.js +0 -665
- package/node_modules/astrojs-compiler-sync/lib/astrojs-compiler-worker.js +0 -5
- package/node_modules/astrojs-compiler-sync/lib/compiler-sync.cjs +0 -31
- package/node_modules/astrojs-compiler-sync/lib/index.cjs +0 -30
- package/node_modules/astrojs-compiler-sync/lib/index.d.cts +0 -3
- package/node_modules/astrojs-compiler-sync/lib/index.d.ts +0 -14
- package/node_modules/astrojs-compiler-sync/lib/index.js +0 -18
- package/node_modules/astrojs-compiler-sync/package.json +0 -100
- package/node_modules/entities/LICENSE +0 -11
- package/node_modules/entities/dist/decode-codepoint.d.ts +0 -8
- package/node_modules/entities/dist/decode-codepoint.d.ts.map +0 -1
- package/node_modules/entities/dist/decode-codepoint.js +0 -46
- package/node_modules/entities/dist/decode-codepoint.js.map +0 -1
- package/node_modules/entities/dist/decode.d.ts +0 -194
- package/node_modules/entities/dist/decode.d.ts.map +0 -1
- package/node_modules/entities/dist/decode.js +0 -544
- package/node_modules/entities/dist/decode.js.map +0 -1
- package/node_modules/entities/dist/encode.d.ts +0 -24
- package/node_modules/entities/dist/encode.d.ts.map +0 -1
- package/node_modules/entities/dist/encode.js +0 -90
- package/node_modules/entities/dist/encode.js.map +0 -1
- package/node_modules/entities/dist/escape.d.ts +0 -48
- package/node_modules/entities/dist/escape.d.ts.map +0 -1
- package/node_modules/entities/dist/escape.js +0 -132
- package/node_modules/entities/dist/escape.js.map +0 -1
- package/node_modules/entities/dist/generated/decode-data-html.d.ts +0 -3
- package/node_modules/entities/dist/generated/decode-data-html.d.ts.map +0 -1
- package/node_modules/entities/dist/generated/decode-data-html.js +0 -5
- package/node_modules/entities/dist/generated/decode-data-html.js.map +0 -1
- package/node_modules/entities/dist/generated/decode-data-xml.d.ts +0 -3
- package/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +0 -1
- package/node_modules/entities/dist/generated/decode-data-xml.js +0 -5
- package/node_modules/entities/dist/generated/decode-data-xml.js.map +0 -1
- package/node_modules/entities/dist/generated/encode-html.d.ts +0 -5
- package/node_modules/entities/dist/generated/encode-html.d.ts.map +0 -1
- package/node_modules/entities/dist/generated/encode-html.js +0 -12
- package/node_modules/entities/dist/generated/encode-html.js.map +0 -1
- package/node_modules/entities/dist/index.d.ts +0 -89
- package/node_modules/entities/dist/index.d.ts.map +0 -1
- package/node_modules/entities/dist/index.js +0 -91
- package/node_modules/entities/dist/index.js.map +0 -1
- package/node_modules/entities/dist/internal/bin-trie-flags.d.ts +0 -17
- package/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +0 -1
- package/node_modules/entities/dist/internal/bin-trie-flags.js +0 -18
- package/node_modules/entities/dist/internal/bin-trie-flags.js.map +0 -1
- package/node_modules/entities/dist/internal/decode-shared.d.ts +0 -7
- package/node_modules/entities/dist/internal/decode-shared.d.ts.map +0 -1
- package/node_modules/entities/dist/internal/decode-shared.js +0 -17
- package/node_modules/entities/dist/internal/decode-shared.js.map +0 -1
- package/node_modules/entities/dist/internal/encode-shared.d.ts +0 -33
- package/node_modules/entities/dist/internal/encode-shared.d.ts.map +0 -1
- package/node_modules/entities/dist/internal/encode-shared.js +0 -93
- package/node_modules/entities/dist/internal/encode-shared.js.map +0 -1
- package/node_modules/entities/package.json +0 -83
- package/node_modules/entities/readme.md +0 -131
- package/node_modules/entities/src/decode-codepoint.ts +0 -50
- package/node_modules/entities/src/decode.ts +0 -671
- package/node_modules/entities/src/encode.ts +0 -95
- package/node_modules/entities/src/escape.ts +0 -160
- package/node_modules/entities/src/generated/decode-data-html.ts +0 -7
- package/node_modules/entities/src/generated/decode-data-xml.ts +0 -7
- package/node_modules/entities/src/generated/encode-html.ts +0 -18
- package/node_modules/entities/src/index.ts +0 -162
- package/node_modules/entities/src/internal/bin-trie-flags.ts +0 -16
- package/node_modules/entities/src/internal/decode-shared.ts +0 -18
- package/node_modules/entities/src/internal/encode-shared.ts +0 -123
- package/node_modules/parse5/README.md +0 -38
- package/node_modules/parse5/dist/common/doctype.d.ts +0 -4
- package/node_modules/parse5/dist/common/doctype.js +0 -114
- package/node_modules/parse5/dist/common/error-codes.d.ts +0 -67
- package/node_modules/parse5/dist/common/error-codes.js +0 -63
- package/node_modules/parse5/dist/common/foreign-content.d.ts +0 -9
- package/node_modules/parse5/dist/common/foreign-content.js +0 -228
- package/node_modules/parse5/dist/common/html.d.ts +0 -289
- package/node_modules/parse5/dist/common/html.js +0 -523
- package/node_modules/parse5/dist/common/token.d.ts +0 -84
- package/node_modules/parse5/dist/common/token.js +0 -20
- package/node_modules/parse5/dist/common/unicode.d.ts +0 -42
- package/node_modules/parse5/dist/common/unicode.js +0 -62
- package/node_modules/parse5/dist/index.d.ts +0 -71
- package/node_modules/parse5/dist/index.js +0 -42
- package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +0 -36
- package/node_modules/parse5/dist/parser/formatting-element-list.js +0 -110
- package/node_modules/parse5/dist/parser/index.d.ts +0 -221
- package/node_modules/parse5/dist/parser/index.js +0 -3245
- package/node_modules/parse5/dist/parser/open-element-stack.d.ts +0 -53
- package/node_modules/parse5/dist/parser/open-element-stack.js +0 -324
- package/node_modules/parse5/dist/serializer/index.d.ts +0 -60
- package/node_modules/parse5/dist/serializer/index.js +0 -168
- package/node_modules/parse5/dist/tokenizer/index.d.ts +0 -247
- package/node_modules/parse5/dist/tokenizer/index.js +0 -2712
- package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +0 -36
- package/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -196
- package/node_modules/parse5/dist/tree-adapters/default.d.ts +0 -84
- package/node_modules/parse5/dist/tree-adapters/default.js +0 -173
- package/node_modules/parse5/dist/tree-adapters/interface.d.ts +0 -255
- package/node_modules/parse5/dist/tree-adapters/interface.js +0 -1
- package/node_modules/parse5/package.json +0 -53
- package/node_modules/synckit/README.md +0 -256
- package/node_modules/synckit/lib/common.d.ts +0 -5
- package/node_modules/synckit/lib/common.js +0 -22
- package/node_modules/synckit/lib/common.js.map +0 -1
- package/node_modules/synckit/lib/constants.d.ts +0 -38
- package/node_modules/synckit/lib/constants.js +0 -54
- package/node_modules/synckit/lib/constants.js.map +0 -1
- package/node_modules/synckit/lib/helpers.d.ts +0 -27
- package/node_modules/synckit/lib/helpers.js +0 -411
- package/node_modules/synckit/lib/helpers.js.map +0 -1
- package/node_modules/synckit/lib/index.cjs +0 -588
- package/node_modules/synckit/lib/index.d.cts +0 -138
- package/node_modules/synckit/lib/index.d.ts +0 -7
- package/node_modules/synckit/lib/index.js +0 -68
- package/node_modules/synckit/lib/index.js.map +0 -1
- package/node_modules/synckit/lib/types.d.ts +0 -48
- package/node_modules/synckit/lib/types.js +0 -2
- package/node_modules/synckit/lib/types.js.map +0 -1
- package/node_modules/synckit/package.json +0 -45
- package/node_modules/yaml-eslint-parser/lib/chunk-15K8U1wQ.mjs +0 -18
- /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/background.js +0 -0
- /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/capo.css +0 -0
- /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/images/icon128.png +0 -0
- /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/images/icon256.png +0 -0
- /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/options/options.css +0 -0
- /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/options/options.html +0 -0
- /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/styles/open-props.css +0 -0
- /package/node_modules/@rviscomi/capo.js/{docs/src/assets/capo256.png → dist/firefox/images/icon256.png} +0 -0
- /package/node_modules/eslint-plugin-toml/lib/{chunk-CfYAbeIz.mjs → rolldown-runtime-D7D4PA-g.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-astro",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "ESLint plugin for Astro component",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.mjs",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"prebuild": "npm run -s clean",
|
|
23
23
|
"build": "npm run build:tsdown",
|
|
24
24
|
"build:tsdown": "tsdown",
|
|
25
|
-
"clean": "rimraf
|
|
25
|
+
"clean": "rimraf dist coverage",
|
|
26
26
|
"test": "npm run mocha -- \"tests/src/**/*.ts\" --reporter dot --timeout 60000",
|
|
27
27
|
"test:integration": "npm run build && npm run test:integration-wo-build",
|
|
28
28
|
"test:integration-wo-build": "npm run mocha -- \"tests/integration/**/*.ts\" --reporter dot --timeout 60000",
|
|
29
29
|
"test:type": "tsc --noEmit",
|
|
30
|
-
"cover": "
|
|
30
|
+
"cover": "c8 --reporter=lcov --reporter=html npm run test",
|
|
31
31
|
"debug": "npm run mocha:debug -- \"tests/src/**/*.ts\" --reporter dot --timeout 60000",
|
|
32
32
|
"lint": "npm run lint:js && npm run lint:ts",
|
|
33
33
|
"prelint:js": "npm run build:tsdown",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"version:ci": "changeset version && env-cmd -e version -- npm run update && git add --all",
|
|
47
47
|
"prerelease": "npm run build",
|
|
48
48
|
"release": "changeset publish",
|
|
49
|
-
"ts": "
|
|
49
|
+
"ts": "node --import @oxc-node/core/register",
|
|
50
50
|
"mocha": "npm run ts -- ./node_modules/mocha/bin/mocha.js",
|
|
51
51
|
"mocha:debug": "node --experimental-strip-types --experimental-transform-types ./node_modules/mocha/bin/mocha.js"
|
|
52
52
|
},
|
|
@@ -72,10 +72,9 @@
|
|
|
72
72
|
"@eslint-community/eslint-utils": "^4.5.1",
|
|
73
73
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
|
74
74
|
"@typescript-eslint/types": "^8.61.0",
|
|
75
|
-
"astro-eslint-parser": "^
|
|
75
|
+
"astro-eslint-parser": "^3.0.0",
|
|
76
76
|
"espree": "^11.0.0",
|
|
77
77
|
"globals": "^17.0.0",
|
|
78
|
-
"parse5": "^8.0.0",
|
|
79
78
|
"postcss": "^8.5.3",
|
|
80
79
|
"postcss-selector-parser": "^7.1.0"
|
|
81
80
|
},
|
|
@@ -95,7 +94,8 @@
|
|
|
95
94
|
"devDependencies": {
|
|
96
95
|
"@actions/github": "^9.0.0",
|
|
97
96
|
"@astrojs/compiler": "^4.0.0",
|
|
98
|
-
"@astrojs/
|
|
97
|
+
"@astrojs/compiler-binding-wasm32-wasi": "^0.3.1",
|
|
98
|
+
"@astrojs/markdown-satteri": "0.3.4",
|
|
99
99
|
"@astrojs/mdx": "^7.0.0",
|
|
100
100
|
"@astrojs/svelte": "^9.0.0",
|
|
101
101
|
"@changesets/changelog-github": "^0.7.0",
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
"@eslint/js": "^10.0.0",
|
|
106
106
|
"@eslint/json": "^2.0.0",
|
|
107
107
|
"@ota-meshi/eslint-plugin": "^0.20.0",
|
|
108
|
+
"@oxc-node/core": "^0.1.0",
|
|
108
109
|
"@types/eslint-scope": "^9.0.0",
|
|
109
110
|
"@types/eslint-utils": "^3.0.1",
|
|
110
111
|
"@types/estree": "1.0.9",
|
|
@@ -117,12 +118,13 @@
|
|
|
117
118
|
"@typescript-eslint/parser": "^8.61.0",
|
|
118
119
|
"assert": "^2.0.0",
|
|
119
120
|
"astro": "^7.0.0",
|
|
121
|
+
"c8": "^11.0.0",
|
|
120
122
|
"env-cmd": "^11.0.0",
|
|
121
123
|
"esbuild": "^0.28.0",
|
|
122
124
|
"esbuild-register": "^3.3.3",
|
|
123
125
|
"eslint": "^10.0.0",
|
|
124
126
|
"eslint-config-prettier": "^10.0.0",
|
|
125
|
-
"eslint-plugin-astro": "^
|
|
127
|
+
"eslint-plugin-astro": "^3.0.0",
|
|
126
128
|
"eslint-plugin-eslint-plugin": "^7.0.0",
|
|
127
129
|
"eslint-plugin-jsdoc": "^63.0.0",
|
|
128
130
|
"eslint-plugin-json-schema-validator": "^6.0.0",
|
|
@@ -140,8 +142,7 @@
|
|
|
140
142
|
"less": "^4.1.2",
|
|
141
143
|
"mocha": "^11.0.0",
|
|
142
144
|
"monaco-editor": "^0.55.0",
|
|
143
|
-
"
|
|
144
|
-
"pako": "^2.0.4",
|
|
145
|
+
"pako": "^3.0.0",
|
|
145
146
|
"postcss-nested": "^7.0.0",
|
|
146
147
|
"prettier": "^3.0.0",
|
|
147
148
|
"prettier-plugin-astro": "^0.14.0",
|
|
@@ -152,7 +153,6 @@
|
|
|
152
153
|
"stylus": "^0.64.0",
|
|
153
154
|
"svelte": "^5.0.0",
|
|
154
155
|
"tsdown": "^0.22.2",
|
|
155
|
-
"tsx": "^4.22.4",
|
|
156
156
|
"typescript": "~6.0.0",
|
|
157
157
|
"typescript-eslint": "^8.61.0",
|
|
158
158
|
"vite-plugin-eslint4b": "^0.8.1"
|
|
@@ -75,9 +75,11 @@ This plugin provides configs:
|
|
|
75
75
|
- `*.configs.base` ... Configuration to enable correct TOML parsing.
|
|
76
76
|
- `*.configs.recommended` ... Above, plus rules to prevent errors or unintended behavior.
|
|
77
77
|
- `*.configs.standard` ... Above, plus rules to enforce the common stylistic conventions.
|
|
78
|
+
- `*.configs.all` ... Configuration to enable correct TOML parsing and all non-deprecated rules. This config is not recommended for production use because it may change with every minor release. Use at your own risk.
|
|
78
79
|
|
|
79
80
|
For backward compatibility, you can also use the `flat/*` namespace:
|
|
80
81
|
|
|
82
|
+
- `*.configs['flat/all']`
|
|
81
83
|
- `*.configs['flat/base']`
|
|
82
84
|
- `*.configs['flat/recommended']`
|
|
83
85
|
- `*.configs['flat/standard']`
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { AST, TOMLVersionOption } from "toml-eslint-parser";
|
|
2
2
|
import { IDirective, TextSourceCodeBase, TraversalStep } from "@eslint/plugin-kit";
|
|
3
3
|
import { CursorWithCountOptionsWithComment, CursorWithCountOptionsWithFilter, CursorWithCountOptionsWithoutFilter, CursorWithSkipOptionsWithComment, CursorWithSkipOptionsWithFilter, CursorWithSkipOptionsWithoutFilter } from "@ota-meshi/ast-token-store";
|
|
4
|
-
import * as _$_eslint_core0 from "@eslint/core";
|
|
5
|
-
import { File, FileProblem, Language, OkParseResult, ParseResult, RuleDefinition, RulesConfig } from "@eslint/core";
|
|
6
4
|
import { Linter, Scope } from "eslint";
|
|
7
|
-
|
|
8
|
-
//#region src/meta.d.ts
|
|
5
|
+
import { File, FileProblem, Language, OkParseResult, ParseResult, RuleDefinition, RulesConfig } from "@eslint/core";
|
|
9
6
|
declare namespace meta_d_exports {
|
|
10
7
|
export { name, namespace, version };
|
|
11
8
|
}
|
|
@@ -337,9 +334,11 @@ declare class TOMLLanguage implements Language<{
|
|
|
337
334
|
//#endregion
|
|
338
335
|
//#region src/index.d.ts
|
|
339
336
|
declare const configs: {
|
|
337
|
+
all: Linter.Config[];
|
|
340
338
|
base: Linter.Config[];
|
|
341
339
|
recommended: Linter.Config[];
|
|
342
340
|
standard: Linter.Config[];
|
|
341
|
+
"flat/all": Linter.Config[];
|
|
343
342
|
"flat/base": Linter.Config[];
|
|
344
343
|
"flat/recommended": Linter.Config[];
|
|
345
344
|
"flat/standard": Linter.Config[];
|
|
@@ -351,14 +350,16 @@ declare const languages: {
|
|
|
351
350
|
declare const _default: {
|
|
352
351
|
meta: typeof meta_d_exports;
|
|
353
352
|
configs: {
|
|
353
|
+
all: Linter.Config[];
|
|
354
354
|
base: Linter.Config[];
|
|
355
355
|
recommended: Linter.Config[];
|
|
356
356
|
standard: Linter.Config[];
|
|
357
|
+
"flat/all": Linter.Config[];
|
|
357
358
|
"flat/base": Linter.Config[];
|
|
358
359
|
"flat/recommended": Linter.Config[];
|
|
359
360
|
"flat/standard": Linter.Config[];
|
|
360
361
|
};
|
|
361
|
-
rules: Record<string, RuleDefinition<
|
|
362
|
+
rules: Record<string, RuleDefinition<import("@eslint/core").RuleDefinitionTypeOptions>>;
|
|
362
363
|
languages: {
|
|
363
364
|
toml: TOMLLanguage;
|
|
364
365
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as __exportAll } from "./
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import * as tomlESLintParser from "toml-eslint-parser";
|
|
3
3
|
import { VisitorKeys, getStaticTOMLValue, parseTOML, traverseNodes } from "toml-eslint-parser";
|
|
4
|
-
import path from "path";
|
|
4
|
+
import path from "node:path";
|
|
5
5
|
import { CallMethodStep, ConfigCommentParser, Directive, TextSourceCodeBase, VisitNodeStep } from "@eslint/plugin-kit";
|
|
6
6
|
import { TokenStore } from "@ota-meshi/ast-token-store";
|
|
7
7
|
//#region src/utils/index.ts
|
|
@@ -3314,6 +3314,33 @@ var base_default = [{ plugins: { get toml() {
|
|
|
3314
3314
|
}
|
|
3315
3315
|
}];
|
|
3316
3316
|
//#endregion
|
|
3317
|
+
//#region src/configs/flat/all.ts
|
|
3318
|
+
var all_default = [...base_default, { rules: {
|
|
3319
|
+
"toml/array-bracket-newline": "error",
|
|
3320
|
+
"toml/array-bracket-spacing": "error",
|
|
3321
|
+
"toml/array-element-newline": "error",
|
|
3322
|
+
"toml/comma-style": "error",
|
|
3323
|
+
"toml/indent": "error",
|
|
3324
|
+
"toml/inline-table-curly-newline": "error",
|
|
3325
|
+
"toml/inline-table-curly-spacing": "error",
|
|
3326
|
+
"toml/inline-table-key-value-newline": "error",
|
|
3327
|
+
"toml/key-spacing": "error",
|
|
3328
|
+
"toml/keys-order": "error",
|
|
3329
|
+
"toml/no-mixed-type-in-array": "error",
|
|
3330
|
+
"toml/no-non-decimal-integer": "error",
|
|
3331
|
+
"toml/no-space-dots": "error",
|
|
3332
|
+
"toml/no-unreadable-number-separator": "error",
|
|
3333
|
+
"toml/padding-line-between-pairs": "error",
|
|
3334
|
+
"toml/padding-line-between-tables": "error",
|
|
3335
|
+
"toml/precision-of-fractional-seconds": "error",
|
|
3336
|
+
"toml/precision-of-integer": "error",
|
|
3337
|
+
"toml/quoted-keys": "error",
|
|
3338
|
+
"toml/spaced-comment": "error",
|
|
3339
|
+
"toml/table-bracket-spacing": "error",
|
|
3340
|
+
"toml/tables-order": "error",
|
|
3341
|
+
"toml/vue-custom-block/no-parsing-error": "error"
|
|
3342
|
+
} }];
|
|
3343
|
+
//#endregion
|
|
3317
3344
|
//#region src/configs/flat/recommended.ts
|
|
3318
3345
|
var recommended_default = [...base_default, { rules: {
|
|
3319
3346
|
"toml/no-unreadable-number-separator": "error",
|
|
@@ -3349,7 +3376,7 @@ var standard_default = [...base_default, { rules: {
|
|
|
3349
3376
|
//#endregion
|
|
3350
3377
|
//#region package.json
|
|
3351
3378
|
var name$1 = "eslint-plugin-toml";
|
|
3352
|
-
var version$1 = "1.
|
|
3379
|
+
var version$1 = "1.5.0";
|
|
3353
3380
|
//#endregion
|
|
3354
3381
|
//#region src/meta.ts
|
|
3355
3382
|
var meta_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -3729,9 +3756,11 @@ var TOMLLanguage = class {
|
|
|
3729
3756
|
//#endregion
|
|
3730
3757
|
//#region src/index.ts
|
|
3731
3758
|
const configs = {
|
|
3759
|
+
all: all_default,
|
|
3732
3760
|
base: base_default,
|
|
3733
3761
|
recommended: recommended_default,
|
|
3734
3762
|
standard: standard_default,
|
|
3763
|
+
"flat/all": all_default,
|
|
3735
3764
|
"flat/base": base_default,
|
|
3736
3765
|
"flat/recommended": recommended_default,
|
|
3737
3766
|
"flat/standard": standard_default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-toml",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "This ESLint plugin provides linting rules for TOML.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"toml-eslint-parser": "^1.0.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@changesets/changelog-github": "^0.
|
|
74
|
+
"@changesets/changelog-github": "^0.7.0",
|
|
75
75
|
"@changesets/cli": "^2.27.5",
|
|
76
76
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
|
|
77
|
-
"@eslint/json": "^
|
|
77
|
+
"@eslint/json": "^2.0.0",
|
|
78
78
|
"@ota-meshi/eslint-plugin": "^0.20.0",
|
|
79
79
|
"@ota-meshi/site-kit-eslint-editor-vue": "^0.2.1",
|
|
80
80
|
"@stylistic/eslint-plugin": "^5.7.1",
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
"eslint": "^10.0.0",
|
|
91
91
|
"eslint-config-prettier": "^10.0.0",
|
|
92
92
|
"eslint-plugin-eslint-plugin": "^7.0.0",
|
|
93
|
-
"eslint-plugin-jsdoc": "^
|
|
93
|
+
"eslint-plugin-jsdoc": "^63.0.0",
|
|
94
94
|
"eslint-plugin-json-schema-validator": "^6.0.0",
|
|
95
95
|
"eslint-plugin-jsonc": "^3.0.0",
|
|
96
96
|
"eslint-plugin-markdown": "^5.0.0",
|
|
97
|
-
"eslint-plugin-n": "^
|
|
97
|
+
"eslint-plugin-n": "^18.0.0",
|
|
98
98
|
"eslint-plugin-node-dependencies": "^2.0.0",
|
|
99
99
|
"eslint-plugin-prettier": "^5.1.3",
|
|
100
100
|
"eslint-plugin-regexp": "^3.0.0",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"events": "^3.3.0",
|
|
105
105
|
"mocha": "^11.0.0",
|
|
106
106
|
"nyc": "^18.0.0",
|
|
107
|
-
"pako": "^
|
|
107
|
+
"pako": "^3.0.0",
|
|
108
108
|
"prettier": "^3.3.2",
|
|
109
109
|
"semver": "^7.6.2",
|
|
110
110
|
"stylelint": "^17.0.0",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"stylelint-config-standard": "^40.0.0",
|
|
113
113
|
"stylelint-config-standard-vue": "^1.0.0",
|
|
114
114
|
"stylelint-stylus": "^1.0.0",
|
|
115
|
-
"tsdown": "^0.
|
|
115
|
+
"tsdown": "^0.22.0",
|
|
116
116
|
"tsx": "^4.21.0",
|
|
117
117
|
"typescript": "~6.0.0",
|
|
118
118
|
"typescript-eslint": "^8.16.0",
|
|
@@ -4599,6 +4599,10 @@ var YAMLEntryData = class {
|
|
|
4599
4599
|
get value() {
|
|
4600
4600
|
return (this.cached ?? (this.cached = { value: this.node == null ? null : getStaticYAMLValue(this.node) })).value;
|
|
4601
4601
|
}
|
|
4602
|
+
getValueForKey(key) {
|
|
4603
|
+
const val = this.value;
|
|
4604
|
+
if (val !== null && typeof val === "object" && !Array.isArray(val)) return val[key];
|
|
4605
|
+
}
|
|
4602
4606
|
};
|
|
4603
4607
|
var YAMLSequenceData = class {
|
|
4604
4608
|
node;
|
|
@@ -4617,7 +4621,7 @@ var YAMLSequenceData = class {
|
|
|
4617
4621
|
/**
|
|
4618
4622
|
* Build function which check that the given 2 names are in specific order.
|
|
4619
4623
|
*/
|
|
4620
|
-
function buildValidatorFromType(order, insensitive, natural) {
|
|
4624
|
+
function buildValidatorFromType(order, insensitive, natural, key) {
|
|
4621
4625
|
let compareValue = ([a, b]) => a <= b;
|
|
4622
4626
|
let compareText = compareValue;
|
|
4623
4627
|
if (natural) compareText = ([a, b]) => naturalCompare(a, b) <= 0;
|
|
@@ -4631,11 +4635,23 @@ function buildValidatorFromType(order, insensitive, natural) {
|
|
|
4631
4635
|
const baseCompareValue = compareValue;
|
|
4632
4636
|
compareValue = (args) => baseCompareValue(args.reverse());
|
|
4633
4637
|
}
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
+
/**
|
|
4639
|
+
* Compare resolved sequence entry values.
|
|
4640
|
+
*/
|
|
4641
|
+
function compare(aVal, bVal) {
|
|
4642
|
+
if (typeof aVal === "string" && typeof bVal === "string") return compareText([aVal, bVal]);
|
|
4643
|
+
const type = getYAMLPrimitiveType(aVal);
|
|
4644
|
+
if (type && type === getYAMLPrimitiveType(bVal)) return compareValue([aVal, bVal]);
|
|
4638
4645
|
return true;
|
|
4646
|
+
}
|
|
4647
|
+
return (a, b) => {
|
|
4648
|
+
if (key) {
|
|
4649
|
+
const aVal = a.getValueForKey(key);
|
|
4650
|
+
const bVal = b.getValueForKey(key);
|
|
4651
|
+
if (aVal === void 0 || bVal === void 0) return true;
|
|
4652
|
+
return compare(aVal, bVal);
|
|
4653
|
+
}
|
|
4654
|
+
return compare(a.value, b.value);
|
|
4639
4655
|
};
|
|
4640
4656
|
}
|
|
4641
4657
|
/**
|
|
@@ -4650,14 +4666,16 @@ function parseOptions(options, sourceCode) {
|
|
|
4650
4666
|
const type = order.type ?? "asc";
|
|
4651
4667
|
const insensitive = order.caseSensitive === false;
|
|
4652
4668
|
const natural = Boolean(order.natural);
|
|
4669
|
+
const key = order.key;
|
|
4653
4670
|
return {
|
|
4654
4671
|
isTargetArray,
|
|
4655
|
-
ignore: () => false,
|
|
4656
|
-
isValidOrder: buildValidatorFromType(type, insensitive, natural),
|
|
4672
|
+
ignore: key ? (v) => v.getValueForKey(key) === void 0 : () => false,
|
|
4673
|
+
isValidOrder: buildValidatorFromType(type, insensitive, natural, key),
|
|
4657
4674
|
orderText(data) {
|
|
4658
|
-
|
|
4659
|
-
return `${
|
|
4660
|
-
}
|
|
4675
|
+
const base = typeof data.value === "string" || key ? `${natural ? "natural " : ""}${insensitive ? "insensitive " : ""}${type}ending` : `${type}ending`;
|
|
4676
|
+
return key ? `${base} by '${key}'` : base;
|
|
4677
|
+
},
|
|
4678
|
+
key
|
|
4661
4679
|
};
|
|
4662
4680
|
}
|
|
4663
4681
|
const parsedOrder = [];
|
|
@@ -4671,9 +4689,16 @@ function parseOptions(options, sourceCode) {
|
|
|
4671
4689
|
const type = nestOrder.type ?? "asc";
|
|
4672
4690
|
const insensitive = nestOrder.caseSensitive === false;
|
|
4673
4691
|
const natural = Boolean(nestOrder.natural);
|
|
4692
|
+
const itemKey = nestOrder.key;
|
|
4674
4693
|
parsedOrder.push({
|
|
4675
|
-
test: (v) =>
|
|
4676
|
-
|
|
4694
|
+
test: (v) => {
|
|
4695
|
+
if (itemKey) {
|
|
4696
|
+
const keyVal = v.getValueForKey(itemKey);
|
|
4697
|
+
return valuePattern ? keyVal !== void 0 && valuePattern.test(String(keyVal)) : keyVal !== void 0;
|
|
4698
|
+
}
|
|
4699
|
+
return valuePattern ? Boolean(getYAMLPrimitiveType(v.value)) && valuePattern.test(String(v.value)) : true;
|
|
4700
|
+
},
|
|
4701
|
+
isValidNestOrder: buildValidatorFromType(type, insensitive, natural, itemKey)
|
|
4677
4702
|
});
|
|
4678
4703
|
}
|
|
4679
4704
|
return {
|
|
@@ -4743,7 +4768,8 @@ const ORDER_OBJECT_SCHEMA = {
|
|
|
4743
4768
|
properties: {
|
|
4744
4769
|
type: { enum: ["asc", "desc"] },
|
|
4745
4770
|
caseSensitive: { type: "boolean" },
|
|
4746
|
-
natural: { type: "boolean" }
|
|
4771
|
+
natural: { type: "boolean" },
|
|
4772
|
+
key: { type: "string" }
|
|
4747
4773
|
},
|
|
4748
4774
|
additionalProperties: false
|
|
4749
4775
|
};
|
|
@@ -4838,8 +4864,8 @@ var sort_sequence_values_default = createRule("sort-sequence-values", {
|
|
|
4838
4864
|
loc: edit.a.reportLoc,
|
|
4839
4865
|
messageId: "shouldBeAfter",
|
|
4840
4866
|
data: {
|
|
4841
|
-
thisValue: toText(edit.a),
|
|
4842
|
-
targetValue: toText(target),
|
|
4867
|
+
thisValue: toText(edit.a, option.key),
|
|
4868
|
+
targetValue: toText(target, option.key),
|
|
4843
4869
|
orderText: option.orderText(edit.a)
|
|
4844
4870
|
},
|
|
4845
4871
|
*fix(fixer) {
|
|
@@ -4854,8 +4880,8 @@ var sort_sequence_values_default = createRule("sort-sequence-values", {
|
|
|
4854
4880
|
loc: edit.a.reportLoc,
|
|
4855
4881
|
messageId: "shouldBeBefore",
|
|
4856
4882
|
data: {
|
|
4857
|
-
thisValue: toText(edit.a),
|
|
4858
|
-
targetValue: toText(target),
|
|
4883
|
+
thisValue: toText(edit.a, option.key),
|
|
4884
|
+
targetValue: toText(target, option.key),
|
|
4859
4885
|
orderText: option.orderText(edit.a)
|
|
4860
4886
|
},
|
|
4861
4887
|
*fix(fixer) {
|
|
@@ -4927,7 +4953,11 @@ var sort_sequence_values_default = createRule("sort-sequence-values", {
|
|
|
4927
4953
|
/**
|
|
4928
4954
|
* Convert to display text.
|
|
4929
4955
|
*/
|
|
4930
|
-
function toText(data) {
|
|
4956
|
+
function toText(data, key) {
|
|
4957
|
+
if (key) {
|
|
4958
|
+
const keyVal = data.getValueForKey(key);
|
|
4959
|
+
if (keyVal !== void 0) return String(keyVal);
|
|
4960
|
+
}
|
|
4931
4961
|
if (getYAMLPrimitiveType(data.value)) return String(data.value);
|
|
4932
4962
|
return sourceCode.getText(data.node);
|
|
4933
4963
|
}
|
|
@@ -5390,7 +5420,7 @@ var prettier_default = [...base_default, { rules: {
|
|
|
5390
5420
|
//#endregion
|
|
5391
5421
|
//#region package.json
|
|
5392
5422
|
var name$1 = "eslint-plugin-yml";
|
|
5393
|
-
var version$1 = "3.
|
|
5423
|
+
var version$1 = "3.6.0";
|
|
5394
5424
|
//#endregion
|
|
5395
5425
|
//#region src/meta.ts
|
|
5396
5426
|
var meta_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-yml",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "This ESLint plugin provides linting rules for YAML.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.mjs",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"mocha": "^11.0.0",
|
|
112
112
|
"monaco-editor": "^0.55.0",
|
|
113
113
|
"nyc": "^18.0.0",
|
|
114
|
-
"pako": "^
|
|
114
|
+
"pako": "^3.0.0",
|
|
115
115
|
"prettier": "^3.0.3",
|
|
116
116
|
"semver": "^7.3.2",
|
|
117
117
|
"stylelint": "^17.0.0",
|
|
@@ -13,7 +13,7 @@ import (
|
|
|
13
13
|
type flattedIndex string
|
|
14
14
|
|
|
15
15
|
// Stringify converts a Go value into a specialized flatted JSON string.
|
|
16
|
-
func Stringify(value
|
|
16
|
+
func Stringify(value, replacer, space any) (string, error) {
|
|
17
17
|
knownKeys := []any{}
|
|
18
18
|
knownValues := []string{}
|
|
19
19
|
input := []any{}
|
|
@@ -32,7 +32,7 @@ func Stringify(value any, replacer any, space any) (string, error) {
|
|
|
32
32
|
}
|
|
33
33
|
rv := reflect.ValueOf(v)
|
|
34
34
|
kind := rv.Kind()
|
|
35
|
-
if kind == reflect.String || kind == reflect.Slice || kind == reflect.Map || kind == reflect.
|
|
35
|
+
if kind == reflect.String || kind == reflect.Slice || kind == reflect.Map || kind == reflect.Pointer {
|
|
36
36
|
for i, k := range knownKeys {
|
|
37
37
|
if kind == reflect.String {
|
|
38
38
|
if k == v {
|
|
@@ -59,7 +59,7 @@ func Stringify(value any, replacer any, space any) (string, error) {
|
|
|
59
59
|
return v
|
|
60
60
|
}
|
|
61
61
|
// Dereference pointers to process the underlying Slice, Map, or Array
|
|
62
|
-
for rv.Kind() == reflect.
|
|
62
|
+
for rv.Kind() == reflect.Pointer && !rv.IsNil() {
|
|
63
63
|
rv = rv.Elem()
|
|
64
64
|
}
|
|
65
65
|
switch rv.Kind() {
|
|
@@ -123,10 +123,11 @@ func Stringify(value any, replacer any, space any) (string, error) {
|
|
|
123
123
|
var b []byte
|
|
124
124
|
var err error
|
|
125
125
|
indent := ""
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
switch v := space.(type) {
|
|
127
|
+
case string:
|
|
128
|
+
indent = v
|
|
129
|
+
case int:
|
|
130
|
+
indent = strings.Repeat(" ", v)
|
|
130
131
|
}
|
|
131
132
|
|
|
132
133
|
if indent != "" {
|
|
@@ -205,18 +206,19 @@ func Parse(text string, reviver func(key string, value any) any) (any, error) {
|
|
|
205
206
|
}
|
|
206
207
|
|
|
207
208
|
func revive(key string, value any, reviver func(k string, v any) any) any {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
switch v := value.(type) {
|
|
210
|
+
case []any:
|
|
211
|
+
for i, el := range v {
|
|
212
|
+
v[i] = revive(strconv.Itoa(i), el, reviver)
|
|
211
213
|
}
|
|
212
|
-
|
|
213
|
-
keys := make([]string, 0, len(
|
|
214
|
-
for k := range
|
|
214
|
+
case map[string]any:
|
|
215
|
+
keys := make([]string, 0, len(v))
|
|
216
|
+
for k := range v {
|
|
215
217
|
keys = append(keys, k)
|
|
216
218
|
}
|
|
217
219
|
sort.Strings(keys)
|
|
218
220
|
for _, k := range keys {
|
|
219
|
-
|
|
221
|
+
v[k] = revive(k, v[k], reviver)
|
|
220
222
|
}
|
|
221
223
|
}
|
|
222
224
|
return reviver(key, value)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flatted",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.4",
|
|
4
4
|
"description": "A super light and fast circular JSON parser.",
|
|
5
5
|
"unpkg": "min.js",
|
|
6
6
|
"main": "./cjs/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"homepage": "https://github.com/WebReflection/flatted#readme",
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@babel/core": "^7.29.0",
|
|
54
|
-
"@babel/preset-env": "^7.29.
|
|
54
|
+
"@babel/preset-env": "^7.29.2",
|
|
55
55
|
"@rollup/plugin-babel": "^7.0.0",
|
|
56
56
|
"@rollup/plugin-terser": "^1.0.0",
|
|
57
57
|
"@ungap/structured-clone": "^1.3.0",
|
|
@@ -59,12 +59,17 @@
|
|
|
59
59
|
"c8": "^11.0.0",
|
|
60
60
|
"circular-json": "^0.5.9",
|
|
61
61
|
"circular-json-es6": "^2.0.2",
|
|
62
|
-
"flatted-view": "^0.1.
|
|
62
|
+
"flatted-view": "^0.1.6",
|
|
63
63
|
"jsan": "^3.1.14",
|
|
64
|
-
"rollup": "^4.
|
|
65
|
-
"terser": "^5.46.
|
|
64
|
+
"rollup": "^4.60.1",
|
|
65
|
+
"terser": "^5.46.1",
|
|
66
66
|
"typescript": "^5.9.3"
|
|
67
67
|
},
|
|
68
|
+
"overrides": {
|
|
69
|
+
"c8": {
|
|
70
|
+
"yargs": "^18.0.0"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
68
73
|
"module": "./esm/index.js",
|
|
69
74
|
"type": "module",
|
|
70
75
|
"exports": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export function parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
|
|
2
|
-
export function stringify(value: any, replacer?: (string | number)[] | ((this: any, key: string, value: any) => any), space?: string | number | undefined): string;
|
|
2
|
+
export function stringify(value: any, replacer?: (string | number)[] | null | undefined | ((this: any, key: string, value: any) => any), space?: string | number | undefined): string;
|
|
3
3
|
export function toJSON(value: any): any;
|
|
4
4
|
export function fromJSON(value: any): any;
|