zedbee 0.1.0-beta.12 → 0.1.0-beta.13
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/README.md +3 -2
- package/THIRD_PARTY_NOTICES.md +130 -14
- package/dist/attribution/entities.d.ts.map +1 -1
- package/dist/attribution/entities.js +32 -9
- package/dist/attribution/entities.js.map +1 -1
- package/dist/cache/key.d.ts.map +1 -1
- package/dist/cache/key.js +3 -0
- package/dist/cache/key.js.map +1 -1
- package/dist/checks/applicability.d.ts.map +1 -1
- package/dist/checks/applicability.js +12 -12
- package/dist/checks/applicability.js.map +1 -1
- package/dist/checks/complexity/adapter.d.ts.map +1 -1
- package/dist/checks/complexity/adapter.js +11 -6
- package/dist/checks/complexity/adapter.js.map +1 -1
- package/dist/checks/complexity/pair-class-metrics.d.ts +12 -0
- package/dist/checks/complexity/pair-class-metrics.d.ts.map +1 -0
- package/dist/checks/complexity/pair-class-metrics.js +187 -0
- package/dist/checks/complexity/pair-class-metrics.js.map +1 -0
- package/dist/checks/dead-code/adapter.d.ts.map +1 -1
- package/dist/checks/dead-code/adapter.js +8 -97
- package/dist/checks/dead-code/adapter.js.map +1 -1
- package/dist/checks/dead-code/import-boundary.d.ts +1 -1
- package/dist/checks/dead-code/import-boundary.d.ts.map +1 -1
- package/dist/checks/dead-code/import-boundary.js +3 -1
- package/dist/checks/dead-code/import-boundary.js.map +1 -1
- package/dist/checks/dead-code/knip-worker.js +19 -8
- package/dist/checks/dead-code/knip-worker.js.map +1 -1
- package/dist/checks/dead-code/managed-config.d.ts +3 -2
- package/dist/checks/dead-code/managed-config.d.ts.map +1 -1
- package/dist/checks/dead-code/managed-config.js +23 -1
- package/dist/checks/dead-code/managed-config.js.map +1 -1
- package/dist/checks/dependency-architecture/adapter.d.ts.map +1 -1
- package/dist/checks/dependency-architecture/adapter.js +57 -46
- package/dist/checks/dependency-architecture/adapter.js.map +1 -1
- package/dist/checks/dependency-architecture/normalize-graph.d.ts +2 -0
- package/dist/checks/dependency-architecture/normalize-graph.d.ts.map +1 -1
- package/dist/checks/dependency-architecture/normalize-graph.js +12 -3
- package/dist/checks/dependency-architecture/normalize-graph.js.map +1 -1
- package/dist/checks/engine-identity.js +6 -6
- package/dist/checks/engine-identity.js.map +1 -1
- package/dist/checks/eslint/lint-adapter.d.ts.map +1 -1
- package/dist/checks/eslint/lint-adapter.js +17 -13
- package/dist/checks/eslint/lint-adapter.js.map +1 -1
- package/dist/checks/events.d.ts +7 -1
- package/dist/checks/events.d.ts.map +1 -1
- package/dist/checks/observation-result.js +2 -2
- package/dist/checks/observation-result.js.map +1 -1
- package/dist/checks/project-inputs.d.ts +6 -0
- package/dist/checks/project-inputs.d.ts.map +1 -0
- package/dist/checks/project-inputs.js +32 -0
- package/dist/checks/project-inputs.js.map +1 -0
- package/dist/checks/secrets/content.d.ts.map +1 -1
- package/dist/checks/secrets/content.js +16 -7
- package/dist/checks/secrets/content.js.map +1 -1
- package/dist/checks/typescript/adapter.d.ts.map +1 -1
- package/dist/checks/typescript/adapter.js +6 -14
- package/dist/checks/typescript/adapter.js.map +1 -1
- package/dist/checks/typescript/aliases.d.ts +28 -0
- package/dist/checks/typescript/aliases.d.ts.map +1 -0
- package/dist/checks/typescript/aliases.js +259 -0
- package/dist/checks/typescript/aliases.js.map +1 -0
- package/dist/checks/typescript/configuration-paths.d.ts +7 -0
- package/dist/checks/typescript/configuration-paths.d.ts.map +1 -0
- package/dist/checks/typescript/configuration-paths.js +69 -0
- package/dist/checks/typescript/configuration-paths.js.map +1 -0
- package/dist/checks/typescript/project-coverage.d.ts +16 -0
- package/dist/checks/typescript/project-coverage.d.ts.map +1 -0
- package/dist/checks/typescript/project-coverage.js +49 -0
- package/dist/checks/typescript/project-coverage.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +3 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/agent.js +1 -1
- package/dist/commands/agent.js.map +1 -1
- package/dist/commands/scan.d.ts +2 -1
- package/dist/commands/scan.d.ts.map +1 -1
- package/dist/commands/scan.js +5 -0
- package/dist/commands/scan.js.map +1 -1
- package/dist/commands/telemetry.d.ts.map +1 -1
- package/dist/commands/telemetry.js +3 -0
- package/dist/commands/telemetry.js.map +1 -1
- package/dist/fixes/build-plan.d.ts +1 -0
- package/dist/fixes/build-plan.d.ts.map +1 -1
- package/dist/fixes/build-plan.js +5 -1
- package/dist/fixes/build-plan.js.map +1 -1
- package/dist/git/change-set.d.ts.map +1 -1
- package/dist/git/change-set.js +9 -0
- package/dist/git/change-set.js.map +1 -1
- package/dist/git/client.d.ts +16 -0
- package/dist/git/client.d.ts.map +1 -1
- package/dist/git/client.js +44 -3
- package/dist/git/client.js.map +1 -1
- package/dist/git/merge-comparison.d.ts.map +1 -1
- package/dist/git/merge-comparison.js +16 -4
- package/dist/git/merge-comparison.js.map +1 -1
- package/dist/git/selected-comparison.d.ts +13 -0
- package/dist/git/selected-comparison.d.ts.map +1 -0
- package/dist/git/selected-comparison.js +143 -0
- package/dist/git/selected-comparison.js.map +1 -0
- package/dist/git/snapshot-work.d.ts +18 -0
- package/dist/git/snapshot-work.d.ts.map +1 -0
- package/dist/git/snapshot-work.js +59 -0
- package/dist/git/snapshot-work.js.map +1 -0
- package/dist/git/snapshot.d.ts +6 -1
- package/dist/git/snapshot.d.ts.map +1 -1
- package/dist/git/snapshot.js +102 -5
- package/dist/git/snapshot.js.map +1 -1
- package/dist/inspection/inspect-repository.d.ts.map +1 -1
- package/dist/inspection/inspect-repository.js +13 -0
- package/dist/inspection/inspect-repository.js.map +1 -1
- package/dist/inspection/snapshot-registry.d.ts +2 -0
- package/dist/inspection/snapshot-registry.d.ts.map +1 -1
- package/dist/inspection/snapshot-registry.js +34 -5
- package/dist/inspection/snapshot-registry.js.map +1 -1
- package/dist/inspection/types.d.ts +6 -1
- package/dist/inspection/types.d.ts.map +1 -1
- package/dist/inspection/types.js +7 -1
- package/dist/inspection/types.js.map +1 -1
- package/dist/inspection/workspaces.d.ts.map +1 -1
- package/dist/inspection/workspaces.js +17 -0
- package/dist/inspection/workspaces.js.map +1 -1
- package/dist/scan/analysis-failure.d.ts.map +1 -1
- package/dist/scan/analysis-failure.js +23 -0
- package/dist/scan/analysis-failure.js.map +1 -1
- package/dist/scan/analysis-session.d.ts +4 -0
- package/dist/scan/analysis-session.d.ts.map +1 -1
- package/dist/scan/analysis-session.js +60 -13
- package/dist/scan/analysis-session.js.map +1 -1
- package/dist/scan/incomplete-report.js +2 -2
- package/dist/scan/incomplete-report.js.map +1 -1
- package/dist/scan/merge-scan.d.ts +2 -1
- package/dist/scan/merge-scan.d.ts.map +1 -1
- package/dist/scan/merge-scan.js +82 -37
- package/dist/scan/merge-scan.js.map +1 -1
- package/dist/scan/progress.d.ts +4 -0
- package/dist/scan/progress.d.ts.map +1 -0
- package/dist/scan/progress.js +18 -0
- package/dist/scan/progress.js.map +1 -0
- package/dist/scan/run-scan.d.ts.map +1 -1
- package/dist/scan/run-scan.js +7 -3
- package/dist/scan/run-scan.js.map +1 -1
- package/dist/service/identity-parallel.js +3 -3
- package/dist/service/identity-parallel.js.map +1 -1
- package/dist/service/identity.js +4 -4
- package/dist/service/identity.js.map +1 -1
- package/dist/service/state.d.ts.map +1 -1
- package/dist/service/state.js +12 -1
- package/dist/service/state.js.map +1 -1
- package/dist/telemetry/ai-context.d.ts +14 -0
- package/dist/telemetry/ai-context.d.ts.map +1 -0
- package/dist/telemetry/ai-context.js +129 -0
- package/dist/telemetry/ai-context.js.map +1 -0
- package/dist/telemetry/batch.d.ts +4 -0
- package/dist/telemetry/batch.d.ts.map +1 -0
- package/dist/telemetry/batch.js +21 -0
- package/dist/telemetry/batch.js.map +1 -0
- package/dist/telemetry/client.d.ts +3 -0
- package/dist/telemetry/client.d.ts.map +1 -1
- package/dist/telemetry/client.js +63 -2
- package/dist/telemetry/client.js.map +1 -1
- package/dist/telemetry/details-store.d.ts +15 -0
- package/dist/telemetry/details-store.d.ts.map +1 -0
- package/dist/telemetry/details-store.js +198 -0
- package/dist/telemetry/details-store.js.map +1 -0
- package/dist/telemetry/finding-catalog.d.ts +2 -0
- package/dist/telemetry/finding-catalog.d.ts.map +1 -0
- package/dist/telemetry/finding-catalog.js +2817 -0
- package/dist/telemetry/finding-catalog.js.map +1 -0
- package/dist/telemetry/finding-rules.d.ts +3 -0
- package/dist/telemetry/finding-rules.d.ts.map +1 -0
- package/dist/telemetry/finding-rules.js +16 -0
- package/dist/telemetry/finding-rules.js.map +1 -0
- package/dist/telemetry/finding-summary.d.ts +8 -0
- package/dist/telemetry/finding-summary.d.ts.map +1 -0
- package/dist/telemetry/finding-summary.js +63 -0
- package/dist/telemetry/finding-summary.js.map +1 -0
- package/dist/telemetry/schema.d.ts +602 -3
- package/dist/telemetry/schema.d.ts.map +1 -1
- package/dist/telemetry/schema.js +117 -1
- package/dist/telemetry/schema.js.map +1 -1
- package/dist/telemetry/state.d.ts +2 -2
- package/dist/telemetry/state.d.ts.map +1 -1
- package/dist/telemetry/state.js +3 -3
- package/dist/telemetry/state.js.map +1 -1
- package/dist/telemetry/transport.d.ts.map +1 -1
- package/dist/telemetry/transport.js +5 -1
- package/dist/telemetry/transport.js.map +1 -1
- package/dist/telemetry/worker.d.ts.map +1 -1
- package/dist/telemetry/worker.js +9 -1
- package/dist/telemetry/worker.js.map +1 -1
- package/dist/ui/init-app.js +1 -1
- package/dist/ui/init-app.js.map +1 -1
- package/dist/ui/live-dashboard.d.ts +5 -1
- package/dist/ui/live-dashboard.d.ts.map +1 -1
- package/dist/ui/live-dashboard.js +46 -4
- package/dist/ui/live-dashboard.js.map +1 -1
- package/dist/vendor/knip/node_modules/get-tsconfig/LICENSE +21 -0
- package/dist/vendor/knip/node_modules/get-tsconfig/README.md +268 -0
- package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.cjs +7 -0
- package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.d.cts +2116 -0
- package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.d.mts +2116 -0
- package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.mjs +7 -0
- package/dist/vendor/knip/node_modules/get-tsconfig/package.json +46 -0
- package/docs/checks.md +32 -5
- package/docs/cli-reference.md +9 -1
- package/docs/commercial-licensing.md +1 -1
- package/docs/privacy.md +34 -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.d.ts +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.js +3 -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.d.ts +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/disable-type-checked.js +3 -0
- 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.d.ts +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked-only.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked.d.ts +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked.js +3 -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.js +3 -0
- 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.js +3 -0
- 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.js +1 -0
- 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.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict-type-checked-only.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict-type-checked.js +3 -0
- 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.js +1 -0
- 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.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/index.d.ts +9 -447
- package/node_modules/@typescript-eslint/eslint-plugin/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/raw-plugin.d.ts +9 -447
- 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 +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.d.ts +6 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js +41 -6
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.d.ts +9 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js +69 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.d.ts +1 -447
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +141 -273
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +59 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +2 -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 +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +30 -10
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js +57 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js +10 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +12 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +65 -55
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-generated-empty-object-type.d.ts +4 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-generated-empty-object-type.js +97 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.d.ts +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js +49 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.d.ts +5 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +76 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-spread.js +6 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +35 -23
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +6 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +85 -12
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js +14 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js +4 -14
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.d.ts +2 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +52 -49
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-conversion.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js +46 -18
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +3 -91
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-assignment.d.ts +5 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-assignment.js +518 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js +4 -113
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-private-class-members.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +6 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-default-assignment.d.ts +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-default-assignment.js +29 -7
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +4 -3
- 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 +47 -10
- 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 +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/related-getter-setter-pairs.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +50 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js +12 -9
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +2 -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 +100 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +3 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +6 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +39 -12
- 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 +75 -37
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js +2 -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 +11 -7
- 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/getAwaitTokenRemovalRange.d.ts +4 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getAwaitTokenRemovalRange.js +15 -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 +2 -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 -1
- 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 +4 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +5 -0
- 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/isStartOfArrowFunctionBodyNeedingParentheses.d.ts +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfArrowFunctionBodyNeedingParentheses.js +30 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatement.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatementNeedingParentheses.d.ts +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatementNeedingParentheses.js +9 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeOnlyReference.d.ts +4 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeOnlyReference.js +23 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/lazyRules.d.ts +6 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/lazyRules.js +18 -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 +3 -1
- 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/package.json +19 -18
- 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 +9 -8
- package/node_modules/@typescript-eslint/project-service/dist/createProjectService.js +10 -9
- 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/dist/throttleOpenedFileCleanup.d.ts +7 -0
- package/node_modules/@typescript-eslint/project-service/dist/throttleOpenedFileCleanup.js +37 -0
- package/node_modules/@typescript-eslint/project-service/package.json +7 -6
- 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 +3 -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 +13 -1
- 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 +4 -3
- package/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js +4 -14
- 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 +7 -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 +3 -1
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +10 -5
- package/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts +5 -0
- package/node_modules/@typescript-eslint/type-utils/dist/predicates.js +11 -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 +2 -1
- package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierSourceMatches.d.ts +3 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierSourceMatches.js +19 -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.d.ts +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js +87 -9
- package/node_modules/@typescript-eslint/type-utils/package.json +9 -8
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +3 -3
- 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 +8 -7
- package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/check-modifiers.js +7 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/check-syntax-errors.js +8 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +3 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +12 -2
- 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 +3 -2
- 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 +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js +14 -6
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +23 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +86 -1
- 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 +48 -2
- 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 +2 -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 +45 -4
- 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 +9 -8
- 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.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.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 +2 -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.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.d.ts +1 -1
- 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 +7 -6
- 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 +6 -5
- package/node_modules/dependency-cruiser/node_modules/ignore/LICENSE-MIT +21 -0
- package/node_modules/dependency-cruiser/node_modules/ignore/README.md +452 -0
- package/node_modules/dependency-cruiser/node_modules/ignore/index.d.ts +81 -0
- package/node_modules/dependency-cruiser/node_modules/ignore/index.js +793 -0
- package/node_modules/dependency-cruiser/node_modules/ignore/legacy.js +690 -0
- package/node_modules/dependency-cruiser/node_modules/ignore/package.json +87 -0
- package/node_modules/get-tsconfig/dist/index.cjs +4 -4
- package/node_modules/get-tsconfig/dist/index.mjs +4 -4
- package/node_modules/get-tsconfig/package.json +1 -1
- package/node_modules/ignore/README.md +49 -0
- package/node_modules/ignore/index.js +906 -162
- package/node_modules/ignore/legacy.js +760 -127
- package/node_modules/ignore/package.json +10 -4
- 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.js +1 -0
- package/node_modules/typescript-eslint/dist/index.js +2 -0
- package/node_modules/typescript-eslint/package.json +13 -20
- package/package.json +11 -9
- package/plugins/swarm/README.md +31 -14
- package/schema/zedbee.schema.json +12 -0
- /package/plugins/swarm/{skills/scan/SKILL.md → references/scan.md} +0 -0
package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js
CHANGED
|
@@ -38,6 +38,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
38
38
|
},
|
|
39
39
|
],
|
|
40
40
|
},
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
41
42
|
defaultOptions: [
|
|
42
43
|
{
|
|
43
44
|
allow: util_1.readonlynessOptionsDefaults.allow,
|
|
@@ -96,3 +97,4 @@ exports.default = (0, util_1.createRule)({
|
|
|
96
97
|
};
|
|
97
98
|
},
|
|
98
99
|
});
|
|
100
|
+
//# sourceMappingURL=prefer-readonly-parameter-types.js.map
|
|
@@ -69,6 +69,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
69
69
|
},
|
|
70
70
|
],
|
|
71
71
|
},
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
72
73
|
defaultOptions: [{ onlyInlineLambdas: false }],
|
|
73
74
|
create(context, [{ onlyInlineLambdas }]) {
|
|
74
75
|
const services = (0, util_1.getParserServices)(context);
|
|
@@ -437,3 +438,4 @@ function getMemberName(name) {
|
|
|
437
438
|
}
|
|
438
439
|
return undefined;
|
|
439
440
|
}
|
|
441
|
+
//# sourceMappingURL=prefer-readonly.js.map
|
package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js
CHANGED
|
@@ -50,6 +50,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
50
50
|
},
|
|
51
51
|
schema: [],
|
|
52
52
|
},
|
|
53
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
53
54
|
defaultOptions: [],
|
|
54
55
|
create(context) {
|
|
55
56
|
const services = (0, util_1.getParserServices)(context);
|
|
@@ -112,3 +113,4 @@ exports.default = (0, util_1.createRule)({
|
|
|
112
113
|
};
|
|
113
114
|
},
|
|
114
115
|
});
|
|
116
|
+
//# sourceMappingURL=prefer-reduce-type-parameter.js.map
|
|
@@ -58,6 +58,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
58
58
|
},
|
|
59
59
|
schema: [],
|
|
60
60
|
},
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
61
62
|
defaultOptions: [],
|
|
62
63
|
create(context) {
|
|
63
64
|
const globalScope = context.sourceCode.getScope(context.sourceCode.ast);
|
|
@@ -180,3 +181,4 @@ exports.default = (0, util_1.createRule)({
|
|
|
180
181
|
};
|
|
181
182
|
},
|
|
182
183
|
});
|
|
184
|
+
//# sourceMappingURL=prefer-regexp-exec.js.map
|
|
@@ -52,6 +52,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
52
52
|
},
|
|
53
53
|
schema: [],
|
|
54
54
|
},
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
55
56
|
defaultOptions: [],
|
|
56
57
|
create(context) {
|
|
57
58
|
const services = (0, util_1.getParserServices)(context);
|
|
@@ -152,3 +153,4 @@ exports.default = (0, util_1.createRule)({
|
|
|
152
153
|
};
|
|
153
154
|
},
|
|
154
155
|
});
|
|
156
|
+
//# sourceMappingURL=prefer-return-this-type.js.map
|
package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js
CHANGED
|
@@ -33,6 +33,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
33
33
|
},
|
|
34
34
|
],
|
|
35
35
|
},
|
|
36
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
36
37
|
defaultOptions: [{ allowSingleElementEquality: 'never' }],
|
|
37
38
|
create(context, [{ allowSingleElementEquality }]) {
|
|
38
39
|
const globalScope = context.sourceCode.getScope(context.sourceCode.ast);
|
|
@@ -511,3 +512,4 @@ exports.default = (0, util_1.createRule)({
|
|
|
511
512
|
};
|
|
512
513
|
},
|
|
513
514
|
});
|
|
515
|
+
//# sourceMappingURL=prefer-string-starts-ends-with.js.map
|
|
@@ -25,9 +25,11 @@ exports.default = (0, util_1.createRule)({
|
|
|
25
25
|
messages: {
|
|
26
26
|
preferExpectErrorComment: 'Use "@ts-expect-error" to ensure an error is actually being suppressed.',
|
|
27
27
|
},
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint < 9.21
|
|
28
29
|
replacedBy: ['@typescript-eslint/ban-ts-comment'],
|
|
29
30
|
schema: [],
|
|
30
31
|
},
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
31
33
|
defaultOptions: [],
|
|
32
34
|
create(context) {
|
|
33
35
|
const tsIgnoreRegExpSingleLine = /^\s*\/?\s*@ts-ignore/;
|
|
@@ -69,3 +71,4 @@ exports.default = (0, util_1.createRule)({
|
|
|
69
71
|
};
|
|
70
72
|
},
|
|
71
73
|
});
|
|
74
|
+
//# sourceMappingURL=prefer-ts-expect-error.js.map
|
|
@@ -85,6 +85,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
85
85
|
},
|
|
86
86
|
],
|
|
87
87
|
},
|
|
88
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
88
89
|
defaultOptions: [
|
|
89
90
|
{
|
|
90
91
|
allowAny: true,
|
|
@@ -202,3 +203,4 @@ exports.default = (0, util_1.createRule)({
|
|
|
202
203
|
};
|
|
203
204
|
},
|
|
204
205
|
});
|
|
206
|
+
//# sourceMappingURL=promise-function-async.js.map
|
package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/related-getter-setter-pairs.js
CHANGED
|
@@ -16,6 +16,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
16
16
|
},
|
|
17
17
|
schema: [],
|
|
18
18
|
},
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
19
20
|
defaultOptions: [],
|
|
20
21
|
create(context) {
|
|
21
22
|
const services = (0, util_1.getParserServices)(context);
|
|
@@ -69,3 +70,4 @@ exports.default = (0, util_1.createRule)({
|
|
|
69
70
|
function getMethodFromNode(node) {
|
|
70
71
|
return node.type === utils_1.AST_NODE_TYPES.TSMethodSignature ? node : node.value;
|
|
71
72
|
}
|
|
73
|
+
//# sourceMappingURL=related-getter-setter-pairs.js.map
|
package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
const tsutils = __importStar(require("ts-api-utils"));
|
|
3
37
|
const util_1 = require("../util");
|
|
4
38
|
exports.default = (0, util_1.createRule)({
|
|
5
39
|
name: 'require-array-sort-compare',
|
|
@@ -25,6 +59,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
25
59
|
},
|
|
26
60
|
],
|
|
27
61
|
},
|
|
62
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
28
63
|
defaultOptions: [
|
|
29
64
|
{
|
|
30
65
|
ignoreStringArrays: true,
|
|
@@ -39,8 +74,14 @@ exports.default = (0, util_1.createRule)({
|
|
|
39
74
|
function isStringArrayNode(node) {
|
|
40
75
|
const type = (0, util_1.getConstrainedTypeAtLocation)(services, node);
|
|
41
76
|
if (checker.isArrayType(type) || checker.isTupleType(type)) {
|
|
42
|
-
|
|
43
|
-
|
|
77
|
+
// Before TS 5.1, a constrained type parameter's array type has an extra `this` type argument
|
|
78
|
+
const typeArgs = checker
|
|
79
|
+
.getTypeArguments(type)
|
|
80
|
+
.slice(0, type.target.typeParameters?.length);
|
|
81
|
+
return typeArgs.every(arg => {
|
|
82
|
+
const typeName = (0, util_1.getTypeName)(checker, checker.getBaseConstraintOfType(arg) ?? arg);
|
|
83
|
+
return typeName === 'string';
|
|
84
|
+
});
|
|
44
85
|
}
|
|
45
86
|
return false;
|
|
46
87
|
}
|
|
@@ -52,7 +93,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
52
93
|
if (options.ignoreStringArrays && isStringArrayNode(callee.object)) {
|
|
53
94
|
return;
|
|
54
95
|
}
|
|
55
|
-
if ((
|
|
96
|
+
if (isAlwaysArray(calleeObjType, checker)) {
|
|
56
97
|
context.report({ node: callee.parent, messageId: 'requireCompare' });
|
|
57
98
|
}
|
|
58
99
|
}
|
|
@@ -61,3 +102,9 @@ exports.default = (0, util_1.createRule)({
|
|
|
61
102
|
};
|
|
62
103
|
},
|
|
63
104
|
});
|
|
105
|
+
function isAlwaysArray(type, checker) {
|
|
106
|
+
return tsutils
|
|
107
|
+
.unionConstituents(type)
|
|
108
|
+
.every(t => checker.isArrayType(t) || checker.isTupleType(t));
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=require-array-sort-compare.js.map
|
|
@@ -53,6 +53,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
53
53
|
},
|
|
54
54
|
schema: [],
|
|
55
55
|
},
|
|
56
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
56
57
|
defaultOptions: [],
|
|
57
58
|
create(context) {
|
|
58
59
|
const services = (0, util_1.getParserServices)(context);
|
|
@@ -261,3 +262,4 @@ function hasTypeName(typeReference, typeName) {
|
|
|
261
262
|
return (typeReference.typeName.type === utils_1.AST_NODE_TYPES.Identifier &&
|
|
262
263
|
typeReference.typeName.name === typeName);
|
|
263
264
|
}
|
|
265
|
+
//# sourceMappingURL=require-await.js.map
|
|
@@ -94,6 +94,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
94
94
|
},
|
|
95
95
|
],
|
|
96
96
|
},
|
|
97
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
97
98
|
defaultOptions: [
|
|
98
99
|
{
|
|
99
100
|
allowAny: true,
|
|
@@ -229,3 +230,4 @@ function isTypeFlagSetInUnion(type, flag) {
|
|
|
229
230
|
.unionConstituents(type)
|
|
230
231
|
.some(subType => tsutils.isTypeFlagSet(subType, flag));
|
|
231
232
|
}
|
|
233
|
+
//# sourceMappingURL=restrict-plus-operands.js.map
|
package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js
CHANGED
|
@@ -71,6 +71,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
71
71
|
},
|
|
72
72
|
],
|
|
73
73
|
},
|
|
74
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
74
75
|
defaultOptions: [
|
|
75
76
|
{
|
|
76
77
|
allow: [{ name: ['Error', 'URL', 'URLSearchParams'], from: 'lib' }],
|
|
@@ -117,3 +118,4 @@ exports.default = (0, util_1.createRule)({
|
|
|
117
118
|
}
|
|
118
119
|
},
|
|
119
120
|
});
|
|
121
|
+
//# sourceMappingURL=restrict-template-expressions.js.map
|
|
@@ -85,6 +85,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
85
85
|
},
|
|
86
86
|
],
|
|
87
87
|
},
|
|
88
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
88
89
|
defaultOptions: ['in-try-catch'],
|
|
89
90
|
create(context, [option]) {
|
|
90
91
|
const services = (0, util_1.getParserServices)(context);
|
|
@@ -211,16 +212,17 @@ exports.default = (0, util_1.createRule)({
|
|
|
211
212
|
/* istanbul ignore if */ if (!awaitToken) {
|
|
212
213
|
return null;
|
|
213
214
|
}
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
215
|
+
const awaitTokenRemovalRange = (0, util_1.getAwaitTokenRemovalRange)(context.sourceCode, awaitToken);
|
|
216
|
+
const awaitRemovalFix = fixer.removeRange(awaitTokenRemovalRange);
|
|
217
|
+
const firstOperandToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(awaitToken), util_1.NullThrowsReasons.MissingToken('operand', 'await expression'));
|
|
218
|
+
if ((0, util_1.isStartOfArrowFunctionBodyNeedingParentheses)(node, firstOperandToken, context.sourceCode)) {
|
|
219
|
+
return [
|
|
220
|
+
awaitRemovalFix,
|
|
221
|
+
fixer.insertTextBefore(node.argument, '('),
|
|
222
|
+
fixer.insertTextAfter(node.argument, ')'),
|
|
223
|
+
];
|
|
222
224
|
}
|
|
223
|
-
return
|
|
225
|
+
return awaitRemovalFix;
|
|
224
226
|
}
|
|
225
227
|
function insertAwait(fixer, node, isHighPrecedence) {
|
|
226
228
|
if (isHighPrecedence) {
|
|
@@ -361,3 +363,4 @@ function getConfiguration(option) {
|
|
|
361
363
|
};
|
|
362
364
|
}
|
|
363
365
|
}
|
|
366
|
+
//# sourceMappingURL=return-await.js.map
|
|
@@ -130,6 +130,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
130
130
|
notSortedNamed: '{{type}} type {{name}} constituents must be sorted.',
|
|
131
131
|
suggestFix: 'Sort constituents of type (removes all comments).',
|
|
132
132
|
},
|
|
133
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint < 9.21
|
|
133
134
|
replacedBy: [
|
|
134
135
|
'perfectionist/sort-intersection-types',
|
|
135
136
|
'perfectionist/sort-union-types',
|
|
@@ -163,6 +164,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
163
164
|
},
|
|
164
165
|
],
|
|
165
166
|
},
|
|
167
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
166
168
|
defaultOptions: [
|
|
167
169
|
{
|
|
168
170
|
caseSensitive: false,
|
|
@@ -270,3 +272,4 @@ exports.default = (0, util_1.createRule)({
|
|
|
270
272
|
};
|
|
271
273
|
},
|
|
272
274
|
});
|
|
275
|
+
//# sourceMappingURL=sort-type-constituents.js.map
|
package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js
CHANGED
|
@@ -132,6 +132,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
132
132
|
},
|
|
133
133
|
],
|
|
134
134
|
},
|
|
135
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
135
136
|
defaultOptions: [
|
|
136
137
|
{
|
|
137
138
|
allowAny: false,
|
|
@@ -880,3 +881,4 @@ function isBrandedBoolean(type) {
|
|
|
880
881
|
function isBooleanType(expressionType) {
|
|
881
882
|
return tsutils.isTypeFlagSet(expressionType, ts.TypeFlags.Boolean | ts.TypeFlags.BooleanLiteral);
|
|
882
883
|
}
|
|
884
|
+
//# sourceMappingURL=strict-boolean-expressions.js.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type { TSESLint } from '@typescript-eslint/utils';
|
|
1
2
|
type Options = [
|
|
2
3
|
{
|
|
3
4
|
allowReturnAny?: boolean;
|
|
4
5
|
}
|
|
5
6
|
];
|
|
6
|
-
type MessageId = `asyncFunc` | `nonVoidFunc` | `nonVoidReturn`;
|
|
7
|
-
declare const _default:
|
|
7
|
+
type MessageId = `asyncFunc` | `nonVoidFunc` | `nonVoidReturn` | `suggestAddVoidOp` | `suggestWrapInAsyncIIFE`;
|
|
8
|
+
declare const _default: TSESLint.RuleModule<MessageId, Options, import("../../rules").ESLintPluginDocs, TSESLint.RuleListener> & {
|
|
8
9
|
name: string;
|
|
9
10
|
};
|
|
10
11
|
export default _default;
|
|
@@ -45,10 +45,13 @@ exports.default = util.createRule({
|
|
|
45
45
|
description: 'Disallow passing a value-returning function in a position accepting a void function',
|
|
46
46
|
requiresTypeChecking: true,
|
|
47
47
|
},
|
|
48
|
+
hasSuggestions: true,
|
|
48
49
|
messages: {
|
|
49
50
|
asyncFunc: 'Async function used in a context where a void function is expected.',
|
|
50
51
|
nonVoidFunc: 'Value-returning function used in a context where a void function is expected.',
|
|
51
52
|
nonVoidReturn: 'Value returned in a context where a void return is expected.',
|
|
53
|
+
suggestAddVoidOp: 'Add a void operator to discard the return value.',
|
|
54
|
+
suggestWrapInAsyncIIFE: 'Wrap the function body in an async IIFE.',
|
|
52
55
|
},
|
|
53
56
|
schema: [
|
|
54
57
|
{
|
|
@@ -63,6 +66,7 @@ exports.default = util.createRule({
|
|
|
63
66
|
},
|
|
64
67
|
],
|
|
65
68
|
},
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
66
70
|
defaultOptions: [
|
|
67
71
|
{
|
|
68
72
|
allowReturnAny: false,
|
|
@@ -300,6 +304,7 @@ exports.default = util.createRule({
|
|
|
300
304
|
.getCallSignaturesOfType(actualType)
|
|
301
305
|
.map(signature => signature.getReturnType())
|
|
302
306
|
.flatMap(returnType => tsutils.unionConstituents(returnType))
|
|
307
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-assignment
|
|
303
308
|
.every(type => tsutils.isTypeFlagSet(type, allowedReturnType))) {
|
|
304
309
|
// The function is already void.
|
|
305
310
|
return;
|
|
@@ -324,20 +329,55 @@ exports.default = util.createRule({
|
|
|
324
329
|
}
|
|
325
330
|
if (funcNode.async) {
|
|
326
331
|
// The provided function is an async function.
|
|
327
|
-
|
|
332
|
+
if (funcNode.body.type !== utils_1.AST_NODE_TYPES.BlockStatement) {
|
|
333
|
+
// This async function is an arrow function shorthand without braces.
|
|
334
|
+
return context.report({
|
|
335
|
+
loc: util.getFunctionHeadLoc(funcNode, sourceCode),
|
|
336
|
+
messageId: 'asyncFunc',
|
|
337
|
+
suggest: utils_1.ASTUtils.hasSideEffect(funcNode.body, sourceCode)
|
|
338
|
+
? // This function has side effects, e.g. `async () => doSomething()`.
|
|
339
|
+
// Suggest removing the async keyword and adding a void operator.
|
|
340
|
+
[
|
|
341
|
+
{
|
|
342
|
+
messageId: 'suggestAddVoidOp',
|
|
343
|
+
fix: fixer => addVoidToArrowFix(fixer, funcNode),
|
|
344
|
+
},
|
|
345
|
+
]
|
|
346
|
+
: [],
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
// This async function has a block body.
|
|
350
|
+
// Suggest wrapping its body in an async IIFE.
|
|
328
351
|
return context.report({
|
|
329
352
|
loc: util.getFunctionHeadLoc(funcNode, sourceCode),
|
|
330
|
-
messageId:
|
|
353
|
+
messageId: 'asyncFunc',
|
|
354
|
+
suggest: [
|
|
355
|
+
{
|
|
356
|
+
messageId: 'suggestWrapInAsyncIIFE',
|
|
357
|
+
fix: fixer => wrapInAsyncIIFEFix(fixer, funcNode),
|
|
358
|
+
},
|
|
359
|
+
],
|
|
331
360
|
});
|
|
332
361
|
}
|
|
362
|
+
// This function is a regular or arrow sync function.
|
|
333
363
|
if (funcNode.body.type !== utils_1.AST_NODE_TYPES.BlockStatement) {
|
|
334
|
-
//
|
|
364
|
+
// This function is an arrow function shorthand without braces.
|
|
335
365
|
return context.report({
|
|
336
366
|
node: funcNode.body,
|
|
337
|
-
messageId:
|
|
367
|
+
messageId: 'nonVoidReturn',
|
|
368
|
+
suggest: utils_1.ASTUtils.hasSideEffect(funcNode.body, sourceCode)
|
|
369
|
+
? // This function has side effects, e.g. `() => doSomething()`.
|
|
370
|
+
// Suggest adding a void operator.
|
|
371
|
+
[
|
|
372
|
+
{
|
|
373
|
+
messageId: 'suggestAddVoidOp',
|
|
374
|
+
fix: fixer => addVoidToArrowFix(fixer, funcNode),
|
|
375
|
+
},
|
|
376
|
+
]
|
|
377
|
+
: [],
|
|
338
378
|
});
|
|
339
379
|
}
|
|
340
|
-
//
|
|
380
|
+
// This function is a regular or arrow sync function with a block body.
|
|
341
381
|
// Check return type annotation.
|
|
342
382
|
if (funcNode.returnType != null) {
|
|
343
383
|
// The provided function has an explicit return type annotation.
|
|
@@ -358,6 +398,7 @@ exports.default = util.createRule({
|
|
|
358
398
|
continue;
|
|
359
399
|
}
|
|
360
400
|
const returnType = checker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(statement.argument));
|
|
401
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-assignment
|
|
361
402
|
if (tsutils.isTypeFlagSet(returnType, allowedReturnType)) {
|
|
362
403
|
// Only visit return statements with invalid type.
|
|
363
404
|
continue;
|
|
@@ -373,5 +414,59 @@ exports.default = util.createRule({
|
|
|
373
414
|
}
|
|
374
415
|
// No invalid returns found. The function is allowed.
|
|
375
416
|
}
|
|
417
|
+
/**
|
|
418
|
+
* Removes the async keyword and replaces the return type with void.
|
|
419
|
+
*/
|
|
420
|
+
function* makeSyncFuncFix(fixer, funcNode) {
|
|
421
|
+
if (funcNode.async) {
|
|
422
|
+
// Remove async keyword
|
|
423
|
+
const funcHeadNode = funcNode.parent.type === utils_1.AST_NODE_TYPES.Property ||
|
|
424
|
+
funcNode.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition
|
|
425
|
+
? funcNode.parent
|
|
426
|
+
: funcNode;
|
|
427
|
+
const asyncToken = util.nullThrows(sourceCode.getFirstToken(funcHeadNode, {
|
|
428
|
+
filter: token => token.value === 'async',
|
|
429
|
+
}), util.NullThrowsReasons.MissingToken('async keyword', funcNode.type));
|
|
430
|
+
yield fixer.remove(asyncToken);
|
|
431
|
+
}
|
|
432
|
+
// Replace return type with void
|
|
433
|
+
if (funcNode.returnType != null) {
|
|
434
|
+
yield fixer.replaceText(funcNode.returnType.typeAnnotation, 'void');
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Makes the function sync and adds a void operator to the arrow shorthand body.
|
|
439
|
+
*/
|
|
440
|
+
function* addVoidToArrowFix(fixer, funcNode) {
|
|
441
|
+
yield* makeSyncFuncFix(fixer, funcNode);
|
|
442
|
+
// Add void operator
|
|
443
|
+
yield util.getWrappingFixer({
|
|
444
|
+
node: funcNode.body,
|
|
445
|
+
sourceCode,
|
|
446
|
+
wrap: code => `void ${code}`,
|
|
447
|
+
})(fixer);
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Makes the function sync and wraps the body in an inner async IIFE.
|
|
451
|
+
*/
|
|
452
|
+
function* wrapInAsyncIIFEFix(fixer, funcNode) {
|
|
453
|
+
yield* makeSyncFuncFix(fixer, funcNode);
|
|
454
|
+
// Wrap body in async IIFE.
|
|
455
|
+
// This preserves the node kind (normal/arrow) for the _outer_ function
|
|
456
|
+
// and uses an arrow function for the _inner_ function,
|
|
457
|
+
// so that `this` will always refer to the same value as before.
|
|
458
|
+
if (funcNode.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression) {
|
|
459
|
+
const arrowToken = util.nullThrows(sourceCode.getTokenBefore(funcNode.body, {
|
|
460
|
+
filter: token => token.value === '=>',
|
|
461
|
+
}), util.NullThrowsReasons.MissingToken('arrow token', 'before arrow function body'));
|
|
462
|
+
yield fixer.insertTextAfter(arrowToken, ' void (async () =>');
|
|
463
|
+
yield fixer.insertTextAfter(funcNode, ')()');
|
|
464
|
+
}
|
|
465
|
+
else {
|
|
466
|
+
yield fixer.insertTextBefore(funcNode.body, '{ (async () => ');
|
|
467
|
+
yield fixer.insertTextAfter(funcNode.body, ')(); }');
|
|
468
|
+
}
|
|
469
|
+
}
|
|
376
470
|
},
|
|
377
471
|
});
|
|
472
|
+
//# sourceMappingURL=strict-void-return.js.map
|
package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js
CHANGED
|
@@ -76,6 +76,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
76
76
|
},
|
|
77
77
|
],
|
|
78
78
|
},
|
|
79
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
79
80
|
defaultOptions: [
|
|
80
81
|
{
|
|
81
82
|
allowDefaultCaseForExhaustiveSwitch: true,
|
|
@@ -140,7 +141,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
140
141
|
return {
|
|
141
142
|
containsNonLiteralType,
|
|
142
143
|
defaultCase: defaultCase ?? getCommentDefaultCase(node),
|
|
143
|
-
missingLiteralBranchTypes,
|
|
144
|
+
missingLiteralBranchTypes: missingLiteralBranchTypes.sort((a, b) => typeToString(a).localeCompare(typeToString(b))),
|
|
144
145
|
symbolName,
|
|
145
146
|
};
|
|
146
147
|
}
|
|
@@ -289,3 +290,4 @@ function doesTypeContainNonLiteralType(type) {
|
|
|
289
290
|
.intersectionConstituents(type)
|
|
290
291
|
.every(subType => !isTypeLiteralLikeType(subType)));
|
|
291
292
|
}
|
|
293
|
+
//# sourceMappingURL=switch-exhaustiveness-check.js.map
|
|
@@ -37,6 +37,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
37
37
|
},
|
|
38
38
|
],
|
|
39
39
|
},
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
40
41
|
defaultOptions: [
|
|
41
42
|
{
|
|
42
43
|
lib: 'always',
|
|
@@ -72,7 +73,10 @@ exports.default = (0, util_1.createRule)({
|
|
|
72
73
|
}
|
|
73
74
|
programNode = node;
|
|
74
75
|
const referenceRegExp = /^\/\s*<reference\s*(types|path|lib)\s*=\s*["|'](.*)["|']/;
|
|
75
|
-
const
|
|
76
|
+
const firstToken = context.sourceCode.getFirstToken(programNode);
|
|
77
|
+
const commentsBefore = firstToken
|
|
78
|
+
? context.sourceCode.getCommentsBefore(firstToken)
|
|
79
|
+
: context.sourceCode.getAllComments();
|
|
76
80
|
commentsBefore.forEach(comment => {
|
|
77
81
|
if (comment.type !== utils_1.AST_TOKEN_TYPES.Line) {
|
|
78
82
|
return;
|
|
@@ -108,3 +112,4 @@ exports.default = (0, util_1.createRule)({
|
|
|
108
112
|
};
|
|
109
113
|
},
|
|
110
114
|
});
|
|
115
|
+
//# sourceMappingURL=triple-slash-reference.js.map
|
|
@@ -70,6 +70,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
70
70
|
},
|
|
71
71
|
],
|
|
72
72
|
},
|
|
73
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
73
74
|
defaultOptions: [
|
|
74
75
|
{
|
|
75
76
|
[OptionKeys.ArrayDestructuring]: false,
|
|
@@ -237,3 +238,4 @@ exports.default = (0, util_1.createRule)({
|
|
|
237
238
|
};
|
|
238
239
|
},
|
|
239
240
|
});
|
|
241
|
+
//# sourceMappingURL=typedef.js.map
|
|
@@ -90,6 +90,19 @@ const SUPPORTED_GLOBAL_TYPES = [
|
|
|
90
90
|
'Math',
|
|
91
91
|
'JSON',
|
|
92
92
|
];
|
|
93
|
+
/**
|
|
94
|
+
* Methods on instances of built-in classes that are defined by the ECMAScript
|
|
95
|
+
* spec as *bound* to their instance (i.e. they are safe to call without their
|
|
96
|
+
* receiver), but whose TypeScript declarations don't model that binding - they
|
|
97
|
+
* are declared as plain methods that would require a `this` value.
|
|
98
|
+
*
|
|
99
|
+
* For example, `Intl.Collator.prototype.compare` is defined as a bound getter
|
|
100
|
+
* function per the ECMA-402 spec:
|
|
101
|
+
* https://tc39.es/ecma402/#sec-intl.collator.prototype.compare
|
|
102
|
+
* ...but `lib.es5.d.ts` declares it as a regular method, so this rule would
|
|
103
|
+
* otherwise incorrectly flag usages such as `array.sort(collator.compare)`.
|
|
104
|
+
*/
|
|
105
|
+
const nativelyBoundInstanceMethods = new Set(['Collator.compare']);
|
|
93
106
|
const isNotImported = (symbol, currentSourceFile) => {
|
|
94
107
|
const { valueDeclaration } = symbol;
|
|
95
108
|
if (!valueDeclaration) {
|
|
@@ -99,6 +112,18 @@ const isNotImported = (symbol, currentSourceFile) => {
|
|
|
99
112
|
return (!!currentSourceFile &&
|
|
100
113
|
currentSourceFile !== valueDeclaration.getSourceFile());
|
|
101
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Returns `true` if `propertyName` is a member of a built-in class instance
|
|
117
|
+
* that is defined by the spec as bound to that instance (see
|
|
118
|
+
* `nativelyBoundInstanceMethods` above).
|
|
119
|
+
*/
|
|
120
|
+
function isSpecBoundBuiltinMethod(program, objectType, propertyName) {
|
|
121
|
+
const symbol = objectType.getSymbol();
|
|
122
|
+
if (!symbol || !(0, util_1.isSymbolFromDefaultLibrary)(program, symbol)) {
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
125
|
+
return nativelyBoundInstanceMethods.has(`${symbol.getName()}.${propertyName}`);
|
|
126
|
+
}
|
|
102
127
|
const BASE_MESSAGE = [
|
|
103
128
|
`A method that is not declared with \`this: void\` may cause unintentional scoping of \`this\` when separated from its object.`,
|
|
104
129
|
`Consider using an arrow function or explicitly \`.bind()\`ing the method to avoid calling the method with an unintended \`this\` value. `,
|
|
@@ -129,6 +154,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
129
154
|
},
|
|
130
155
|
],
|
|
131
156
|
},
|
|
157
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8, see #12842
|
|
132
158
|
defaultOptions: [
|
|
133
159
|
{
|
|
134
160
|
ignoreStatic: false,
|
|
@@ -196,6 +222,12 @@ exports.default = (0, util_1.createRule)({
|
|
|
196
222
|
return true;
|
|
197
223
|
}
|
|
198
224
|
}
|
|
225
|
+
if (property.type === utils_1.AST_NODE_TYPES.Identifier) {
|
|
226
|
+
const objectType = services.getTypeAtLocation(object);
|
|
227
|
+
if (isSpecBoundBuiltinMethod(services.program, objectType, property.name)) {
|
|
228
|
+
return true;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
199
231
|
// if `${object.name}.${property.name}` doesn't match any of
|
|
200
232
|
// the nativelyBoundMembers, then we fallback to type-level checks
|
|
201
233
|
return ((0, util_1.isBuiltinSymbolLike)(services.program, services.getTypeAtLocation(object), SUPPORTED_GLOBAL_TYPES) &&
|
|
@@ -279,19 +311,13 @@ function checkIfMethod(symbol, ignoreStatic) {
|
|
|
279
311
|
return { dangerous: false };
|
|
280
312
|
}
|
|
281
313
|
switch (valueDeclaration.kind) {
|
|
282
|
-
case ts.SyntaxKind.
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
case ts.SyntaxKind.PropertyAssignment: {
|
|
288
|
-
const assignee = valueDeclaration.initializer;
|
|
289
|
-
if (assignee.kind !== ts.SyntaxKind.FunctionExpression) {
|
|
290
|
-
return {
|
|
291
|
-
dangerous: false,
|
|
292
|
-
};
|
|
314
|
+
case ts.SyntaxKind.PropertyAssignment:
|
|
315
|
+
case ts.SyntaxKind.PropertyDeclaration: {
|
|
316
|
+
const { initializer } = valueDeclaration;
|
|
317
|
+
if (!initializer || !ts.isFunctionExpression(initializer)) {
|
|
318
|
+
return { dangerous: false };
|
|
293
319
|
}
|
|
294
|
-
return checkMethod(
|
|
320
|
+
return checkMethod(initializer, ignoreStatic);
|
|
295
321
|
}
|
|
296
322
|
case ts.SyntaxKind.MethodDeclaration:
|
|
297
323
|
case ts.SyntaxKind.MethodSignature: {
|
|
@@ -359,3 +385,4 @@ function isSafeUse(node) {
|
|
|
359
385
|
}
|
|
360
386
|
return false;
|
|
361
387
|
}
|
|
388
|
+
//# sourceMappingURL=unbound-method.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type MessageIds = 'omittingRestParameter' | 'omittingSingleParameter' | 'singleParameterDifference';
|
|
1
|
+
export type MessageIds = 'allParametersAreSame' | 'omittingRestParameter' | 'omittingSingleParameter' | 'singleParameterDifference';
|
|
2
2
|
export type Options = [
|
|
3
3
|
{
|
|
4
4
|
ignoreDifferentlyNamedParameters?: boolean;
|