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,264 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
const EventEmitter = require('events');
|
4
|
+
const JSONB = require('json-buffer');
|
5
|
+
|
6
|
+
const loadStore = options => {
|
7
|
+
const adapters = {
|
8
|
+
redis: '@keyv/redis',
|
9
|
+
rediss: '@keyv/redis',
|
10
|
+
mongodb: '@keyv/mongo',
|
11
|
+
mongo: '@keyv/mongo',
|
12
|
+
sqlite: '@keyv/sqlite',
|
13
|
+
postgresql: '@keyv/postgres',
|
14
|
+
postgres: '@keyv/postgres',
|
15
|
+
mysql: '@keyv/mysql',
|
16
|
+
etcd: '@keyv/etcd',
|
17
|
+
offline: '@keyv/offline',
|
18
|
+
tiered: '@keyv/tiered',
|
19
|
+
};
|
20
|
+
if (options.adapter || options.uri) {
|
21
|
+
const adapter = options.adapter || /^[^:+]*/.exec(options.uri)[0];
|
22
|
+
return new (require(adapters[adapter]))(options);
|
23
|
+
}
|
24
|
+
|
25
|
+
return new Map();
|
26
|
+
};
|
27
|
+
|
28
|
+
const iterableAdapters = [
|
29
|
+
'sqlite',
|
30
|
+
'postgres',
|
31
|
+
'mysql',
|
32
|
+
'mongo',
|
33
|
+
'redis',
|
34
|
+
'tiered',
|
35
|
+
];
|
36
|
+
|
37
|
+
class Keyv extends EventEmitter {
|
38
|
+
constructor(uri, {emitErrors = true, ...options} = {}) {
|
39
|
+
super();
|
40
|
+
this.opts = {
|
41
|
+
namespace: 'keyv',
|
42
|
+
serialize: JSONB.stringify,
|
43
|
+
deserialize: JSONB.parse,
|
44
|
+
...((typeof uri === 'string') ? {uri} : uri),
|
45
|
+
...options,
|
46
|
+
};
|
47
|
+
|
48
|
+
if (!this.opts.store) {
|
49
|
+
const adapterOptions = {...this.opts};
|
50
|
+
this.opts.store = loadStore(adapterOptions);
|
51
|
+
}
|
52
|
+
|
53
|
+
if (this.opts.compression) {
|
54
|
+
const compression = this.opts.compression;
|
55
|
+
this.opts.serialize = compression.serialize.bind(compression);
|
56
|
+
this.opts.deserialize = compression.deserialize.bind(compression);
|
57
|
+
}
|
58
|
+
|
59
|
+
if (typeof this.opts.store.on === 'function' && emitErrors) {
|
60
|
+
this.opts.store.on('error', error => this.emit('error', error));
|
61
|
+
}
|
62
|
+
|
63
|
+
this.opts.store.namespace = this.opts.namespace;
|
64
|
+
|
65
|
+
const generateIterator = iterator => async function * () {
|
66
|
+
for await (const [key, raw] of typeof iterator === 'function'
|
67
|
+
? iterator(this.opts.store.namespace)
|
68
|
+
: iterator) {
|
69
|
+
const data = await this.opts.deserialize(raw);
|
70
|
+
if (this.opts.store.namespace && !key.includes(this.opts.store.namespace)) {
|
71
|
+
continue;
|
72
|
+
}
|
73
|
+
|
74
|
+
if (typeof data.expires === 'number' && Date.now() > data.expires) {
|
75
|
+
this.delete(key);
|
76
|
+
continue;
|
77
|
+
}
|
78
|
+
|
79
|
+
yield [this._getKeyUnprefix(key), data.value];
|
80
|
+
}
|
81
|
+
};
|
82
|
+
|
83
|
+
// Attach iterators
|
84
|
+
if (typeof this.opts.store[Symbol.iterator] === 'function' && this.opts.store instanceof Map) {
|
85
|
+
this.iterator = generateIterator(this.opts.store);
|
86
|
+
} else if (typeof this.opts.store.iterator === 'function' && this.opts.store.opts
|
87
|
+
&& this._checkIterableAdaptar()) {
|
88
|
+
this.iterator = generateIterator(this.opts.store.iterator.bind(this.opts.store));
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
_checkIterableAdaptar() {
|
93
|
+
return iterableAdapters.includes(this.opts.store.opts.dialect)
|
94
|
+
|| iterableAdapters.findIndex(element => this.opts.store.opts.url.includes(element)) >= 0;
|
95
|
+
}
|
96
|
+
|
97
|
+
_getKeyPrefix(key) {
|
98
|
+
return `${this.opts.namespace}:${key}`;
|
99
|
+
}
|
100
|
+
|
101
|
+
_getKeyPrefixArray(keys) {
|
102
|
+
return keys.map(key => `${this.opts.namespace}:${key}`);
|
103
|
+
}
|
104
|
+
|
105
|
+
_getKeyUnprefix(key) {
|
106
|
+
return key
|
107
|
+
.split(':')
|
108
|
+
.splice(1)
|
109
|
+
.join(':');
|
110
|
+
}
|
111
|
+
|
112
|
+
get(key, options) {
|
113
|
+
const {store} = this.opts;
|
114
|
+
const isArray = Array.isArray(key);
|
115
|
+
const keyPrefixed = isArray ? this._getKeyPrefixArray(key) : this._getKeyPrefix(key);
|
116
|
+
if (isArray && store.getMany === undefined) {
|
117
|
+
const promises = [];
|
118
|
+
for (const key of keyPrefixed) {
|
119
|
+
promises.push(Promise.resolve()
|
120
|
+
.then(() => store.get(key))
|
121
|
+
.then(data => (typeof data === 'string') ? this.opts.deserialize(data) : (this.opts.compression ? this.opts.deserialize(data) : data))
|
122
|
+
.then(data => {
|
123
|
+
if (data === undefined || data === null) {
|
124
|
+
return undefined;
|
125
|
+
}
|
126
|
+
|
127
|
+
if (typeof data.expires === 'number' && Date.now() > data.expires) {
|
128
|
+
return this.delete(key).then(() => undefined);
|
129
|
+
}
|
130
|
+
|
131
|
+
return (options && options.raw) ? data : data.value;
|
132
|
+
}),
|
133
|
+
);
|
134
|
+
}
|
135
|
+
|
136
|
+
return Promise.allSettled(promises)
|
137
|
+
.then(values => {
|
138
|
+
const data = [];
|
139
|
+
for (const value of values) {
|
140
|
+
data.push(value.value);
|
141
|
+
}
|
142
|
+
|
143
|
+
return data;
|
144
|
+
});
|
145
|
+
}
|
146
|
+
|
147
|
+
return Promise.resolve()
|
148
|
+
.then(() => isArray ? store.getMany(keyPrefixed) : store.get(keyPrefixed))
|
149
|
+
.then(data => (typeof data === 'string') ? this.opts.deserialize(data) : (this.opts.compression ? this.opts.deserialize(data) : data))
|
150
|
+
.then(data => {
|
151
|
+
if (data === undefined || data === null) {
|
152
|
+
return undefined;
|
153
|
+
}
|
154
|
+
|
155
|
+
if (isArray) {
|
156
|
+
const result = [];
|
157
|
+
|
158
|
+
for (let row of data) {
|
159
|
+
if ((typeof row === 'string')) {
|
160
|
+
row = this.opts.deserialize(row);
|
161
|
+
}
|
162
|
+
|
163
|
+
if (row === undefined || row === null) {
|
164
|
+
result.push(undefined);
|
165
|
+
continue;
|
166
|
+
}
|
167
|
+
|
168
|
+
if (typeof row.expires === 'number' && Date.now() > row.expires) {
|
169
|
+
this.delete(key).then(() => undefined);
|
170
|
+
result.push(undefined);
|
171
|
+
} else {
|
172
|
+
result.push((options && options.raw) ? row : row.value);
|
173
|
+
}
|
174
|
+
}
|
175
|
+
|
176
|
+
return result;
|
177
|
+
}
|
178
|
+
|
179
|
+
if (typeof data.expires === 'number' && Date.now() > data.expires) {
|
180
|
+
return this.delete(key).then(() => undefined);
|
181
|
+
}
|
182
|
+
|
183
|
+
return (options && options.raw) ? data : data.value;
|
184
|
+
});
|
185
|
+
}
|
186
|
+
|
187
|
+
set(key, value, ttl) {
|
188
|
+
const keyPrefixed = this._getKeyPrefix(key);
|
189
|
+
if (typeof ttl === 'undefined') {
|
190
|
+
ttl = this.opts.ttl;
|
191
|
+
}
|
192
|
+
|
193
|
+
if (ttl === 0) {
|
194
|
+
ttl = undefined;
|
195
|
+
}
|
196
|
+
|
197
|
+
const {store} = this.opts;
|
198
|
+
|
199
|
+
return Promise.resolve()
|
200
|
+
.then(() => {
|
201
|
+
const expires = (typeof ttl === 'number') ? (Date.now() + ttl) : null;
|
202
|
+
if (typeof value === 'symbol') {
|
203
|
+
this.emit('error', 'symbol cannot be serialized');
|
204
|
+
}
|
205
|
+
|
206
|
+
value = {value, expires};
|
207
|
+
return this.opts.serialize(value);
|
208
|
+
})
|
209
|
+
.then(value => store.set(keyPrefixed, value, ttl))
|
210
|
+
.then(() => true);
|
211
|
+
}
|
212
|
+
|
213
|
+
delete(key) {
|
214
|
+
const {store} = this.opts;
|
215
|
+
if (Array.isArray(key)) {
|
216
|
+
const keyPrefixed = this._getKeyPrefixArray(key);
|
217
|
+
if (store.deleteMany === undefined) {
|
218
|
+
const promises = [];
|
219
|
+
for (const key of keyPrefixed) {
|
220
|
+
promises.push(store.delete(key));
|
221
|
+
}
|
222
|
+
|
223
|
+
return Promise.allSettled(promises)
|
224
|
+
.then(values => values.every(x => x.value === true));
|
225
|
+
}
|
226
|
+
|
227
|
+
return Promise.resolve()
|
228
|
+
.then(() => store.deleteMany(keyPrefixed));
|
229
|
+
}
|
230
|
+
|
231
|
+
const keyPrefixed = this._getKeyPrefix(key);
|
232
|
+
return Promise.resolve()
|
233
|
+
.then(() => store.delete(keyPrefixed));
|
234
|
+
}
|
235
|
+
|
236
|
+
clear() {
|
237
|
+
const {store} = this.opts;
|
238
|
+
return Promise.resolve()
|
239
|
+
.then(() => store.clear());
|
240
|
+
}
|
241
|
+
|
242
|
+
has(key) {
|
243
|
+
const keyPrefixed = this._getKeyPrefix(key);
|
244
|
+
const {store} = this.opts;
|
245
|
+
return Promise.resolve()
|
246
|
+
.then(async () => {
|
247
|
+
if (typeof store.has === 'function') {
|
248
|
+
return store.has(keyPrefixed);
|
249
|
+
}
|
250
|
+
|
251
|
+
const value = await store.get(keyPrefixed);
|
252
|
+
return value !== undefined;
|
253
|
+
});
|
254
|
+
}
|
255
|
+
|
256
|
+
disconnect() {
|
257
|
+
const {store} = this.opts;
|
258
|
+
if (typeof store.disconnect === 'function') {
|
259
|
+
return store.disconnect();
|
260
|
+
}
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
module.exports = Keyv;
|
@@ -1,10 +1,3 @@
|
|
1
|
-
v3.0.0 - November 9, 2018
|
2
|
-
|
3
|
-
* 0b5a8c7 Breaking: drop support for Node < 6 (#223) (Kai Cataldo)
|
4
|
-
* a05e9f2 Upgrade: eslint-release@1.0.0 (#220) (Teddy Katz)
|
5
|
-
* 36ed027 Chore: upgrade coveralls to ^3.0.1 (#213) (Teddy Katz)
|
6
|
-
* 8667e34 Upgrade: eslint-release@^0.11.1 (#210) (Kevin Partington)
|
7
|
-
|
8
1
|
v2.1.0 - January 6, 2018
|
9
2
|
|
10
3
|
* 827f314 Update: support node ranges (fixes #89) (#190) (Teddy Katz)
|
@@ -3,9 +3,9 @@
|
|
3
3
|
"description": "JSDoc parser",
|
4
4
|
"homepage": "https://github.com/eslint/doctrine",
|
5
5
|
"main": "lib/doctrine.js",
|
6
|
-
"version": "
|
6
|
+
"version": "2.1.0",
|
7
7
|
"engines": {
|
8
|
-
"node": ">=
|
8
|
+
"node": ">=0.10.0"
|
9
9
|
},
|
10
10
|
"directories": {
|
11
11
|
"lib": "./lib"
|
@@ -27,10 +27,10 @@
|
|
27
27
|
],
|
28
28
|
"repository": "eslint/doctrine",
|
29
29
|
"devDependencies": {
|
30
|
-
"coveralls": "^
|
30
|
+
"coveralls": "^2.11.2",
|
31
31
|
"dateformat": "^1.0.11",
|
32
32
|
"eslint": "^1.10.3",
|
33
|
-
"eslint-release": "^
|
33
|
+
"eslint-release": "^0.10.0",
|
34
34
|
"linefix": "^0.1.1",
|
35
35
|
"mocha": "^3.4.2",
|
36
36
|
"npm-license": "^0.3.1",
|
@@ -46,11 +46,10 @@
|
|
46
46
|
"test": "nyc mocha",
|
47
47
|
"coveralls": "nyc report --reporter=text-lcov | coveralls",
|
48
48
|
"lint": "eslint lib/",
|
49
|
-
"
|
50
|
-
"
|
51
|
-
"
|
52
|
-
"
|
53
|
-
"publish-release": "eslint-publish-release"
|
49
|
+
"release": "eslint-release",
|
50
|
+
"ci-release": "eslint-ci-release",
|
51
|
+
"alpharelease": "eslint-prerelease alpha",
|
52
|
+
"betarelease": "eslint-prerelease beta"
|
54
53
|
},
|
55
54
|
"dependencies": {
|
56
55
|
"esutils": "^2.0.2"
|
@@ -43,12 +43,12 @@ ESLint is a tool for identifying and reporting on patterns found in ECMAScript/J
|
|
43
43
|
|
44
44
|
## Installation and Usage
|
45
45
|
|
46
|
-
Prerequisites: [Node.js](https://nodejs.org/) (`^
|
46
|
+
Prerequisites: [Node.js](https://nodejs.org/) (`^18.18.0`, `^20.9.0`, or `>=21.1.0`) built with SSL support. (If you are using an official Node.js distribution, SSL is always built in.)
|
47
47
|
|
48
48
|
You can install and configure ESLint using this command:
|
49
49
|
|
50
50
|
```shell
|
51
|
-
npm init @eslint/config
|
51
|
+
npm init @eslint/config@latest
|
52
52
|
```
|
53
53
|
|
54
54
|
After that, you can run ESLint on any file or directory like this:
|
@@ -59,15 +59,11 @@ After that, you can run ESLint on any file or directory like this:
|
|
59
59
|
|
60
60
|
## Configuration
|
61
61
|
|
62
|
-
After running `npm init @eslint/config`, you'll have an
|
62
|
+
After running `npm init @eslint/config`, you'll have an `eslint.config.js` (or `eslint.config.mjs`) file in your directory. In it, you'll see some rules configured like this:
|
63
63
|
|
64
|
-
```
|
65
|
-
|
66
|
-
|
67
|
-
"semi": ["error", "always"],
|
68
|
-
"quotes": ["error", "double"]
|
69
|
-
}
|
70
|
-
}
|
64
|
+
```js
|
65
|
+
import pluginJs from "@eslint/js";
|
66
|
+
export default [ pluginJs.configs.recommended, ];
|
71
67
|
```
|
72
68
|
|
73
69
|
The names `"semi"` and `"quotes"` are the names of [rules](https://eslint.org/docs/rules) in ESLint. The first value is the error level of the rule and can be one of these values:
|
@@ -103,7 +99,7 @@ We are now at or near 100% compatibility with JSCS. If you try ESLint and believ
|
|
103
99
|
|
104
100
|
### Does Prettier replace ESLint?
|
105
101
|
|
106
|
-
No, ESLint and Prettier have
|
102
|
+
No, ESLint and Prettier have different jobs: ESLint is a linter (looking for problematic patterns) and Prettier is a code formatter. Using both tools is common, refer to [Prettier's documentation](https://prettier.io/docs/en/install#eslint-and-other-linters) to learn how to configure them to work well with each other.
|
107
103
|
|
108
104
|
### Why can't ESLint find my plugins?
|
109
105
|
|
@@ -117,7 +113,7 @@ Yes, ESLint natively supports parsing JSX syntax (this must be enabled in [confi
|
|
117
113
|
|
118
114
|
### What ECMAScript versions does ESLint support?
|
119
115
|
|
120
|
-
ESLint has full support for ECMAScript 3, 5
|
116
|
+
ESLint has full support for ECMAScript 3, 5, and every year from 2015 up until the most recent stage 4 specification (the default). You can set your desired ECMAScript syntax and other settings (like global variables) through [configuration](https://eslint.org/docs/latest/use/configure).
|
121
117
|
|
122
118
|
### What about experimental features?
|
123
119
|
|
@@ -127,6 +123,18 @@ In other cases (including if rules need to warn on more or fewer cases due to ne
|
|
127
123
|
|
128
124
|
Once a language feature has been adopted into the ECMAScript standard (stage 4 according to the [TC39 process](https://tc39.github.io/process-document/)), we will accept issues and pull requests related to the new feature, subject to our [contributing guidelines](https://eslint.org/docs/latest/contribute). Until then, please use the appropriate parser and plugin(s) for your experimental feature.
|
129
125
|
|
126
|
+
### Which Node.js versions does ESLint support?
|
127
|
+
|
128
|
+
ESLint updates the supported Node.js versions with each major release of ESLint. At that time, ESLint's supported Node.js versions are updated to be:
|
129
|
+
|
130
|
+
1. The most recent maintenance release of Node.js
|
131
|
+
1. The lowest minor version of the Node.js LTS release that includes the features the ESLint team wants to use.
|
132
|
+
1. The Node.js Current release
|
133
|
+
|
134
|
+
ESLint is also expected to work with Node.js versions released after the Node.js Current release.
|
135
|
+
|
136
|
+
Refer to the [Quick Start Guide](https://eslint.org/docs/latest/use/getting-started#prerequisites) for the officially supported Node.js versions for a given ESLint release.
|
137
|
+
|
130
138
|
### Where to ask for help?
|
131
139
|
|
132
140
|
Open a [discussion](https://github.com/eslint/eslint/discussions) or stop by our [Discord server](https://eslint.org/chat).
|
@@ -213,6 +221,11 @@ The people who manage releases, review feature requests, and meet regularly to e
|
|
213
221
|
Nicholas C. Zakas
|
214
222
|
</a>
|
215
223
|
</td><td align="center" valign="top" width="11%">
|
224
|
+
<a href="https://github.com/fasttime">
|
225
|
+
<img src="https://github.com/fasttime.png?s=75" width="75" height="75" alt="Francesco Trotta's Avatar"><br />
|
226
|
+
Francesco Trotta
|
227
|
+
</a>
|
228
|
+
</td><td align="center" valign="top" width="11%">
|
216
229
|
<a href="https://github.com/mdjermanovic">
|
217
230
|
<img src="https://github.com/mdjermanovic.png?s=75" width="75" height="75" alt="Milos Djermanovic's Avatar"><br />
|
218
231
|
Milos Djermanovic
|
@@ -240,19 +253,9 @@ Nitin Kumar
|
|
240
253
|
The people who review and fix bugs and help triage issues.
|
241
254
|
|
242
255
|
<table><tbody><tr><td align="center" valign="top" width="11%">
|
243
|
-
<a href="https://github.com/
|
244
|
-
<img src="https://github.com/
|
245
|
-
|
246
|
-
</a>
|
247
|
-
</td><td align="center" valign="top" width="11%">
|
248
|
-
<a href="https://github.com/fasttime">
|
249
|
-
<img src="https://github.com/fasttime.png?s=75" width="75" height="75" alt="Francesco Trotta's Avatar"><br />
|
250
|
-
Francesco Trotta
|
251
|
-
</a>
|
252
|
-
</td><td align="center" valign="top" width="11%">
|
253
|
-
<a href="https://github.com/ota-meshi">
|
254
|
-
<img src="https://github.com/ota-meshi.png?s=75" width="75" height="75" alt="Yosuke Ota's Avatar"><br />
|
255
|
-
Yosuke Ota
|
256
|
+
<a href="https://github.com/JoshuaKGoldberg">
|
257
|
+
<img src="https://github.com/JoshuaKGoldberg.png?s=75" width="75" height="75" alt="Josh Goldberg ✨'s Avatar"><br />
|
258
|
+
Josh Goldberg ✨
|
256
259
|
</a>
|
257
260
|
</td><td align="center" valign="top" width="11%">
|
258
261
|
<a href="https://github.com/Tanujkanti4441">
|
@@ -291,10 +294,10 @@ The following companies, organizations, and individuals support ESLint's ongoing
|
|
291
294
|
<!-- NOTE: This section is autogenerated. Do not manually edit.-->
|
292
295
|
<!--sponsorsstart-->
|
293
296
|
<h3>Platinum Sponsors</h3>
|
294
|
-
<p><a href="
|
297
|
+
<p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="undefined"></a></p><h3>Gold Sponsors</h3>
|
295
298
|
<p><a href="https://engineering.salesforce.com"><img src="https://images.opencollective.com/salesforce/ca8f997/logo.png" alt="Salesforce" height="96"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="96"></a></p><h3>Silver Sponsors</h3>
|
296
|
-
<p><a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://americanexpress.io"><img src="https://avatars.githubusercontent.com/u/3853301?v=4" alt="American Express" height="64"></a> <a href="https://www.workleap.com"><img src="https://avatars.githubusercontent.com/u/53535748?u=d1e55d7661d724bf2281c1bfd33cb8f99fe2465f&v=4" alt="Workleap" height="64"></a></p><h3>Bronze Sponsors</h3>
|
297
|
-
<p><a href="https://
|
299
|
+
<p><a href="https://www.jetbrains.com/"><img src="https://images.opencollective.com/jetbrains/eb04ddc/logo.png" alt="JetBrains" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://americanexpress.io"><img src="https://avatars.githubusercontent.com/u/3853301?v=4" alt="American Express" height="64"></a> <a href="https://www.workleap.com"><img src="https://avatars.githubusercontent.com/u/53535748?u=d1e55d7661d724bf2281c1bfd33cb8f99fe2465f&v=4" alt="Workleap" height="64"></a></p><h3>Bronze Sponsors</h3>
|
300
|
+
<p><a href="https://www.notion.so"><img src="https://images.opencollective.com/notion/bf3b117/logo.png" alt="notion" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://transloadit.com/"><img src="https://avatars.githubusercontent.com/u/125754?v=4" alt="Transloadit" height="32"></a> <a href="https://www.ignitionapp.com"><img src="https://avatars.githubusercontent.com/u/5753491?v=4" alt="Ignition" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104?v=4" alt="Nx" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774?v=4" alt="HeroCoders" height="32"></a> <a href="https://usenextbase.com"><img src="https://avatars.githubusercontent.com/u/145838380?v=4" alt="Nextbase Starter Kit" height="32"></a></p>
|
298
301
|
<!--sponsorsend-->
|
299
302
|
|
300
303
|
## Technology Sponsors
|
@@ -140,16 +140,17 @@ ${getErrorMessage(error)}`;
|
|
140
140
|
if (process.argv.includes("--init")) {
|
141
141
|
|
142
142
|
// `eslint --init` has been moved to `@eslint/create-config`
|
143
|
-
console.warn("You can also run this command directly using 'npm init @eslint/config'.");
|
143
|
+
console.warn("You can also run this command directly using 'npm init @eslint/config@latest'.");
|
144
144
|
|
145
145
|
const spawn = require("cross-spawn");
|
146
146
|
|
147
|
-
spawn.sync("npm", ["init", "@eslint/config"], { encoding: "utf8", stdio: "inherit" });
|
147
|
+
spawn.sync("npm", ["init", "@eslint/config@latest"], { encoding: "utf8", stdio: "inherit" });
|
148
148
|
return;
|
149
149
|
}
|
150
150
|
|
151
151
|
// Otherwise, call the CLI.
|
152
|
-
const
|
152
|
+
const cli = require("../lib/cli");
|
153
|
+
const exitCode = await cli.execute(
|
153
154
|
process.argv,
|
154
155
|
process.argv.includes("--stdin") ? await readStdin() : null,
|
155
156
|
true
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* @fileoverview Configuration related to ECMAScript versions
|
3
|
+
* @author Milos Djermanovic
|
4
|
+
*/
|
5
|
+
|
6
|
+
"use strict";
|
7
|
+
|
8
|
+
/**
|
9
|
+
* The latest ECMAScript version supported by ESLint.
|
10
|
+
* @type {number} year-based ECMAScript version
|
11
|
+
*/
|
12
|
+
const LATEST_ECMA_VERSION = 2024;
|
13
|
+
|
14
|
+
module.exports = {
|
15
|
+
LATEST_ECMA_VERSION
|
16
|
+
};
|
@@ -23,6 +23,8 @@
|
|
23
23
|
{ "removed": "space-in-brackets", "replacedBy": ["object-curly-spacing", "array-bracket-spacing"] },
|
24
24
|
{ "removed": "space-return-throw-case", "replacedBy": ["keyword-spacing"] },
|
25
25
|
{ "removed": "space-unary-word-ops", "replacedBy": ["space-unary-ops"] },
|
26
|
-
{ "removed": "spaced-line-comment", "replacedBy": ["spaced-comment"] }
|
26
|
+
{ "removed": "spaced-line-comment", "replacedBy": ["spaced-comment"] },
|
27
|
+
{ "removed": "valid-jsdoc", "replacedBy": [] },
|
28
|
+
{ "removed": "require-jsdoc", "replacedBy": [] }
|
27
29
|
]
|
28
30
|
}
|
@@ -9,8 +9,8 @@
|
|
9
9
|
// Requirements
|
10
10
|
//-----------------------------------------------------------------------------
|
11
11
|
|
12
|
-
const { ESLint,
|
13
|
-
const {
|
12
|
+
const { ESLint, shouldUseFlatConfig } = require("./eslint/eslint");
|
13
|
+
const { LegacyESLint } = require("./eslint/legacy-eslint");
|
14
14
|
const { Linter } = require("./linter");
|
15
15
|
const { RuleTester } = require("./rule-tester");
|
16
16
|
const { SourceCode } = require("./source-code");
|
@@ -23,22 +23,18 @@ const { SourceCode } = require("./source-code");
|
|
23
23
|
* Loads the correct ESLint constructor given the options.
|
24
24
|
* @param {Object} [options] The options object
|
25
25
|
* @param {boolean} [options.useFlatConfig] Whether or not to use a flat config
|
26
|
-
* @param {string} [options.cwd] The current working directory
|
27
26
|
* @returns {Promise<ESLint|LegacyESLint>} The ESLint constructor
|
28
27
|
*/
|
29
|
-
async function loadESLint({ useFlatConfig
|
28
|
+
async function loadESLint({ useFlatConfig } = {}) {
|
30
29
|
|
31
30
|
/*
|
32
|
-
* Note: The
|
33
|
-
*
|
34
|
-
* function.
|
31
|
+
* Note: The v8.x version of this function also accepted a `cwd` option, but
|
32
|
+
* it is not used in this implementation so we silently ignore it.
|
35
33
|
*/
|
36
34
|
|
37
|
-
const shouldESLintUseFlatConfig =
|
38
|
-
? useFlatConfig
|
39
|
-
: await shouldUseFlatConfig({ cwd });
|
35
|
+
const shouldESLintUseFlatConfig = useFlatConfig ?? (await shouldUseFlatConfig());
|
40
36
|
|
41
|
-
return shouldESLintUseFlatConfig ?
|
37
|
+
return shouldESLintUseFlatConfig ? ESLint : LegacyESLint;
|
42
38
|
}
|
43
39
|
|
44
40
|
//-----------------------------------------------------------------------------
|
@@ -41,6 +41,17 @@ const hash = require("./hash");
|
|
41
41
|
const LintResultCache = require("./lint-result-cache");
|
42
42
|
|
43
43
|
const debug = require("debug")("eslint:cli-engine");
|
44
|
+
const removedFormatters = new Set([
|
45
|
+
"checkstyle",
|
46
|
+
"codeframe",
|
47
|
+
"compact",
|
48
|
+
"jslint-xml",
|
49
|
+
"junit",
|
50
|
+
"table",
|
51
|
+
"tap",
|
52
|
+
"unix",
|
53
|
+
"visualstudio"
|
54
|
+
]);
|
44
55
|
const validFixTypes = new Set(["directive", "problem", "suggestion", "layout"]);
|
45
56
|
|
46
57
|
//------------------------------------------------------------------------------
|
@@ -639,7 +650,7 @@ class CLIEngine {
|
|
639
650
|
});
|
640
651
|
const lintResultCache =
|
641
652
|
options.cache ? new LintResultCache(cacheFilePath, options.cacheStrategy) : null;
|
642
|
-
const linter = new Linter({ cwd: options.cwd });
|
653
|
+
const linter = new Linter({ cwd: options.cwd, configType: "eslintrc" });
|
643
654
|
|
644
655
|
/** @type {ConfigArray[]} */
|
645
656
|
const lastConfigArrays = [configArrayFactory.getConfigArrayForFile()];
|
@@ -721,7 +732,7 @@ class CLIEngine {
|
|
721
732
|
* @returns {void}
|
722
733
|
*/
|
723
734
|
static outputFixes(report) {
|
724
|
-
report.results.filter(result => Object.
|
735
|
+
report.results.filter(result => Object.hasOwn(result, "output")).forEach(result => {
|
725
736
|
fs.writeFileSync(result.filePath, result.output);
|
726
737
|
});
|
727
738
|
}
|
@@ -1047,7 +1058,7 @@ class CLIEngine {
|
|
1047
1058
|
try {
|
1048
1059
|
return require(formatterPath);
|
1049
1060
|
} catch (ex) {
|
1050
|
-
if (format
|
1061
|
+
if (removedFormatters.has(format)) {
|
1051
1062
|
ex.message = `The ${format} formatter is no longer part of core ESLint. Install it manually with \`npm install -D eslint-formatter-${format}\``;
|
1052
1063
|
} else {
|
1053
1064
|
ex.message = `There was a problem loading formatter: ${formatterPath}\nError: ${ex.message}`;
|
@@ -1,20 +1,8 @@
|
|
1
1
|
[
|
2
|
-
{
|
3
|
-
"name": "checkstyle",
|
4
|
-
"description": "Outputs results to the [Checkstyle](https://checkstyle.sourceforge.io/) format."
|
5
|
-
},
|
6
|
-
{
|
7
|
-
"name": "compact",
|
8
|
-
"description": "Human-readable output format. Mimics the default output of JSHint."
|
9
|
-
},
|
10
2
|
{
|
11
3
|
"name": "html",
|
12
4
|
"description": "Outputs results to HTML. The `html` formatter is useful for visual presentation in the browser."
|
13
5
|
},
|
14
|
-
{
|
15
|
-
"name": "jslint-xml",
|
16
|
-
"description": "Outputs results to format compatible with the [JSLint Jenkins plugin](https://plugins.jenkins.io/jslint/)."
|
17
|
-
},
|
18
6
|
{
|
19
7
|
"name": "json-with-metadata",
|
20
8
|
"description": "Outputs JSON-serialized results. The `json-with-metadata` provides the same linting results as the [`json`](#json) formatter with additional metadata about the rules applied. The linting results are included in the `results` property and the rules metadata is included in the `metadata` property.\n\nAlternatively, you can use the [ESLint Node.js API](../../integrate/nodejs-api) to programmatically use ESLint."
|
@@ -23,24 +11,8 @@
|
|
23
11
|
"name": "json",
|
24
12
|
"description": "Outputs JSON-serialized results. The `json` formatter is useful when you want to programmatically work with the CLI's linting results.\n\nAlternatively, you can use the [ESLint Node.js API](../../integrate/nodejs-api) to programmatically use ESLint."
|
25
13
|
},
|
26
|
-
{
|
27
|
-
"name": "junit",
|
28
|
-
"description": "Outputs results to format compatible with the [JUnit Jenkins plugin](https://plugins.jenkins.io/junit/)."
|
29
|
-
},
|
30
14
|
{
|
31
15
|
"name": "stylish",
|
32
16
|
"description": "Human-readable output format. This is the default formatter."
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"name": "tap",
|
36
|
-
"description": "Outputs results to the [Test Anything Protocol (TAP)](https://testanything.org/) specification format."
|
37
|
-
},
|
38
|
-
{
|
39
|
-
"name": "unix",
|
40
|
-
"description": "Outputs results to a format similar to many commands in UNIX-like systems. Parsable with tools such as [grep](https://www.gnu.org/software/grep/manual/grep.html), [sed](https://www.gnu.org/software/sed/manual/sed.html), and [awk](https://www.gnu.org/software/gawk/manual/gawk.html)."
|
41
|
-
},
|
42
|
-
{
|
43
|
-
"name": "visualstudio",
|
44
|
-
"description": "Outputs results to format compatible with the integrated terminal of the [Visual Studio](https://visualstudio.microsoft.com/) IDE. When using Visual Studio, you can click on the linting results in the integrated terminal to go to the issue in the source code."
|
45
17
|
}
|
46
|
-
]
|
18
|
+
]
|
@@ -164,7 +164,7 @@ class LintResultCache {
|
|
164
164
|
* @returns {void}
|
165
165
|
*/
|
166
166
|
setCachedLintResults(filePath, config, result) {
|
167
|
-
if (result && Object.
|
167
|
+
if (result && Object.hasOwn(result, "output")) {
|
168
168
|
return;
|
169
169
|
}
|
170
170
|
|
@@ -181,7 +181,7 @@ class LintResultCache {
|
|
181
181
|
* In `getCachedLintResults`, if source is explicitly null, we will
|
182
182
|
* read the file from the filesystem to set the value again.
|
183
183
|
*/
|
184
|
-
if (Object.
|
184
|
+
if (Object.hasOwn(resultToSerialize, "source")) {
|
185
185
|
resultToSerialize.source = null;
|
186
186
|
}
|
187
187
|
|