@askviraj/linter 1.1.5 → 1.1.6
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/@astrojs/compiler-binding/package.json +10 -10
- package/node_modules/@astrojs/compiler-binding-darwin-arm64/astro.darwin-arm64.node +0 -0
- package/node_modules/@astrojs/compiler-binding-darwin-arm64/package.json +1 -1
- package/node_modules/@astrojs/compiler-binding-darwin-x64/astro.darwin-x64.node +0 -0
- package/node_modules/@astrojs/compiler-binding-darwin-x64/package.json +1 -1
- package/node_modules/@astrojs/compiler-binding-linux-arm64-gnu/astro.linux-arm64-gnu.node +0 -0
- package/node_modules/@astrojs/compiler-binding-linux-arm64-gnu/package.json +1 -1
- package/node_modules/@astrojs/compiler-binding-linux-arm64-musl/astro.linux-arm64-musl.node +0 -0
- package/node_modules/@astrojs/compiler-binding-linux-arm64-musl/package.json +1 -1
- 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 +1 -1
- package/node_modules/@astrojs/compiler-binding-linux-x64-musl/astro.linux-x64-musl.node +0 -0
- package/node_modules/@astrojs/compiler-binding-linux-x64-musl/package.json +1 -1
- package/node_modules/@astrojs/compiler-binding-win32-arm64-msvc/astro.win32-arm64-msvc.node +0 -0
- package/node_modules/@astrojs/compiler-binding-win32-arm64-msvc/package.json +1 -1
- package/node_modules/@astrojs/compiler-binding-win32-x64-msvc/astro.win32-x64-msvc.node +0 -0
- package/node_modules/@astrojs/compiler-binding-win32-x64-msvc/package.json +1 -1
- package/node_modules/@astrojs/compiler-rs/package.json +2 -2
- package/node_modules/@html-eslint/core/dist/index.js +2 -0
- package/node_modules/@html-eslint/core/dist/index.js.map +1 -1
- package/node_modules/@html-eslint/core/dist/index.mjs +2 -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/no-duplicate-attrs.js +140 -16
- package/node_modules/@html-eslint/eslint-plugin/lib/rules/no-duplicate-id.js +24 -5
- package/node_modules/@html-eslint/eslint-plugin/lib/rules/no-duplicate-in-head.js +17 -5
- package/node_modules/@html-eslint/eslint-plugin/lib/rules/utils/branch-segments.js +147 -0
- package/node_modules/@html-eslint/eslint-plugin/package.json +7 -7
- package/node_modules/@html-eslint/eslint-plugin/types/rules/no-duplicate-attrs.d.ts.map +1 -1
- package/node_modules/@html-eslint/eslint-plugin/types/rules/no-duplicate-id.d.ts.map +1 -1
- package/node_modules/@html-eslint/eslint-plugin/types/rules/no-duplicate-in-head.d.ts.map +1 -1
- package/node_modules/@html-eslint/eslint-plugin/types/rules/utils/branch-segments.d.ts +71 -0
- package/node_modules/@html-eslint/eslint-plugin/types/rules/utils/branch-segments.d.ts.map +1 -0
- package/node_modules/@html-eslint/parser/lib/branch-annotation.js +282 -0
- package/node_modules/@html-eslint/parser/lib/options.js +47 -2
- package/node_modules/@html-eslint/parser/lib/parser.js +62 -1
- package/node_modules/@html-eslint/parser/lib/template-engine-syntax-preset.js +117 -2
- package/node_modules/@html-eslint/parser/package.json +4 -4
- package/node_modules/@html-eslint/parser/types/branch-annotation.d.ts +93 -0
- package/node_modules/@html-eslint/parser/types/branch-annotation.d.ts.map +1 -0
- package/node_modules/@html-eslint/parser/types/options.d.ts +12 -1
- package/node_modules/@html-eslint/parser/types/options.d.ts.map +1 -1
- package/node_modules/@html-eslint/parser/types/parser.d.ts.map +1 -1
- package/node_modules/@html-eslint/parser/types/template-engine-syntax-preset.d.ts +76 -2
- package/node_modules/@html-eslint/parser/types/template-engine-syntax-preset.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/@humanwhocodes/momoa/dist/momoa.cjs +14 -1
- package/node_modules/@humanwhocodes/momoa/dist/momoa.js +14 -1
- package/node_modules/@humanwhocodes/momoa/package.json +4 -4
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +115 -71
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +2 -2
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +115 -71
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +2 -2
- package/node_modules/@jridgewell/sourcemap-codec/package.json +2 -1
- package/node_modules/@jridgewell/sourcemap-codec/src/range-mappings.ts +47 -0
- package/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +66 -46
- package/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +27 -11
- package/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +13 -17
- package/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.cts +5 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.cts.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.mts +5 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.mts.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +2 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +2 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +4 -2
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +4 -2
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -1
- package/node_modules/@rviscomi/capo.js/README.md +18 -6
- package/node_modules/@rviscomi/capo.js/dist/adapters/adapter.cjs +8 -0
- package/node_modules/@rviscomi/capo.js/dist/adapters/browser.cjs +26 -2
- package/node_modules/@rviscomi/capo.js/dist/adapters/index.cjs +26 -2
- package/node_modules/@rviscomi/capo.js/dist/analyzer.cjs +300 -263
- package/node_modules/@rviscomi/capo.js/dist/chrome/README.md +5 -1
- package/node_modules/@rviscomi/capo.js/dist/chrome/background.js +1 -1
- package/node_modules/@rviscomi/capo.js/dist/chrome/capo.css +4 -11
- package/node_modules/@rviscomi/capo.js/dist/chrome/capo.html +2 -2
- package/node_modules/@rviscomi/capo.js/dist/chrome/capo.js +3 -3
- package/node_modules/@rviscomi/capo.js/dist/chrome/chrome.js +2 -9
- package/node_modules/@rviscomi/capo.js/dist/chrome/manifest.json +1 -1
- package/node_modules/@rviscomi/capo.js/dist/chrome/options/options.html +1 -1
- package/node_modules/@rviscomi/capo.js/dist/chrome/options/options.js +1 -1
- package/node_modules/@rviscomi/capo.js/dist/chrome/styles/open-props.css +16 -14
- package/node_modules/@rviscomi/capo.js/dist/chrome.zip +0 -0
- package/node_modules/@rviscomi/capo.js/dist/firefox/README.md +5 -1
- package/node_modules/@rviscomi/capo.js/dist/firefox/background.js +1 -1
- package/node_modules/@rviscomi/capo.js/dist/firefox/capo.css +4 -11
- package/node_modules/@rviscomi/capo.js/dist/firefox/capo.html +2 -2
- package/node_modules/@rviscomi/capo.js/dist/firefox/capo.js +3 -3
- package/node_modules/@rviscomi/capo.js/dist/firefox/chrome.js +2 -9
- package/node_modules/@rviscomi/capo.js/dist/firefox/manifest.json +1 -1
- package/node_modules/@rviscomi/capo.js/dist/firefox/options/options.html +1 -1
- package/node_modules/@rviscomi/capo.js/dist/firefox/options/options.js +1 -1
- package/node_modules/@rviscomi/capo.js/dist/firefox/styles/open-props.css +16 -14
- package/node_modules/@rviscomi/capo.js/dist/firefox.zip +0 -0
- package/node_modules/@rviscomi/capo.js/dist/index.cjs +378 -368
- package/node_modules/@rviscomi/capo.js/dist/lib/colors.cjs +1 -1
- package/node_modules/@rviscomi/capo.js/dist/lib/io.cjs +7 -5
- package/node_modules/@rviscomi/capo.js/dist/lib/options.cjs +7 -3
- package/node_modules/@rviscomi/capo.js/dist/lib/rules.cjs +25 -4
- package/node_modules/@rviscomi/capo.js/dist/lib/validation.cjs +326 -358
- package/node_modules/@rviscomi/capo.js/dist/source.zip +0 -0
- package/node_modules/@rviscomi/capo.js/dist/types/adapters/adapter.d.ts +6 -0
- package/node_modules/@rviscomi/capo.js/dist/types/adapters/browser.d.ts +8 -1
- package/node_modules/@rviscomi/capo.js/dist/types/adapters/index.d.ts +2 -2
- package/node_modules/@rviscomi/capo.js/dist/types/analyzer.d.ts +5 -0
- package/node_modules/@rviscomi/capo.js/dist/types/index.d.ts +5 -5
- package/node_modules/@rviscomi/capo.js/dist/types/lib/options.d.ts +1 -1
- package/node_modules/@rviscomi/capo.js/dist/types/lib/rules.d.ts +9 -2
- package/node_modules/@rviscomi/capo.js/dist/types/lib/validation.d.ts +4 -2
- package/node_modules/@rviscomi/capo.js/dist/types/lib/validations/charset.d.ts +28 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/validations/content-type.d.ts +18 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/validations/csp.d.ts +12 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/validations/default-style.d.ts +18 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/validations/head-elements.d.ts +52 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/validations/http-equiv.d.ts +18 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/validations/origin-trial.d.ts +19 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/validations/preload.d.ts +41 -0
- package/node_modules/@rviscomi/capo.js/dist/types/lib/validations/viewport.d.ts +18 -0
- package/node_modules/@rviscomi/capo.js/dist/types/worker/worker.d.ts +16 -0
- package/node_modules/@rviscomi/capo.js/package.json +8 -12
- package/node_modules/@rviscomi/capo.js/src/adapters/adapter.js +37 -28
- package/node_modules/@rviscomi/capo.js/src/adapters/browser.js +41 -24
- package/node_modules/@rviscomi/capo.js/src/adapters/index.js +3 -3
- package/node_modules/@rviscomi/capo.js/src/adapters/test-suite.js +129 -129
- package/node_modules/@rviscomi/capo.js/src/analyzer.js +20 -25
- package/node_modules/@rviscomi/capo.js/src/extension/README.md +5 -1
- package/node_modules/@rviscomi/capo.js/src/extension/background.js +1 -1
- package/node_modules/@rviscomi/capo.js/src/extension/capo.css +4 -11
- package/node_modules/@rviscomi/capo.js/src/extension/capo.html +2 -2
- package/node_modules/@rviscomi/capo.js/src/extension/capo.js +21 -18
- package/node_modules/@rviscomi/capo.js/src/extension/chrome.js +2 -9
- package/node_modules/@rviscomi/capo.js/src/extension/manifest.json +2 -6
- package/node_modules/@rviscomi/capo.js/src/extension/options/options.html +1 -1
- package/node_modules/@rviscomi/capo.js/src/extension/options.js +16 -16
- package/node_modules/@rviscomi/capo.js/src/extension/styles/open-props.css +16 -14
- package/node_modules/@rviscomi/capo.js/src/index.js +10 -20
- package/node_modules/@rviscomi/capo.js/src/lib/colors.js +17 -17
- package/node_modules/@rviscomi/capo.js/src/lib/io.js +19 -17
- package/node_modules/@rviscomi/capo.js/src/lib/options.js +23 -20
- package/node_modules/@rviscomi/capo.js/src/lib/rules.js +124 -95
- package/node_modules/@rviscomi/capo.js/src/lib/validation.js +57 -857
- package/node_modules/@rviscomi/capo.js/src/lib/validations/content-type.js +94 -0
- package/node_modules/@rviscomi/capo.js/src/lib/validations/csp.js +68 -0
- package/node_modules/@rviscomi/capo.js/src/lib/validations/default-style.js +62 -0
- package/node_modules/@rviscomi/capo.js/src/lib/validations/http-equiv.js +138 -0
- package/node_modules/@rviscomi/capo.js/src/lib/validations/origin-trial.js +80 -0
- package/node_modules/@rviscomi/capo.js/src/lib/validations/preload.js +135 -0
- package/node_modules/@rviscomi/capo.js/src/lib/validations/viewport.js +183 -0
- package/node_modules/@rviscomi/capo.js/src/web/capo.js +12 -12
- package/node_modules/@rviscomi/capo.js/src/worker/worker.js +180 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/base.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/disable-type-checked.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/eslint-recommended.d.ts +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/eslint-recommended.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/recommended-type-checked-only.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/recommended-type-checked.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/recommended.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked-only.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/stylistic-type-checked-only.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/stylistic-type-checked.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/stylistic.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/all.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/all.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/base.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/base.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/disable-type-checked.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/disable-type-checked.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/eslint-recommended.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/eslint-recommended.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/recommended-type-checked-only.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/recommended-type-checked-only.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/recommended-type-checked.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/recommended-type-checked.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/recommended.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/recommended.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict-type-checked-only.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict-type-checked-only.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict-type-checked.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict-type-checked.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/stylistic-type-checked-only.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/stylistic-type-checked-only.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/stylistic-type-checked.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/stylistic-type-checked.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/stylistic.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/stylistic.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/index.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/raw-plugin.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/raw-plugin.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js +12 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.d.ts +2 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.d.ts +5 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js +68 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.d.ts +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +8 -9
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js +9 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +64 -55
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-spread.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js +3 -14
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.d.ts +1 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +14 -39
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-conversion.js +2 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js +6 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +2 -91
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js +3 -113
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-private-class-members.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-default-assignment.js +15 -11
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.d.ts +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +2 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/related-getter-setter-pairs.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js +13 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-void-return.d.ts +3 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-void-return.js +97 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.d.ts +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js +73 -32
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/FunctionSignature.d.ts +15 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/FunctionSignature.js +123 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/baseTypeUtils.d.ts +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/baseTypeUtils.js +17 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/class-scope-analyzer/classScopeAnalyzer.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/class-scope-analyzer/extractComputedName.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/class-scope-analyzer/types.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getBaseTypesOfClassMember.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getConstraintInfo.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getParentFunctionNode.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getValueOfLiteralType.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/hasOverloadSignatures.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.d.ts +3 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +4 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isConditionalTest.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isHigherPrecedenceThanAwait.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isPromiseAggregatorMethod.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfArrowFunctionBody.d.ts +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfArrowFunctionBody.js +26 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatement.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsPrecedingSemiColon.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/promiseUtils.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/rangeToLoc.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypePredicate.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/skipChainExpression.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/truthinessUtils.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/walkStatements.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/README.md +52 -0
- package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/index.js +785 -129
- package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/legacy.js +660 -98
- package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/package.json +10 -4
- package/node_modules/@typescript-eslint/eslint-plugin/package.json +13 -12
- package/node_modules/@typescript-eslint/parser/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/parser/dist/parser.js +1 -0
- package/node_modules/@typescript-eslint/parser/package.json +8 -7
- package/node_modules/@typescript-eslint/project-service/dist/createProjectService.js +1 -0
- package/node_modules/@typescript-eslint/project-service/dist/getParsedConfigFileFromTSServer.js +1 -0
- package/node_modules/@typescript-eslint/project-service/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/project-service/package.json +6 -5
- package/node_modules/@typescript-eslint/scope-manager/dist/ID.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/analyze.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/assert.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.collection.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.float16.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.iterator.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.promise.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.regexp.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.date.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.error.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.float16.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.sharedmemory.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.temporal.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.typedarrays.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/package.json +8 -7
- package/node_modules/@typescript-eslint/tsconfig-utils/dist/compilerOptions.js +1 -0
- package/node_modules/@typescript-eslint/tsconfig-utils/dist/getParsedConfigFile.js +1 -0
- package/node_modules/@typescript-eslint/tsconfig-utils/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/tsconfig-utils/package.json +3 -2
- package/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts +19 -19
- package/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/discriminateAnyType.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeBrandedLiteralLike.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts +19 -19
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/predicates.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/package.json +9 -8
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +9 -0
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +1 -0
- package/node_modules/@typescript-eslint/types/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/types/dist/lib.js +1 -0
- package/node_modules/@typescript-eslint/types/dist/parser-options.js +1 -0
- package/node_modules/@typescript-eslint/types/dist/ts-estree.js +1 -0
- package/node_modules/@typescript-eslint/types/package.json +3 -5
- package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/check-modifiers.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/check-syntax-errors.js +15 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +25 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/getImportClausePhaseModifier.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/candidateTSConfigRootDirs.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/version.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/package.json +8 -7
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts +20 -20
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/json-schema.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +17 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-estree.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js +1 -0
- package/node_modules/@typescript-eslint/utils/package.json +6 -5
- package/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js +1 -0
- package/node_modules/@typescript-eslint/visitor-keys/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +1 -0
- package/node_modules/@typescript-eslint/visitor-keys/package.json +5 -4
- package/node_modules/astro-eslint-parser/lib/index.mjs +13 -37
- package/node_modules/astro-eslint-parser/package.json +7 -7
- package/node_modules/eslint/README.md +1 -6
- package/node_modules/eslint/lib/config/config-loader.js +2 -2
- package/node_modules/eslint/lib/config/config.js +2 -2
- package/node_modules/eslint/lib/eslint/eslint.js +1 -1
- package/node_modules/eslint/lib/languages/js/index.js +1 -1
- package/node_modules/eslint/lib/options.js +2 -2
- package/node_modules/eslint/lib/rules/accessor-pairs.js +1 -51
- package/node_modules/eslint/lib/rules/getter-return.js +4 -45
- package/node_modules/eslint/lib/rules/id-denylist.js +4 -0
- package/node_modules/eslint/lib/rules/id-match.js +2 -1
- package/node_modules/eslint/lib/rules/no-duplicate-imports.js +3 -3
- package/node_modules/eslint/lib/rules/no-loss-of-precision.js +7 -2
- package/node_modules/eslint/lib/rules/no-setter-return.js +1 -89
- package/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js +21 -5
- package/node_modules/eslint/lib/rules/no-unused-labels.js +19 -0
- package/node_modules/eslint/lib/rules/no-unused-vars.js +115 -8
- package/node_modules/eslint/lib/rules/no-useless-escape.js +2 -2
- package/node_modules/eslint/lib/rules/no-var.js +87 -1
- package/node_modules/eslint/lib/rules/prefer-template.js +7 -1
- package/node_modules/eslint/lib/rules/utils/ast-utils.js +86 -0
- package/node_modules/eslint/lib/types/index.d.ts +1 -1
- package/node_modules/eslint/lib/types/rules.d.ts +10 -1
- package/node_modules/eslint/messages/config-file-missing.js +2 -2
- package/node_modules/eslint/package.json +9 -3
- package/node_modules/eslint-plugin-astro/README.md +22 -1
- package/node_modules/eslint-plugin-astro/lib/index.mjs +24 -19
- package/node_modules/eslint-plugin-astro/package.json +8 -4
- package/node_modules/eslint-plugin-yml/lib/index.mjs +220 -78
- package/node_modules/eslint-plugin-yml/package.json +5 -4
- package/node_modules/globals/globals.json +75 -0
- package/node_modules/globals/index.d.ts +77 -0
- package/node_modules/globals/package.json +2 -2
- package/node_modules/nanoid/README.md +3 -0
- package/node_modules/nanoid/async/index.browser.cjs +1 -0
- package/node_modules/nanoid/async/index.browser.js +1 -0
- package/node_modules/nanoid/async/index.cjs +4 -1
- package/node_modules/nanoid/async/index.js +4 -1
- package/node_modules/nanoid/async/index.native.js +4 -1
- package/node_modules/nanoid/index.browser.cjs +1 -0
- package/node_modules/nanoid/index.browser.js +1 -0
- package/node_modules/nanoid/index.cjs +1 -0
- package/node_modules/nanoid/index.js +1 -0
- package/node_modules/nanoid/package.json +1 -1
- package/node_modules/picomatch/lib/parse.js +10 -1
- package/node_modules/picomatch/lib/scan.js +30 -18
- package/node_modules/picomatch/package.json +1 -1
- package/node_modules/postcss/README.md +4 -1
- package/node_modules/postcss/lib/list.js +1 -1
- package/node_modules/postcss/lib/previous-map.js +14 -2
- package/node_modules/postcss/lib/processor.js +1 -1
- package/node_modules/postcss/package.json +2 -2
- package/node_modules/postcss-selector-parser/CHANGELOG.md +74 -65
- package/node_modules/postcss-selector-parser/dist/parser.js +25 -3
- package/node_modules/postcss-selector-parser/package.json +6 -3
- package/node_modules/typescript-eslint/dist/compatibility-types.js +1 -0
- package/node_modules/typescript-eslint/dist/config-helper.js +1 -0
- package/node_modules/typescript-eslint/dist/getTSConfigRootDirFromStack.js +1 -0
- package/node_modules/typescript-eslint/dist/globs.d.ts +123 -0
- package/node_modules/typescript-eslint/dist/globs.js +135 -0
- package/node_modules/typescript-eslint/dist/index.d.ts +12 -0
- package/node_modules/typescript-eslint/dist/index.js +8 -1
- package/node_modules/typescript-eslint/package.json +8 -6
- package/node_modules/vscode-languageserver-textdocument/eslint.config.js +13 -0
- package/node_modules/vscode-languageserver-textdocument/lib/esm/main.d.ts +20 -0
- package/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +26 -0
- package/node_modules/vscode-languageserver-textdocument/lib/umd/main.d.ts +20 -0
- package/node_modules/vscode-languageserver-textdocument/lib/umd/main.js +26 -0
- package/node_modules/vscode-languageserver-textdocument/package.json +2 -2
- package/node_modules/vscode-uri/lib/esm/index.mjs +1 -1
- package/node_modules/vscode-uri/lib/esm/index.mjs.map +1 -1
- package/node_modules/vscode-uri/lib/umd/index.d.ts +5 -0
- package/node_modules/vscode-uri/lib/umd/index.js +1 -1
- package/node_modules/vscode-uri/lib/umd/index.js.map +1 -1
- package/node_modules/vscode-uri/package.json +5 -1
- package/package.json +12 -12
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import('../../adapters/adapter.js').AdapterInterface} AdapterInterface
|
|
3
|
+
* @typedef {import('../validation.js').CustomValidationResult} CustomValidationResult
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @param {any} element
|
|
8
|
+
* @param {AdapterInterface} adapter
|
|
9
|
+
* @returns {boolean}
|
|
10
|
+
*/
|
|
11
|
+
export function isContentType(element, adapter) {
|
|
12
|
+
if (adapter.getTagName(element) !== "meta") return false;
|
|
13
|
+
if (adapter.hasAttribute(element, "charset")) return true;
|
|
14
|
+
const httpEquiv = adapter.getAttribute(element, "http-equiv");
|
|
15
|
+
return httpEquiv?.toLowerCase() === "content-type";
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @param {any} element
|
|
20
|
+
* @param {AdapterInterface} adapter
|
|
21
|
+
* @returns {CustomValidationResult}
|
|
22
|
+
*/
|
|
23
|
+
export function validateContentType(element, adapter) {
|
|
24
|
+
/** @type {string[]} */
|
|
25
|
+
const warnings = [];
|
|
26
|
+
/** @type {any} */
|
|
27
|
+
let payload = null;
|
|
28
|
+
|
|
29
|
+
const isCharset = adapter.hasAttribute(element, "charset");
|
|
30
|
+
const httpEquiv = adapter.getAttribute(element, "http-equiv");
|
|
31
|
+
const isContentTypeMeta = httpEquiv?.toLowerCase() === "content-type";
|
|
32
|
+
|
|
33
|
+
if (isCharset || isContentTypeMeta) {
|
|
34
|
+
const siblings = adapter.getSiblings(element);
|
|
35
|
+
const hasDuplicateCharset = siblings.some((sibling) => {
|
|
36
|
+
if (adapter.getTagName(sibling) !== "meta") return false;
|
|
37
|
+
if (adapter.hasAttribute(sibling, "charset")) return true;
|
|
38
|
+
const siblingHttpEquiv = adapter.getAttribute(sibling, "http-equiv");
|
|
39
|
+
return siblingHttpEquiv?.toLowerCase() === "content-type";
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
if (hasDuplicateCharset) {
|
|
43
|
+
const parent = adapter.getParent(element);
|
|
44
|
+
if (parent) {
|
|
45
|
+
const charsetElements = adapter.getChildren(parent).filter((/** @type {any} */ child) => {
|
|
46
|
+
if (adapter.getTagName(child) !== "meta") return false;
|
|
47
|
+
if (adapter.hasAttribute(child, "charset")) return true;
|
|
48
|
+
const childHttpEquiv = adapter.getAttribute(child, "http-equiv");
|
|
49
|
+
return childHttpEquiv?.toLowerCase() === "content-type";
|
|
50
|
+
});
|
|
51
|
+
const encodingDeclaration = charsetElements.find((/** @type {any} */ el) => el !== element);
|
|
52
|
+
if (encodingDeclaration) {
|
|
53
|
+
payload = payload ?? {};
|
|
54
|
+
payload.encodingDeclaration = encodingDeclaration;
|
|
55
|
+
warnings.push(
|
|
56
|
+
`There can only be one meta-based character encoding declaration per document. Already found \`${adapter.stringify(encodingDeclaration)}\`.`,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (typeof adapter.getCharacterPosition === "function") {
|
|
64
|
+
const charPos = adapter.getCharacterPosition(element);
|
|
65
|
+
if (charPos !== null && charPos > 1024) {
|
|
66
|
+
payload = payload ?? {};
|
|
67
|
+
payload.characterPosition = charPos;
|
|
68
|
+
warnings.push(
|
|
69
|
+
`The element containing the character encoding declaration must be serialized completely within the first 1024 bytes of the document. Found at byte ${charPos}.`,
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
let charset = null;
|
|
75
|
+
if (isCharset) {
|
|
76
|
+
charset = adapter.getAttribute(element, "charset");
|
|
77
|
+
} else {
|
|
78
|
+
const charsetPattern = /text\/html;\s*charset=(.*)/i;
|
|
79
|
+
charset = adapter.getAttribute(element, "content")?.match(charsetPattern)?.[1]?.trim();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (charset?.toLowerCase() !== "utf-8") {
|
|
83
|
+
payload = payload ?? {};
|
|
84
|
+
payload.charset = charset;
|
|
85
|
+
warnings.push(`Documents are required to use UTF-8 encoding. Found "${charset}".`);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (warnings.length) {
|
|
89
|
+
warnings[warnings.length - 1] +=
|
|
90
|
+
"\nLearn more: https://html.spec.whatwg.org/multipage/semantics.html#character-encoding-declaration";
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return { ruleId: "valid-charset", warnings, payload };
|
|
94
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import('../../adapters/adapter.js').AdapterInterface} AdapterInterface
|
|
3
|
+
* @typedef {import('../validation.js').CustomValidationResult} CustomValidationResult
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @param {any} element
|
|
8
|
+
* @param {AdapterInterface} adapter
|
|
9
|
+
* @returns {CustomValidationResult}
|
|
10
|
+
*/
|
|
11
|
+
export function validateCSP(element, adapter) {
|
|
12
|
+
/** @type {string[]} */
|
|
13
|
+
const warnings = [];
|
|
14
|
+
/** @type {any} */
|
|
15
|
+
let payload = null;
|
|
16
|
+
|
|
17
|
+
const httpEquiv = adapter.getAttribute(element, "http-equiv");
|
|
18
|
+
const httpEquivLower = httpEquiv?.toLowerCase();
|
|
19
|
+
|
|
20
|
+
if (httpEquivLower === "content-security-policy-report-only") {
|
|
21
|
+
warnings.push("CSP Report-Only is forbidden in meta tags");
|
|
22
|
+
return {
|
|
23
|
+
ruleId: "no-meta-csp",
|
|
24
|
+
warnings,
|
|
25
|
+
payload,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (httpEquivLower === "content-security-policy") {
|
|
30
|
+
warnings.push("meta CSP discouraged. See https://crbug.com/1458493.");
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const content = adapter.getAttribute(element, "content");
|
|
34
|
+
if (!content) {
|
|
35
|
+
warnings.push("Invalid CSP. The content attribute must be set.");
|
|
36
|
+
return { ruleId: "no-meta-csp", warnings, payload };
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** @type {Record<string, string>} */
|
|
40
|
+
const directives = Object.fromEntries(
|
|
41
|
+
content.split(/\s*;\s*/).map((directive) => {
|
|
42
|
+
const [key, ...value] = directive.split(" ");
|
|
43
|
+
return [key, value.join(" ")];
|
|
44
|
+
}),
|
|
45
|
+
);
|
|
46
|
+
payload = payload ?? {};
|
|
47
|
+
payload.directives = directives;
|
|
48
|
+
|
|
49
|
+
if ("report-uri" in directives) {
|
|
50
|
+
warnings.push(
|
|
51
|
+
"The report-uri directive is not supported. Use the Content-Security-Policy-Report-Only HTTP header instead.",
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
if ("frame-ancestors" in directives) {
|
|
55
|
+
warnings.push(
|
|
56
|
+
"The frame-ancestors directive is not supported. Use the Content-Security-Policy HTTP header instead.",
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
if ("sandbox" in directives) {
|
|
60
|
+
warnings.push("The sandbox directive is not supported. Use the Content-Security-Policy HTTP header instead.");
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
ruleId: "no-meta-csp",
|
|
65
|
+
warnings,
|
|
66
|
+
payload,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import('../../adapters/adapter.js').AdapterInterface} AdapterInterface
|
|
3
|
+
* @typedef {import('../validation.js').CustomValidationResult} CustomValidationResult
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @param {any} element
|
|
8
|
+
* @param {AdapterInterface} adapter
|
|
9
|
+
* @returns {boolean}
|
|
10
|
+
*/
|
|
11
|
+
export function isDefaultStyle(element, adapter) {
|
|
12
|
+
if (adapter.getTagName(element) !== "meta") return false;
|
|
13
|
+
const httpEquiv = adapter.getAttribute(element, "http-equiv");
|
|
14
|
+
return httpEquiv?.toLowerCase() === "default-style";
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @param {any} element
|
|
19
|
+
* @param {AdapterInterface} adapter
|
|
20
|
+
* @returns {CustomValidationResult}
|
|
21
|
+
*/
|
|
22
|
+
export function validateDefaultStyle(element, adapter) {
|
|
23
|
+
/** @type {string[]} */
|
|
24
|
+
const warnings = [];
|
|
25
|
+
/** @type {any} */
|
|
26
|
+
let payload = null;
|
|
27
|
+
|
|
28
|
+
const title = adapter.getAttribute(element, "content");
|
|
29
|
+
|
|
30
|
+
if (!title) {
|
|
31
|
+
warnings.push("This has no effect. The content attribute must be set to a valid stylesheet title.");
|
|
32
|
+
} else {
|
|
33
|
+
const parent = adapter.getParent(element);
|
|
34
|
+
let stylesheet = null;
|
|
35
|
+
let alternateStylesheets = [];
|
|
36
|
+
|
|
37
|
+
if (parent) {
|
|
38
|
+
const children = adapter.getChildren(parent);
|
|
39
|
+
alternateStylesheets = children.filter((child) => {
|
|
40
|
+
if (adapter.getTagName(child) !== "link") return false;
|
|
41
|
+
const rel = adapter.getAttribute(child, "rel") || "";
|
|
42
|
+
const rels = rel.toLowerCase().split(/\s+/);
|
|
43
|
+
return rels.includes("alternate") && rels.includes("stylesheet");
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
stylesheet = alternateStylesheets.find((child) => adapter.getAttribute(child, "title") === title);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (!stylesheet) {
|
|
50
|
+
payload = {
|
|
51
|
+
alternateStylesheets,
|
|
52
|
+
};
|
|
53
|
+
warnings.push(`This has no effect. No alternate stylesheet found having title="${title}".`);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
warnings.push(
|
|
58
|
+
"Even when used correctly, the default-style method of setting a preferred stylesheet results in a flash of unstyled content. Use modern CSS features like @media rules instead.",
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
return { ruleId: "no-default-style", warnings, payload };
|
|
62
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import('../../adapters/adapter.js').AdapterInterface} AdapterInterface
|
|
3
|
+
* @typedef {import('../validation.js').CustomValidationResult} CustomValidationResult
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @param {any} element
|
|
8
|
+
* @param {AdapterInterface} adapter
|
|
9
|
+
* @returns {boolean}
|
|
10
|
+
*/
|
|
11
|
+
export function isHttpEquiv(element, adapter) {
|
|
12
|
+
if (adapter.getTagName(element) !== "meta") return false;
|
|
13
|
+
return adapter.hasAttribute(element, "http-equiv");
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @param {any} element
|
|
18
|
+
* @param {AdapterInterface} adapter
|
|
19
|
+
* @returns {CustomValidationResult}
|
|
20
|
+
*/
|
|
21
|
+
export function validateHttpEquiv(element, adapter) {
|
|
22
|
+
/** @type {string[]} */
|
|
23
|
+
const warnings = [];
|
|
24
|
+
const type = adapter.getAttribute(element, "http-equiv")?.toLowerCase() || "";
|
|
25
|
+
const content = adapter.getAttribute(element, "content")?.toLowerCase();
|
|
26
|
+
|
|
27
|
+
switch (type) {
|
|
28
|
+
case "content-security-policy":
|
|
29
|
+
case "content-security-policy-report-only":
|
|
30
|
+
case "origin-trial":
|
|
31
|
+
case "content-type":
|
|
32
|
+
case "default-style":
|
|
33
|
+
break;
|
|
34
|
+
|
|
35
|
+
case "refresh":
|
|
36
|
+
if (!content) {
|
|
37
|
+
warnings.push(
|
|
38
|
+
"This doesn't do anything. The content attribute must be set. However, using refresh is discouraged.",
|
|
39
|
+
);
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
if (content.includes("url=")) {
|
|
43
|
+
warnings.push("Meta auto-redirects are discouraged. Use HTTP 3XX responses instead.");
|
|
44
|
+
} else {
|
|
45
|
+
warnings.push("Meta auto-refreshes are discouraged unless users have the ability to disable it.");
|
|
46
|
+
}
|
|
47
|
+
break;
|
|
48
|
+
|
|
49
|
+
case "x-dns-prefetch-control":
|
|
50
|
+
if (content === "on") {
|
|
51
|
+
warnings.push(`DNS prefetching is enabled by default. Setting it to "${content}" has no effect.`);
|
|
52
|
+
} else if (content !== "off") {
|
|
53
|
+
warnings.push(
|
|
54
|
+
`This is a non-standard way of disabling DNS prefetching, which is a performance optimization. Found content="${content}". Use content="off" if you have a legitimate security concern, otherwise remove it.`,
|
|
55
|
+
);
|
|
56
|
+
} else {
|
|
57
|
+
warnings.push(
|
|
58
|
+
"This is non-standard, however most browsers support disabling speculative DNS prefetching. It should still be noted that DNS prefetching is a generally accepted performance optimization and you should only disable it if you have specific security concerns.",
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
|
|
63
|
+
case "cache-control":
|
|
64
|
+
case "etag":
|
|
65
|
+
case "pragma":
|
|
66
|
+
case "expires":
|
|
67
|
+
case "last-modified":
|
|
68
|
+
warnings.push("This doesn't do anything. Use HTTP headers for any cache directives.");
|
|
69
|
+
break;
|
|
70
|
+
|
|
71
|
+
case "x-frame-options":
|
|
72
|
+
warnings.push("This doesn't do anything. Use the CSP HTTP header with the frame-ancestors directive instead.");
|
|
73
|
+
break;
|
|
74
|
+
|
|
75
|
+
case "x-ua-compatible":
|
|
76
|
+
case "content-style-type":
|
|
77
|
+
case "content-script-type":
|
|
78
|
+
case "imagetoolbar":
|
|
79
|
+
case "cleartype":
|
|
80
|
+
case "page-enter":
|
|
81
|
+
case "page-exit":
|
|
82
|
+
case "site-enter":
|
|
83
|
+
case "site-exit":
|
|
84
|
+
case "msthemecompatible":
|
|
85
|
+
case "window-target":
|
|
86
|
+
warnings.push("This doesn't do anything. It was an Internet Explorer feature and is now deprecated.");
|
|
87
|
+
break;
|
|
88
|
+
|
|
89
|
+
case "content-language":
|
|
90
|
+
case "language":
|
|
91
|
+
warnings.push("This is non-conforming. Use the html[lang] attribute instead.");
|
|
92
|
+
break;
|
|
93
|
+
|
|
94
|
+
case "set-cookie":
|
|
95
|
+
warnings.push("This is non-conforming. Use the Set-Cookie HTTP header instead.");
|
|
96
|
+
break;
|
|
97
|
+
|
|
98
|
+
case "application-name":
|
|
99
|
+
case "author":
|
|
100
|
+
case "description":
|
|
101
|
+
case "generator":
|
|
102
|
+
case "keywords":
|
|
103
|
+
case "referrer":
|
|
104
|
+
case "theme-color":
|
|
105
|
+
case "color-scheme":
|
|
106
|
+
case "viewport":
|
|
107
|
+
case "creator":
|
|
108
|
+
case "googlebot":
|
|
109
|
+
case "publisher":
|
|
110
|
+
case "robots":
|
|
111
|
+
warnings.push(`This doesn't do anything. Did you mean \`meta[name=${type}]\`?`);
|
|
112
|
+
break;
|
|
113
|
+
|
|
114
|
+
case "encoding":
|
|
115
|
+
warnings.push("This doesn't do anything. Did you mean `meta[charset]`?");
|
|
116
|
+
break;
|
|
117
|
+
|
|
118
|
+
case "title":
|
|
119
|
+
warnings.push("This doesn't do anything. Did you mean to use the `title` tag instead?");
|
|
120
|
+
break;
|
|
121
|
+
|
|
122
|
+
case "accept-ch":
|
|
123
|
+
case "delegate-ch":
|
|
124
|
+
warnings.push("This is non-standard and may not work across browsers. Use HTTP headers instead.");
|
|
125
|
+
break;
|
|
126
|
+
|
|
127
|
+
default:
|
|
128
|
+
warnings.push(
|
|
129
|
+
"This is non-standard and may not work across browsers. http-equiv is not an alternative to HTTP headers.",
|
|
130
|
+
);
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
ruleId: "no-invalid-http-equiv",
|
|
136
|
+
warnings,
|
|
137
|
+
};
|
|
138
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import('../../adapters/adapter.js').AdapterInterface} AdapterInterface
|
|
3
|
+
* @typedef {import('../validation.js').CustomValidationResult} CustomValidationResult
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @param {string} a
|
|
8
|
+
* @param {string} b
|
|
9
|
+
* @returns {boolean}
|
|
10
|
+
*/
|
|
11
|
+
function isSameOrigin(a, b) {
|
|
12
|
+
return new URL(a).origin === new URL(b).origin;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @param {string} tokenOrigin - Origin from origin trial token (e.g., https://youtube.com:443)
|
|
17
|
+
* @param {string} pageUrl - Page URL or origin (e.g., https://www.youtube.com)
|
|
18
|
+
* @returns {boolean}
|
|
19
|
+
*/
|
|
20
|
+
function isSubdomain(tokenOrigin, pageUrl) {
|
|
21
|
+
const urlA = new URL(tokenOrigin);
|
|
22
|
+
const urlB = new URL(pageUrl);
|
|
23
|
+
return urlB.host.endsWith(`.${urlA.host}`);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Decode origin trial token payload
|
|
28
|
+
* @param {string|null} token
|
|
29
|
+
* @returns {any}
|
|
30
|
+
*/
|
|
31
|
+
export function decodeOriginTrialToken(token) {
|
|
32
|
+
if (!token) throw new Error("Missing token");
|
|
33
|
+
const buffer = new Uint8Array([...atob(token)].map((a) => a.charCodeAt(0)));
|
|
34
|
+
const view = new DataView(buffer.buffer);
|
|
35
|
+
const length = view.getUint32(65, false);
|
|
36
|
+
const payload = JSON.parse(new TextDecoder().decode(buffer.slice(69, 69 + length)));
|
|
37
|
+
payload.expiry = new Date(payload.expiry * 1000);
|
|
38
|
+
return payload;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @param {any} element
|
|
43
|
+
* @param {AdapterInterface} adapter
|
|
44
|
+
* @param {string|null} [pageOrigin=null]
|
|
45
|
+
* @returns {CustomValidationResult}
|
|
46
|
+
*/
|
|
47
|
+
export function validateOriginTrial(element, adapter, pageOrigin = null) {
|
|
48
|
+
/** @type {CustomValidationResult} */
|
|
49
|
+
const metadata = {
|
|
50
|
+
ruleId: "no-invalid-origin-trial",
|
|
51
|
+
payload: null,
|
|
52
|
+
warnings: [],
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const token = adapter.getAttribute(element, "content");
|
|
56
|
+
try {
|
|
57
|
+
metadata.payload = decodeOriginTrialToken(token);
|
|
58
|
+
} catch {
|
|
59
|
+
metadata.warnings?.push("Invalid origin trial token: invalid token");
|
|
60
|
+
return metadata;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (metadata.payload.expiry < new Date()) {
|
|
64
|
+
metadata.warnings?.push("Invalid origin trial token: expired");
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const targetOrigin = pageOrigin || (typeof document !== "undefined" && document.location && document.location.href);
|
|
68
|
+
if (targetOrigin) {
|
|
69
|
+
if (!isSameOrigin(metadata.payload.origin, targetOrigin)) {
|
|
70
|
+
const subdomain = isSubdomain(metadata.payload.origin, targetOrigin);
|
|
71
|
+
if (subdomain && !metadata.payload.isSubdomain) {
|
|
72
|
+
metadata.warnings?.push("Invalid origin trial token: invalid subdomain");
|
|
73
|
+
} else if (!subdomain && !metadata.payload.isThirdParty) {
|
|
74
|
+
metadata.warnings?.push("Invalid origin trial token: invalid third-party origin");
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return metadata;
|
|
80
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import('../../adapters/adapter.js').AdapterInterface} AdapterInterface
|
|
3
|
+
* @typedef {import('../validation.js').CustomValidationResult} CustomValidationResult
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Find an element with matching source using adapter
|
|
8
|
+
* @param {any} parent - Parent element to search within
|
|
9
|
+
* @param {string} sourceUrl - URL to match
|
|
10
|
+
* @param {any} excludeElement - Element to exclude from search
|
|
11
|
+
* @param {AdapterInterface} adapter - Adapter instance
|
|
12
|
+
* @returns {any|null} - Matching element or null
|
|
13
|
+
*/
|
|
14
|
+
export function findElementWithSource(parent, sourceUrl, excludeElement, adapter) {
|
|
15
|
+
const children = adapter.getChildren(parent);
|
|
16
|
+
|
|
17
|
+
for (const child of children) {
|
|
18
|
+
if (child === excludeElement) {
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const tagName = adapter.getTagName(child);
|
|
23
|
+
|
|
24
|
+
if (tagName === "link") {
|
|
25
|
+
const rel = adapter.getAttribute(child, "rel");
|
|
26
|
+
if (rel && /\b(preload|modulepreload)\b/i.test(rel)) {
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const childHref = adapter.getAttribute(child, "href");
|
|
31
|
+
if (childHref === sourceUrl) {
|
|
32
|
+
return child;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (tagName === "script") {
|
|
37
|
+
const src = adapter.getAttribute(child, "src");
|
|
38
|
+
if (src === sourceUrl) {
|
|
39
|
+
return child;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @param {any} element
|
|
49
|
+
* @param {AdapterInterface} adapter
|
|
50
|
+
* @param {any} [parentElement=null]
|
|
51
|
+
* @returns {boolean}
|
|
52
|
+
*/
|
|
53
|
+
export function isUnnecessaryPreload(element, adapter, parentElement = null) {
|
|
54
|
+
const tagName = adapter.getTagName(element);
|
|
55
|
+
if (tagName !== "link") {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
const rel = adapter.getAttribute(element, "rel");
|
|
59
|
+
const relLower = rel?.toLowerCase();
|
|
60
|
+
if (relLower !== "preload" && relLower !== "modulepreload") {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
const href = adapter.getAttribute(element, "href");
|
|
64
|
+
if (!href) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
const parent = parentElement || adapter.getParent(element);
|
|
68
|
+
if (!parent) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
const found = findElementWithSource(parent, href, element, adapter);
|
|
72
|
+
return found !== null && found !== undefined;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @param {any} element
|
|
77
|
+
* @param {AdapterInterface} adapter
|
|
78
|
+
* @returns {boolean}
|
|
79
|
+
*/
|
|
80
|
+
export function isInvalidFontPreload(element, adapter) {
|
|
81
|
+
const tagName = adapter.getTagName(element);
|
|
82
|
+
if (tagName !== "link") {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
const rel = adapter.getAttribute(element, "rel");
|
|
86
|
+
if (rel?.toLowerCase() !== "preload") {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
const as = adapter.getAttribute(element, "as");
|
|
90
|
+
if (as?.toLowerCase() !== "font") {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
return !adapter.hasAttribute(element, "crossorigin");
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @param {any} element
|
|
98
|
+
* @param {AdapterInterface} adapter
|
|
99
|
+
* @param {any} [parentElement=null]
|
|
100
|
+
* @returns {CustomValidationResult}
|
|
101
|
+
*/
|
|
102
|
+
export function validateUnnecessaryPreload(element, adapter, parentElement = null) {
|
|
103
|
+
const href = adapter.getAttribute(element, "href");
|
|
104
|
+
if (!href) {
|
|
105
|
+
return { ruleId: "no-unnecessary-preload", warnings: [] };
|
|
106
|
+
}
|
|
107
|
+
const parent = parentElement || adapter.getParent(element);
|
|
108
|
+
if (!parent) {
|
|
109
|
+
return { ruleId: "no-unnecessary-preload", warnings: [] };
|
|
110
|
+
}
|
|
111
|
+
const preloadedElement = findElementWithSource(parent, href, element, adapter);
|
|
112
|
+
if (!preloadedElement) {
|
|
113
|
+
return { ruleId: "no-unnecessary-preload", warnings: [] };
|
|
114
|
+
}
|
|
115
|
+
return {
|
|
116
|
+
ruleId: "no-unnecessary-preload",
|
|
117
|
+
warnings: [
|
|
118
|
+
`This preload has little to no effect. ${href} is already discoverable by another ${adapter.getTagName(preloadedElement)} element.`,
|
|
119
|
+
],
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @param {any} element
|
|
125
|
+
* @param {AdapterInterface} adapter
|
|
126
|
+
* @returns {CustomValidationResult}
|
|
127
|
+
*/
|
|
128
|
+
export function validateInvalidFontPreload(element, adapter) {
|
|
129
|
+
const warnings = ["Font preloads must have the crossorigin attribute set, even for same-origin fonts."];
|
|
130
|
+
return {
|
|
131
|
+
ruleId: "valid-font-preload",
|
|
132
|
+
warnings,
|
|
133
|
+
payload: null,
|
|
134
|
+
};
|
|
135
|
+
}
|