xo 0.53.0 → 0.54.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/config/plugins.cjs +27 -4
- package/index.js +6 -11
- package/lib/options-manager.js +11 -58
- package/node_modules/@eslint-community/eslint-utils/README.md +37 -0
- package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/index.js +124 -12
- package/node_modules/@eslint-community/eslint-utils/index.js.map +1 -0
- package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/index.mjs +124 -11
- package/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -0
- package/node_modules/@eslint-community/eslint-utils/package.json +73 -0
- package/node_modules/{regexpp → @eslint-community/regexpp}/README.md +9 -10
- package/node_modules/@eslint-community/regexpp/index.d.ts +781 -0
- package/node_modules/{regexpp → @eslint-community/regexpp}/index.js +297 -262
- package/node_modules/@eslint-community/regexpp/index.js.map +1 -0
- package/node_modules/{regexpp → @eslint-community/regexpp}/index.mjs +297 -262
- package/node_modules/@eslint-community/regexpp/index.mjs.map +1 -0
- package/node_modules/{regexpp → @eslint-community/regexpp}/package.json +60 -64
- package/node_modules/@typescript-eslint/eslint-plugin/LICENSE +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/README.md +6 -92
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js +10 -2
- 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 +2 -1
- 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 +4 -2
- 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 +2 -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/ban-types.js +3 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js +158 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js +3 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.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-generic-constructors.js +17 -7
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +47 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +5 -11
- 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/explicit-function-return-type.js +22 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +12 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js +351 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js +53 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js +384 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +205 -39
- 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 +14 -13
- 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 +5 -0
- 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-utils/validator.js +6 -6
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +231 -198
- 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-confusing-void-expression.js +5 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +158 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +19 -16
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +45 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +79 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +15 -15
- 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-mixed-enums.js +196 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +3 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +6 -1
- 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-boolean-literal-compare.js +21 -31
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +22 -7
- 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-unnecessary-qualifier.js +4 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +9 -9
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +1 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +3 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +4 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +19 -1
- 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 +47 -11
- 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/prefer-readonly.js +2 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +3 -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/require-array-sort-compare.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +7 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +5 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js +5 -5
- 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/dist/rules/space-before-blocks.js +1 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js +2 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +46 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +20 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +2 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +27 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md +3 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md +3 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md +12 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.md +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md +9 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md +52 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md +12 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md +37 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md +181 -20
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md +7 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.md +61 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.md +75 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.md +88 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md +21 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md +5 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.md +18 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md +9 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md +6 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.md +7 -10
- package/node_modules/@typescript-eslint/eslint-plugin/package.json +13 -9
- package/node_modules/@typescript-eslint/parser/LICENSE +5 -5
- package/node_modules/@typescript-eslint/parser/README.md +6 -300
- package/node_modules/@typescript-eslint/parser/_ts3.4/dist/index.d.ts +4 -0
- package/node_modules/@typescript-eslint/parser/dist/index.d.ts +4 -0
- package/node_modules/@typescript-eslint/parser/dist/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/parser/dist/index.js +5 -1
- package/node_modules/@typescript-eslint/parser/dist/index.js.map +1 -1
- package/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/parser/dist/parser.js +15 -17
- package/node_modules/@typescript-eslint/parser/dist/parser.js.map +1 -1
- package/node_modules/@typescript-eslint/parser/package.json +6 -6
- package/node_modules/@typescript-eslint/scope-manager/LICENSE +1 -1
- package/node_modules/@typescript-eslint/scope-manager/README.md +5 -117
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +10 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +21 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +15 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +5 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +44 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +12 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +15 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +24 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +14 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +11 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +3 -105
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +2 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +7 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +14 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +2 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +43 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +4 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +14 -6
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts +2 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +10 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +17 -17
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +5 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/package.json +12 -12
- package/node_modules/@typescript-eslint/type-utils/LICENSE +1 -1
- package/node_modules/@typescript-eslint/type-utils/README.md +7 -10
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/containsAllTypesByName.d.ts +4 -2
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts +4 -2
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +12 -6
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +2 -4
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/package.json +6 -6
- package/node_modules/@typescript-eslint/types/LICENSE +1 -1
- package/node_modules/@typescript-eslint/types/README.md +6 -11
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts +90 -16
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/lib.d.ts +1 -1
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/parser-options.d.ts +9 -5
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +90 -16
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +3 -0
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/lib.d.ts +1 -1
- package/node_modules/@typescript-eslint/types/dist/lib.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +9 -5
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/package.json +6 -6
- package/node_modules/@typescript-eslint/typescript-estree/LICENSE +5 -5
- package/node_modules/@typescript-eslint/typescript-estree/README.md +6 -379
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/clear-caches.d.ts +10 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/describeFilePath.d.ts +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/{createWatchProgram.d.ts → getWatchProgramsForProjects.d.ts} +3 -4
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts +8 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/index.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/ExpiringCache.d.ts +17 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/createParseSettings.d.ts +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/index.d.ts +8 -3
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/resolveProjectList.d.ts +19 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts +23 -4
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/simple-traverse.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/estree-to-ts-node-types.d.ts +4 -1
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/ts-nodes.d.ts +4 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/version-check.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts +10 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +24 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +62 -16
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +1 -1
- 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 +1 -0
- 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/createProjectProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +7 -12
- 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/describeFilePath.d.ts +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +32 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/{createWatchProgram.d.ts → getWatchProgramsForProjects.d.ts} +3 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/{createWatchProgram.js → getWatchProgramsForProjects.js} +16 -20
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +8 -2
- 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 +15 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +3 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.js +2 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +18 -5
- package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts +17 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +62 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +22 -48
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +70 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts +8 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts +19 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +103 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +4 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +23 -4
- 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 +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 +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts +4 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts +4 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -6
- package/node_modules/@typescript-eslint/utils/LICENSE +1 -1
- package/node_modules/@typescript-eslint/utils/README.md +6 -23
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +4 -4
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +4 -4
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts +6 -6
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts +5 -5
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/helpers.d.ts +60 -6
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/predicates.d.ts +13 -1
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/RuleTester.d.ts +3 -3
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Rule.d.ts +6 -6
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts +5 -1
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +4 -4
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +2 -2
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +4 -4
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js +2 -2
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts +6 -6
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +7 -7
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts +5 -5
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js +3 -3
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts +60 -6
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts +13 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js +15 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts +3 -3
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js +40 -27
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +6 -6
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts +5 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/package.json +8 -8
- package/node_modules/@typescript-eslint/visitor-keys/LICENSE +1 -1
- package/node_modules/@typescript-eslint/visitor-keys/README.md +6 -9
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +63 -48
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +1 -1
- package/node_modules/@typescript-eslint/visitor-keys/package.json +4 -4
- package/node_modules/eslint-config-xo-typescript/index.js +8 -11
- package/node_modules/eslint-config-xo-typescript/package.json +5 -5
- package/node_modules/eslint-visitor-keys/README.md +1 -2
- package/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +38 -36
- package/node_modules/eslint-visitor-keys/lib/visitor-keys.js +38 -35
- package/node_modules/eslint-visitor-keys/package.json +16 -6
- package/node_modules/fastq/README.md +1 -1
- package/node_modules/fastq/index.d.ts +1 -1
- package/node_modules/fastq/package.json +1 -1
- package/node_modules/fastq/queue.js +6 -0
- package/node_modules/fastq/test/promise.js +27 -0
- package/node_modules/grapheme-splitter/LICENSE +22 -0
- package/node_modules/grapheme-splitter/README.md +111 -0
- package/node_modules/grapheme-splitter/index.d.ts +24 -0
- package/node_modules/grapheme-splitter/index.js +1743 -0
- package/node_modules/grapheme-splitter/package.json +34 -0
- package/node_modules/grapheme-splitter/tests/GraphemeBreakTest.txt +850 -0
- package/node_modules/grapheme-splitter/tests/grapheme_splitter_tests.js +83 -0
- package/node_modules/ignore/README.md +3 -3
- package/node_modules/ignore/index.js +24 -9
- package/node_modules/ignore/legacy.js +176 -135
- package/node_modules/ignore/package.json +13 -11
- package/package.json +19 -19
- package/readme.md +1 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js.map +0 -1
- package/node_modules/braces/CHANGELOG.md +0 -184
- package/node_modules/eslint-scope/CHANGELOG.md +0 -70
- package/node_modules/eslint-utils/README.md +0 -38
- package/node_modules/eslint-utils/index.js.map +0 -1
- package/node_modules/eslint-utils/index.mjs.map +0 -1
- package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/CHANGELOG.md +0 -36
- package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/LICENSE +0 -201
- package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/README.md +0 -98
- package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js +0 -81
- package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.json +0 -289
- package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/package.json +0 -39
- package/node_modules/eslint-utils/package.json +0 -78
- package/node_modules/glob-parent/CHANGELOG.md +0 -110
- package/node_modules/picomatch/CHANGELOG.md +0 -136
- package/node_modules/regexpp/index.d.ts +0 -248
- package/node_modules/regexpp/index.js.map +0 -1
- package/node_modules/regexpp/index.mjs.map +0 -1
- /package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/LICENSE +0 -0
- /package/node_modules/{regexpp → @eslint-community/regexpp}/LICENSE +0 -0
- /package/node_modules/{yallist → semver/node_modules/yallist}/LICENSE +0 -0
- /package/node_modules/{yallist → semver/node_modules/yallist}/README.md +0 -0
- /package/node_modules/{yallist → semver/node_modules/yallist}/iterator.js +0 -0
- /package/node_modules/{yallist → semver/node_modules/yallist}/package.json +0 -0
- /package/node_modules/{yallist → semver/node_modules/yallist}/yallist.js +0 -0
|
@@ -1,61 +1,66 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6
|
-
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
8
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
-
|
|
9
9
|
// A simple implementation of make-array
|
|
10
10
|
function makeArray(subject) {
|
|
11
11
|
return Array.isArray(subject) ? subject : [subject];
|
|
12
12
|
}
|
|
13
|
-
|
|
14
13
|
var EMPTY = '';
|
|
15
14
|
var SPACE = ' ';
|
|
16
15
|
var ESCAPE = '\\';
|
|
17
16
|
var REGEX_TEST_BLANK_LINE = /^\s+$/;
|
|
17
|
+
var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/;
|
|
18
18
|
var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
|
|
19
19
|
var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
|
|
20
|
-
var REGEX_SPLITALL_CRLF = /\r?\n/g;
|
|
20
|
+
var REGEX_SPLITALL_CRLF = /\r?\n/g;
|
|
21
|
+
// /foo,
|
|
21
22
|
// ./foo,
|
|
22
23
|
// ../foo,
|
|
23
24
|
// .
|
|
24
25
|
// ..
|
|
25
|
-
|
|
26
26
|
var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/;
|
|
27
27
|
var SLASH = '/';
|
|
28
|
-
var KEY_IGNORE = typeof Symbol !== 'undefined' ? Symbol["for"]('node-ignore')
|
|
29
|
-
/* istanbul ignore next */
|
|
30
|
-
: 'node-ignore';
|
|
31
28
|
|
|
29
|
+
// Do not use ternary expression here, since "istanbul ignore next" is buggy
|
|
30
|
+
var TMP_KEY_IGNORE = 'node-ignore';
|
|
31
|
+
/* istanbul ignore else */
|
|
32
|
+
if (typeof Symbol !== 'undefined') {
|
|
33
|
+
TMP_KEY_IGNORE = Symbol["for"]('node-ignore');
|
|
34
|
+
}
|
|
35
|
+
var KEY_IGNORE = TMP_KEY_IGNORE;
|
|
32
36
|
var define = function define(object, key, value) {
|
|
33
37
|
return Object.defineProperty(object, key, {
|
|
34
38
|
value: value
|
|
35
39
|
});
|
|
36
40
|
};
|
|
37
|
-
|
|
38
41
|
var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
|
|
39
|
-
|
|
40
42
|
var RETURN_FALSE = function RETURN_FALSE() {
|
|
41
43
|
return false;
|
|
42
|
-
};
|
|
43
|
-
// The cases are complicated, see test cases for details
|
|
44
|
-
|
|
44
|
+
};
|
|
45
45
|
|
|
46
|
+
// Sanitize the range of a regular expression
|
|
47
|
+
// The cases are complicated, see test cases for details
|
|
46
48
|
var sanitizeRange = function sanitizeRange(range) {
|
|
47
49
|
return range.replace(REGEX_REGEXP_RANGE, function (match, from, to) {
|
|
48
|
-
return from.charCodeAt(0) <= to.charCodeAt(0) ? match
|
|
50
|
+
return from.charCodeAt(0) <= to.charCodeAt(0) ? match
|
|
51
|
+
// Invalid range (out of order) which is ok for gitignore rules but
|
|
49
52
|
// fatal for JavaScript regular expression, so eliminate it.
|
|
50
53
|
: EMPTY;
|
|
51
54
|
});
|
|
52
|
-
};
|
|
53
|
-
|
|
55
|
+
};
|
|
54
56
|
|
|
57
|
+
// See fixtures #59
|
|
55
58
|
var cleanRangeBackSlash = function cleanRangeBackSlash(slashes) {
|
|
56
59
|
var length = slashes.length;
|
|
57
60
|
return slashes.slice(0, length - length % 2);
|
|
58
|
-
};
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
// > If the pattern ends with a slash,
|
|
59
64
|
// > it is removed for the purpose of the following description,
|
|
60
65
|
// > but it would only find a match with a directory.
|
|
61
66
|
// > In other words, foo/ will match a directory foo and paths underneath it,
|
|
@@ -64,20 +69,24 @@ var cleanRangeBackSlash = function cleanRangeBackSlash(slashes) {
|
|
|
64
69
|
// '`foo/`' will not match regular file '`foo`' or symbolic link '`foo`'
|
|
65
70
|
// -> ignore-rules will not deal with it, because it costs extra `fs.stat` call
|
|
66
71
|
// you could use option `mark: true` with `glob`
|
|
67
|
-
// '`foo/`' should not continue with the '`..`'
|
|
68
|
-
|
|
69
72
|
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
// '`foo/`' should not continue with the '`..`'
|
|
74
|
+
var REPLACERS = [
|
|
75
|
+
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
76
|
+
[
|
|
77
|
+
// (a\ ) -> (a )
|
|
72
78
|
// (a ) -> (a)
|
|
73
79
|
// (a \ ) -> (a )
|
|
74
80
|
/\\?\s+$/, function (match) {
|
|
75
81
|
return match.indexOf('\\') === 0 ? SPACE : EMPTY;
|
|
76
|
-
}],
|
|
82
|
+
}],
|
|
83
|
+
// replace (\ ) with ' '
|
|
77
84
|
[/\\\s/g, function () {
|
|
78
85
|
return SPACE;
|
|
79
|
-
}],
|
|
86
|
+
}],
|
|
87
|
+
// Escape metacharacters
|
|
80
88
|
// which is written down by users but means special for regular expressions.
|
|
89
|
+
|
|
81
90
|
// > There are 12 characters with special meanings:
|
|
82
91
|
// > - the backslash \,
|
|
83
92
|
// > - the caret ^,
|
|
@@ -94,229 +103,264 @@ var REPLACERS = [// > Trailing spaces are ignored unless they are quoted with ba
|
|
|
94
103
|
// > These special characters are often called "metacharacters".
|
|
95
104
|
[/[\\$.|*+(){^]/g, function (match) {
|
|
96
105
|
return "\\".concat(match);
|
|
97
|
-
}], [
|
|
106
|
+
}], [
|
|
107
|
+
// > a question mark (?) matches a single character
|
|
98
108
|
/(?!\\)\?/g, function () {
|
|
99
109
|
return '[^/]';
|
|
100
|
-
}],
|
|
101
|
-
|
|
110
|
+
}],
|
|
111
|
+
// leading slash
|
|
112
|
+
[
|
|
113
|
+
// > A leading slash matches the beginning of the pathname.
|
|
102
114
|
// > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
|
|
103
115
|
// A leading slash matches the beginning of the pathname
|
|
104
116
|
/^\//, function () {
|
|
105
117
|
return '^';
|
|
106
|
-
}],
|
|
118
|
+
}],
|
|
119
|
+
// replace special metacharacter slash after the leading slash
|
|
107
120
|
[/\//g, function () {
|
|
108
121
|
return '\\/';
|
|
109
|
-
}], [
|
|
122
|
+
}], [
|
|
123
|
+
// > A leading "**" followed by a slash means match in all directories.
|
|
110
124
|
// > For example, "**/foo" matches file or directory "foo" anywhere,
|
|
111
125
|
// > the same as pattern "foo".
|
|
112
126
|
// > "**/foo/bar" matches file or directory "bar" anywhere that is directly
|
|
113
127
|
// > under directory "foo".
|
|
114
128
|
// Notice that the '*'s have been replaced as '\\*'
|
|
115
|
-
/^\^*\\\*\\\*\\\//,
|
|
129
|
+
/^\^*\\\*\\\*\\\//,
|
|
130
|
+
// '**/foo' <-> 'foo'
|
|
116
131
|
function () {
|
|
117
132
|
return '^(?:.*\\/)?';
|
|
118
|
-
}],
|
|
119
|
-
|
|
133
|
+
}],
|
|
134
|
+
// starting
|
|
135
|
+
[
|
|
136
|
+
// there will be no leading '/'
|
|
120
137
|
// (which has been replaced by section "leading slash")
|
|
121
138
|
// If starts with '**', adding a '^' to the regular expression also works
|
|
122
139
|
/^(?=[^^])/, function startingReplacer() {
|
|
123
140
|
// If has a slash `/` at the beginning or middle
|
|
124
|
-
return !/\/(?!$)/.test(this)
|
|
141
|
+
return !/\/(?!$)/.test(this)
|
|
142
|
+
// > Prior to 2.22.1
|
|
125
143
|
// > If the pattern does not contain a slash /,
|
|
126
144
|
// > Git treats it as a shell glob pattern
|
|
127
145
|
// Actually, if there is only a trailing slash,
|
|
128
146
|
// git also treats it as a shell glob pattern
|
|
147
|
+
|
|
129
148
|
// After 2.22.1 (compatible but clearer)
|
|
130
149
|
// > If there is a separator at the beginning or middle (or both)
|
|
131
150
|
// > of the pattern, then the pattern is relative to the directory
|
|
132
151
|
// > level of the particular .gitignore file itself.
|
|
133
152
|
// > Otherwise the pattern may also match at any level below
|
|
134
153
|
// > the .gitignore level.
|
|
135
|
-
? '(?:^|\\/)'
|
|
154
|
+
? '(?:^|\\/)'
|
|
155
|
+
|
|
156
|
+
// > Otherwise, Git treats the pattern as a shell glob suitable for
|
|
136
157
|
// > consumption by fnmatch(3)
|
|
137
158
|
: '^';
|
|
138
|
-
}],
|
|
139
|
-
|
|
140
|
-
|
|
159
|
+
}],
|
|
160
|
+
// two globstars
|
|
161
|
+
[
|
|
162
|
+
// Use lookahead assertions so that we could match more than one `'/**'`
|
|
163
|
+
/\\\/\\\*\\\*(?=\\\/|$)/g,
|
|
164
|
+
// Zero, one or several directories
|
|
141
165
|
// should not use '*', or it will be replaced by the next replacer
|
|
166
|
+
|
|
142
167
|
// Check if it is not the last `'/**'`
|
|
143
168
|
function (_, index, str) {
|
|
144
|
-
return index + 6 < str.length
|
|
169
|
+
return index + 6 < str.length
|
|
170
|
+
|
|
171
|
+
// case: /**/
|
|
145
172
|
// > A slash followed by two consecutive asterisks then a slash matches
|
|
146
173
|
// > zero or more directories.
|
|
147
174
|
// > For example, "a/**/b" matches "a/b", "a/x/b", "a/x/y/b" and so on.
|
|
148
175
|
// '/**/'
|
|
149
|
-
? '(?:\\/[^\\/]+)*'
|
|
176
|
+
? '(?:\\/[^\\/]+)*'
|
|
177
|
+
|
|
178
|
+
// case: /**
|
|
150
179
|
// > A trailing `"/**"` matches everything inside.
|
|
180
|
+
|
|
151
181
|
// #21: everything inside but it should not include the current folder
|
|
152
182
|
: '\\/.+';
|
|
153
|
-
}],
|
|
154
|
-
|
|
183
|
+
}],
|
|
184
|
+
// normal intermediate wildcards
|
|
185
|
+
[
|
|
186
|
+
// Never replace escaped '*'
|
|
155
187
|
// ignore rule '\*' will match the path '*'
|
|
188
|
+
|
|
156
189
|
// 'abc.*/' -> go
|
|
157
|
-
// 'abc.*' -> skip this rule
|
|
158
|
-
|
|
190
|
+
// 'abc.*' -> skip this rule,
|
|
191
|
+
// coz trailing single wildcard will be handed by [trailing wildcard]
|
|
192
|
+
/(^|[^\\]+)(\\\*)+(?=.+)/g,
|
|
193
|
+
// '*.js' matches '.js'
|
|
159
194
|
// '*.js' doesn't match 'abc'
|
|
160
|
-
function (_, p1) {
|
|
161
|
-
|
|
162
|
-
|
|
195
|
+
function (_, p1, p2) {
|
|
196
|
+
// 1.
|
|
197
|
+
// > An asterisk "*" matches anything except a slash.
|
|
198
|
+
// 2.
|
|
199
|
+
// > Other consecutive asterisks are considered regular asterisks
|
|
200
|
+
// > and will match according to the previous rules.
|
|
201
|
+
var unescaped = p2.replace(/\\\*/g, '[^\\/]*');
|
|
202
|
+
return p1 + unescaped;
|
|
203
|
+
}], [
|
|
204
|
+
// unescape, revert step 3 except for back slash
|
|
163
205
|
// For example, if a user escape a '\\*',
|
|
164
206
|
// after step 3, the result will be '\\\\\\*'
|
|
165
207
|
/\\\\\\(?=[$.|*+(){^])/g, function () {
|
|
166
208
|
return ESCAPE;
|
|
167
|
-
}], [
|
|
209
|
+
}], [
|
|
210
|
+
// '\\\\' -> '\\'
|
|
168
211
|
/\\\\/g, function () {
|
|
169
212
|
return ESCAPE;
|
|
170
|
-
}], [
|
|
213
|
+
}], [
|
|
214
|
+
// > The range notation, e.g. [a-zA-Z],
|
|
171
215
|
// > can be used to match one of the characters in a range.
|
|
216
|
+
|
|
172
217
|
// `\` is escaped by step 3
|
|
173
218
|
/(\\)?\[([^\]/]*?)(\\*)($|\])/g, function (match, leadEscape, range, endEscape, close) {
|
|
174
|
-
return leadEscape === ESCAPE
|
|
175
|
-
|
|
219
|
+
return leadEscape === ESCAPE
|
|
220
|
+
// '\\[bar]' -> '\\\\[bar\\]'
|
|
221
|
+
? "\\[".concat(range).concat(cleanRangeBackSlash(endEscape)).concat(close) : close === ']' ? endEscape.length % 2 === 0
|
|
222
|
+
// A normal case, and it is a range notation
|
|
176
223
|
// '[bar]'
|
|
177
224
|
// '[bar\\\\]'
|
|
178
225
|
? "[".concat(sanitizeRange(range)).concat(endEscape, "]") // Invalid range notaton
|
|
179
226
|
// '[bar\\]' -> '[bar\\\\]'
|
|
180
227
|
: '[]' : '[]';
|
|
181
|
-
}],
|
|
182
|
-
|
|
228
|
+
}],
|
|
229
|
+
// ending
|
|
230
|
+
[
|
|
231
|
+
// 'js' will not match 'js.'
|
|
183
232
|
// 'ab' will not match 'abc'
|
|
184
|
-
/(?:[^*])$/,
|
|
233
|
+
/(?:[^*])$/,
|
|
234
|
+
// WTF!
|
|
185
235
|
// https://git-scm.com/docs/gitignore
|
|
186
236
|
// changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
|
|
187
237
|
// which re-fixes #24, #38
|
|
238
|
+
|
|
188
239
|
// > If there is a separator at the end of the pattern then the pattern
|
|
189
240
|
// > will only match directories, otherwise the pattern can match both
|
|
190
241
|
// > files and directories.
|
|
242
|
+
|
|
191
243
|
// 'js*' will not match 'a.js'
|
|
192
244
|
// 'js/' will not match 'a.js'
|
|
193
245
|
// 'js' will match 'a.js' and 'a.js/'
|
|
194
246
|
function (match) {
|
|
195
|
-
return /\/$/.test(match)
|
|
247
|
+
return /\/$/.test(match)
|
|
248
|
+
// foo/ will not match 'foo'
|
|
196
249
|
? "".concat(match, "$") // foo matches 'foo' and 'foo/'
|
|
197
250
|
: "".concat(match, "(?=$|\\/$)");
|
|
198
|
-
}],
|
|
251
|
+
}],
|
|
252
|
+
// trailing wildcard
|
|
199
253
|
[/(\^|\\\/)?\\\*$/, function (_, p1) {
|
|
200
|
-
var prefix = p1
|
|
254
|
+
var prefix = p1
|
|
255
|
+
// '\^':
|
|
201
256
|
// '/*' does not match EMPTY
|
|
202
257
|
// '/*' does not match everything
|
|
258
|
+
|
|
203
259
|
// '\\\/':
|
|
204
260
|
// 'abc/*' does not match 'abc/'
|
|
205
261
|
? "".concat(p1, "[^/]+") // 'a*' matches 'a'
|
|
206
262
|
// 'a*' matches 'aa'
|
|
207
263
|
: '[^/]*';
|
|
208
264
|
return "".concat(prefix, "(?=$|\\/$)");
|
|
209
|
-
}]];
|
|
265
|
+
}]];
|
|
210
266
|
|
|
211
|
-
|
|
267
|
+
// A simple cache, because an ignore rule only has only one certain meaning
|
|
268
|
+
var regexCache = Object.create(null);
|
|
212
269
|
|
|
270
|
+
// @param {pattern}
|
|
213
271
|
var makeRegex = function makeRegex(pattern, ignoreCase) {
|
|
214
272
|
var source = regexCache[pattern];
|
|
215
|
-
|
|
216
273
|
if (!source) {
|
|
217
274
|
source = REPLACERS.reduce(function (prev, current) {
|
|
218
275
|
return prev.replace(current[0], current[1].bind(pattern));
|
|
219
276
|
}, pattern);
|
|
220
277
|
regexCache[pattern] = source;
|
|
221
278
|
}
|
|
222
|
-
|
|
223
279
|
return ignoreCase ? new RegExp(source, 'i') : new RegExp(source);
|
|
224
280
|
};
|
|
225
|
-
|
|
226
281
|
var isString = function isString(subject) {
|
|
227
282
|
return typeof subject === 'string';
|
|
228
|
-
};
|
|
229
|
-
|
|
283
|
+
};
|
|
230
284
|
|
|
285
|
+
// > A blank line matches no files, so it can serve as a separator for readability.
|
|
231
286
|
var checkPattern = function checkPattern(pattern) {
|
|
232
|
-
return pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern)
|
|
287
|
+
return pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern)
|
|
288
|
+
|
|
289
|
+
// > A line starting with # serves as a comment.
|
|
233
290
|
&& pattern.indexOf('#') !== 0;
|
|
234
291
|
};
|
|
235
|
-
|
|
236
292
|
var splitPattern = function splitPattern(pattern) {
|
|
237
293
|
return pattern.split(REGEX_SPLITALL_CRLF);
|
|
238
294
|
};
|
|
239
|
-
|
|
240
|
-
var IgnoreRule = function IgnoreRule(origin, pattern, negative, regex) {
|
|
295
|
+
var IgnoreRule = /*#__PURE__*/_createClass(function IgnoreRule(origin, pattern, negative, regex) {
|
|
241
296
|
_classCallCheck(this, IgnoreRule);
|
|
242
|
-
|
|
243
297
|
this.origin = origin;
|
|
244
298
|
this.pattern = pattern;
|
|
245
299
|
this.negative = negative;
|
|
246
300
|
this.regex = regex;
|
|
247
|
-
};
|
|
248
|
-
|
|
301
|
+
});
|
|
249
302
|
var createRule = function createRule(pattern, ignoreCase) {
|
|
250
303
|
var origin = pattern;
|
|
251
|
-
var negative = false;
|
|
304
|
+
var negative = false;
|
|
252
305
|
|
|
306
|
+
// > An optional prefix "!" which negates the pattern;
|
|
253
307
|
if (pattern.indexOf('!') === 0) {
|
|
254
308
|
negative = true;
|
|
255
309
|
pattern = pattern.substr(1);
|
|
256
310
|
}
|
|
257
|
-
|
|
258
|
-
|
|
311
|
+
pattern = pattern
|
|
312
|
+
// > Put a backslash ("\") in front of the first "!" for patterns that
|
|
259
313
|
// > begin with a literal "!", for example, `"\!important!.txt"`.
|
|
260
|
-
.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, '!')
|
|
314
|
+
.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, '!')
|
|
315
|
+
// > Put a backslash ("\") in front of the first hash for patterns that
|
|
261
316
|
// > begin with a hash.
|
|
262
317
|
.replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, '#');
|
|
263
318
|
var regex = makeRegex(pattern, ignoreCase);
|
|
264
319
|
return new IgnoreRule(origin, pattern, negative, regex);
|
|
265
320
|
};
|
|
266
|
-
|
|
267
321
|
var throwError = function throwError(message, Ctor) {
|
|
268
322
|
throw new Ctor(message);
|
|
269
323
|
};
|
|
270
|
-
|
|
271
324
|
var checkPath = function checkPath(path, originalPath, doThrow) {
|
|
272
325
|
if (!isString(path)) {
|
|
273
326
|
return doThrow("path must be a string, but got `".concat(originalPath, "`"), TypeError);
|
|
274
|
-
}
|
|
275
|
-
|
|
327
|
+
}
|
|
276
328
|
|
|
329
|
+
// We don't know if we should ignore EMPTY, so throw
|
|
277
330
|
if (!path) {
|
|
278
331
|
return doThrow("path must not be empty", TypeError);
|
|
279
|
-
}
|
|
280
|
-
|
|
332
|
+
}
|
|
281
333
|
|
|
334
|
+
// Check if it is a relative path
|
|
282
335
|
if (checkPath.isNotRelative(path)) {
|
|
283
336
|
var r = '`path.relative()`d';
|
|
284
337
|
return doThrow("path should be a ".concat(r, " string, but got \"").concat(originalPath, "\""), RangeError);
|
|
285
338
|
}
|
|
286
|
-
|
|
287
339
|
return true;
|
|
288
340
|
};
|
|
289
|
-
|
|
290
341
|
var isNotRelative = function isNotRelative(path) {
|
|
291
342
|
return REGEX_TEST_INVALID_PATH.test(path);
|
|
292
343
|
};
|
|
293
|
-
|
|
294
344
|
checkPath.isNotRelative = isNotRelative;
|
|
295
|
-
|
|
296
345
|
checkPath.convert = function (p) {
|
|
297
346
|
return p;
|
|
298
347
|
};
|
|
299
|
-
|
|
300
348
|
var Ignore = /*#__PURE__*/function () {
|
|
301
349
|
function Ignore() {
|
|
302
350
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
351
|
+
_ref$ignorecase = _ref.ignorecase,
|
|
352
|
+
ignorecase = _ref$ignorecase === void 0 ? true : _ref$ignorecase,
|
|
353
|
+
_ref$ignoreCase = _ref.ignoreCase,
|
|
354
|
+
ignoreCase = _ref$ignoreCase === void 0 ? ignorecase : _ref$ignoreCase,
|
|
355
|
+
_ref$allowRelativePat = _ref.allowRelativePaths,
|
|
356
|
+
allowRelativePaths = _ref$allowRelativePat === void 0 ? false : _ref$allowRelativePat;
|
|
310
357
|
_classCallCheck(this, Ignore);
|
|
311
|
-
|
|
312
358
|
define(this, KEY_IGNORE, true);
|
|
313
359
|
this._rules = [];
|
|
314
360
|
this._ignoreCase = ignoreCase;
|
|
315
361
|
this._allowRelativePaths = allowRelativePaths;
|
|
316
|
-
|
|
317
362
|
this._initCache();
|
|
318
363
|
}
|
|
319
|
-
|
|
320
364
|
_createClass(Ignore, [{
|
|
321
365
|
key: "_initCache",
|
|
322
366
|
value: function _initCache() {
|
|
@@ -332,78 +376,79 @@ var Ignore = /*#__PURE__*/function () {
|
|
|
332
376
|
this._added = true;
|
|
333
377
|
return;
|
|
334
378
|
}
|
|
335
|
-
|
|
336
379
|
if (checkPattern(pattern)) {
|
|
337
380
|
var rule = createRule(pattern, this._ignoreCase);
|
|
338
381
|
this._added = true;
|
|
339
|
-
|
|
340
382
|
this._rules.push(rule);
|
|
341
383
|
}
|
|
342
|
-
}
|
|
384
|
+
}
|
|
343
385
|
|
|
386
|
+
// @param {Array<string> | string | Ignore} pattern
|
|
344
387
|
}, {
|
|
345
388
|
key: "add",
|
|
346
389
|
value: function add(pattern) {
|
|
347
390
|
this._added = false;
|
|
348
|
-
makeArray(isString(pattern) ? splitPattern(pattern) : pattern).forEach(this._addPattern, this);
|
|
349
|
-
// making the behavior changed.
|
|
391
|
+
makeArray(isString(pattern) ? splitPattern(pattern) : pattern).forEach(this._addPattern, this);
|
|
350
392
|
|
|
393
|
+
// Some rules have just added to the ignore,
|
|
394
|
+
// making the behavior changed.
|
|
351
395
|
if (this._added) {
|
|
352
396
|
this._initCache();
|
|
353
397
|
}
|
|
354
|
-
|
|
355
398
|
return this;
|
|
356
|
-
}
|
|
399
|
+
}
|
|
357
400
|
|
|
401
|
+
// legacy
|
|
358
402
|
}, {
|
|
359
403
|
key: "addPattern",
|
|
360
404
|
value: function addPattern(pattern) {
|
|
361
405
|
return this.add(pattern);
|
|
362
|
-
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
// | ignored : unignored
|
|
363
409
|
// negative | 0:0 | 0:1 | 1:0 | 1:1
|
|
364
410
|
// -------- | ------- | ------- | ------- | --------
|
|
365
411
|
// 0 | TEST | TEST | SKIP | X
|
|
366
412
|
// 1 | TESTIF | SKIP | TEST | X
|
|
413
|
+
|
|
367
414
|
// - SKIP: always skip
|
|
368
415
|
// - TEST: always test
|
|
369
416
|
// - TESTIF: only test if checkUnignored
|
|
370
417
|
// - X: that never happen
|
|
418
|
+
|
|
371
419
|
// @param {boolean} whether should check if the path is unignored,
|
|
372
420
|
// setting `checkUnignored` to `false` could reduce additional
|
|
373
421
|
// path matching.
|
|
374
|
-
// @returns {TestResult} true if a file is ignored
|
|
375
422
|
|
|
423
|
+
// @returns {TestResult} true if a file is ignored
|
|
376
424
|
}, {
|
|
377
425
|
key: "_testOne",
|
|
378
426
|
value: function _testOne(path, checkUnignored) {
|
|
379
427
|
var ignored = false;
|
|
380
428
|
var unignored = false;
|
|
381
|
-
|
|
382
429
|
this._rules.forEach(function (rule) {
|
|
383
430
|
var negative = rule.negative;
|
|
384
|
-
|
|
385
431
|
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
|
|
386
432
|
return;
|
|
387
433
|
}
|
|
388
|
-
|
|
389
434
|
var matched = rule.regex.test(path);
|
|
390
|
-
|
|
391
435
|
if (matched) {
|
|
392
436
|
ignored = !negative;
|
|
393
437
|
unignored = negative;
|
|
394
438
|
}
|
|
395
439
|
});
|
|
396
|
-
|
|
397
440
|
return {
|
|
398
441
|
ignored: ignored,
|
|
399
442
|
unignored: unignored
|
|
400
443
|
};
|
|
401
|
-
}
|
|
444
|
+
}
|
|
402
445
|
|
|
446
|
+
// @returns {TestResult}
|
|
403
447
|
}, {
|
|
404
448
|
key: "_test",
|
|
405
449
|
value: function _test(originalPath, cache, checkUnignored, slices) {
|
|
406
|
-
var path = originalPath
|
|
450
|
+
var path = originalPath
|
|
451
|
+
// Supports nullable path
|
|
407
452
|
&& checkPath.convert(originalPath);
|
|
408
453
|
checkPath(path, originalPath, this._allowRelativePaths ? RETURN_FALSE : throwError);
|
|
409
454
|
return this._t(path, cache, checkUnignored, slices);
|
|
@@ -414,23 +459,22 @@ var Ignore = /*#__PURE__*/function () {
|
|
|
414
459
|
if (path in cache) {
|
|
415
460
|
return cache[path];
|
|
416
461
|
}
|
|
417
|
-
|
|
418
462
|
if (!slices) {
|
|
419
463
|
// path/to/a.js
|
|
420
464
|
// ['path', 'to', 'a.js']
|
|
421
465
|
slices = path.split(SLASH);
|
|
422
466
|
}
|
|
467
|
+
slices.pop();
|
|
423
468
|
|
|
424
|
-
|
|
425
|
-
|
|
469
|
+
// If the path has no parent directory, just test it
|
|
426
470
|
if (!slices.length) {
|
|
427
471
|
return cache[path] = this._testOne(path, checkUnignored);
|
|
428
472
|
}
|
|
473
|
+
var parent = this._t(slices.join(SLASH) + SLASH, cache, checkUnignored, slices);
|
|
429
474
|
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
return cache[path] = parent.ignored // > It is not possible to re-include a file if a parent directory of
|
|
475
|
+
// If the path contains a parent directory, check the parent first
|
|
476
|
+
return cache[path] = parent.ignored
|
|
477
|
+
// > It is not possible to re-include a file if a parent directory of
|
|
434
478
|
// > that file is excluded.
|
|
435
479
|
? parent : this._testOne(path, checkUnignored);
|
|
436
480
|
}
|
|
@@ -443,7 +487,6 @@ var Ignore = /*#__PURE__*/function () {
|
|
|
443
487
|
key: "createFilter",
|
|
444
488
|
value: function createFilter() {
|
|
445
489
|
var _this = this;
|
|
446
|
-
|
|
447
490
|
return function (path) {
|
|
448
491
|
return !_this.ignores(path);
|
|
449
492
|
};
|
|
@@ -452,46 +495,44 @@ var Ignore = /*#__PURE__*/function () {
|
|
|
452
495
|
key: "filter",
|
|
453
496
|
value: function filter(paths) {
|
|
454
497
|
return makeArray(paths).filter(this.createFilter());
|
|
455
|
-
}
|
|
498
|
+
}
|
|
456
499
|
|
|
500
|
+
// @returns {TestResult}
|
|
457
501
|
}, {
|
|
458
502
|
key: "test",
|
|
459
503
|
value: function test(path) {
|
|
460
504
|
return this._test(path, this._testCache, true);
|
|
461
505
|
}
|
|
462
506
|
}]);
|
|
463
|
-
|
|
464
507
|
return Ignore;
|
|
465
508
|
}();
|
|
466
|
-
|
|
467
509
|
var factory = function factory(options) {
|
|
468
510
|
return new Ignore(options);
|
|
469
511
|
};
|
|
470
|
-
|
|
471
512
|
var isPathValid = function isPathValid(path) {
|
|
472
513
|
return checkPath(path && checkPath.convert(path), path, RETURN_FALSE);
|
|
473
514
|
};
|
|
515
|
+
factory.isPathValid = isPathValid;
|
|
474
516
|
|
|
475
|
-
|
|
476
|
-
|
|
517
|
+
// Fixes typescript
|
|
477
518
|
factory["default"] = factory;
|
|
478
|
-
module.exports = factory;
|
|
479
|
-
// --------------------------------------------------------------
|
|
480
|
-
|
|
481
|
-
/* istanbul ignore if */
|
|
519
|
+
module.exports = factory;
|
|
482
520
|
|
|
483
|
-
|
|
521
|
+
// Windows
|
|
522
|
+
// --------------------------------------------------------------
|
|
523
|
+
/* istanbul ignore if */
|
|
524
|
+
if (
|
|
525
|
+
// Detect `process` so that it can run in browsers.
|
|
484
526
|
typeof process !== 'undefined' && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === 'win32')) {
|
|
485
527
|
/* eslint no-control-regex: "off" */
|
|
486
528
|
var makePosix = function makePosix(str) {
|
|
487
529
|
return /^\\\\\?\\/.test(str) || /[\0-\x1F"<>\|]+/.test(str) ? str : str.replace(/\\/g, '/');
|
|
488
530
|
};
|
|
531
|
+
checkPath.convert = makePosix;
|
|
489
532
|
|
|
490
|
-
|
|
533
|
+
// 'C:\\foo' <- 'C:\\foo' has been converted to 'C:/'
|
|
491
534
|
// 'd:\\foo'
|
|
492
|
-
|
|
493
535
|
var REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
|
494
|
-
|
|
495
536
|
checkPath.isNotRelative = function (path) {
|
|
496
537
|
return REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path) || isNotRelative(path);
|
|
497
538
|
};
|