xo 0.52.4 → 0.53.0
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/cli.js +1 -0
- package/node_modules/@types/semver/LICENSE +21 -0
- package/node_modules/@types/semver/README.md +16 -0
- package/node_modules/@types/semver/classes/comparator.d.ts +17 -0
- package/node_modules/@types/semver/classes/range.d.ts +21 -0
- package/node_modules/@types/semver/classes/semver.d.ts +62 -0
- package/node_modules/@types/semver/functions/clean.d.ts +8 -0
- package/node_modules/@types/semver/functions/cmp.d.ts +16 -0
- package/node_modules/@types/semver/functions/coerce.d.ts +12 -0
- package/node_modules/@types/semver/functions/compare-build.d.ts +21 -0
- package/node_modules/@types/semver/functions/compare-loose.d.ts +5 -0
- package/node_modules/@types/semver/functions/compare.d.ts +20 -0
- package/node_modules/@types/semver/functions/diff.d.ts +9 -0
- package/node_modules/@types/semver/functions/eq.d.ts +9 -0
- package/node_modules/@types/semver/functions/gt.d.ts +9 -0
- package/node_modules/@types/semver/functions/gte.d.ts +9 -0
- package/node_modules/@types/semver/functions/inc.d.ts +15 -0
- package/node_modules/@types/semver/functions/lt.d.ts +9 -0
- package/node_modules/@types/semver/functions/lte.d.ts +8 -0
- package/node_modules/@types/semver/functions/major.d.ts +9 -0
- package/node_modules/@types/semver/functions/minor.d.ts +9 -0
- package/node_modules/@types/semver/functions/neq.d.ts +9 -0
- package/node_modules/@types/semver/functions/parse.d.ts +12 -0
- package/node_modules/@types/semver/functions/patch.d.ts +9 -0
- package/node_modules/@types/semver/functions/prerelease.d.ts +12 -0
- package/node_modules/@types/semver/functions/rcompare.d.ts +15 -0
- package/node_modules/@types/semver/functions/rsort.d.ts +9 -0
- package/node_modules/@types/semver/functions/satisfies.d.ts +14 -0
- package/node_modules/@types/semver/functions/sort.d.ts +9 -0
- package/node_modules/@types/semver/functions/valid.d.ts +11 -0
- package/node_modules/@types/semver/index.d.ts +136 -0
- package/node_modules/@types/semver/internals/identifiers.d.ts +13 -0
- package/node_modules/@types/semver/package.json +50 -0
- package/node_modules/@types/semver/preload.d.ts +2 -0
- package/node_modules/@types/semver/ranges/gtr.d.ts +14 -0
- package/node_modules/@types/semver/ranges/intersects.d.ts +13 -0
- package/node_modules/@types/semver/ranges/ltr.d.ts +14 -0
- package/node_modules/@types/semver/ranges/max-satisfying.d.ts +14 -0
- package/node_modules/@types/semver/ranges/min-satisfying.d.ts +14 -0
- package/node_modules/@types/semver/ranges/min-version.d.ts +10 -0
- package/node_modules/@types/semver/ranges/outside.d.ts +15 -0
- package/node_modules/@types/semver/ranges/simplify.d.ts +14 -0
- package/node_modules/@types/semver/ranges/subset.d.ts +9 -0
- package/node_modules/@types/semver/ranges/to-comparators.d.ts +9 -0
- package/node_modules/@types/semver/ranges/valid.d.ts +12 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js +2 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +99 -24
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +4 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +29 -10
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +4 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +19 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +29 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js +14 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js +11 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +51 -11
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +1 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +4 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js +78 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +0 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +167 -68
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +2 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +245 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/TEMPLATE.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/adjacent-overload-signatures.md +5 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.md +4 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.md +5 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.md +3 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.md +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.md +4 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-generic-constructors.md +3 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.md +1 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.md +12 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.md +4 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.md +7 -13
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md +47 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md +7 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.md +10 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.md +3 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-delimiter-style.md +7 -60
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md +19 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.md +6 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md +29 -30
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.md +12 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md +4 -2
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.md +4 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-enum-values.md +5 -2
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dynamic-delete.md +4 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.md +5 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.md +13 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-non-null-assertion.md +4 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.md +4 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.md +2 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-for-in-array.md +26 -18
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implicit-any-catch.md +1 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.md +1 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.md +12 -43
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.md +6 -13
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-meaningless-void-operator.md +8 -21
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-new.md +13 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-promises.md +53 -91
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.md +6 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.md +3 -13
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md +4 -27
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md +14 -13
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-parameter-properties.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redundant-type-constituents.md +1 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-require-imports.md +12 -15
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.md +9 -15
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-throw-literal.md +1 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md +15 -14
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.md +3 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-qualifier.md +12 -46
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-arguments.md +22 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md +4 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-constraint.md +6 -20
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-argument.md +10 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.md +9 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.md +6 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-declaration-merging.md +54 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.md +5 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.md +9 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-empty-export.md +4 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-var-requires.md +6 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/non-nullable-type-assertion-style.md +7 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/parameter-properties.md +3 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.md +7 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.md +5 -23
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-for-of.md +15 -16
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md +22 -22
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-includes.md +28 -30
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.md +12 -13
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-namespace-keyword.md +27 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.md +6 -54
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.md +21 -49
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md +1 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.md +3 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.md +6 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-regexp-exec.md +6 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-return-this-type.md +10 -25
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-string-starts-ends-with.md +10 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.md +5 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.md +5 -14
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-plus-operands.md +18 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md +9 -2
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-constituents.md +101 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-union-intersection-members.md +8 -16
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md +0 -2
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.md +15 -24
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/triple-slash-reference.md +4 -2
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.md +5 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unbound-method.md +7 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.md +5 -3
- package/node_modules/@typescript-eslint/eslint-plugin/package.json +7 -5
- package/node_modules/@typescript-eslint/parser/README.md +2 -0
- package/node_modules/@typescript-eslint/parser/package.json +5 -5
- package/node_modules/@typescript-eslint/scope-manager/package.json +5 -5
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +3 -0
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/package.json +5 -5
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts +3 -3
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +3 -3
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/package.json +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ast-converter.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createDefaultProgram.d.ts +3 -6
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createIsolatedProgram.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createProjectProgram.d.ts +4 -6
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createSourceFile.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createWatchProgram.d.ts +4 -7
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts +5 -4
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/useProvidedPrograms.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/createParseSettings.d.ts +4 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/index.d.ts +102 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/inferSingleRun.d.ts +15 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/warnAboutTSVersion.d.ts +3 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts +0 -26
- package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js +8 -8
- package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts +3 -6
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js +13 -15
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js +7 -7
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts +4 -6
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +51 -38
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js +4 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.d.ts +4 -7
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js +21 -22
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +5 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +7 -7
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js +4 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts +4 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +145 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts +102 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js +3 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts +15 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js +53 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts +3 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +68 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +0 -26
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +32 -388
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -5
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/batchedSingleLineTests.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/index.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/RuleTester.d.ts +48 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +17 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts +21 -17
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts +49 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js +238 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js.map +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +17 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.js +52 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.js.map +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts +16 -9
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/package.json +9 -6
- package/node_modules/@typescript-eslint/visitor-keys/package.json +3 -3
- package/node_modules/eslint-config-xo-typescript/index.js +7 -1
- package/node_modules/eslint-config-xo-typescript/package.json +5 -5
- package/node_modules/natural-compare-lite/README.md +126 -0
- package/node_modules/natural-compare-lite/index.js +57 -0
- package/node_modules/natural-compare-lite/package.json +42 -0
- package/node_modules/semver/classes/range.js +3 -0
- package/node_modules/semver/index.js +81 -41
- package/node_modules/{lru-cache → semver/node_modules/lru-cache}/LICENSE +0 -0
- package/node_modules/{lru-cache → semver/node_modules/lru-cache}/README.md +0 -0
- package/node_modules/{lru-cache → semver/node_modules/lru-cache}/index.js +0 -0
- package/node_modules/{lru-cache → semver/node_modules/lru-cache}/package.json +0 -0
- package/node_modules/semver/package.json +21 -10
- package/package.json +24 -24
- package/readme.md +1 -1
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleTester.d.ts +0 -18
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleTester.d.ts +0 -18
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleTester.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleTester.js +0 -133
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleTester.js.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as semver from 'semver';
|
|
2
|
+
interface SemverVersionConstraint {
|
|
3
|
+
readonly range: string;
|
|
4
|
+
readonly options?: Parameters<typeof semver.satisfies>[2];
|
|
5
|
+
}
|
|
6
|
+
declare type AtLeastVersionConstraint = `${number}` | `${number}.${number}` | `${number}.${number}.${number}` | `${number}.${number}.${number}-${string}`;
|
|
7
|
+
declare type VersionConstraint = SemverVersionConstraint | AtLeastVersionConstraint;
|
|
8
|
+
interface DependencyConstraint {
|
|
9
|
+
/**
|
|
10
|
+
* Passing a string for the value is shorthand for a '>=' constraint
|
|
11
|
+
*/
|
|
12
|
+
readonly [packageName: string]: VersionConstraint;
|
|
13
|
+
}
|
|
14
|
+
declare function satisfiesAllDependencyConstraints(dependencyConstraints: DependencyConstraint | undefined): boolean;
|
|
15
|
+
export { satisfiesAllDependencyConstraints };
|
|
16
|
+
export { DependencyConstraint };
|
|
17
|
+
//# sourceMappingURL=dependencyConstraints.d.ts.map
|
|
@@ -105,6 +105,11 @@ interface TestCaseError<TMessageIds extends string> {
|
|
|
105
105
|
*/
|
|
106
106
|
readonly type?: AST_NODE_TYPES | AST_TOKEN_TYPES;
|
|
107
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* @param text a string describing the rule
|
|
110
|
+
* @param callback the test callback
|
|
111
|
+
*/
|
|
112
|
+
declare type RuleTesterTestFrameworkFunction = (text: string, callback: () => void) => void;
|
|
108
113
|
interface RunTests<TMessageIds extends string, TOptions extends Readonly<unknown[]>> {
|
|
109
114
|
readonly valid: readonly (ValidTestCase<TOptions> | string)[];
|
|
110
115
|
readonly invalid: readonly InvalidTestCase<TMessageIds, TOptions>[];
|
|
@@ -126,29 +131,28 @@ declare class RuleTesterBase {
|
|
|
126
131
|
* @param test The collection of tests to run.
|
|
127
132
|
*/
|
|
128
133
|
run<TMessageIds extends string, TOptions extends Readonly<unknown[]>>(ruleName: string, rule: RuleModule<TMessageIds, TOptions>, tests: RunTests<TMessageIds, TOptions>): void;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
134
|
+
/*
|
|
135
|
+
* If you supply a value to this property, the rule tester will call this instead of using the version defined on
|
|
136
|
+
* the global namespace.
|
|
137
|
+
*/
|
|
138
|
+
static describe: RuleTesterTestFrameworkFunction;
|
|
139
|
+
/*
|
|
140
|
+
* If you supply a value to this property, the rule tester will call this instead of using the version defined on
|
|
141
|
+
* the global namespace.
|
|
142
|
+
*/
|
|
143
|
+
static it: RuleTesterTestFrameworkFunction;
|
|
144
|
+
/*
|
|
145
|
+
* If you supply a value to this property, the rule tester will call this instead of using the version defined on
|
|
146
|
+
* the global namespace.
|
|
147
|
+
*/
|
|
148
|
+
static itOnly: RuleTesterTestFrameworkFunction;
|
|
143
149
|
/**
|
|
144
150
|
* Define a rule for one particular run of tests.
|
|
145
|
-
* @param name The name of the rule to define.
|
|
146
|
-
* @param rule The rule definition.
|
|
147
151
|
*/
|
|
148
152
|
defineRule<TMessageIds extends string, TOptions extends Readonly<unknown[]>>(name: string, rule: RuleModule<TMessageIds, TOptions> | RuleCreateFunction<TMessageIds, TOptions>): void;
|
|
149
153
|
}
|
|
150
154
|
declare const RuleTester_base: typeof RuleTesterBase;
|
|
151
155
|
declare class RuleTester extends RuleTester_base {
|
|
152
156
|
}
|
|
153
|
-
export { InvalidTestCase, SuggestionOutput, RuleTester, RuleTesterConfig, RunTests, TestCaseError, ValidTestCase, };
|
|
157
|
+
export { InvalidTestCase, SuggestionOutput, RuleTester, RuleTesterConfig, RuleTesterTestFrameworkFunction, RunTests, TestCaseError, ValidTestCase, };
|
|
154
158
|
//# sourceMappingURL=RuleTester.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InvalidTestCase, ValidTestCase } from '../
|
|
1
|
+
import type { InvalidTestCase, ValidTestCase } from '../eslint-utils/rule-tester/RuleTester';
|
|
2
2
|
/**
|
|
3
3
|
* Converts a batch of single line tests into a number of separate test cases.
|
|
4
4
|
* This makes it easier to write tests which use the same options.
|
package/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batchedSingleLineTests.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/batchedSingleLineTests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"batchedSingleLineTests.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/batchedSingleLineTests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACd,MAAM,wCAAwC,CAAC;AAEhD;;;;;;;GAOG;AACH,iBAAS,sBAAsB,CAAC,QAAQ,SAAS,QAAQ,CAAC,OAAO,EAAE,CAAC,EAClE,IAAI,EAAE,aAAa,CAAC,QAAQ,CAAC,GAC5B,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC;AAC7B;;;;;;;;;;GAUG;AACH,iBAAS,sBAAsB,CAC7B,WAAW,SAAS,MAAM,EAC1B,QAAQ,SAAS,QAAQ,CAAC,OAAO,EAAE,CAAC,EAEpC,IAAI,EAAE,eAAe,CAAC,WAAW,EAAE,QAAQ,CAAC,GAC3C,eAAe,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,CAAC;AAwC5C,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
package/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batchedSingleLineTests.js","sourceRoot":"","sources":["../../src/eslint-utils/batchedSingleLineTests.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"batchedSingleLineTests.js","sourceRoot":"","sources":["../../src/eslint-utils/batchedSingleLineTests.ts"],"names":[],"mappings":";;;AAiCA,SAAS,sBAAsB,CAI7B,OAAyE;IAEzE,gCAAgC;IAChC,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACzD,MAAM,MAAM,GACV,QAAQ,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM;QACnC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;QACnC,CAAC,CAAC,IAAI,CAAC;IACX,OAAO,OAAO,CAAC,IAAI;SAChB,IAAI,EAAE;SACN,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;QACf,MAAM,OAAO,GAAG,CAAC,GAAG,UAAU,CAAC;QAC/B,MAAM,MAAM,GACV,QAAQ,IAAI,OAAO;YACjB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC;YAChD,CAAC,CAAC,EAAE,CAAC;QACT,MAAM,SAAS,mCACV,OAAO,KACV,IAAI,EACJ,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,iCACnB,CAAC,KACJ,IAAI,EAAE,CAAC,IACP,CAAC,GACJ,CAAC;QACF,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,CAAC,CAAC,EAAE;YACf,uCACK,SAAS,KACZ,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,IACjB;SACH;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC,CAAC;AACP,CAAC;AAEQ,wDAAsB"}
|
|
@@ -3,7 +3,7 @@ export * from './batchedSingleLineTests';
|
|
|
3
3
|
export * from './getParserServices';
|
|
4
4
|
export * from './InferTypesFromRule';
|
|
5
5
|
export * from './RuleCreator';
|
|
6
|
-
export * from './RuleTester';
|
|
6
|
+
export * from './rule-tester/RuleTester';
|
|
7
7
|
export * from './deepMerge';
|
|
8
8
|
export * from './nullThrows';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
|
@@ -19,7 +19,7 @@ __exportStar(require("./batchedSingleLineTests"), exports);
|
|
|
19
19
|
__exportStar(require("./getParserServices"), exports);
|
|
20
20
|
__exportStar(require("./InferTypesFromRule"), exports);
|
|
21
21
|
__exportStar(require("./RuleCreator"), exports);
|
|
22
|
-
__exportStar(require("./RuleTester"), exports);
|
|
22
|
+
__exportStar(require("./rule-tester/RuleTester"), exports);
|
|
23
23
|
__exportStar(require("./deepMerge"), exports);
|
|
24
24
|
__exportStar(require("./nullThrows"), exports);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,2DAAyC;AACzC,sDAAoC;AACpC,uDAAqC;AACrC,gDAA8B;AAC9B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,2DAAyC;AACzC,sDAAoC;AACpC,uDAAqC;AACrC,gDAA8B;AAC9B,2DAAyC;AACzC,8CAA4B;AAC5B,+CAA6B"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { RuleModule } from '../../ts-eslint/Rule';
|
|
2
|
+
import * as BaseRuleTester from '../../ts-eslint/RuleTester';
|
|
3
|
+
import type { DependencyConstraint } from './dependencyConstraints';
|
|
4
|
+
declare const TS_ESLINT_PARSER = "@typescript-eslint/parser";
|
|
5
|
+
declare type RuleTesterConfig = Omit<BaseRuleTester.RuleTesterConfig, 'parser'> & {
|
|
6
|
+
parser: typeof TS_ESLINT_PARSER;
|
|
7
|
+
/**
|
|
8
|
+
* Constraints that must pass in the current environment for any tests to run
|
|
9
|
+
*/
|
|
10
|
+
dependencyConstraints?: DependencyConstraint;
|
|
11
|
+
};
|
|
12
|
+
interface InvalidTestCase<TMessageIds extends string, TOptions extends Readonly<unknown[]>> extends BaseRuleTester.InvalidTestCase<TMessageIds, TOptions> {
|
|
13
|
+
/**
|
|
14
|
+
* Constraints that must pass in the current environment for the test to run
|
|
15
|
+
*/
|
|
16
|
+
dependencyConstraints?: DependencyConstraint;
|
|
17
|
+
}
|
|
18
|
+
interface ValidTestCase<TOptions extends Readonly<unknown[]>> extends BaseRuleTester.ValidTestCase<TOptions> {
|
|
19
|
+
/**
|
|
20
|
+
* Constraints that must pass in the current environment for the test to run
|
|
21
|
+
*/
|
|
22
|
+
dependencyConstraints?: DependencyConstraint;
|
|
23
|
+
}
|
|
24
|
+
interface RunTests<TMessageIds extends string, TOptions extends Readonly<unknown[]>> {
|
|
25
|
+
readonly valid: readonly (ValidTestCase<TOptions> | string)[];
|
|
26
|
+
readonly invalid: readonly InvalidTestCase<TMessageIds, TOptions>[];
|
|
27
|
+
}
|
|
28
|
+
declare type AfterAll = (fn: () => void) => void;
|
|
29
|
+
declare class RuleTester extends BaseRuleTester.RuleTester {
|
|
30
|
+
#private;
|
|
31
|
+
/**
|
|
32
|
+
* If you supply a value to this property, the rule tester will call this instead of using the version defined on
|
|
33
|
+
* the global namespace.
|
|
34
|
+
*/
|
|
35
|
+
static get afterAll(): AfterAll;
|
|
36
|
+
static set afterAll(value: AfterAll | undefined);
|
|
37
|
+
private get staticThis();
|
|
38
|
+
constructor(baseOptions: RuleTesterConfig);
|
|
39
|
+
private getFilename;
|
|
40
|
+
run<TMessageIds extends string, TOptions extends Readonly<unknown[]>>(name: string, rule: RuleModule<TMessageIds, TOptions>, testsReadonly: RunTests<TMessageIds, TOptions>): void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Simple no-op tag to mark code samples as "should not format with prettier"
|
|
44
|
+
* for the internal/plugin-test-formatting lint rule
|
|
45
|
+
*/
|
|
46
|
+
declare function noFormat(strings: TemplateStringsArray, ...keys: string[]): string;
|
|
47
|
+
export { noFormat, RuleTester };
|
|
48
|
+
export type { InvalidTestCase, ValidTestCase, RunTests };
|
|
49
|
+
//# sourceMappingURL=RuleTester.d.ts.map
|
package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleTester.d.ts","sourceRoot":"","sources":["../../../src/eslint-utils/rule-tester/RuleTester.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAC;AAE7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAGpE,QAAA,MAAM,gBAAgB,8BAA8B,CAAC;AAGrD,aAAK,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAAG;IACxE,MAAM,EAAE,OAAO,gBAAgB,CAAC;IAChC;;OAEG;IACH,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;CAC9C,CAAC;AAEF,UAAU,eAAe,CACvB,WAAW,SAAS,MAAM,EAC1B,QAAQ,SAAS,QAAQ,CAAC,OAAO,EAAE,CAAC,CACpC,SAAQ,cAAc,CAAC,eAAe,CAAC,WAAW,EAAE,QAAQ,CAAC;IAC7D;;OAEG;IACH,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;CAC9C;AACD,UAAU,aAAa,CAAC,QAAQ,SAAS,QAAQ,CAAC,OAAO,EAAE,CAAC,CAC1D,SAAQ,cAAc,CAAC,aAAa,CAAC,QAAQ,CAAC;IAC9C;;OAEG;IACH,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;CAC9C;AACD,UAAU,QAAQ,CAChB,WAAW,SAAS,MAAM,EAC1B,QAAQ,SAAS,QAAQ,CAAC,OAAO,EAAE,CAAC;IAGpC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,EAAE,CAAC;IAC9D,QAAQ,CAAC,OAAO,EAAE,SAAS,eAAe,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,CAAC;CACrE;AAED,aAAK,QAAQ,GAAG,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;AAezC,cAAM,UAAW,SAAQ,cAAc,CAAC,UAAU;;IAIhD;;;OAGG;IACH,MAAM,KAAK,QAAQ,IAAI,QAAQ,CAK9B;IACD,MAAM,KAAK,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS,EAE9C;IAED,OAAO,KAAK,UAAU,GAGrB;gBAEW,WAAW,EAAE,gBAAgB;IA8BzC,OAAO,CAAC,WAAW;IAoBnB,GAAG,CAAC,WAAW,SAAS,MAAM,EAAE,QAAQ,SAAS,QAAQ,CAAC,OAAO,EAAE,CAAC,EAClE,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,UAAU,CAAC,WAAW,EAAE,QAAQ,CAAC,EACvC,aAAa,EAAE,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,GAC7C,IAAI;CA2JR;AAED;;;GAGG;AACH,iBAAS,QAAQ,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAM1E;AAED,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AAChC,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,238 @@
|
|
|
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 (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
26
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
27
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
28
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
29
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
30
|
+
};
|
|
31
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
32
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
33
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
34
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
var _a, _RuleTester_baseOptions, _RuleTester_afterAll;
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.RuleTester = exports.noFormat = void 0;
|
|
42
|
+
const assert_1 = __importDefault(require("assert"));
|
|
43
|
+
const package_json_1 = require("eslint/package.json");
|
|
44
|
+
const path = __importStar(require("path"));
|
|
45
|
+
const semver = __importStar(require("semver"));
|
|
46
|
+
const BaseRuleTester = __importStar(require("../../ts-eslint/RuleTester"));
|
|
47
|
+
const deepMerge_1 = require("../deepMerge");
|
|
48
|
+
const dependencyConstraints_1 = require("./dependencyConstraints");
|
|
49
|
+
const TS_ESLINT_PARSER = '@typescript-eslint/parser';
|
|
50
|
+
const ERROR_MESSAGE = `Do not set the parser at the test level unless you want to use a parser other than ${TS_ESLINT_PARSER}`;
|
|
51
|
+
function isDescribeWithSkip(value) {
|
|
52
|
+
return (typeof value === 'object' &&
|
|
53
|
+
value != null &&
|
|
54
|
+
'skip' in value &&
|
|
55
|
+
typeof value.skip === 'function');
|
|
56
|
+
}
|
|
57
|
+
class RuleTester extends BaseRuleTester.RuleTester {
|
|
58
|
+
constructor(baseOptions) {
|
|
59
|
+
var _b, _c;
|
|
60
|
+
super(Object.assign(Object.assign({}, baseOptions), { parserOptions: Object.assign(Object.assign({}, baseOptions.parserOptions), { warnOnUnsupportedTypeScriptVersion: (_c = (_b = baseOptions.parserOptions) === null || _b === void 0 ? void 0 : _b.warnOnUnsupportedTypeScriptVersion) !== null && _c !== void 0 ? _c : false }),
|
|
61
|
+
// as of eslint 6 you have to provide an absolute path to the parser
|
|
62
|
+
// but that's not as clean to type, this saves us trying to manually enforce
|
|
63
|
+
// that contributors require.resolve everything
|
|
64
|
+
parser: require.resolve(baseOptions.parser) }));
|
|
65
|
+
_RuleTester_baseOptions.set(this, void 0);
|
|
66
|
+
__classPrivateFieldSet(this, _RuleTester_baseOptions, baseOptions, "f");
|
|
67
|
+
// make sure that the parser doesn't hold onto file handles between tests
|
|
68
|
+
// on linux (i.e. our CI env), there can be very a limited number of watch handles available
|
|
69
|
+
this.staticThis.afterAll(() => {
|
|
70
|
+
try {
|
|
71
|
+
// instead of creating a hard dependency, just use a soft require
|
|
72
|
+
// a bit weird, but if they're using this tooling, it'll be installed
|
|
73
|
+
const parser = require(TS_ESLINT_PARSER);
|
|
74
|
+
parser.clearCaches();
|
|
75
|
+
}
|
|
76
|
+
catch (_b) {
|
|
77
|
+
// ignored on purpose
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* If you supply a value to this property, the rule tester will call this instead of using the version defined on
|
|
83
|
+
* the global namespace.
|
|
84
|
+
*/
|
|
85
|
+
static get afterAll() {
|
|
86
|
+
var _b;
|
|
87
|
+
return ((_b = __classPrivateFieldGet(this, _a, "f", _RuleTester_afterAll)) !== null && _b !== void 0 ? _b : (typeof afterAll === 'function' ? afterAll : () => { }));
|
|
88
|
+
}
|
|
89
|
+
static set afterAll(value) {
|
|
90
|
+
__classPrivateFieldSet(this, _a, value, "f", _RuleTester_afterAll);
|
|
91
|
+
}
|
|
92
|
+
get staticThis() {
|
|
93
|
+
// the cast here is due to https://github.com/microsoft/TypeScript/issues/3841
|
|
94
|
+
return this.constructor;
|
|
95
|
+
}
|
|
96
|
+
getFilename(testOptions) {
|
|
97
|
+
var _b;
|
|
98
|
+
const resolvedOptions = (0, deepMerge_1.deepMerge)(__classPrivateFieldGet(this, _RuleTester_baseOptions, "f").parserOptions, testOptions);
|
|
99
|
+
const filename = `file.ts${((_b = resolvedOptions.ecmaFeatures) === null || _b === void 0 ? void 0 : _b.jsx) ? 'x' : ''}`;
|
|
100
|
+
if (resolvedOptions.project) {
|
|
101
|
+
return path.join(resolvedOptions.tsconfigRootDir != null
|
|
102
|
+
? resolvedOptions.tsconfigRootDir
|
|
103
|
+
: process.cwd(), filename);
|
|
104
|
+
}
|
|
105
|
+
return filename;
|
|
106
|
+
}
|
|
107
|
+
// as of eslint 6 you have to provide an absolute path to the parser
|
|
108
|
+
// If you don't do that at the test level, the test will fail somewhat cryptically...
|
|
109
|
+
// This is a lot more explicit
|
|
110
|
+
run(name, rule, testsReadonly) {
|
|
111
|
+
if (__classPrivateFieldGet(this, _RuleTester_baseOptions, "f").dependencyConstraints &&
|
|
112
|
+
!(0, dependencyConstraints_1.satisfiesAllDependencyConstraints)(__classPrivateFieldGet(this, _RuleTester_baseOptions, "f").dependencyConstraints)) {
|
|
113
|
+
if (isDescribeWithSkip(this.staticThis.describe)) {
|
|
114
|
+
// for frameworks like mocha or jest that have a "skip" version of their function
|
|
115
|
+
// we can provide a nice skipped test!
|
|
116
|
+
this.staticThis.describe.skip(name, () => {
|
|
117
|
+
this.staticThis.it('All tests skipped due to unsatisfied constructor dependency constraints', () => { });
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
// otherwise just declare an empty test
|
|
122
|
+
this.staticThis.describe(name, () => {
|
|
123
|
+
this.staticThis.it('All tests skipped due to unsatisfied constructor dependency constraints', () => {
|
|
124
|
+
// some frameworks error if there are no assertions
|
|
125
|
+
assert_1.default.equal(true, true);
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
// don't run any tests because we don't match the base constraint
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const tests = {
|
|
133
|
+
// standardize the valid tests as objects
|
|
134
|
+
valid: testsReadonly.valid.map(test => {
|
|
135
|
+
if (typeof test === 'string') {
|
|
136
|
+
return {
|
|
137
|
+
code: test,
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
return test;
|
|
141
|
+
}),
|
|
142
|
+
invalid: testsReadonly.invalid,
|
|
143
|
+
};
|
|
144
|
+
// convenience iterator to make it easy to loop all tests without a concat
|
|
145
|
+
const allTestsIterator = {
|
|
146
|
+
*[Symbol.iterator]() {
|
|
147
|
+
for (const test of tests.valid) {
|
|
148
|
+
yield test;
|
|
149
|
+
}
|
|
150
|
+
for (const test of tests.invalid) {
|
|
151
|
+
yield test;
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
/*
|
|
156
|
+
Automatically add a filename to the tests to enable type-aware tests to "just work".
|
|
157
|
+
This saves users having to verbosely and manually add the filename to every
|
|
158
|
+
single test case.
|
|
159
|
+
Hugely helps with the string-based valid test cases as it means they don't
|
|
160
|
+
need to be made objects!
|
|
161
|
+
*/
|
|
162
|
+
const addFilename = (test) => {
|
|
163
|
+
if (test.parser === TS_ESLINT_PARSER) {
|
|
164
|
+
throw new Error(ERROR_MESSAGE);
|
|
165
|
+
}
|
|
166
|
+
if (!test.filename) {
|
|
167
|
+
return Object.assign(Object.assign({}, test), { filename: this.getFilename(test.parserOptions) });
|
|
168
|
+
}
|
|
169
|
+
return test;
|
|
170
|
+
};
|
|
171
|
+
tests.valid = tests.valid.map(addFilename);
|
|
172
|
+
tests.invalid = tests.invalid.map(addFilename);
|
|
173
|
+
const hasOnly = (() => {
|
|
174
|
+
for (const test of allTestsIterator) {
|
|
175
|
+
if (test.only) {
|
|
176
|
+
return true;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return false;
|
|
180
|
+
})();
|
|
181
|
+
// if there is an `only: true` - don't apply constraints - assume that
|
|
182
|
+
// we are in "local development" mode rather than "CI validation" mode
|
|
183
|
+
if (!hasOnly) {
|
|
184
|
+
/*
|
|
185
|
+
Automatically skip tests that don't satisfy the dependency constraints.
|
|
186
|
+
*/
|
|
187
|
+
const hasConstraints = (() => {
|
|
188
|
+
for (const test of allTestsIterator) {
|
|
189
|
+
if (test.dependencyConstraints &&
|
|
190
|
+
Object.keys(test.dependencyConstraints).length > 0) {
|
|
191
|
+
return true;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
return false;
|
|
195
|
+
})();
|
|
196
|
+
if (hasConstraints) {
|
|
197
|
+
// The `only: boolean` test property was only added in ESLint v7.29.0.
|
|
198
|
+
if (semver.satisfies(package_json_1.version, '>=7.29.0')) {
|
|
199
|
+
/*
|
|
200
|
+
Mark all satisfactory tests as `only: true`, and all other tests as
|
|
201
|
+
`only: false`.
|
|
202
|
+
When multiple tests are marked as "only", test frameworks like jest and mocha
|
|
203
|
+
will run all of those tests and will just skip the other tests.
|
|
204
|
+
|
|
205
|
+
We do this instead of just omitting the tests entirely because it gives the
|
|
206
|
+
test framework the opportunity to log the test as skipped rather than the test
|
|
207
|
+
just disappearing.
|
|
208
|
+
*/
|
|
209
|
+
const maybeMarkAsOnly = (test) => {
|
|
210
|
+
return Object.assign(Object.assign({}, test), { only: (0, dependencyConstraints_1.satisfiesAllDependencyConstraints)(test.dependencyConstraints) });
|
|
211
|
+
};
|
|
212
|
+
tests.valid = tests.valid.map(maybeMarkAsOnly);
|
|
213
|
+
tests.invalid = tests.invalid.map(maybeMarkAsOnly);
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
// On older versions we just fallback to raw array filtering like SAVAGES
|
|
217
|
+
tests.valid = tests.valid.filter(test => (0, dependencyConstraints_1.satisfiesAllDependencyConstraints)(test.dependencyConstraints));
|
|
218
|
+
tests.invalid = tests.invalid.filter(test => (0, dependencyConstraints_1.satisfiesAllDependencyConstraints)(test.dependencyConstraints));
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
super.run(name, rule, tests);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
exports.RuleTester = RuleTester;
|
|
226
|
+
_a = RuleTester, _RuleTester_baseOptions = new WeakMap();
|
|
227
|
+
_RuleTester_afterAll = { value: void 0 };
|
|
228
|
+
/**
|
|
229
|
+
* Simple no-op tag to mark code samples as "should not format with prettier"
|
|
230
|
+
* for the internal/plugin-test-formatting lint rule
|
|
231
|
+
*/
|
|
232
|
+
function noFormat(strings, ...keys) {
|
|
233
|
+
const lastIndex = strings.length - 1;
|
|
234
|
+
return (strings.slice(0, lastIndex).reduce((p, s, i) => p + s + keys[i], '') +
|
|
235
|
+
strings[lastIndex]);
|
|
236
|
+
}
|
|
237
|
+
exports.noFormat = noFormat;
|
|
238
|
+
//# sourceMappingURL=RuleTester.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleTester.js","sourceRoot":"","sources":["../../../src/eslint-utils/rule-tester/RuleTester.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA4B;AAC5B,sDAA+D;AAC/D,2CAA6B;AAC7B,+CAAiC;AAKjC,2EAA6D;AAC7D,4CAAyC;AAEzC,mEAA4E;AAE5E,MAAM,gBAAgB,GAAG,2BAA2B,CAAC;AACrD,MAAM,aAAa,GAAG,sFAAsF,gBAAgB,EAAE,CAAC;AAqC/H,SAAS,kBAAkB,CACzB,KAAc;IAId,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,IAAI,IAAI;QACb,MAAM,IAAI,KAAK;QACf,OAAQ,KAAiC,CAAC,IAAI,KAAK,UAAU,CAC9D,CAAC;AACJ,CAAC;AAED,MAAM,UAAW,SAAQ,cAAc,CAAC,UAAU;IAuBhD,YAAY,WAA6B;;QACvC,KAAK,iCACA,WAAW,KACd,aAAa,kCACR,WAAW,CAAC,aAAa,KAC5B,kCAAkC,EAChC,MAAA,MAAA,WAAW,CAAC,aAAa,0CAAE,kCAAkC,mCAC7D,KAAK;YAET,oEAAoE;YACpE,4EAA4E;YAC5E,+CAA+C;YAC/C,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,IAC3C,CAAC;QAnCL,0CAAwC;QAqCtC,uBAAA,IAAI,2BAAgB,WAAW,MAAA,CAAC;QAEhC,yEAAyE;QACzE,4FAA4F;QAC5F,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,EAAE;YAC5B,IAAI;gBACF,iEAAiE;gBACjE,qEAAqE;gBACrE,MAAM,MA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 -0,0 +1,17 @@
|
|
|
1
|
+
import * as semver from 'semver';
|
|
2
|
+
interface SemverVersionConstraint {
|
|
3
|
+
readonly range: string;
|
|
4
|
+
readonly options?: Parameters<typeof semver.satisfies>[2];
|
|
5
|
+
}
|
|
6
|
+
declare type AtLeastVersionConstraint = `${number}` | `${number}.${number}` | `${number}.${number}.${number}` | `${number}.${number}.${number}-${string}`;
|
|
7
|
+
declare type VersionConstraint = SemverVersionConstraint | AtLeastVersionConstraint;
|
|
8
|
+
interface DependencyConstraint {
|
|
9
|
+
/**
|
|
10
|
+
* Passing a string for the value is shorthand for a '>=' constraint
|
|
11
|
+
*/
|
|
12
|
+
readonly [packageName: string]: VersionConstraint;
|
|
13
|
+
}
|
|
14
|
+
declare function satisfiesAllDependencyConstraints(dependencyConstraints: DependencyConstraint | undefined): boolean;
|
|
15
|
+
export { satisfiesAllDependencyConstraints };
|
|
16
|
+
export type { DependencyConstraint };
|
|
17
|
+
//# sourceMappingURL=dependencyConstraints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependencyConstraints.d.ts","sourceRoot":"","sources":["../../../src/eslint-utils/rule-tester/dependencyConstraints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,UAAU,uBAAuB;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3D;AACD,aAAK,wBAAwB,GACzB,GAAG,MAAM,EAAE,GACX,GAAG,MAAM,IAAI,MAAM,EAAE,GACrB,GAAG,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE,GAC/B,GAAG,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;AAC9C,aAAK,iBAAiB,GAAG,uBAAuB,GAAG,wBAAwB,CAAC;AAC5E,UAAU,oBAAoB;IAC5B;;OAEG;IACH,QAAQ,EAAE,WAAW,EAAE,MAAM,GAAG,iBAAiB,CAAC;CACnD;AA0BD,iBAAS,iCAAiC,CACxC,qBAAqB,EAAE,oBAAoB,GAAG,SAAS,GACtD,OAAO,CAcT;AAED,OAAO,EAAE,iCAAiC,EAAE,CAAC;AAC7C,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
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 (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.satisfiesAllDependencyConstraints = void 0;
|
|
27
|
+
const semver = __importStar(require("semver"));
|
|
28
|
+
const BASE_SATISFIES_OPTIONS = {
|
|
29
|
+
includePrerelease: true,
|
|
30
|
+
};
|
|
31
|
+
function satisfiesDependencyConstraint(packageName, constraintIn) {
|
|
32
|
+
const constraint = typeof constraintIn === 'string'
|
|
33
|
+
? {
|
|
34
|
+
range: `>=${constraintIn}`,
|
|
35
|
+
}
|
|
36
|
+
: constraintIn;
|
|
37
|
+
return semver.satisfies(require(`${packageName}/package.json`).version, constraint.range, typeof constraint.options === 'object'
|
|
38
|
+
? Object.assign(Object.assign({}, BASE_SATISFIES_OPTIONS), constraint.options) : constraint.options);
|
|
39
|
+
}
|
|
40
|
+
function satisfiesAllDependencyConstraints(dependencyConstraints) {
|
|
41
|
+
if (dependencyConstraints == null) {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
for (const [packageName, constraint] of Object.entries(dependencyConstraints)) {
|
|
45
|
+
if (!satisfiesDependencyConstraint(packageName, constraint)) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
exports.satisfiesAllDependencyConstraints = satisfiesAllDependencyConstraints;
|
|
52
|
+
//# sourceMappingURL=dependencyConstraints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependencyConstraints.js","sourceRoot":"","sources":["../../../src/eslint-utils/rule-tester/dependencyConstraints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAmBjC,MAAM,sBAAsB,GAAwB;IAClD,iBAAiB,EAAE,IAAI;CACxB,CAAC;AAEF,SAAS,6BAA6B,CACpC,WAAmB,EACnB,YAA0C;IAE1C,MAAM,UAAU,GACd,OAAO,YAAY,KAAK,QAAQ;QAC9B,CAAC,CAAC;YACE,KAAK,EAAE,KAAK,YAAY,EAAE;SAC3B;QACH,CAAC,CAAC,YAAY,CAAC;IAEnB,OAAO,MAAM,CAAC,SAAS,CACpB,OAAO,CAAC,GAAG,WAAW,eAAe,CAAyB,CAAC,OAAO,EACvE,UAAU,CAAC,KAAK,EAChB,OAAO,UAAU,CAAC,OAAO,KAAK,QAAQ;QACpC,CAAC,iCAAM,sBAAsB,GAAK,UAAU,CAAC,OAAO,EACpD,CAAC,CAAC,UAAU,CAAC,OAAO,CACvB,CAAC;AACJ,CAAC;AAED,SAAS,iCAAiC,CACxC,qBAAuD;IAEvD,IAAI,qBAAqB,IAAI,IAAI,EAAE;QACjC,OAAO,IAAI,CAAC;KACb;IAED,KAAK,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,OAAO,CACpD,qBAAqB,CACtB,EAAE;QACD,IAAI,CAAC,6BAA6B,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE;YAC3D,OAAO,KAAK,CAAC;SACd;KACF;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAEQ,8EAAiC"}
|
|
@@ -105,6 +105,11 @@ interface TestCaseError<TMessageIds extends string> {
|
|
|
105
105
|
*/
|
|
106
106
|
readonly type?: AST_NODE_TYPES | AST_TOKEN_TYPES;
|
|
107
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* @param text a string describing the rule
|
|
110
|
+
* @param callback the test callback
|
|
111
|
+
*/
|
|
112
|
+
declare type RuleTesterTestFrameworkFunction = (text: string, callback: () => void) => void;
|
|
108
113
|
interface RunTests<TMessageIds extends string, TOptions extends Readonly<unknown[]>> {
|
|
109
114
|
readonly valid: readonly (ValidTestCase<TOptions> | string)[];
|
|
110
115
|
readonly invalid: readonly InvalidTestCase<TMessageIds, TOptions>[];
|
|
@@ -129,26 +134,28 @@ declare class RuleTesterBase {
|
|
|
129
134
|
/**
|
|
130
135
|
* If you supply a value to this property, the rule tester will call this instead of using the version defined on
|
|
131
136
|
* the global namespace.
|
|
132
|
-
* @param text a string describing the rule
|
|
133
|
-
* @param callback the test callback
|
|
134
137
|
*/
|
|
135
|
-
static describe
|
|
138
|
+
static get describe(): RuleTesterTestFrameworkFunction;
|
|
139
|
+
static set describe(value: RuleTesterTestFrameworkFunction | undefined);
|
|
136
140
|
/**
|
|
137
141
|
* If you supply a value to this property, the rule tester will call this instead of using the version defined on
|
|
138
142
|
* the global namespace.
|
|
139
|
-
* @param text a string describing the test case
|
|
140
|
-
* @param callback the test callback
|
|
141
143
|
*/
|
|
142
|
-
static it
|
|
144
|
+
static get it(): RuleTesterTestFrameworkFunction;
|
|
145
|
+
static set it(value: RuleTesterTestFrameworkFunction | undefined);
|
|
146
|
+
/**
|
|
147
|
+
* If you supply a value to this property, the rule tester will call this instead of using the version defined on
|
|
148
|
+
* the global namespace.
|
|
149
|
+
*/
|
|
150
|
+
static get itOnly(): RuleTesterTestFrameworkFunction;
|
|
151
|
+
static set itOnly(value: RuleTesterTestFrameworkFunction | undefined);
|
|
143
152
|
/**
|
|
144
153
|
* Define a rule for one particular run of tests.
|
|
145
|
-
* @param name The name of the rule to define.
|
|
146
|
-
* @param rule The rule definition.
|
|
147
154
|
*/
|
|
148
155
|
defineRule<TMessageIds extends string, TOptions extends Readonly<unknown[]>>(name: string, rule: RuleModule<TMessageIds, TOptions> | RuleCreateFunction<TMessageIds, TOptions>): void;
|
|
149
156
|
}
|
|
150
157
|
declare const RuleTester_base: typeof RuleTesterBase;
|
|
151
158
|
declare class RuleTester extends RuleTester_base {
|
|
152
159
|
}
|
|
153
|
-
export { InvalidTestCase, SuggestionOutput, RuleTester, RuleTesterConfig, RunTests, TestCaseError, ValidTestCase, };
|
|
160
|
+
export { InvalidTestCase, SuggestionOutput, RuleTester, RuleTesterConfig, RuleTesterTestFrameworkFunction, RunTests, TestCaseError, ValidTestCase, };
|
|
154
161
|
//# sourceMappingURL=RuleTester.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleTester.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":"AAEA,O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":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":";;;AAAA,mCAAwD;AAyMxD,MAAM,UAAW,SAAS,mBAA0C;CAAG;AAKrE,gCAAU"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/utils",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.43.0",
|
|
4
4
|
"description": "Utilities for working with TypeScript + ESLint together",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -40,16 +40,19 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@types/json-schema": "^7.0.9",
|
|
43
|
-
"@
|
|
44
|
-
"@typescript-eslint/
|
|
45
|
-
"@typescript-eslint/
|
|
43
|
+
"@types/semver": "^7.3.12",
|
|
44
|
+
"@typescript-eslint/scope-manager": "5.43.0",
|
|
45
|
+
"@typescript-eslint/types": "5.43.0",
|
|
46
|
+
"@typescript-eslint/typescript-estree": "5.43.0",
|
|
46
47
|
"eslint-scope": "^5.1.1",
|
|
47
|
-
"eslint-utils": "^3.0.0"
|
|
48
|
+
"eslint-utils": "^3.0.0",
|
|
49
|
+
"semver": "^7.3.7"
|
|
48
50
|
},
|
|
49
51
|
"peerDependencies": {
|
|
50
52
|
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
|
51
53
|
},
|
|
52
54
|
"devDependencies": {
|
|
55
|
+
"@typescript-eslint/parser": "5.43.0",
|
|
53
56
|
"typescript": "*"
|
|
54
57
|
},
|
|
55
58
|
"funding": {
|
|
@@ -63,5 +66,5 @@
|
|
|
63
66
|
]
|
|
64
67
|
}
|
|
65
68
|
},
|
|
66
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "8af1b4d970438b27ea041717bddadc41af8fc72a"
|
|
67
70
|
}
|