@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.
- 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/README.md +1 -0
- package/node_modules/eslint-plugin-yml/lib/index.mjs +125 -21
- package/node_modules/eslint-plugin-yml/package.json +7 -7
- 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
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core DOM-agnostic analyzer for capo.js
|
|
3
|
+
* Provides single-pass analysis of HTML <head> elements
|
|
4
|
+
*
|
|
5
|
+
* @module analyzer
|
|
6
|
+
*/
|
|
7
|
+
export type AdapterInterface = import('./adapters/adapter.js').AdapterInterface;
|
|
8
|
+
export type WeightInfo = {
|
|
9
|
+
/**
|
|
10
|
+
* - The DOM/AST element
|
|
11
|
+
*/
|
|
12
|
+
element: any;
|
|
13
|
+
/**
|
|
14
|
+
* - Computed weight (0-10)
|
|
15
|
+
*/
|
|
16
|
+
weight: number;
|
|
17
|
+
};
|
|
18
|
+
export type ValidationWarning = {
|
|
19
|
+
/**
|
|
20
|
+
* - The rule identifier
|
|
21
|
+
*/
|
|
22
|
+
ruleId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* - Warning message
|
|
25
|
+
*/
|
|
26
|
+
warning: string;
|
|
27
|
+
/**
|
|
28
|
+
* - Associated element
|
|
29
|
+
*/
|
|
30
|
+
element?: any;
|
|
31
|
+
/**
|
|
32
|
+
* - Associated elements array
|
|
33
|
+
*/
|
|
34
|
+
elements?: Array<any>;
|
|
35
|
+
};
|
|
36
|
+
export type CustomValidation = {
|
|
37
|
+
/**
|
|
38
|
+
* - The rule identifier
|
|
39
|
+
*/
|
|
40
|
+
ruleId?: string;
|
|
41
|
+
/**
|
|
42
|
+
* - The element with validation issues
|
|
43
|
+
*/
|
|
44
|
+
element: any;
|
|
45
|
+
/**
|
|
46
|
+
* - Validation warning messages
|
|
47
|
+
*/
|
|
48
|
+
warnings: Array<string>;
|
|
49
|
+
/**
|
|
50
|
+
* - Extra diagnostic payload
|
|
51
|
+
*/
|
|
52
|
+
payload?: any;
|
|
53
|
+
};
|
|
54
|
+
export type AnalysisResult = {
|
|
55
|
+
/**
|
|
56
|
+
* - Weight information for each element
|
|
57
|
+
*/
|
|
58
|
+
weights: Array<WeightInfo>;
|
|
59
|
+
/**
|
|
60
|
+
* - Document-level validation warnings
|
|
61
|
+
*/
|
|
62
|
+
validationWarnings: Array<ValidationWarning>;
|
|
63
|
+
/**
|
|
64
|
+
* - Element-level validation warnings
|
|
65
|
+
*/
|
|
66
|
+
customValidations: Array<CustomValidation>;
|
|
67
|
+
/**
|
|
68
|
+
* - Reference to the analyzed head element
|
|
69
|
+
*/
|
|
70
|
+
headElement: any;
|
|
71
|
+
};
|
|
72
|
+
export type OrderingViolation = {
|
|
73
|
+
index: number;
|
|
74
|
+
currentElement: any;
|
|
75
|
+
nextElement: any;
|
|
76
|
+
currentWeight: number;
|
|
77
|
+
nextWeight: number;
|
|
78
|
+
currentCategory: string;
|
|
79
|
+
nextCategory: string;
|
|
80
|
+
message: string;
|
|
81
|
+
};
|
|
82
|
+
export type AnalysisResultWithOrdering = AnalysisResult & {
|
|
83
|
+
orderingViolations: Array<OrderingViolation>;
|
|
84
|
+
};
|
|
85
|
+
export type AnalyzeHeadOptions = {
|
|
86
|
+
/**
|
|
87
|
+
* - Whether to include document-level validation warnings
|
|
88
|
+
*/
|
|
89
|
+
includeValidation?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* - Whether to include element-level custom validations
|
|
92
|
+
*/
|
|
93
|
+
includeCustomValidations?: boolean;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* @typedef {import('./adapters/adapter.js').AdapterInterface} AdapterInterface
|
|
97
|
+
*
|
|
98
|
+
* @typedef {Object} WeightInfo
|
|
99
|
+
* @property {any} element - The DOM/AST element
|
|
100
|
+
* @property {number} weight - Computed weight (0-10)
|
|
101
|
+
*/
|
|
102
|
+
/**
|
|
103
|
+
* @typedef {Object} ValidationWarning
|
|
104
|
+
* @property {string} [ruleId] - The rule identifier
|
|
105
|
+
* @property {string} warning - Warning message
|
|
106
|
+
* @property {any} [element] - Associated element
|
|
107
|
+
* @property {Array<any>} [elements] - Associated elements array
|
|
108
|
+
*/
|
|
109
|
+
/**
|
|
110
|
+
* @typedef {Object} CustomValidation
|
|
111
|
+
* @property {string} [ruleId] - The rule identifier
|
|
112
|
+
* @property {any} element - The element with validation issues
|
|
113
|
+
* @property {Array<string>} warnings - Validation warning messages
|
|
114
|
+
* @property {any} [payload] - Extra diagnostic payload
|
|
115
|
+
*/
|
|
116
|
+
/**
|
|
117
|
+
* @typedef {Object} AnalysisResult
|
|
118
|
+
* @property {Array<WeightInfo>} weights - Weight information for each element
|
|
119
|
+
* @property {Array<ValidationWarning>} validationWarnings - Document-level validation warnings
|
|
120
|
+
* @property {Array<CustomValidation>} customValidations - Element-level validation warnings
|
|
121
|
+
* @property {any} headElement - Reference to the analyzed head element
|
|
122
|
+
*/
|
|
123
|
+
/**
|
|
124
|
+
* @typedef {Object} OrderingViolation
|
|
125
|
+
* @property {number} index
|
|
126
|
+
* @property {any} currentElement
|
|
127
|
+
* @property {any} nextElement
|
|
128
|
+
* @property {number} currentWeight
|
|
129
|
+
* @property {number} nextWeight
|
|
130
|
+
* @property {string} currentCategory
|
|
131
|
+
* @property {string} nextCategory
|
|
132
|
+
* @property {string} message
|
|
133
|
+
*/
|
|
134
|
+
/**
|
|
135
|
+
* @typedef {AnalysisResult & { orderingViolations: Array<OrderingViolation> }} AnalysisResultWithOrdering
|
|
136
|
+
*/
|
|
137
|
+
/**
|
|
138
|
+
* @typedef {Object} AnalyzeHeadOptions
|
|
139
|
+
* @property {boolean} [includeValidation=true] - Whether to include document-level validation warnings
|
|
140
|
+
* @property {boolean} [includeCustomValidations=true] - Whether to include element-level custom validations
|
|
141
|
+
*/
|
|
142
|
+
/**
|
|
143
|
+
* Analyze the head element and return element weights, validation warnings, and custom validations.
|
|
144
|
+
*
|
|
145
|
+
* @param {any} headNode - The head element to analyze
|
|
146
|
+
* @param {AdapterInterface} adapter - Adapter for element operations
|
|
147
|
+
* @param {AnalyzeHeadOptions} [options={}] - Analysis options
|
|
148
|
+
* @returns {AnalysisResult} Analysis results
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* const adapter = new BrowserAdapter();
|
|
152
|
+
* const results = analyzeHead(head, adapter);
|
|
153
|
+
*
|
|
154
|
+
* console.log(`Found ${results.weights.length} elements`);
|
|
155
|
+
* console.log(`${results.validationWarnings.length} document warnings`);
|
|
156
|
+
*/
|
|
157
|
+
export declare function analyzeHead(headNode: any, adapter: AdapterInterface, options?: AnalyzeHeadOptions): AnalysisResult;
|
|
158
|
+
/**
|
|
159
|
+
* Get weight category name from weight value
|
|
160
|
+
*
|
|
161
|
+
* @param {number} weight - Weight value (0-10)
|
|
162
|
+
* @returns {string} Category name
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* getWeightCategory(10); // 'META'
|
|
166
|
+
* getWeightCategory(9); // 'TITLE'
|
|
167
|
+
* getWeightCategory(0); // 'OTHER'
|
|
168
|
+
*/
|
|
169
|
+
export declare function getWeightCategory(weight: number): string;
|
|
170
|
+
/**
|
|
171
|
+
* Check if elements are in optimal order
|
|
172
|
+
*
|
|
173
|
+
* @param {Array<WeightInfo>} weights - Weight information array
|
|
174
|
+
* @returns {Array<OrderingViolation>} Array of ordering violations
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* const weights = analyzeHead(head, adapter).weights;
|
|
178
|
+
* const violations = checkOrdering(weights);
|
|
179
|
+
* console.log(`${violations.length} ordering issues found`);
|
|
180
|
+
*/
|
|
181
|
+
export declare function checkOrdering(weights: Array<WeightInfo>): Array<OrderingViolation>;
|
|
182
|
+
/**
|
|
183
|
+
* Analyze and return both weights and ordering violations
|
|
184
|
+
* Convenience function that combines analyzeHead() and checkOrdering()
|
|
185
|
+
*
|
|
186
|
+
* @param {any} headNode - The <head> element
|
|
187
|
+
* @param {AdapterInterface} adapter - HTMLAdapter implementation
|
|
188
|
+
* @param {AnalyzeHeadOptions} [options={}] - Analysis options
|
|
189
|
+
* @returns {AnalysisResultWithOrdering} Combined analysis with weights, violations, and validations
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* const analysis = analyzeHeadWithOrdering(head, adapter);
|
|
193
|
+
* console.log(`${analysis.orderingViolations.length} ordering issues`);
|
|
194
|
+
*/
|
|
195
|
+
export declare function analyzeHeadWithOrdering(headNode: any, adapter: AdapterInterface, options?: AnalyzeHeadOptions): AnalysisResultWithOrdering;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capo.js v2 - DOM-agnostic HTML <head> analyzer
|
|
3
|
+
*
|
|
4
|
+
* Main entry point for programmatic usage.
|
|
5
|
+
* Exports both the core analyzer API and adapter implementations.
|
|
6
|
+
*
|
|
7
|
+
* @module capo
|
|
8
|
+
*/
|
|
9
|
+
export { analyzeHead, analyzeHeadWithOrdering, checkOrdering, getWeightCategory } from './analyzer.js';
|
|
10
|
+
export { ElementWeights, getWeight, getHeadWeights, isMeta, isTitle, isPreconnect, isAsyncScript, isImportStyles, isSyncScript, isSyncStyles, isPreload, isDeferScript, isPrefetchPrerender, isOriginTrial, isMetaCSP } from './lib/rules.js';
|
|
11
|
+
export { VALID_HEAD_ELEMENTS, isValidElement, hasValidationWarning, getValidationWarnings, getCustomValidations } from './lib/validation.js';
|
|
12
|
+
export { BrowserAdapter } from './adapters/browser.js';
|
|
13
|
+
export { AdapterInterface, validateAdapter } from './adapters/adapter.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate color swatches for a given hue
|
|
3
|
+
* @param {number} hue
|
|
4
|
+
* @returns {string[]}
|
|
5
|
+
*/
|
|
6
|
+
export declare function generateSwatches(hue: number): string[];
|
|
7
|
+
/** @type {string[]} */
|
|
8
|
+
export declare const DEFAULT: string[];
|
|
9
|
+
/** @type {string[]} */
|
|
10
|
+
export declare const PINK: string[];
|
|
11
|
+
/** @type {string[]} */
|
|
12
|
+
export declare const BLUE: string[];
|
|
13
|
+
/** @type {Record<string, string[]>} */
|
|
14
|
+
export declare const Palettes: Record<string, string[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Get striped background gradient for invalid element visualization
|
|
17
|
+
* @param {string} elementColor
|
|
18
|
+
* @returns {string}
|
|
19
|
+
*/
|
|
20
|
+
export declare function getInvalidBackgroundColor(elementColor: string): string;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
export type Options = import('./options.js').Options;
|
|
2
|
+
export type AnalysisResult = import('../analyzer.js').AnalysisResult;
|
|
3
|
+
export type ConsoleOutput = {
|
|
4
|
+
log: (...args: any[]) => void;
|
|
5
|
+
warn: (...args: any[]) => void;
|
|
6
|
+
error: (...args: any[]) => void;
|
|
7
|
+
groupCollapsed: (...args: any[]) => void;
|
|
8
|
+
groupEnd: () => void;
|
|
9
|
+
};
|
|
10
|
+
export type HeadWeightInfo = {
|
|
11
|
+
element?: any;
|
|
12
|
+
weight: number;
|
|
13
|
+
isValid?: boolean;
|
|
14
|
+
customValidations?: Record<string, any>;
|
|
15
|
+
};
|
|
16
|
+
export type ElementVisualization = {
|
|
17
|
+
visual: string;
|
|
18
|
+
style: string;
|
|
19
|
+
};
|
|
20
|
+
export type HeadVisualization = {
|
|
21
|
+
visual: string;
|
|
22
|
+
styles: string[];
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @typedef {import('./options.js').Options} Options
|
|
26
|
+
* @typedef {import('../analyzer.js').AnalysisResult} AnalysisResult
|
|
27
|
+
*
|
|
28
|
+
* @typedef {Object} ConsoleOutput
|
|
29
|
+
* @property {(...args: any[]) => void} log
|
|
30
|
+
* @property {(...args: any[]) => void} warn
|
|
31
|
+
* @property {(...args: any[]) => void} error
|
|
32
|
+
* @property {(...args: any[]) => void} groupCollapsed
|
|
33
|
+
* @property {() => void} groupEnd
|
|
34
|
+
*
|
|
35
|
+
* @typedef {Object} HeadWeightInfo
|
|
36
|
+
* @property {any} [element]
|
|
37
|
+
* @property {number} weight
|
|
38
|
+
* @property {boolean} [isValid]
|
|
39
|
+
* @property {Record<string, any>} [customValidations]
|
|
40
|
+
*
|
|
41
|
+
* @typedef {Object} ElementVisualization
|
|
42
|
+
* @property {string} visual
|
|
43
|
+
* @property {string} style
|
|
44
|
+
*
|
|
45
|
+
* @typedef {Object} HeadVisualization
|
|
46
|
+
* @property {string} visual
|
|
47
|
+
* @property {string[]} styles
|
|
48
|
+
*/
|
|
49
|
+
export declare class IO {
|
|
50
|
+
document: Document | null;
|
|
51
|
+
options: import("./options.js").Options;
|
|
52
|
+
console: any;
|
|
53
|
+
isStaticHead: boolean;
|
|
54
|
+
/** @type {any} */
|
|
55
|
+
head: any;
|
|
56
|
+
/**
|
|
57
|
+
* @param {Document|null} document
|
|
58
|
+
* @param {Options} options
|
|
59
|
+
* @param {ConsoleOutput|any} [output=window.console]
|
|
60
|
+
*/
|
|
61
|
+
constructor(document: Document | null, options: Options, output?: ConsoleOutput | any);
|
|
62
|
+
/**
|
|
63
|
+
* @param {string} html
|
|
64
|
+
* @returns {string}
|
|
65
|
+
*/
|
|
66
|
+
static formatStaticHeadHTML(html: string): string;
|
|
67
|
+
/**
|
|
68
|
+
* @param {any} head
|
|
69
|
+
*/
|
|
70
|
+
initFromStaticHead(head: any): void;
|
|
71
|
+
/**
|
|
72
|
+
* @param {string} html
|
|
73
|
+
*/
|
|
74
|
+
initFromHTML(html: string): void;
|
|
75
|
+
/**
|
|
76
|
+
* @returns {Promise<void>}
|
|
77
|
+
*/
|
|
78
|
+
init(): Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* @returns {Promise<string>}
|
|
81
|
+
*/
|
|
82
|
+
getStaticHTML(): Promise<string>;
|
|
83
|
+
/**
|
|
84
|
+
* @returns {any}
|
|
85
|
+
*/
|
|
86
|
+
getHead(): any;
|
|
87
|
+
/**
|
|
88
|
+
* @param {any} element
|
|
89
|
+
* @returns {string}
|
|
90
|
+
*/
|
|
91
|
+
stringifyElement(element: any): string;
|
|
92
|
+
/**
|
|
93
|
+
* @param {any} element
|
|
94
|
+
* @returns {any}
|
|
95
|
+
*/
|
|
96
|
+
getLoggableElement(element: any): any;
|
|
97
|
+
/**
|
|
98
|
+
* Create an element from a CSS selector
|
|
99
|
+
* @param {string} selector
|
|
100
|
+
* @returns {any}
|
|
101
|
+
*/
|
|
102
|
+
createElementFromSelector(selector: string): any;
|
|
103
|
+
/**
|
|
104
|
+
* @param {AnalysisResult} result
|
|
105
|
+
* @returns {HeadWeightInfo[]}
|
|
106
|
+
*/
|
|
107
|
+
logAnalysis(result: AnalysisResult): HeadWeightInfo[];
|
|
108
|
+
/**
|
|
109
|
+
* @param {Object} params
|
|
110
|
+
* @param {number|string} params.weight
|
|
111
|
+
* @param {string} params.selector
|
|
112
|
+
* @param {string} params.html
|
|
113
|
+
* @param {boolean} [params.isValid]
|
|
114
|
+
* @param {Record<string, any>} [params.customValidations]
|
|
115
|
+
*/
|
|
116
|
+
logElementFromSelector({ weight, selector, html, isValid, customValidations }: {
|
|
117
|
+
weight: number | string;
|
|
118
|
+
selector: string;
|
|
119
|
+
html: string;
|
|
120
|
+
isValid?: boolean;
|
|
121
|
+
customValidations?: Record<string, any>;
|
|
122
|
+
}): void;
|
|
123
|
+
/**
|
|
124
|
+
* @param {Object} params
|
|
125
|
+
* @param {ElementVisualization} params.viz
|
|
126
|
+
* @param {number} params.weight
|
|
127
|
+
* @param {any} params.element
|
|
128
|
+
* @param {boolean} [params.isValid]
|
|
129
|
+
* @param {Record<string, any>} [params.customValidations]
|
|
130
|
+
* @param {boolean} [params.omitPrefix]
|
|
131
|
+
*/
|
|
132
|
+
logElement({ viz, weight, element, isValid, customValidations, omitPrefix }: {
|
|
133
|
+
viz: ElementVisualization;
|
|
134
|
+
weight: number;
|
|
135
|
+
element: any;
|
|
136
|
+
isValid?: boolean;
|
|
137
|
+
customValidations?: Record<string, any>;
|
|
138
|
+
omitPrefix?: boolean;
|
|
139
|
+
}): void;
|
|
140
|
+
/**
|
|
141
|
+
* @param {Array<import('../analyzer.js').ValidationWarning>} warnings
|
|
142
|
+
*/
|
|
143
|
+
logValidationWarnings(warnings: Array<import('../analyzer.js').ValidationWarning>): void;
|
|
144
|
+
/**
|
|
145
|
+
* @param {number} weight
|
|
146
|
+
* @returns {string}
|
|
147
|
+
*/
|
|
148
|
+
getColor(weight: number): string;
|
|
149
|
+
/**
|
|
150
|
+
* @param {HeadWeightInfo[]} elements
|
|
151
|
+
* @returns {HeadVisualization}
|
|
152
|
+
*/
|
|
153
|
+
getHeadVisualization(elements: HeadWeightInfo[]): HeadVisualization;
|
|
154
|
+
/**
|
|
155
|
+
* @param {number} weight
|
|
156
|
+
* @param {boolean} [isValid=true]
|
|
157
|
+
* @returns {ElementVisualization}
|
|
158
|
+
*/
|
|
159
|
+
getElementVisualization(weight: number, isValid?: boolean): ElementVisualization;
|
|
160
|
+
/**
|
|
161
|
+
* @param {string} groupName
|
|
162
|
+
* @param {any} headElement
|
|
163
|
+
* @param {HeadWeightInfo[]} headWeights
|
|
164
|
+
*/
|
|
165
|
+
visualizeHead(groupName: string, headElement: any, headWeights: HeadWeightInfo[]): void;
|
|
166
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export type AssessmentModeValue = 'static' | 'dynamic';
|
|
2
|
+
export type OptionsInit = {
|
|
3
|
+
preferredAssessmentMode?: AssessmentModeValue;
|
|
4
|
+
validation?: boolean;
|
|
5
|
+
palette?: string | string[];
|
|
6
|
+
loggingPrefix?: string;
|
|
7
|
+
};
|
|
8
|
+
export type OptionsValue = {
|
|
9
|
+
preferredAssessmentMode: string;
|
|
10
|
+
validation: boolean;
|
|
11
|
+
palette: string[];
|
|
12
|
+
loggingPrefix: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @typedef {'static' | 'dynamic'} AssessmentModeValue
|
|
16
|
+
*
|
|
17
|
+
* @typedef {Object} OptionsInit
|
|
18
|
+
* @property {AssessmentModeValue} [preferredAssessmentMode]
|
|
19
|
+
* @property {boolean} [validation]
|
|
20
|
+
* @property {string | string[]} [palette]
|
|
21
|
+
* @property {string} [loggingPrefix]
|
|
22
|
+
*
|
|
23
|
+
* @typedef {Object} OptionsValue
|
|
24
|
+
* @property {string} preferredAssessmentMode
|
|
25
|
+
* @property {boolean} validation
|
|
26
|
+
* @property {string[]} palette
|
|
27
|
+
* @property {string} loggingPrefix
|
|
28
|
+
*/
|
|
29
|
+
export declare class Options {
|
|
30
|
+
/** @type {string} */
|
|
31
|
+
preferredAssessmentMode: string;
|
|
32
|
+
/** @type {boolean} */
|
|
33
|
+
validation: boolean;
|
|
34
|
+
/** @type {string[]} */
|
|
35
|
+
palette: string[];
|
|
36
|
+
/** @type {string} */
|
|
37
|
+
loggingPrefix: string;
|
|
38
|
+
/**
|
|
39
|
+
* @param {OptionsInit} [options={}]
|
|
40
|
+
*/
|
|
41
|
+
constructor({ preferredAssessmentMode, validation, palette, loggingPrefix }?: OptionsInit);
|
|
42
|
+
/**
|
|
43
|
+
* @returns {{ STATIC: 'static', DYNAMIC: 'dynamic' }}
|
|
44
|
+
*/
|
|
45
|
+
static get AssessmentMode(): {
|
|
46
|
+
STATIC: 'static';
|
|
47
|
+
DYNAMIC: 'dynamic';
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @returns {Record<string, string[]>}
|
|
51
|
+
*/
|
|
52
|
+
static get Palettes(): Record<string, string[]>;
|
|
53
|
+
/**
|
|
54
|
+
* @returns {boolean}
|
|
55
|
+
*/
|
|
56
|
+
prefersStaticAssessment(): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* @returns {boolean}
|
|
59
|
+
*/
|
|
60
|
+
prefersDynamicAssessment(): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* @returns {boolean}
|
|
63
|
+
*/
|
|
64
|
+
isValidationEnabled(): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* @param {string} preferredAssessmentMode
|
|
67
|
+
*/
|
|
68
|
+
setPreferredAssessmentMode(preferredAssessmentMode: string): void;
|
|
69
|
+
/**
|
|
70
|
+
* @param {boolean} prefersStatic
|
|
71
|
+
*/
|
|
72
|
+
setPreferredAssessmentModeToStatic(prefersStatic: boolean): void;
|
|
73
|
+
/**
|
|
74
|
+
* @param {boolean} validation
|
|
75
|
+
*/
|
|
76
|
+
setValidation(validation: boolean): void;
|
|
77
|
+
/**
|
|
78
|
+
* @param {string | string[]} palette
|
|
79
|
+
*/
|
|
80
|
+
setPalette(palette: string | string[]): void;
|
|
81
|
+
/**
|
|
82
|
+
* @param {string} loggingPrefix
|
|
83
|
+
*/
|
|
84
|
+
setLoggingPrefix(loggingPrefix: string): void;
|
|
85
|
+
/**
|
|
86
|
+
* @param {any} assessmentMode
|
|
87
|
+
* @returns {boolean}
|
|
88
|
+
*/
|
|
89
|
+
isValidAssessmentMode(assessmentMode: any): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* @param {any} validation
|
|
92
|
+
* @returns {boolean}
|
|
93
|
+
*/
|
|
94
|
+
isValidValidation(validation: any): boolean;
|
|
95
|
+
/**
|
|
96
|
+
* @param {any} palette
|
|
97
|
+
* @returns {boolean}
|
|
98
|
+
*/
|
|
99
|
+
isValidPalette(palette: any): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* @param {any} loggingPrefix
|
|
102
|
+
* @returns {boolean}
|
|
103
|
+
*/
|
|
104
|
+
isValidLoggingPrefix(loggingPrefix: any): boolean;
|
|
105
|
+
/**
|
|
106
|
+
* @param {string[]} palette
|
|
107
|
+
* @returns {boolean}
|
|
108
|
+
*/
|
|
109
|
+
isPreferredPalette(palette: string[]): boolean;
|
|
110
|
+
/**
|
|
111
|
+
* @returns {OptionsValue}
|
|
112
|
+
*/
|
|
113
|
+
valueOf(): OptionsValue;
|
|
114
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import('../adapters/adapter.js').AdapterInterface} AdapterInterface
|
|
3
|
+
*/
|
|
4
|
+
export type AdapterInterface = import('../adapters/adapter.js').AdapterInterface;
|
|
5
|
+
/** @type {Record<string, number>} */
|
|
6
|
+
export declare const ElementWeights: Record<string, number>;
|
|
7
|
+
/** @type {string[]} */
|
|
8
|
+
export declare const META_HTTP_EQUIV_KEYWORDS: string[];
|
|
9
|
+
/**
|
|
10
|
+
* Check if element is a critical meta/base element
|
|
11
|
+
* @param {any} element
|
|
12
|
+
* @param {AdapterInterface} adapter
|
|
13
|
+
* @returns {boolean}
|
|
14
|
+
*/
|
|
15
|
+
export declare function isMeta(element: any, adapter: AdapterInterface): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Check if element is a title element
|
|
18
|
+
* @param {any} element
|
|
19
|
+
* @param {AdapterInterface} adapter
|
|
20
|
+
* @returns {boolean}
|
|
21
|
+
*/
|
|
22
|
+
export declare function isTitle(element: any, adapter: AdapterInterface): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Check if element is a preconnect link
|
|
25
|
+
* @param {any} element
|
|
26
|
+
* @param {AdapterInterface} adapter
|
|
27
|
+
* @returns {boolean}
|
|
28
|
+
*/
|
|
29
|
+
export declare function isPreconnect(element: any, adapter: AdapterInterface): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Check if element is an async script
|
|
32
|
+
* @param {any} element
|
|
33
|
+
* @param {AdapterInterface} adapter
|
|
34
|
+
* @returns {boolean}
|
|
35
|
+
*/
|
|
36
|
+
export declare function isAsyncScript(element: any, adapter: AdapterInterface): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Check if element is a style element containing CSS import rules
|
|
39
|
+
* @param {any} element
|
|
40
|
+
* @param {AdapterInterface} adapter
|
|
41
|
+
* @returns {boolean}
|
|
42
|
+
*/
|
|
43
|
+
export declare function isImportStyles(element: any, adapter: AdapterInterface): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Check if element is a synchronous script
|
|
46
|
+
* @param {any} element
|
|
47
|
+
* @param {AdapterInterface} adapter
|
|
48
|
+
* @returns {boolean}
|
|
49
|
+
*/
|
|
50
|
+
export declare function isSyncScript(element: any, adapter: AdapterInterface): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Check if element is a synchronous stylesheet or style block
|
|
53
|
+
* @param {any} element
|
|
54
|
+
* @param {AdapterInterface} adapter
|
|
55
|
+
* @returns {boolean}
|
|
56
|
+
*/
|
|
57
|
+
export declare function isSyncStyles(element: any, adapter: AdapterInterface): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Check if element is a preload link
|
|
60
|
+
* @param {any} element
|
|
61
|
+
* @param {AdapterInterface} adapter
|
|
62
|
+
* @returns {boolean}
|
|
63
|
+
*/
|
|
64
|
+
export declare function isPreload(element: any, adapter: AdapterInterface): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Check if element is a deferred script
|
|
67
|
+
* @param {any} element
|
|
68
|
+
* @param {AdapterInterface} adapter
|
|
69
|
+
* @returns {boolean}
|
|
70
|
+
*/
|
|
71
|
+
export declare function isDeferScript(element: any, adapter: AdapterInterface): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Check if element is prefetch/dns-prefetch/prerender link
|
|
74
|
+
* @param {any} element
|
|
75
|
+
* @param {AdapterInterface} adapter
|
|
76
|
+
* @returns {boolean}
|
|
77
|
+
*/
|
|
78
|
+
export declare function isPrefetchPrerender(element: any, adapter: AdapterInterface): boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Check if element is an origin trial meta element
|
|
81
|
+
* @param {any} element
|
|
82
|
+
* @param {AdapterInterface} adapter
|
|
83
|
+
* @returns {boolean}
|
|
84
|
+
*/
|
|
85
|
+
export declare function isOriginTrial(element: any, adapter: AdapterInterface): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Check if element is a Content Security Policy meta element
|
|
88
|
+
* @param {any} element
|
|
89
|
+
* @param {AdapterInterface} adapter
|
|
90
|
+
* @returns {boolean}
|
|
91
|
+
*/
|
|
92
|
+
export declare function isMetaCSP(element: any, adapter: AdapterInterface): boolean;
|
|
93
|
+
/** @type {Record<string, (element: any, adapter: AdapterInterface) => boolean>} */
|
|
94
|
+
export declare const ElementDetectors: Record<string, (element: any, adapter: AdapterInterface) => boolean>;
|
|
95
|
+
/**
|
|
96
|
+
* Compute weight for an element
|
|
97
|
+
* @param {any} element
|
|
98
|
+
* @param {AdapterInterface} adapter
|
|
99
|
+
* @returns {number}
|
|
100
|
+
*/
|
|
101
|
+
export declare function getWeight(element: any, adapter: AdapterInterface): number;
|
|
102
|
+
/**
|
|
103
|
+
* Compute weights for all children of head element
|
|
104
|
+
* @param {any} head
|
|
105
|
+
* @param {AdapterInterface} adapter
|
|
106
|
+
* @returns {Array<{ element: any, weight: number }>}
|
|
107
|
+
*/
|
|
108
|
+
export declare function getHeadWeights(head: any, adapter: AdapterInterface): Array<{
|
|
109
|
+
element: any;
|
|
110
|
+
weight: number;
|
|
111
|
+
}>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export type AdapterInterface = import('../adapters/adapter.js').AdapterInterface;
|
|
2
|
+
export type ValidationWarningResult = {
|
|
3
|
+
ruleId: string;
|
|
4
|
+
warning: string;
|
|
5
|
+
element?: any;
|
|
6
|
+
elements?: any[];
|
|
7
|
+
};
|
|
8
|
+
export type CustomValidationResult = {
|
|
9
|
+
ruleId?: string;
|
|
10
|
+
warnings?: string[];
|
|
11
|
+
payload?: any;
|
|
12
|
+
element?: any;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @typedef {import('../adapters/adapter.js').AdapterInterface} AdapterInterface
|
|
16
|
+
*
|
|
17
|
+
* @typedef {Object} ValidationWarningResult
|
|
18
|
+
* @property {string} ruleId
|
|
19
|
+
* @property {string} warning
|
|
20
|
+
* @property {any} [element]
|
|
21
|
+
* @property {any[]} [elements]
|
|
22
|
+
*
|
|
23
|
+
* @typedef {Object} CustomValidationResult
|
|
24
|
+
* @property {string} [ruleId]
|
|
25
|
+
* @property {string[]} [warnings]
|
|
26
|
+
* @property {any} [payload]
|
|
27
|
+
* @property {any} [element]
|
|
28
|
+
*/
|
|
29
|
+
export declare const VALID_HEAD_ELEMENTS: Set<string>;
|
|
30
|
+
export declare const CONTENT_TYPE_SELECTOR = "meta[http-equiv=\"content-type\" i], meta[charset]";
|
|
31
|
+
export declare const HTTP_EQUIV_SELECTOR = "meta[http-equiv]";
|
|
32
|
+
export declare const PRELOAD_SELECTOR = "link:is([rel=\"preload\" i], [rel=\"modulepreload\" i])";
|
|
33
|
+
/**
|
|
34
|
+
* Check if element is a valid HTML <head> element
|
|
35
|
+
* @param {any} element
|
|
36
|
+
* @param {AdapterInterface} adapter
|
|
37
|
+
* @returns {boolean}
|
|
38
|
+
*/
|
|
39
|
+
export declare function isValidElement(element: any, adapter: AdapterInterface): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Check if an element has any validation warning
|
|
42
|
+
* @param {any} element
|
|
43
|
+
* @param {AdapterInterface} adapter
|
|
44
|
+
* @returns {boolean}
|
|
45
|
+
*/
|
|
46
|
+
export declare function hasValidationWarning(element: any, adapter: AdapterInterface): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Get document-level validation warnings for a <head> element
|
|
49
|
+
* @param {any} head
|
|
50
|
+
* @param {AdapterInterface} adapter
|
|
51
|
+
* @returns {ValidationWarningResult[]}
|
|
52
|
+
*/
|
|
53
|
+
export declare function getValidationWarnings(head: any, adapter: AdapterInterface): ValidationWarningResult[];
|
|
54
|
+
/**
|
|
55
|
+
* Get custom element-level validations for an element
|
|
56
|
+
* @param {any} element
|
|
57
|
+
* @param {AdapterInterface} adapter
|
|
58
|
+
* @param {any} [parentElement=null]
|
|
59
|
+
* @returns {CustomValidationResult}
|
|
60
|
+
*/
|
|
61
|
+
export declare function getCustomValidations(element: any, adapter: AdapterInterface, parentElement?: any): CustomValidationResult;
|