immosquare-cleaner 0.1.32 → 0.1.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/node_modules/@eslint/eslintrc/README.md +15 -4
- data/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +57 -18
- data/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +1 -1
- data/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +60 -34
- data/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +1 -1
- data/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +3 -16
- data/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +63 -18
- data/node_modules/@eslint/eslintrc/package.json +4 -4
- data/node_modules/@eslint/js/package.json +2 -2
- data/node_modules/@eslint/js/src/configs/eslint-all.js +9 -1
- data/node_modules/@eslint/js/src/configs/eslint-recommended.js +12 -5
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/LICENSE +201 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/README.md +105 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +384 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts +27 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/index.d.ts +16 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +12 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js +65 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.js +315 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/package.json +74 -0
- data/node_modules/@humanwhocodes/config-array/api.js +114 -16
- data/node_modules/@humanwhocodes/config-array/package.json +5 -3
- data/node_modules/@humanwhocodes/object-schema/CHANGELOG.md +7 -0
- data/node_modules/@humanwhocodes/object-schema/package.json +6 -1
- data/node_modules/@humanwhocodes/retry/LICENSE +201 -0
- data/node_modules/@humanwhocodes/retry/README.md +122 -0
- data/node_modules/@humanwhocodes/retry/dist/retrier.cjs +267 -0
- data/node_modules/@humanwhocodes/retry/dist/retrier.d.ts +24 -0
- data/node_modules/@humanwhocodes/retry/dist/retrier.js +265 -0
- data/node_modules/@humanwhocodes/retry/dist/retrier.min.js +1 -0
- data/node_modules/@humanwhocodes/retry/dist/retrier.mjs +265 -0
- data/node_modules/@humanwhocodes/retry/package.json +74 -0
- data/node_modules/@types/semver-utils/LICENSE +21 -0
- data/node_modules/@types/semver-utils/README.md +34 -0
- data/node_modules/@types/semver-utils/index.d.ts +15 -0
- data/node_modules/@types/semver-utils/package.json +25 -0
- data/node_modules/acorn/CHANGELOG.md +36 -0
- data/node_modules/acorn/README.md +8 -3
- data/node_modules/acorn/dist/acorn.d.mts +857 -26
- data/node_modules/acorn/dist/acorn.d.ts +833 -268
- data/node_modules/acorn/dist/acorn.js +33 -21
- data/node_modules/acorn/dist/acorn.mjs +33 -21
- data/node_modules/acorn/package.json +1 -1
- data/node_modules/cacheable-request/node_modules/keyv/README.md +429 -0
- data/node_modules/cacheable-request/node_modules/keyv/package.json +57 -0
- data/node_modules/cacheable-request/node_modules/keyv/src/index.d.ts +112 -0
- data/node_modules/cacheable-request/node_modules/keyv/src/index.js +264 -0
- data/node_modules/doctrine/CHANGELOG.md +0 -7
- data/node_modules/doctrine/lib/doctrine.js +1 -0
- data/node_modules/doctrine/package.json +8 -9
- data/node_modules/eslint/README.md +31 -28
- data/node_modules/eslint/bin/eslint.js +4 -3
- data/node_modules/eslint/conf/ecma-version.js +16 -0
- data/node_modules/eslint/conf/globals.js +1 -0
- data/node_modules/eslint/conf/rule-type-list.json +3 -1
- data/node_modules/eslint/lib/api.js +7 -11
- data/node_modules/eslint/lib/cli-engine/cli-engine.js +14 -3
- data/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json +1 -29
- data/node_modules/eslint/lib/cli-engine/lint-result-cache.js +2 -2
- data/node_modules/eslint/lib/cli.js +115 -36
- data/node_modules/eslint/lib/config/default-config.js +3 -0
- data/node_modules/eslint/lib/config/flat-config-array.js +110 -24
- data/node_modules/eslint/lib/config/flat-config-helpers.js +41 -20
- data/node_modules/eslint/lib/config/flat-config-schema.js +1 -7
- data/node_modules/eslint/lib/config/rule-validator.js +42 -6
- data/node_modules/eslint/lib/eslint/eslint-helpers.js +116 -58
- data/node_modules/eslint/lib/eslint/eslint.js +892 -377
- data/node_modules/eslint/lib/eslint/index.js +2 -2
- data/node_modules/eslint/lib/eslint/legacy-eslint.js +728 -0
- data/node_modules/eslint/lib/linter/apply-disable-directives.js +59 -31
- data/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +0 -1
- data/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +32 -30
- data/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +1 -1
- data/node_modules/eslint/lib/linter/config-comment-parser.js +8 -11
- data/node_modules/eslint/lib/linter/index.js +1 -3
- data/node_modules/eslint/lib/linter/interpolate.js +24 -2
- data/node_modules/eslint/lib/linter/linter.js +428 -207
- data/node_modules/eslint/lib/linter/report-translator.js +3 -3
- data/node_modules/eslint/lib/linter/rules.js +6 -15
- data/node_modules/eslint/lib/linter/source-code-fixer.js +1 -1
- data/node_modules/eslint/lib/linter/timing.js +16 -8
- data/node_modules/eslint/lib/options.js +35 -3
- data/node_modules/eslint/lib/rule-tester/index.js +3 -1
- data/node_modules/eslint/lib/rule-tester/rule-tester.js +424 -347
- data/node_modules/eslint/lib/rules/array-bracket-newline.js +1 -1
- data/node_modules/eslint/lib/rules/array-bracket-spacing.js +1 -1
- data/node_modules/eslint/lib/rules/block-scoped-var.js +1 -1
- data/node_modules/eslint/lib/rules/callback-return.js +2 -2
- data/node_modules/eslint/lib/rules/camelcase.js +3 -5
- data/node_modules/eslint/lib/rules/capitalized-comments.js +10 -7
- data/node_modules/eslint/lib/rules/comma-dangle.js +1 -1
- data/node_modules/eslint/lib/rules/comma-style.js +2 -2
- data/node_modules/eslint/lib/rules/complexity.js +14 -1
- data/node_modules/eslint/lib/rules/constructor-super.js +99 -100
- data/node_modules/eslint/lib/rules/default-case.js +1 -1
- data/node_modules/eslint/lib/rules/eol-last.js +2 -2
- data/node_modules/eslint/lib/rules/function-paren-newline.js +2 -2
- data/node_modules/eslint/lib/rules/indent-legacy.js +5 -5
- data/node_modules/eslint/lib/rules/indent.js +5 -5
- data/node_modules/eslint/lib/rules/index.js +1 -2
- data/node_modules/eslint/lib/rules/key-spacing.js +2 -2
- data/node_modules/eslint/lib/rules/line-comment-position.js +1 -1
- data/node_modules/eslint/lib/rules/lines-around-directive.js +2 -2
- data/node_modules/eslint/lib/rules/max-depth.js +1 -1
- data/node_modules/eslint/lib/rules/max-len.js +3 -3
- data/node_modules/eslint/lib/rules/max-lines.js +3 -3
- data/node_modules/eslint/lib/rules/max-nested-callbacks.js +1 -1
- data/node_modules/eslint/lib/rules/max-params.js +1 -1
- data/node_modules/eslint/lib/rules/max-statements.js +1 -1
- data/node_modules/eslint/lib/rules/multiline-comment-style.js +7 -7
- data/node_modules/eslint/lib/rules/new-cap.js +1 -1
- data/node_modules/eslint/lib/rules/newline-after-var.js +1 -1
- data/node_modules/eslint/lib/rules/newline-before-return.js +1 -1
- data/node_modules/eslint/lib/rules/no-case-declarations.js +13 -1
- data/node_modules/eslint/lib/rules/no-constant-binary-expression.js +7 -8
- data/node_modules/eslint/lib/rules/no-constant-condition.js +18 -7
- data/node_modules/eslint/lib/rules/no-constructor-return.js +2 -2
- data/node_modules/eslint/lib/rules/no-dupe-class-members.js +2 -2
- data/node_modules/eslint/lib/rules/no-else-return.js +1 -1
- data/node_modules/eslint/lib/rules/no-empty-function.js +2 -2
- data/node_modules/eslint/lib/rules/no-empty-static-block.js +1 -1
- data/node_modules/eslint/lib/rules/no-extend-native.js +1 -2
- data/node_modules/eslint/lib/rules/no-extra-semi.js +1 -1
- data/node_modules/eslint/lib/rules/no-fallthrough.js +41 -16
- data/node_modules/eslint/lib/rules/no-implicit-coercion.js +66 -24
- data/node_modules/eslint/lib/rules/no-inner-declarations.js +23 -2
- data/node_modules/eslint/lib/rules/no-invalid-regexp.js +1 -1
- data/node_modules/eslint/lib/rules/no-invalid-this.js +1 -1
- data/node_modules/eslint/lib/rules/no-lone-blocks.js +3 -3
- data/node_modules/eslint/lib/rules/no-loss-of-precision.js +1 -1
- data/node_modules/eslint/lib/rules/no-misleading-character-class.js +225 -69
- data/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +1 -1
- data/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +1 -1
- data/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js +1 -1
- data/node_modules/eslint/lib/rules/no-new-symbol.js +8 -1
- data/node_modules/eslint/lib/rules/no-restricted-globals.js +1 -1
- data/node_modules/eslint/lib/rules/no-restricted-imports.js +186 -40
- data/node_modules/eslint/lib/rules/no-restricted-modules.js +2 -2
- data/node_modules/eslint/lib/rules/no-return-await.js +1 -1
- data/node_modules/eslint/lib/rules/no-sequences.js +1 -0
- data/node_modules/eslint/lib/rules/no-this-before-super.js +45 -13
- data/node_modules/eslint/lib/rules/no-trailing-spaces.js +2 -3
- data/node_modules/eslint/lib/rules/no-unneeded-ternary.js +1 -1
- data/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +1 -1
- data/node_modules/eslint/lib/rules/no-unused-private-class-members.js +1 -1
- data/node_modules/eslint/lib/rules/no-unused-vars.js +197 -36
- data/node_modules/eslint/lib/rules/no-useless-assignment.js +566 -0
- data/node_modules/eslint/lib/rules/no-useless-backreference.js +1 -1
- data/node_modules/eslint/lib/rules/no-useless-computed-key.js +2 -2
- data/node_modules/eslint/lib/rules/no-useless-return.js +7 -2
- data/node_modules/eslint/lib/rules/object-curly-spacing.js +3 -3
- data/node_modules/eslint/lib/rules/object-property-newline.js +1 -1
- data/node_modules/eslint/lib/rules/one-var.js +5 -5
- data/node_modules/eslint/lib/rules/padded-blocks.js +7 -7
- data/node_modules/eslint/lib/rules/prefer-arrow-callback.js +3 -3
- data/node_modules/eslint/lib/rules/prefer-reflect.js +1 -1
- data/node_modules/eslint/lib/rules/prefer-regex-literals.js +1 -1
- data/node_modules/eslint/lib/rules/prefer-template.js +1 -1
- data/node_modules/eslint/lib/rules/radix.js +2 -2
- data/node_modules/eslint/lib/rules/semi-style.js +1 -1
- data/node_modules/eslint/lib/rules/sort-imports.js +1 -1
- data/node_modules/eslint/lib/rules/sort-keys.js +1 -1
- data/node_modules/eslint/lib/rules/sort-vars.js +1 -1
- data/node_modules/eslint/lib/rules/space-unary-ops.js +1 -1
- data/node_modules/eslint/lib/rules/strict.js +1 -1
- data/node_modules/eslint/lib/rules/use-isnan.js +101 -7
- data/node_modules/eslint/lib/rules/utils/ast-utils.js +16 -7
- data/node_modules/eslint/lib/rules/utils/char-source.js +240 -0
- data/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +1 -1
- data/node_modules/eslint/lib/rules/utils/unicode/index.js +9 -4
- data/node_modules/eslint/lib/rules/yield-star-spacing.js +1 -1
- data/node_modules/eslint/lib/shared/runtime-info.js +1 -0
- data/node_modules/eslint/lib/shared/serialization.js +55 -0
- data/node_modules/eslint/lib/shared/stats.js +30 -0
- data/node_modules/eslint/lib/shared/string-utils.js +9 -11
- data/node_modules/eslint/lib/shared/types.js +35 -1
- data/node_modules/eslint/lib/source-code/index.js +3 -1
- data/node_modules/eslint/lib/source-code/source-code.js +299 -85
- data/node_modules/eslint/lib/source-code/token-store/backward-token-cursor.js +3 -3
- data/node_modules/eslint/lib/source-code/token-store/cursors.js +4 -2
- data/node_modules/eslint/lib/source-code/token-store/forward-token-comment-cursor.js +3 -3
- data/node_modules/eslint/lib/source-code/token-store/forward-token-cursor.js +3 -3
- data/node_modules/eslint/lib/source-code/token-store/index.js +2 -2
- data/node_modules/eslint/lib/unsupported-api.js +3 -5
- data/node_modules/eslint/messages/no-config-found.js +1 -1
- data/node_modules/eslint/messages/plugin-conflict.js +1 -1
- data/node_modules/eslint/messages/plugin-invalid.js +1 -1
- data/node_modules/eslint/messages/plugin-missing.js +1 -1
- data/node_modules/eslint/package.json +32 -29
- data/node_modules/eslint-scope/README.md +23 -2
- data/node_modules/eslint-scope/dist/eslint-scope.cjs +84 -58
- data/node_modules/eslint-scope/lib/index.js +0 -3
- data/node_modules/eslint-scope/lib/pattern-visitor.js +4 -3
- data/node_modules/eslint-scope/lib/referencer.js +13 -11
- data/node_modules/eslint-scope/lib/scope-manager.js +2 -8
- data/node_modules/eslint-scope/lib/scope.js +64 -43
- data/node_modules/eslint-scope/lib/version.js +1 -1
- data/node_modules/eslint-scope/package.json +21 -19
- data/node_modules/eslint-visitor-keys/README.md +1 -1
- data/node_modules/eslint-visitor-keys/package.json +2 -2
- data/node_modules/espree/README.md +1 -1
- data/node_modules/espree/dist/espree.cjs +1 -1
- data/node_modules/espree/lib/version.js +1 -1
- data/node_modules/espree/package.json +18 -20
- data/node_modules/file-entry-cache/LICENSE +1 -1
- data/node_modules/file-entry-cache/README.md +6 -3
- data/node_modules/file-entry-cache/package.json +19 -43
- data/node_modules/flat-cache/README.md +8 -6
- data/node_modules/flat-cache/changelog.md +155 -205
- data/node_modules/flat-cache/package.json +16 -39
- data/node_modules/flat-cache/src/cache.js +22 -26
- data/node_modules/flat-cache/src/del.js +28 -11
- data/node_modules/flat-cache/src/utils.js +39 -41
- data/node_modules/globals/globals.json +25 -0
- data/node_modules/globals/index.d.ts +2074 -3
- data/node_modules/globals/package.json +10 -7
- data/node_modules/globals/readme.md +2 -14
- data/node_modules/keyv/package.json +4 -4
- data/node_modules/keyv/src/index.js +6 -11
- data/node_modules/npm-check-updates/build/cli.js +22 -21
- data/node_modules/npm-check-updates/build/cli.js.map +1 -1
- data/node_modules/npm-check-updates/build/index-5sFb3Tvv.js +66 -0
- data/node_modules/npm-check-updates/build/index-5sFb3Tvv.js.map +1 -0
- data/node_modules/npm-check-updates/build/index-BmUFwMVL.js +6 -0
- data/node_modules/npm-check-updates/build/index-BmUFwMVL.js.map +1 -0
- data/node_modules/npm-check-updates/build/index.d.ts +5 -2
- data/node_modules/npm-check-updates/build/index.js +560 -1
- data/node_modules/npm-check-updates/build/index.js.map +1 -1
- data/node_modules/npm-check-updates/build/package.json +4 -3
- data/node_modules/npm-check-updates/build/src/index.js +1 -1
- data/node_modules/npm-check-updates/build/src/index.js.map +1 -1
- data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.js +2 -2
- data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.js.map +1 -1
- data/node_modules/npm-check-updates/build/src/package-managers/bun.js +0 -6
- data/node_modules/npm-check-updates/build/src/package-managers/bun.js.map +1 -1
- data/node_modules/npm-check-updates/package.json +4 -3
- data/node_modules/type-fest/index.d.ts +95 -2
- data/node_modules/type-fest/package.json +12 -18
- data/node_modules/type-fest/readme.md +299 -52
- data/node_modules/type-fest/source/async-return-type.d.ts +4 -2
- data/node_modules/type-fest/source/asyncify.d.ts +5 -3
- data/node_modules/type-fest/source/basic.d.ts +21 -43
- data/node_modules/type-fest/{ts41 → source}/camel-case.d.ts +18 -17
- data/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +54 -0
- data/node_modules/type-fest/source/camel-cased-properties.d.ts +36 -0
- data/node_modules/type-fest/source/conditional-except.d.ts +6 -4
- data/node_modules/type-fest/source/conditional-keys.d.ts +5 -1
- data/node_modules/type-fest/source/conditional-pick.d.ts +5 -3
- data/node_modules/type-fest/{ts41 → source}/delimiter-case.d.ts +16 -8
- data/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +60 -0
- data/node_modules/type-fest/source/delimiter-cased-properties.d.ts +37 -0
- data/node_modules/type-fest/source/entries.d.ts +8 -3
- data/node_modules/type-fest/source/entry.d.ts +8 -3
- data/node_modules/type-fest/source/exact.d.ts +73 -0
- data/node_modules/type-fest/source/except.d.ts +38 -3
- data/node_modules/type-fest/source/fixed-length-array.d.ts +6 -1
- data/node_modules/type-fest/source/get.d.ts +184 -0
- data/node_modules/type-fest/source/has-optional-keys.d.ts +21 -0
- data/node_modules/type-fest/source/has-required-keys.d.ts +59 -0
- data/node_modules/type-fest/source/includes.d.ts +22 -0
- data/node_modules/type-fest/source/internal.d.ts +59 -0
- data/node_modules/type-fest/source/invariant-of.d.ts +76 -0
- data/node_modules/type-fest/source/iterable-element.d.ts +8 -0
- data/node_modules/type-fest/source/join.d.ts +30 -0
- data/node_modules/type-fest/source/jsonify.d.ts +90 -0
- data/node_modules/type-fest/{ts41 → source}/kebab-case.d.ts +7 -5
- data/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +47 -0
- data/node_modules/type-fest/source/kebab-cased-properties.d.ts +30 -0
- data/node_modules/type-fest/source/last-array-element.d.ts +28 -0
- data/node_modules/type-fest/source/literal-to-primitive.d.ts +36 -0
- data/node_modules/type-fest/source/literal-union.d.ts +7 -5
- data/node_modules/type-fest/source/merge-exclusive.d.ts +3 -1
- data/node_modules/type-fest/source/merge.d.ts +8 -3
- data/node_modules/type-fest/source/multidimensional-array.d.ts +43 -0
- data/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +47 -0
- data/node_modules/type-fest/source/mutable.d.ts +4 -21
- data/node_modules/type-fest/source/numeric.d.ts +170 -0
- data/node_modules/type-fest/source/observable-like.d.ts +62 -0
- data/node_modules/type-fest/source/opaque.d.ts +45 -3
- data/node_modules/type-fest/source/optional-keys-of.d.ts +38 -0
- data/node_modules/type-fest/source/package-json.d.ts +64 -12
- data/node_modules/type-fest/source/partial-deep.d.ts +57 -16
- data/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +70 -0
- data/node_modules/type-fest/{ts41 → source}/pascal-case.d.ts +6 -4
- data/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +54 -0
- data/node_modules/type-fest/source/pascal-cased-properties.d.ts +34 -0
- data/node_modules/type-fest/source/primitive.d.ts +13 -0
- data/node_modules/type-fest/source/promisable.d.ts +5 -3
- data/node_modules/type-fest/source/promise-value.d.ts +9 -7
- data/node_modules/type-fest/source/readonly-deep.d.ts +33 -7
- data/node_modules/type-fest/source/readonly-tuple.d.ts +41 -0
- data/node_modules/type-fest/source/remove-index-signature.d.ts +104 -0
- data/node_modules/type-fest/source/replace.d.ts +67 -0
- data/node_modules/type-fest/source/require-all-or-none.d.ts +36 -0
- data/node_modules/type-fest/source/require-at-least-one.d.ts +5 -3
- data/node_modules/type-fest/source/require-exactly-one.d.ts +4 -5
- data/node_modules/type-fest/source/required-keys-of.d.ts +29 -0
- data/node_modules/type-fest/source/schema.d.ts +72 -0
- data/node_modules/type-fest/source/screaming-snake-case.d.ts +33 -0
- data/node_modules/type-fest/source/set-non-nullable.d.ts +35 -0
- data/node_modules/type-fest/source/set-optional.d.ts +12 -11
- data/node_modules/type-fest/source/set-required.d.ts +12 -11
- data/node_modules/type-fest/source/set-return-type.d.ts +3 -1
- data/node_modules/type-fest/source/simplify.d.ts +83 -0
- data/node_modules/type-fest/{ts41 → source}/snake-case.d.ts +7 -4
- data/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +47 -0
- data/node_modules/type-fest/source/snake-cased-properties.d.ts +30 -0
- data/node_modules/type-fest/source/split.d.ts +29 -0
- data/node_modules/type-fest/source/spread.d.ts +85 -0
- data/node_modules/type-fest/source/string-key-of.d.ts +25 -0
- data/node_modules/type-fest/source/stringified.d.ts +3 -1
- data/node_modules/type-fest/source/trim.d.ts +25 -0
- data/node_modules/type-fest/source/tsconfig-json.d.ts +316 -14
- data/node_modules/type-fest/source/typed-array.d.ts +17 -0
- data/node_modules/type-fest/source/union-to-intersection.d.ts +4 -2
- data/node_modules/type-fest/source/value-of.d.ts +3 -1
- data/node_modules/type-fest/source/writable.d.ts +40 -0
- data/package.json +2 -2
- metadata +86 -63
- data/linters/rubocop-2.7.6.yml +0 -86
- data/node_modules/@humanwhocodes/object-schema/tests/merge-strategy.js +0 -66
- data/node_modules/@humanwhocodes/object-schema/tests/object-schema.js +0 -659
- data/node_modules/@humanwhocodes/object-schema/tests/validation-strategy.js +0 -186
- data/node_modules/eslint/conf/config-schema.js +0 -93
- data/node_modules/eslint/lib/cli-engine/formatters/checkstyle.js +0 -60
- data/node_modules/eslint/lib/cli-engine/formatters/compact.js +0 -60
- data/node_modules/eslint/lib/cli-engine/formatters/jslint-xml.js +0 -41
- data/node_modules/eslint/lib/cli-engine/formatters/junit.js +0 -82
- data/node_modules/eslint/lib/cli-engine/formatters/tap.js +0 -95
- data/node_modules/eslint/lib/cli-engine/formatters/unix.js +0 -58
- data/node_modules/eslint/lib/cli-engine/formatters/visualstudio.js +0 -63
- data/node_modules/eslint/lib/cli-engine/xml-escape.js +0 -34
- data/node_modules/eslint/lib/eslint/flat-eslint.js +0 -1155
- data/node_modules/eslint/lib/rule-tester/flat-rule-tester.js +0 -1131
- data/node_modules/eslint/lib/rules/require-jsdoc.js +0 -122
- data/node_modules/eslint/lib/rules/utils/patterns/letters.js +0 -36
- data/node_modules/eslint/lib/rules/valid-jsdoc.js +0 -516
- data/node_modules/eslint/lib/shared/config-validator.js +0 -347
- data/node_modules/eslint/lib/shared/deprecation-warnings.js +0 -58
- data/node_modules/eslint/lib/shared/relative-module-resolver.js +0 -50
- data/node_modules/file-entry-cache/changelog.md +0 -163
- data/node_modules/flat-cache/node_modules/rimraf/CHANGELOG.md +0 -65
- data/node_modules/flat-cache/node_modules/rimraf/LICENSE +0 -15
- data/node_modules/flat-cache/node_modules/rimraf/README.md +0 -101
- data/node_modules/flat-cache/node_modules/rimraf/bin.js +0 -68
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/LICENSE +0 -21
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/README.md +0 -378
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/common.js +0 -238
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/glob.js +0 -790
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/LICENSE +0 -15
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md +0 -230
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js +0 -947
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +0 -33
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/package.json +0 -55
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/sync.js +0 -486
- data/node_modules/flat-cache/node_modules/rimraf/package.json +0 -32
- data/node_modules/flat-cache/node_modules/rimraf/rimraf.js +0 -360
- data/node_modules/npm-check-updates/build/index-CI_x-D21.js +0 -593
- data/node_modules/npm-check-updates/build/index-CI_x-D21.js.map +0 -1
- data/node_modules/npm-check-updates/build/index-Ci8A2QXv.js +0 -6
- data/node_modules/npm-check-updates/build/index-Ci8A2QXv.js.map +0 -1
- data/node_modules/npm-check-updates/build/index-DgVn3Gax.js +0 -36
- data/node_modules/npm-check-updates/build/index-DgVn3Gax.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/SpawnPleaseOptions.d.ts +0 -6
- data/node_modules/npm-check-updates/build/src/types/SpawnPleaseOptions.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/SpawnPleaseOptions.js.map +0 -1
- data/node_modules/type-fest/base.d.ts +0 -38
- data/node_modules/type-fest/license +0 -9
- data/node_modules/type-fest/source/utilities.d.ts +0 -3
- data/node_modules/type-fest/ts41/index.d.ts +0 -9
@@ -0,0 +1,315 @@
|
|
1
|
+
/**
|
2
|
+
* @typedef {{ readonly [type: string]: ReadonlyArray<string> }} VisitorKeys
|
3
|
+
*/
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @type {VisitorKeys}
|
7
|
+
*/
|
8
|
+
const KEYS = {
|
9
|
+
ArrayExpression: [
|
10
|
+
"elements"
|
11
|
+
],
|
12
|
+
ArrayPattern: [
|
13
|
+
"elements"
|
14
|
+
],
|
15
|
+
ArrowFunctionExpression: [
|
16
|
+
"params",
|
17
|
+
"body"
|
18
|
+
],
|
19
|
+
AssignmentExpression: [
|
20
|
+
"left",
|
21
|
+
"right"
|
22
|
+
],
|
23
|
+
AssignmentPattern: [
|
24
|
+
"left",
|
25
|
+
"right"
|
26
|
+
],
|
27
|
+
AwaitExpression: [
|
28
|
+
"argument"
|
29
|
+
],
|
30
|
+
BinaryExpression: [
|
31
|
+
"left",
|
32
|
+
"right"
|
33
|
+
],
|
34
|
+
BlockStatement: [
|
35
|
+
"body"
|
36
|
+
],
|
37
|
+
BreakStatement: [
|
38
|
+
"label"
|
39
|
+
],
|
40
|
+
CallExpression: [
|
41
|
+
"callee",
|
42
|
+
"arguments"
|
43
|
+
],
|
44
|
+
CatchClause: [
|
45
|
+
"param",
|
46
|
+
"body"
|
47
|
+
],
|
48
|
+
ChainExpression: [
|
49
|
+
"expression"
|
50
|
+
],
|
51
|
+
ClassBody: [
|
52
|
+
"body"
|
53
|
+
],
|
54
|
+
ClassDeclaration: [
|
55
|
+
"id",
|
56
|
+
"superClass",
|
57
|
+
"body"
|
58
|
+
],
|
59
|
+
ClassExpression: [
|
60
|
+
"id",
|
61
|
+
"superClass",
|
62
|
+
"body"
|
63
|
+
],
|
64
|
+
ConditionalExpression: [
|
65
|
+
"test",
|
66
|
+
"consequent",
|
67
|
+
"alternate"
|
68
|
+
],
|
69
|
+
ContinueStatement: [
|
70
|
+
"label"
|
71
|
+
],
|
72
|
+
DebuggerStatement: [],
|
73
|
+
DoWhileStatement: [
|
74
|
+
"body",
|
75
|
+
"test"
|
76
|
+
],
|
77
|
+
EmptyStatement: [],
|
78
|
+
ExperimentalRestProperty: [
|
79
|
+
"argument"
|
80
|
+
],
|
81
|
+
ExperimentalSpreadProperty: [
|
82
|
+
"argument"
|
83
|
+
],
|
84
|
+
ExportAllDeclaration: [
|
85
|
+
"exported",
|
86
|
+
"source"
|
87
|
+
],
|
88
|
+
ExportDefaultDeclaration: [
|
89
|
+
"declaration"
|
90
|
+
],
|
91
|
+
ExportNamedDeclaration: [
|
92
|
+
"declaration",
|
93
|
+
"specifiers",
|
94
|
+
"source"
|
95
|
+
],
|
96
|
+
ExportSpecifier: [
|
97
|
+
"exported",
|
98
|
+
"local"
|
99
|
+
],
|
100
|
+
ExpressionStatement: [
|
101
|
+
"expression"
|
102
|
+
],
|
103
|
+
ForInStatement: [
|
104
|
+
"left",
|
105
|
+
"right",
|
106
|
+
"body"
|
107
|
+
],
|
108
|
+
ForOfStatement: [
|
109
|
+
"left",
|
110
|
+
"right",
|
111
|
+
"body"
|
112
|
+
],
|
113
|
+
ForStatement: [
|
114
|
+
"init",
|
115
|
+
"test",
|
116
|
+
"update",
|
117
|
+
"body"
|
118
|
+
],
|
119
|
+
FunctionDeclaration: [
|
120
|
+
"id",
|
121
|
+
"params",
|
122
|
+
"body"
|
123
|
+
],
|
124
|
+
FunctionExpression: [
|
125
|
+
"id",
|
126
|
+
"params",
|
127
|
+
"body"
|
128
|
+
],
|
129
|
+
Identifier: [],
|
130
|
+
IfStatement: [
|
131
|
+
"test",
|
132
|
+
"consequent",
|
133
|
+
"alternate"
|
134
|
+
],
|
135
|
+
ImportDeclaration: [
|
136
|
+
"specifiers",
|
137
|
+
"source"
|
138
|
+
],
|
139
|
+
ImportDefaultSpecifier: [
|
140
|
+
"local"
|
141
|
+
],
|
142
|
+
ImportExpression: [
|
143
|
+
"source"
|
144
|
+
],
|
145
|
+
ImportNamespaceSpecifier: [
|
146
|
+
"local"
|
147
|
+
],
|
148
|
+
ImportSpecifier: [
|
149
|
+
"imported",
|
150
|
+
"local"
|
151
|
+
],
|
152
|
+
JSXAttribute: [
|
153
|
+
"name",
|
154
|
+
"value"
|
155
|
+
],
|
156
|
+
JSXClosingElement: [
|
157
|
+
"name"
|
158
|
+
],
|
159
|
+
JSXClosingFragment: [],
|
160
|
+
JSXElement: [
|
161
|
+
"openingElement",
|
162
|
+
"children",
|
163
|
+
"closingElement"
|
164
|
+
],
|
165
|
+
JSXEmptyExpression: [],
|
166
|
+
JSXExpressionContainer: [
|
167
|
+
"expression"
|
168
|
+
],
|
169
|
+
JSXFragment: [
|
170
|
+
"openingFragment",
|
171
|
+
"children",
|
172
|
+
"closingFragment"
|
173
|
+
],
|
174
|
+
JSXIdentifier: [],
|
175
|
+
JSXMemberExpression: [
|
176
|
+
"object",
|
177
|
+
"property"
|
178
|
+
],
|
179
|
+
JSXNamespacedName: [
|
180
|
+
"namespace",
|
181
|
+
"name"
|
182
|
+
],
|
183
|
+
JSXOpeningElement: [
|
184
|
+
"name",
|
185
|
+
"attributes"
|
186
|
+
],
|
187
|
+
JSXOpeningFragment: [],
|
188
|
+
JSXSpreadAttribute: [
|
189
|
+
"argument"
|
190
|
+
],
|
191
|
+
JSXSpreadChild: [
|
192
|
+
"expression"
|
193
|
+
],
|
194
|
+
JSXText: [],
|
195
|
+
LabeledStatement: [
|
196
|
+
"label",
|
197
|
+
"body"
|
198
|
+
],
|
199
|
+
Literal: [],
|
200
|
+
LogicalExpression: [
|
201
|
+
"left",
|
202
|
+
"right"
|
203
|
+
],
|
204
|
+
MemberExpression: [
|
205
|
+
"object",
|
206
|
+
"property"
|
207
|
+
],
|
208
|
+
MetaProperty: [
|
209
|
+
"meta",
|
210
|
+
"property"
|
211
|
+
],
|
212
|
+
MethodDefinition: [
|
213
|
+
"key",
|
214
|
+
"value"
|
215
|
+
],
|
216
|
+
NewExpression: [
|
217
|
+
"callee",
|
218
|
+
"arguments"
|
219
|
+
],
|
220
|
+
ObjectExpression: [
|
221
|
+
"properties"
|
222
|
+
],
|
223
|
+
ObjectPattern: [
|
224
|
+
"properties"
|
225
|
+
],
|
226
|
+
PrivateIdentifier: [],
|
227
|
+
Program: [
|
228
|
+
"body"
|
229
|
+
],
|
230
|
+
Property: [
|
231
|
+
"key",
|
232
|
+
"value"
|
233
|
+
],
|
234
|
+
PropertyDefinition: [
|
235
|
+
"key",
|
236
|
+
"value"
|
237
|
+
],
|
238
|
+
RestElement: [
|
239
|
+
"argument"
|
240
|
+
],
|
241
|
+
ReturnStatement: [
|
242
|
+
"argument"
|
243
|
+
],
|
244
|
+
SequenceExpression: [
|
245
|
+
"expressions"
|
246
|
+
],
|
247
|
+
SpreadElement: [
|
248
|
+
"argument"
|
249
|
+
],
|
250
|
+
StaticBlock: [
|
251
|
+
"body"
|
252
|
+
],
|
253
|
+
Super: [],
|
254
|
+
SwitchCase: [
|
255
|
+
"test",
|
256
|
+
"consequent"
|
257
|
+
],
|
258
|
+
SwitchStatement: [
|
259
|
+
"discriminant",
|
260
|
+
"cases"
|
261
|
+
],
|
262
|
+
TaggedTemplateExpression: [
|
263
|
+
"tag",
|
264
|
+
"quasi"
|
265
|
+
],
|
266
|
+
TemplateElement: [],
|
267
|
+
TemplateLiteral: [
|
268
|
+
"quasis",
|
269
|
+
"expressions"
|
270
|
+
],
|
271
|
+
ThisExpression: [],
|
272
|
+
ThrowStatement: [
|
273
|
+
"argument"
|
274
|
+
],
|
275
|
+
TryStatement: [
|
276
|
+
"block",
|
277
|
+
"handler",
|
278
|
+
"finalizer"
|
279
|
+
],
|
280
|
+
UnaryExpression: [
|
281
|
+
"argument"
|
282
|
+
],
|
283
|
+
UpdateExpression: [
|
284
|
+
"argument"
|
285
|
+
],
|
286
|
+
VariableDeclaration: [
|
287
|
+
"declarations"
|
288
|
+
],
|
289
|
+
VariableDeclarator: [
|
290
|
+
"id",
|
291
|
+
"init"
|
292
|
+
],
|
293
|
+
WhileStatement: [
|
294
|
+
"test",
|
295
|
+
"body"
|
296
|
+
],
|
297
|
+
WithStatement: [
|
298
|
+
"object",
|
299
|
+
"body"
|
300
|
+
],
|
301
|
+
YieldExpression: [
|
302
|
+
"argument"
|
303
|
+
]
|
304
|
+
};
|
305
|
+
|
306
|
+
// Types.
|
307
|
+
const NODE_TYPES = Object.keys(KEYS);
|
308
|
+
|
309
|
+
// Freeze the keys.
|
310
|
+
for (const type of NODE_TYPES) {
|
311
|
+
Object.freeze(KEYS[type]);
|
312
|
+
}
|
313
|
+
Object.freeze(KEYS);
|
314
|
+
|
315
|
+
export default KEYS;
|
data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/package.json
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
{
|
2
|
+
"name": "eslint-visitor-keys",
|
3
|
+
"version": "3.4.3",
|
4
|
+
"description": "Constants and utilities about visitor keys to traverse AST.",
|
5
|
+
"type": "module",
|
6
|
+
"main": "dist/eslint-visitor-keys.cjs",
|
7
|
+
"types": "./dist/index.d.ts",
|
8
|
+
"exports": {
|
9
|
+
".": [
|
10
|
+
{
|
11
|
+
"import": "./lib/index.js",
|
12
|
+
"require": "./dist/eslint-visitor-keys.cjs"
|
13
|
+
},
|
14
|
+
"./dist/eslint-visitor-keys.cjs"
|
15
|
+
],
|
16
|
+
"./package.json": "./package.json"
|
17
|
+
},
|
18
|
+
"files": [
|
19
|
+
"dist/index.d.ts",
|
20
|
+
"dist/visitor-keys.d.ts",
|
21
|
+
"dist/eslint-visitor-keys.cjs",
|
22
|
+
"dist/eslint-visitor-keys.d.cts",
|
23
|
+
"lib"
|
24
|
+
],
|
25
|
+
"engines": {
|
26
|
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
27
|
+
},
|
28
|
+
"devDependencies": {
|
29
|
+
"@types/estree": "^0.0.51",
|
30
|
+
"@types/estree-jsx": "^0.0.1",
|
31
|
+
"@typescript-eslint/parser": "^5.14.0",
|
32
|
+
"c8": "^7.11.0",
|
33
|
+
"chai": "^4.3.6",
|
34
|
+
"eslint": "^7.29.0",
|
35
|
+
"eslint-config-eslint": "^7.0.0",
|
36
|
+
"eslint-plugin-jsdoc": "^35.4.0",
|
37
|
+
"eslint-plugin-node": "^11.1.0",
|
38
|
+
"eslint-release": "^3.2.0",
|
39
|
+
"esquery": "^1.4.0",
|
40
|
+
"json-diff": "^0.7.3",
|
41
|
+
"mocha": "^9.2.1",
|
42
|
+
"opener": "^1.5.2",
|
43
|
+
"rollup": "^2.70.0",
|
44
|
+
"rollup-plugin-dts": "^4.2.3",
|
45
|
+
"tsd": "^0.19.1",
|
46
|
+
"typescript": "^4.6.2"
|
47
|
+
},
|
48
|
+
"scripts": {
|
49
|
+
"build": "npm run build:cjs && npm run build:types",
|
50
|
+
"build:cjs": "rollup -c",
|
51
|
+
"build:debug": "npm run build:cjs -- -m && npm run build:types",
|
52
|
+
"build:keys": "node tools/build-keys-from-ts",
|
53
|
+
"build:types": "tsc",
|
54
|
+
"lint": "eslint .",
|
55
|
+
"prepare": "npm run build",
|
56
|
+
"release:generate:latest": "eslint-generate-release",
|
57
|
+
"release:generate:alpha": "eslint-generate-prerelease alpha",
|
58
|
+
"release:generate:beta": "eslint-generate-prerelease beta",
|
59
|
+
"release:generate:rc": "eslint-generate-prerelease rc",
|
60
|
+
"release:publish": "eslint-publish-release",
|
61
|
+
"test": "mocha tests/lib/**/*.cjs && c8 mocha tests/lib/**/*.js && npm run test:types",
|
62
|
+
"test:open-coverage": "c8 report --reporter lcov && opener coverage/lcov-report/index.html",
|
63
|
+
"test:types": "tsd"
|
64
|
+
},
|
65
|
+
"repository": "eslint/eslint-visitor-keys",
|
66
|
+
"funding": "https://opencollective.com/eslint",
|
67
|
+
"keywords": [],
|
68
|
+
"author": "Toru Nagashima (https://github.com/mysticatea)",
|
69
|
+
"license": "Apache-2.0",
|
70
|
+
"bugs": {
|
71
|
+
"url": "https://github.com/eslint/eslint-visitor-keys/issues"
|
72
|
+
},
|
73
|
+
"homepage": "https://github.com/eslint/eslint-visitor-keys#readme"
|
74
|
+
}
|
@@ -154,8 +154,82 @@ const MINIMATCH_OPTIONS = {
|
|
154
154
|
|
155
155
|
const CONFIG_TYPES = new Set(['array', 'function']);
|
156
156
|
|
157
|
+
/**
|
158
|
+
* Fields that are considered metadata and not part of the config object.
|
159
|
+
*/
|
160
|
+
const META_FIELDS = new Set(['name']);
|
161
|
+
|
157
162
|
const FILES_AND_IGNORES_SCHEMA = new objectSchema.ObjectSchema(filesAndIgnoresSchema);
|
158
163
|
|
164
|
+
/**
|
165
|
+
* Wrapper error for config validation errors that adds a name to the front of the
|
166
|
+
* error message.
|
167
|
+
*/
|
168
|
+
class ConfigError extends Error {
|
169
|
+
|
170
|
+
/**
|
171
|
+
* Creates a new instance.
|
172
|
+
* @param {string} name The config object name causing the error.
|
173
|
+
* @param {number} index The index of the config object in the array.
|
174
|
+
* @param {Error} source The source error.
|
175
|
+
*/
|
176
|
+
constructor(name, index, { cause, message }) {
|
177
|
+
|
178
|
+
|
179
|
+
const finalMessage = message || cause.message;
|
180
|
+
|
181
|
+
super(`Config ${name}: ${finalMessage}`, { cause });
|
182
|
+
|
183
|
+
// copy over custom properties that aren't represented
|
184
|
+
if (cause) {
|
185
|
+
for (const key of Object.keys(cause)) {
|
186
|
+
if (!(key in this)) {
|
187
|
+
this[key] = cause[key];
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
/**
|
193
|
+
* The name of the error.
|
194
|
+
* @type {string}
|
195
|
+
* @readonly
|
196
|
+
*/
|
197
|
+
this.name = 'ConfigError';
|
198
|
+
|
199
|
+
/**
|
200
|
+
* The index of the config object in the array.
|
201
|
+
* @type {number}
|
202
|
+
* @readonly
|
203
|
+
*/
|
204
|
+
this.index = index;
|
205
|
+
}
|
206
|
+
}
|
207
|
+
|
208
|
+
/**
|
209
|
+
* Gets the name of a config object.
|
210
|
+
* @param {object} config The config object to get the name of.
|
211
|
+
* @returns {string} The name of the config object.
|
212
|
+
*/
|
213
|
+
function getConfigName(config) {
|
214
|
+
if (config && typeof config.name === 'string' && config.name) {
|
215
|
+
return `"${config.name}"`;
|
216
|
+
}
|
217
|
+
|
218
|
+
return '(unnamed)';
|
219
|
+
}
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Rethrows a config error with additional information about the config object.
|
223
|
+
* @param {object} config The config object to get the name of.
|
224
|
+
* @param {number} index The index of the config object in the array.
|
225
|
+
* @param {Error} error The error to rethrow.
|
226
|
+
* @throws {ConfigError} When the error is rethrown for a config.
|
227
|
+
*/
|
228
|
+
function rethrowConfigError(config, index, error) {
|
229
|
+
const configName = getConfigName(config);
|
230
|
+
throw new ConfigError(configName, index, error);
|
231
|
+
}
|
232
|
+
|
159
233
|
/**
|
160
234
|
* Shorthand for checking if a value is a string.
|
161
235
|
* @param {any} value The value to check.
|
@@ -166,23 +240,43 @@ function isString(value) {
|
|
166
240
|
}
|
167
241
|
|
168
242
|
/**
|
169
|
-
*
|
170
|
-
*
|
243
|
+
* Creates a function that asserts that the config is valid
|
244
|
+
* during normalization. This checks that the config is not nullish
|
245
|
+
* and that files and ignores keys of a config object are valid as per base schema.
|
246
|
+
* @param {Object} config The config object to check.
|
247
|
+
* @param {number} index The index of the config object in the array.
|
171
248
|
* @returns {void}
|
172
|
-
* @throws {
|
249
|
+
* @throws {ConfigError} If the files and ignores keys of a config object are not valid.
|
173
250
|
*/
|
174
|
-
function
|
175
|
-
|
176
|
-
|
251
|
+
function assertValidBaseConfig(config, index) {
|
252
|
+
|
253
|
+
if (config === null) {
|
254
|
+
throw new ConfigError(getConfigName(config), index, { message: 'Unexpected null config.' });
|
255
|
+
}
|
256
|
+
|
257
|
+
if (config === undefined) {
|
258
|
+
throw new ConfigError(getConfigName(config), index, { message: 'Unexpected undefined config.' });
|
259
|
+
}
|
260
|
+
|
261
|
+
if (typeof config !== 'object') {
|
262
|
+
throw new ConfigError(getConfigName(config), index, { message: 'Unexpected non-object config.' });
|
177
263
|
}
|
264
|
+
|
178
265
|
const validateConfig = { };
|
266
|
+
|
179
267
|
if ('files' in config) {
|
180
268
|
validateConfig.files = config.files;
|
181
269
|
}
|
270
|
+
|
182
271
|
if ('ignores' in config) {
|
183
272
|
validateConfig.ignores = config.ignores;
|
184
273
|
}
|
185
|
-
|
274
|
+
|
275
|
+
try {
|
276
|
+
FILES_AND_IGNORES_SCHEMA.validate(validateConfig);
|
277
|
+
} catch (validationError) {
|
278
|
+
rethrowConfigError(config, index, { cause: validationError });
|
279
|
+
}
|
186
280
|
}
|
187
281
|
|
188
282
|
/**
|
@@ -377,7 +471,7 @@ function pathMatchesIgnores(filePath, basePath, config) {
|
|
377
471
|
*/
|
378
472
|
const relativeFilePath = path.relative(basePath, filePath);
|
379
473
|
|
380
|
-
return Object.keys(config).length > 1 &&
|
474
|
+
return Object.keys(config).filter(key => !META_FIELDS.has(key)).length > 1 &&
|
381
475
|
!shouldIgnorePath(config.ignores, filePath, relativeFilePath);
|
382
476
|
}
|
383
477
|
|
@@ -511,7 +605,7 @@ class ConfigArray extends Array {
|
|
511
605
|
/**
|
512
606
|
* Tracks if the array has been normalized.
|
513
607
|
* @property isNormalized
|
514
|
-
* @type boolean
|
608
|
+
* @type {boolean}
|
515
609
|
* @private
|
516
610
|
*/
|
517
611
|
this[ConfigArraySymbol.isNormalized] = normalized;
|
@@ -530,7 +624,7 @@ class ConfigArray extends Array {
|
|
530
624
|
* The path of the config file that this array was loaded from.
|
531
625
|
* This is used to calculate filename matches.
|
532
626
|
* @property basePath
|
533
|
-
* @type string
|
627
|
+
* @type {string}
|
534
628
|
*/
|
535
629
|
this.basePath = basePath;
|
536
630
|
|
@@ -539,14 +633,14 @@ class ConfigArray extends Array {
|
|
539
633
|
/**
|
540
634
|
* The supported config types.
|
541
635
|
* @property configTypes
|
542
|
-
* @type Array<string>
|
636
|
+
* @type {Array<string>}
|
543
637
|
*/
|
544
638
|
this.extraConfigTypes = Object.freeze([...extraConfigTypes]);
|
545
639
|
|
546
640
|
/**
|
547
641
|
* A cache to store calculated configs for faster repeat lookup.
|
548
642
|
* @property configCache
|
549
|
-
* @type Map
|
643
|
+
* @type {Map<string, Object>}
|
550
644
|
* @private
|
551
645
|
*/
|
552
646
|
this[ConfigArraySymbol.configCache] = new Map();
|
@@ -645,7 +739,7 @@ class ConfigArray extends Array {
|
|
645
739
|
* In this case, it acts list a globally ignored pattern. If there
|
646
740
|
* are additional keys, then ignores act like exclusions.
|
647
741
|
*/
|
648
|
-
if (config.ignores && Object.keys(config).length === 1) {
|
742
|
+
if (config.ignores && Object.keys(config).filter(key => !META_FIELDS.has(key)).length === 1) {
|
649
743
|
result.push(...config.ignores);
|
650
744
|
}
|
651
745
|
}
|
@@ -677,7 +771,7 @@ class ConfigArray extends Array {
|
|
677
771
|
const normalizedConfigs = await normalize(this, context, this.extraConfigTypes);
|
678
772
|
this.length = 0;
|
679
773
|
this.push(...normalizedConfigs.map(this[ConfigArraySymbol.preprocessConfig].bind(this)));
|
680
|
-
this.forEach(
|
774
|
+
this.forEach(assertValidBaseConfig);
|
681
775
|
this[ConfigArraySymbol.isNormalized] = true;
|
682
776
|
|
683
777
|
// prevent further changes
|
@@ -699,7 +793,7 @@ class ConfigArray extends Array {
|
|
699
793
|
const normalizedConfigs = normalizeSync(this, context, this.extraConfigTypes);
|
700
794
|
this.length = 0;
|
701
795
|
this.push(...normalizedConfigs.map(this[ConfigArraySymbol.preprocessConfig].bind(this)));
|
702
|
-
this.forEach(
|
796
|
+
this.forEach(assertValidBaseConfig);
|
703
797
|
this[ConfigArraySymbol.isNormalized] = true;
|
704
798
|
|
705
799
|
// prevent further changes
|
@@ -932,7 +1026,11 @@ class ConfigArray extends Array {
|
|
932
1026
|
// otherwise construct the config
|
933
1027
|
|
934
1028
|
finalConfig = matchingConfigIndices.reduce((result, index) => {
|
935
|
-
|
1029
|
+
try {
|
1030
|
+
return this[ConfigArraySymbol.schema].merge(result, this[index]);
|
1031
|
+
} catch (validationError) {
|
1032
|
+
rethrowConfigError(this[index], index, { cause: validationError});
|
1033
|
+
}
|
936
1034
|
}, {}, this);
|
937
1035
|
|
938
1036
|
finalConfig = this[ConfigArraySymbol.finalizeConfig](finalConfig);
|
@@ -1,11 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@humanwhocodes/config-array",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.13.0",
|
4
4
|
"description": "Glob-based configuration matching.",
|
5
5
|
"author": "Nicholas C. Zakas",
|
6
6
|
"main": "api.js",
|
7
7
|
"files": [
|
8
|
-
"api.js"
|
8
|
+
"api.js",
|
9
|
+
"LICENSE",
|
10
|
+
"README.md"
|
9
11
|
],
|
10
12
|
"repository": {
|
11
13
|
"type": "git",
|
@@ -42,7 +44,7 @@
|
|
42
44
|
"node": ">=10.10.0"
|
43
45
|
},
|
44
46
|
"dependencies": {
|
45
|
-
"@humanwhocodes/object-schema": "^2.0.
|
47
|
+
"@humanwhocodes/object-schema": "^2.0.3",
|
46
48
|
"debug": "^4.3.1",
|
47
49
|
"minimatch": "^3.0.5"
|
48
50
|
},
|
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [2.0.3](https://github.com/humanwhocodes/object-schema/compare/v2.0.2...v2.0.3) (2024-04-01)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* Ensure test files are not including in package ([6eeb32c](https://github.com/humanwhocodes/object-schema/commit/6eeb32cc76a3e37d76b2990bd603d72061c816e0)), closes [#19](https://github.com/humanwhocodes/object-schema/issues/19)
|
9
|
+
|
3
10
|
## [2.0.2](https://github.com/humanwhocodes/object-schema/compare/v2.0.1...v2.0.2) (2024-01-10)
|
4
11
|
|
5
12
|
|
@@ -1,8 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@humanwhocodes/object-schema",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.3",
|
4
4
|
"description": "An object schema merger/validator",
|
5
5
|
"main": "src/index.js",
|
6
|
+
"files": [
|
7
|
+
"src",
|
8
|
+
"LICENSE",
|
9
|
+
"README.md"
|
10
|
+
],
|
6
11
|
"directories": {
|
7
12
|
"test": "tests"
|
8
13
|
},
|