@alexlit/lint-kit 126.7.0 → 127.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/eslint.config.js +16 -0
- package/package.json +5 -5
- package/packages/config-eslint/package.json +5 -5
- package/packages/config-prettier/package.json +2 -2
- package/packages/config-stylelint/package.json +3 -3
- package/packages/config-eslint/node_modules/ajv/.tonic_example.js +0 -20
- package/packages/config-eslint/node_modules/ajv/LICENSE +0 -22
- package/packages/config-eslint/node_modules/ajv/README.md +0 -1497
- package/packages/config-eslint/node_modules/ajv/dist/ajv.bundle.js +0 -7189
- package/packages/config-eslint/node_modules/ajv/dist/ajv.min.js +0 -3
- package/packages/config-eslint/node_modules/ajv/dist/ajv.min.js.map +0 -1
- package/packages/config-eslint/node_modules/ajv/lib/ajv.d.ts +0 -397
- package/packages/config-eslint/node_modules/ajv/lib/ajv.js +0 -506
- package/packages/config-eslint/node_modules/ajv/lib/cache.js +0 -26
- package/packages/config-eslint/node_modules/ajv/lib/compile/async.js +0 -90
- package/packages/config-eslint/node_modules/ajv/lib/compile/equal.js +0 -5
- package/packages/config-eslint/node_modules/ajv/lib/compile/error_classes.js +0 -34
- package/packages/config-eslint/node_modules/ajv/lib/compile/formats.js +0 -142
- package/packages/config-eslint/node_modules/ajv/lib/compile/index.js +0 -387
- package/packages/config-eslint/node_modules/ajv/lib/compile/resolve.js +0 -270
- package/packages/config-eslint/node_modules/ajv/lib/compile/rules.js +0 -66
- package/packages/config-eslint/node_modules/ajv/lib/compile/schema_obj.js +0 -9
- package/packages/config-eslint/node_modules/ajv/lib/compile/ucs2length.js +0 -20
- package/packages/config-eslint/node_modules/ajv/lib/compile/util.js +0 -239
- package/packages/config-eslint/node_modules/ajv/lib/data.js +0 -49
- package/packages/config-eslint/node_modules/ajv/lib/definition_schema.js +0 -37
- package/packages/config-eslint/node_modules/ajv/lib/dot/_limit.jst +0 -113
- package/packages/config-eslint/node_modules/ajv/lib/dot/_limitItems.jst +0 -12
- package/packages/config-eslint/node_modules/ajv/lib/dot/_limitLength.jst +0 -12
- package/packages/config-eslint/node_modules/ajv/lib/dot/_limitProperties.jst +0 -12
- package/packages/config-eslint/node_modules/ajv/lib/dot/allOf.jst +0 -32
- package/packages/config-eslint/node_modules/ajv/lib/dot/anyOf.jst +0 -46
- package/packages/config-eslint/node_modules/ajv/lib/dot/coerce.def +0 -51
- package/packages/config-eslint/node_modules/ajv/lib/dot/comment.jst +0 -9
- package/packages/config-eslint/node_modules/ajv/lib/dot/const.jst +0 -11
- package/packages/config-eslint/node_modules/ajv/lib/dot/contains.jst +0 -55
- package/packages/config-eslint/node_modules/ajv/lib/dot/custom.jst +0 -191
- package/packages/config-eslint/node_modules/ajv/lib/dot/defaults.def +0 -47
- package/packages/config-eslint/node_modules/ajv/lib/dot/definitions.def +0 -203
- package/packages/config-eslint/node_modules/ajv/lib/dot/dependencies.jst +0 -79
- package/packages/config-eslint/node_modules/ajv/lib/dot/enum.jst +0 -30
- package/packages/config-eslint/node_modules/ajv/lib/dot/errors.def +0 -194
- package/packages/config-eslint/node_modules/ajv/lib/dot/format.jst +0 -106
- package/packages/config-eslint/node_modules/ajv/lib/dot/if.jst +0 -73
- package/packages/config-eslint/node_modules/ajv/lib/dot/items.jst +0 -98
- package/packages/config-eslint/node_modules/ajv/lib/dot/missing.def +0 -39
- package/packages/config-eslint/node_modules/ajv/lib/dot/multipleOf.jst +0 -22
- package/packages/config-eslint/node_modules/ajv/lib/dot/not.jst +0 -43
- package/packages/config-eslint/node_modules/ajv/lib/dot/oneOf.jst +0 -54
- package/packages/config-eslint/node_modules/ajv/lib/dot/pattern.jst +0 -14
- package/packages/config-eslint/node_modules/ajv/lib/dot/properties.jst +0 -245
- package/packages/config-eslint/node_modules/ajv/lib/dot/propertyNames.jst +0 -52
- package/packages/config-eslint/node_modules/ajv/lib/dot/ref.jst +0 -85
- package/packages/config-eslint/node_modules/ajv/lib/dot/required.jst +0 -108
- package/packages/config-eslint/node_modules/ajv/lib/dot/uniqueItems.jst +0 -62
- package/packages/config-eslint/node_modules/ajv/lib/dot/validate.jst +0 -276
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/README.md +0 -3
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limit.js +0 -163
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limitItems.js +0 -80
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limitLength.js +0 -85
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limitProperties.js +0 -80
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/allOf.js +0 -42
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/anyOf.js +0 -73
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/comment.js +0 -14
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/const.js +0 -56
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/contains.js +0 -81
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/custom.js +0 -228
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/dependencies.js +0 -168
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/enum.js +0 -66
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/format.js +0 -150
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/if.js +0 -103
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/index.js +0 -33
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/items.js +0 -140
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/multipleOf.js +0 -80
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/not.js +0 -84
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/oneOf.js +0 -73
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/pattern.js +0 -75
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/properties.js +0 -335
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/propertyNames.js +0 -81
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/ref.js +0 -124
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/required.js +0 -270
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/uniqueItems.js +0 -86
- package/packages/config-eslint/node_modules/ajv/lib/dotjs/validate.js +0 -482
- package/packages/config-eslint/node_modules/ajv/lib/keyword.js +0 -146
- package/packages/config-eslint/node_modules/ajv/lib/refs/data.json +0 -17
- package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-draft-04.json +0 -149
- package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -154
- package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -168
- package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-secure.json +0 -94
- package/packages/config-eslint/node_modules/ajv/package.json +0 -106
- package/packages/config-eslint/node_modules/ajv/scripts/.eslintrc.yml +0 -3
- package/packages/config-eslint/node_modules/ajv/scripts/bundle.js +0 -61
- package/packages/config-eslint/node_modules/ajv/scripts/compile-dots.js +0 -73
- package/packages/config-eslint/node_modules/ajv/scripts/info +0 -10
- package/packages/config-eslint/node_modules/ajv/scripts/prepare-tests +0 -12
- package/packages/config-eslint/node_modules/ajv/scripts/publish-built-version +0 -32
- package/packages/config-eslint/node_modules/ajv/scripts/travis-gh-pages +0 -23
- package/packages/config-eslint/node_modules/ansi-styles/index.d.ts +0 -345
- package/packages/config-eslint/node_modules/ansi-styles/index.js +0 -163
- package/packages/config-eslint/node_modules/ansi-styles/license +0 -9
- package/packages/config-eslint/node_modules/ansi-styles/package.json +0 -56
- package/packages/config-eslint/node_modules/ansi-styles/readme.md +0 -152
- package/packages/config-eslint/node_modules/chalk/index.d.ts +0 -415
- package/packages/config-eslint/node_modules/chalk/license +0 -9
- package/packages/config-eslint/node_modules/chalk/package.json +0 -68
- package/packages/config-eslint/node_modules/chalk/readme.md +0 -341
- package/packages/config-eslint/node_modules/chalk/source/index.js +0 -229
- package/packages/config-eslint/node_modules/chalk/source/templates.js +0 -134
- package/packages/config-eslint/node_modules/chalk/source/util.js +0 -39
- package/packages/config-eslint/node_modules/color-convert/CHANGELOG.md +0 -54
- package/packages/config-eslint/node_modules/color-convert/LICENSE +0 -21
- package/packages/config-eslint/node_modules/color-convert/README.md +0 -68
- package/packages/config-eslint/node_modules/color-convert/conversions.js +0 -839
- package/packages/config-eslint/node_modules/color-convert/index.js +0 -81
- package/packages/config-eslint/node_modules/color-convert/package.json +0 -48
- package/packages/config-eslint/node_modules/color-convert/route.js +0 -97
- package/packages/config-eslint/node_modules/color-name/LICENSE +0 -8
- package/packages/config-eslint/node_modules/color-name/README.md +0 -11
- package/packages/config-eslint/node_modules/color-name/index.js +0 -152
- package/packages/config-eslint/node_modules/color-name/package.json +0 -28
- package/packages/config-eslint/node_modules/eslint/LICENSE +0 -19
- package/packages/config-eslint/node_modules/eslint/README.md +0 -306
- package/packages/config-eslint/node_modules/eslint/bin/eslint.js +0 -174
- package/packages/config-eslint/node_modules/eslint/conf/default-cli-options.js +0 -32
- package/packages/config-eslint/node_modules/eslint/conf/ecma-version.js +0 -16
- package/packages/config-eslint/node_modules/eslint/conf/globals.js +0 -160
- package/packages/config-eslint/node_modules/eslint/conf/replacements.json +0 -22
- package/packages/config-eslint/node_modules/eslint/conf/rule-type-list.json +0 -30
- package/packages/config-eslint/node_modules/eslint/lib/api.js +0 -50
- package/packages/config-eslint/node_modules/eslint/lib/cli-engine/cli-engine.js +0 -1089
- package/packages/config-eslint/node_modules/eslint/lib/cli-engine/file-enumerator.js +0 -547
- package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json +0 -18
- package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/html.js +0 -351
- package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js +0 -16
- package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/json.js +0 -13
- package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/stylish.js +0 -101
- package/packages/config-eslint/node_modules/eslint/lib/cli-engine/hash.js +0 -35
- package/packages/config-eslint/node_modules/eslint/lib/cli-engine/index.js +0 -7
- package/packages/config-eslint/node_modules/eslint/lib/cli-engine/lint-result-cache.js +0 -203
- package/packages/config-eslint/node_modules/eslint/lib/cli-engine/load-rules.js +0 -46
- package/packages/config-eslint/node_modules/eslint/lib/cli.js +0 -552
- package/packages/config-eslint/node_modules/eslint/lib/config/default-config.js +0 -75
- package/packages/config-eslint/node_modules/eslint/lib/config/flat-config-array.js +0 -423
- package/packages/config-eslint/node_modules/eslint/lib/config/flat-config-helpers.js +0 -132
- package/packages/config-eslint/node_modules/eslint/lib/config/flat-config-schema.js +0 -576
- package/packages/config-eslint/node_modules/eslint/lib/config/rule-validator.js +0 -194
- package/packages/config-eslint/node_modules/eslint/lib/eslint/eslint-helpers.js +0 -975
- package/packages/config-eslint/node_modules/eslint/lib/eslint/eslint.js +0 -1307
- package/packages/config-eslint/node_modules/eslint/lib/eslint/index.js +0 -9
- package/packages/config-eslint/node_modules/eslint/lib/eslint/legacy-eslint.js +0 -742
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/index.js +0 -252
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/index.js +0 -7
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/source-code.js +0 -1318
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-comment-cursor.js +0 -57
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-cursor.js +0 -58
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/cursor.js +0 -76
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/cursors.js +0 -92
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/decorative-cursor.js +0 -39
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/filter-cursor.js +0 -43
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-comment-cursor.js +0 -57
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-cursor.js +0 -63
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/index.js +0 -627
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/limit-cursor.js +0 -40
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/padded-token-cursor.js +0 -38
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/skip-cursor.js +0 -42
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/utils.js +0 -107
- package/packages/config-eslint/node_modules/eslint/lib/languages/js/validate-language-options.js +0 -181
- package/packages/config-eslint/node_modules/eslint/lib/linter/apply-disable-directives.js +0 -513
- package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +0 -851
- package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js +0 -263
- package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js +0 -2348
- package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +0 -344
- package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +0 -203
- package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +0 -349
- package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/id-generator.js +0 -45
- package/packages/config-eslint/node_modules/eslint/lib/linter/config-comment-parser.js +0 -169
- package/packages/config-eslint/node_modules/eslint/lib/linter/index.js +0 -11
- package/packages/config-eslint/node_modules/eslint/lib/linter/interpolate.js +0 -50
- package/packages/config-eslint/node_modules/eslint/lib/linter/linter.js +0 -2410
- package/packages/config-eslint/node_modules/eslint/lib/linter/node-event-generator.js +0 -352
- package/packages/config-eslint/node_modules/eslint/lib/linter/report-translator.js +0 -376
- package/packages/config-eslint/node_modules/eslint/lib/linter/rule-fixer.js +0 -163
- package/packages/config-eslint/node_modules/eslint/lib/linter/rules.js +0 -71
- package/packages/config-eslint/node_modules/eslint/lib/linter/safe-emitter.js +0 -52
- package/packages/config-eslint/node_modules/eslint/lib/linter/source-code-fixer.js +0 -152
- package/packages/config-eslint/node_modules/eslint/lib/linter/timing.js +0 -169
- package/packages/config-eslint/node_modules/eslint/lib/linter/vfile.js +0 -111
- package/packages/config-eslint/node_modules/eslint/lib/options.js +0 -442
- package/packages/config-eslint/node_modules/eslint/lib/rule-tester/index.js +0 -7
- package/packages/config-eslint/node_modules/eslint/lib/rule-tester/rule-tester.js +0 -1286
- package/packages/config-eslint/node_modules/eslint/lib/rules/accessor-pairs.js +0 -346
- package/packages/config-eslint/node_modules/eslint/lib/rules/array-bracket-newline.js +0 -261
- package/packages/config-eslint/node_modules/eslint/lib/rules/array-bracket-spacing.js +0 -244
- package/packages/config-eslint/node_modules/eslint/lib/rules/array-callback-return.js +0 -446
- package/packages/config-eslint/node_modules/eslint/lib/rules/array-element-newline.js +0 -311
- package/packages/config-eslint/node_modules/eslint/lib/rules/arrow-body-style.js +0 -296
- package/packages/config-eslint/node_modules/eslint/lib/rules/arrow-parens.js +0 -186
- package/packages/config-eslint/node_modules/eslint/lib/rules/arrow-spacing.js +0 -164
- package/packages/config-eslint/node_modules/eslint/lib/rules/block-scoped-var.js +0 -135
- package/packages/config-eslint/node_modules/eslint/lib/rules/block-spacing.js +0 -174
- package/packages/config-eslint/node_modules/eslint/lib/rules/brace-style.js +0 -197
- package/packages/config-eslint/node_modules/eslint/lib/rules/callback-return.js +0 -187
- package/packages/config-eslint/node_modules/eslint/lib/rules/camelcase.js +0 -397
- package/packages/config-eslint/node_modules/eslint/lib/rules/capitalized-comments.js +0 -303
- package/packages/config-eslint/node_modules/eslint/lib/rules/class-methods-use-this.js +0 -187
- package/packages/config-eslint/node_modules/eslint/lib/rules/comma-dangle.js +0 -373
- package/packages/config-eslint/node_modules/eslint/lib/rules/comma-spacing.js +0 -192
- package/packages/config-eslint/node_modules/eslint/lib/rules/comma-style.js +0 -314
- package/packages/config-eslint/node_modules/eslint/lib/rules/complexity.js +0 -178
- package/packages/config-eslint/node_modules/eslint/lib/rules/computed-property-spacing.js +0 -208
- package/packages/config-eslint/node_modules/eslint/lib/rules/consistent-return.js +0 -210
- package/packages/config-eslint/node_modules/eslint/lib/rules/consistent-this.js +0 -153
- package/packages/config-eslint/node_modules/eslint/lib/rules/constructor-super.js +0 -445
- package/packages/config-eslint/node_modules/eslint/lib/rules/curly.js +0 -486
- package/packages/config-eslint/node_modules/eslint/lib/rules/default-case-last.js +0 -44
- package/packages/config-eslint/node_modules/eslint/lib/rules/default-case.js +0 -97
- package/packages/config-eslint/node_modules/eslint/lib/rules/default-param-last.js +0 -62
- package/packages/config-eslint/node_modules/eslint/lib/rules/dot-location.js +0 -108
- package/packages/config-eslint/node_modules/eslint/lib/rules/dot-notation.js +0 -176
- package/packages/config-eslint/node_modules/eslint/lib/rules/eol-last.js +0 -115
- package/packages/config-eslint/node_modules/eslint/lib/rules/eqeqeq.js +0 -174
- package/packages/config-eslint/node_modules/eslint/lib/rules/for-direction.js +0 -140
- package/packages/config-eslint/node_modules/eslint/lib/rules/func-call-spacing.js +0 -233
- package/packages/config-eslint/node_modules/eslint/lib/rules/func-name-matching.js +0 -253
- package/packages/config-eslint/node_modules/eslint/lib/rules/func-names.js +0 -191
- package/packages/config-eslint/node_modules/eslint/lib/rules/func-style.js +0 -136
- package/packages/config-eslint/node_modules/eslint/lib/rules/function-call-argument-newline.js +0 -125
- package/packages/config-eslint/node_modules/eslint/lib/rules/function-paren-newline.js +0 -292
- package/packages/config-eslint/node_modules/eslint/lib/rules/generator-star-spacing.js +0 -209
- package/packages/config-eslint/node_modules/eslint/lib/rules/getter-return.js +0 -204
- package/packages/config-eslint/node_modules/eslint/lib/rules/global-require.js +0 -90
- package/packages/config-eslint/node_modules/eslint/lib/rules/grouped-accessor-pairs.js +0 -215
- package/packages/config-eslint/node_modules/eslint/lib/rules/guard-for-in.js +0 -76
- package/packages/config-eslint/node_modules/eslint/lib/rules/handle-callback-err.js +0 -101
- package/packages/config-eslint/node_modules/eslint/lib/rules/id-blacklist.js +0 -246
- package/packages/config-eslint/node_modules/eslint/lib/rules/id-denylist.js +0 -228
- package/packages/config-eslint/node_modules/eslint/lib/rules/id-length.js +0 -177
- package/packages/config-eslint/node_modules/eslint/lib/rules/id-match.js +0 -299
- package/packages/config-eslint/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js +0 -84
- package/packages/config-eslint/node_modules/eslint/lib/rules/indent-legacy.js +0 -1126
- package/packages/config-eslint/node_modules/eslint/lib/rules/indent.js +0 -1803
- package/packages/config-eslint/node_modules/eslint/lib/rules/index.js +0 -305
- package/packages/config-eslint/node_modules/eslint/lib/rules/init-declarations.js +0 -139
- package/packages/config-eslint/node_modules/eslint/lib/rules/jsx-quotes.js +0 -98
- package/packages/config-eslint/node_modules/eslint/lib/rules/key-spacing.js +0 -687
- package/packages/config-eslint/node_modules/eslint/lib/rules/keyword-spacing.js +0 -640
- package/packages/config-eslint/node_modules/eslint/lib/rules/line-comment-position.js +0 -125
- package/packages/config-eslint/node_modules/eslint/lib/rules/linebreak-style.js +0 -108
- package/packages/config-eslint/node_modules/eslint/lib/rules/lines-around-comment.js +0 -471
- package/packages/config-eslint/node_modules/eslint/lib/rules/lines-around-directive.js +0 -201
- package/packages/config-eslint/node_modules/eslint/lib/rules/lines-between-class-members.js +0 -269
- package/packages/config-eslint/node_modules/eslint/lib/rules/logical-assignment-operators.js +0 -504
- package/packages/config-eslint/node_modules/eslint/lib/rules/max-classes-per-file.js +0 -89
- package/packages/config-eslint/node_modules/eslint/lib/rules/max-depth.js +0 -156
- package/packages/config-eslint/node_modules/eslint/lib/rules/max-len.js +0 -440
- package/packages/config-eslint/node_modules/eslint/lib/rules/max-lines-per-function.js +0 -213
- package/packages/config-eslint/node_modules/eslint/lib/rules/max-lines.js +0 -193
- package/packages/config-eslint/node_modules/eslint/lib/rules/max-nested-callbacks.js +0 -117
- package/packages/config-eslint/node_modules/eslint/lib/rules/max-params.js +0 -102
- package/packages/config-eslint/node_modules/eslint/lib/rules/max-statements-per-line.js +0 -199
- package/packages/config-eslint/node_modules/eslint/lib/rules/max-statements.js +0 -184
- package/packages/config-eslint/node_modules/eslint/lib/rules/multiline-comment-style.js +0 -476
- package/packages/config-eslint/node_modules/eslint/lib/rules/multiline-ternary.js +0 -174
- package/packages/config-eslint/node_modules/eslint/lib/rules/new-cap.js +0 -276
- package/packages/config-eslint/node_modules/eslint/lib/rules/new-parens.js +0 -93
- package/packages/config-eslint/node_modules/eslint/lib/rules/newline-after-var.js +0 -253
- package/packages/config-eslint/node_modules/eslint/lib/rules/newline-before-return.js +0 -217
- package/packages/config-eslint/node_modules/eslint/lib/rules/newline-per-chained-call.js +0 -126
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-alert.js +0 -138
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-array-constructor.js +0 -133
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-async-promise-executor.js +0 -39
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-await-in-loop.js +0 -106
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-bitwise.js +0 -119
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-buffer-constructor.js +0 -50
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-caller.js +0 -46
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-case-declarations.js +0 -76
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-catch-shadow.js +0 -82
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-class-assign.js +0 -63
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-compare-neg-zero.js +0 -60
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-cond-assign.js +0 -159
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-confusing-arrow.js +0 -92
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-console.js +0 -207
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-const-assign.js +0 -56
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-constant-binary-expression.js +0 -508
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-constant-condition.js +0 -161
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-constructor-return.js +0 -62
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-continue.js +0 -39
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-control-regex.js +0 -138
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-debugger.js +0 -43
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-delete-var.js +0 -42
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-div-regex.js +0 -53
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-args.js +0 -82
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-class-members.js +0 -104
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-else-if.js +0 -122
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-keys.js +0 -142
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-duplicate-case.js +0 -71
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-duplicate-imports.js +0 -290
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-else-return.js +0 -405
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-character-class.js +0 -76
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-function.js +0 -167
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-pattern.js +0 -78
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-static-block.js +0 -47
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty.js +0 -103
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-eq-null.js +0 -46
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-eval.js +0 -286
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-ex-assign.js +0 -54
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-extend-native.js +0 -178
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-bind.js +0 -213
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-boolean-cast.js +0 -369
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-label.js +0 -149
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-parens.js +0 -1322
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-semi.js +0 -147
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-fallthrough.js +0 -221
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-floating-decimal.js +0 -73
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-func-assign.js +0 -78
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-global-assign.js +0 -95
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-implicit-coercion.js +0 -422
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-implicit-globals.js +0 -146
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-implied-eval.js +0 -132
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-import-assign.js +0 -241
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-inline-comments.js +0 -110
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-inner-declarations.js +0 -131
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-invalid-regexp.js +0 -194
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-invalid-this.js +0 -150
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-irregular-whitespace.js +0 -276
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-iterator.js +0 -52
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-label-var.js +0 -80
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-labels.js +0 -149
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-lone-blocks.js +0 -136
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-lonely-if.js +0 -88
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-loop-func.js +0 -238
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-loss-of-precision.js +0 -214
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-magic-numbers.js +0 -243
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-misleading-character-class.js +0 -537
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-mixed-operators.js +0 -229
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-mixed-requires.js +0 -238
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +0 -116
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-multi-assign.js +0 -67
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-multi-spaces.js +0 -141
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-multi-str.js +0 -65
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +0 -154
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-native-reassign.js +0 -98
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-negated-condition.js +0 -95
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-negated-in-lhs.js +0 -46
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-nested-ternary.js +0 -44
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-func.js +0 -87
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js +0 -66
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-object.js +0 -67
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-require.js +0 -50
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-symbol.js +0 -63
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-wrappers.js +0 -60
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-new.js +0 -43
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js +0 -148
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-obj-calls.js +0 -86
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-object-constructor.js +0 -117
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-octal-escape.js +0 -56
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-octal.js +0 -45
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-param-reassign.js +0 -230
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-path-concat.js +0 -64
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-plusplus.js +0 -105
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-process-env.js +0 -51
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-process-exit.js +0 -47
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-promise-executor-return.js +0 -263
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-proto.js +0 -48
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-prototype-builtins.js +0 -159
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-redeclare.js +0 -174
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-regex-spaces.js +0 -197
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-exports.js +0 -204
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-globals.js +0 -124
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-imports.js +0 -563
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-modules.js +0 -213
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-properties.js +0 -168
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-syntax.js +0 -70
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-return-assign.js +0 -80
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-return-await.js +0 -135
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-script-url.js +0 -61
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-self-assign.js +0 -183
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-self-compare.js +0 -60
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-sequences.js +0 -139
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-setter-return.js +0 -226
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-shadow-restricted-names.js +0 -65
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-shadow.js +0 -336
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-spaced-func.js +0 -83
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-sparse-arrays.js +0 -73
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-sync.js +0 -64
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-tabs.js +0 -81
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-template-curly-in-string.js +0 -44
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-ternary.js +0 -41
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-this-before-super.js +0 -363
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-throw-literal.js +0 -51
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-trailing-spaces.js +0 -192
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-undef-init.js +0 -75
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-undef.js +0 -79
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-undefined.js +0 -86
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-underscore-dangle.js +0 -335
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-unexpected-multiline.js +0 -120
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js +0 -360
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-unneeded-ternary.js +0 -166
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-unreachable-loop.js +0 -185
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-unreachable.js +0 -293
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-unsafe-finally.js +0 -111
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-unsafe-negation.js +0 -128
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +0 -205
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-expressions.js +0 -186
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-labels.js +0 -143
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-private-class-members.js +0 -195
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-vars.js +0 -881
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-use-before-define.js +0 -348
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-assignment.js +0 -566
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-backreference.js +0 -244
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-call.js +0 -90
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-catch.js +0 -57
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-computed-key.js +0 -168
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-concat.js +0 -115
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-constructor.js +0 -189
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-escape.js +0 -333
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-rename.js +0 -172
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-return.js +0 -369
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-var.js +0 -334
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-void.js +0 -64
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-warning-comments.js +0 -201
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-whitespace-before-property.js +0 -116
- package/packages/config-eslint/node_modules/eslint/lib/rules/no-with.js +0 -39
- package/packages/config-eslint/node_modules/eslint/lib/rules/nonblock-statement-body-position.js +0 -127
- package/packages/config-eslint/node_modules/eslint/lib/rules/object-curly-newline.js +0 -324
- package/packages/config-eslint/node_modules/eslint/lib/rules/object-curly-spacing.js +0 -311
- package/packages/config-eslint/node_modules/eslint/lib/rules/object-property-newline.js +0 -102
- package/packages/config-eslint/node_modules/eslint/lib/rules/object-shorthand.js +0 -521
- package/packages/config-eslint/node_modules/eslint/lib/rules/one-var-declaration-per-line.js +0 -95
- package/packages/config-eslint/node_modules/eslint/lib/rules/one-var.js +0 -567
- package/packages/config-eslint/node_modules/eslint/lib/rules/operator-assignment.js +0 -209
- package/packages/config-eslint/node_modules/eslint/lib/rules/operator-linebreak.js +0 -253
- package/packages/config-eslint/node_modules/eslint/lib/rules/padded-blocks.js +0 -310
- package/packages/config-eslint/node_modules/eslint/lib/rules/padding-line-between-statements.js +0 -590
- package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-arrow-callback.js +0 -381
- package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-const.js +0 -501
- package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-destructuring.js +0 -301
- package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js +0 -191
- package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-named-capture-group.js +0 -178
- package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-numeric-literals.js +0 -148
- package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-object-has-own.js +0 -114
- package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-object-spread.js +0 -298
- package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js +0 -132
- package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-reflect.js +0 -127
- package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-regex-literals.js +0 -507
- package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-rest-params.js +0 -118
- package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-spread.js +0 -87
- package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-template.js +0 -275
- package/packages/config-eslint/node_modules/eslint/lib/rules/quote-props.js +0 -310
- package/packages/config-eslint/node_modules/eslint/lib/rules/quotes.js +0 -350
- package/packages/config-eslint/node_modules/eslint/lib/rules/radix.js +0 -198
- package/packages/config-eslint/node_modules/eslint/lib/rules/require-atomic-updates.js +0 -331
- package/packages/config-eslint/node_modules/eslint/lib/rules/require-await.js +0 -147
- package/packages/config-eslint/node_modules/eslint/lib/rules/require-unicode-regexp.js +0 -129
- package/packages/config-eslint/node_modules/eslint/lib/rules/require-yield.js +0 -77
- package/packages/config-eslint/node_modules/eslint/lib/rules/rest-spread-spacing.js +0 -123
- package/packages/config-eslint/node_modules/eslint/lib/rules/semi-spacing.js +0 -248
- package/packages/config-eslint/node_modules/eslint/lib/rules/semi-style.js +0 -158
- package/packages/config-eslint/node_modules/eslint/lib/rules/semi.js +0 -438
- package/packages/config-eslint/node_modules/eslint/lib/rules/sort-imports.js +0 -241
- package/packages/config-eslint/node_modules/eslint/lib/rules/sort-keys.js +0 -230
- package/packages/config-eslint/node_modules/eslint/lib/rules/sort-vars.js +0 -104
- package/packages/config-eslint/node_modules/eslint/lib/rules/space-before-blocks.js +0 -204
- package/packages/config-eslint/node_modules/eslint/lib/rules/space-before-function-paren.js +0 -167
- package/packages/config-eslint/node_modules/eslint/lib/rules/space-in-parens.js +0 -285
- package/packages/config-eslint/node_modules/eslint/lib/rules/space-infix-ops.js +0 -198
- package/packages/config-eslint/node_modules/eslint/lib/rules/space-unary-ops.js +0 -324
- package/packages/config-eslint/node_modules/eslint/lib/rules/spaced-comment.js +0 -385
- package/packages/config-eslint/node_modules/eslint/lib/rules/strict.js +0 -277
- package/packages/config-eslint/node_modules/eslint/lib/rules/switch-colon-spacing.js +0 -132
- package/packages/config-eslint/node_modules/eslint/lib/rules/symbol-description.js +0 -73
- package/packages/config-eslint/node_modules/eslint/lib/rules/template-curly-spacing.js +0 -144
- package/packages/config-eslint/node_modules/eslint/lib/rules/template-tag-spacing.js +0 -93
- package/packages/config-eslint/node_modules/eslint/lib/rules/unicode-bom.js +0 -73
- package/packages/config-eslint/node_modules/eslint/lib/rules/use-isnan.js +0 -235
- package/packages/config-eslint/node_modules/eslint/lib/rules/utils/ast-utils.js +0 -2292
- package/packages/config-eslint/node_modules/eslint/lib/rules/utils/char-source.js +0 -240
- package/packages/config-eslint/node_modules/eslint/lib/rules/utils/fix-tracker.js +0 -114
- package/packages/config-eslint/node_modules/eslint/lib/rules/utils/keywords.js +0 -67
- package/packages/config-eslint/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +0 -115
- package/packages/config-eslint/node_modules/eslint/lib/rules/utils/regular-expressions.js +0 -42
- package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/index.js +0 -16
- package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js +0 -13
- package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js +0 -13
- package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js +0 -13
- package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js +0 -14
- package/packages/config-eslint/node_modules/eslint/lib/rules/valid-typeof.js +0 -127
- package/packages/config-eslint/node_modules/eslint/lib/rules/vars-on-top.js +0 -157
- package/packages/config-eslint/node_modules/eslint/lib/rules/wrap-iife.js +0 -207
- package/packages/config-eslint/node_modules/eslint/lib/rules/wrap-regex.js +0 -61
- package/packages/config-eslint/node_modules/eslint/lib/rules/yield-star-spacing.js +0 -130
- package/packages/config-eslint/node_modules/eslint/lib/rules/yoda.js +0 -353
- package/packages/config-eslint/node_modules/eslint/lib/shared/ajv.js +0 -34
- package/packages/config-eslint/node_modules/eslint/lib/shared/ast-utils.js +0 -29
- package/packages/config-eslint/node_modules/eslint/lib/shared/directives.js +0 -15
- package/packages/config-eslint/node_modules/eslint/lib/shared/flags.js +0 -27
- package/packages/config-eslint/node_modules/eslint/lib/shared/logging.js +0 -39
- package/packages/config-eslint/node_modules/eslint/lib/shared/runtime-info.js +0 -168
- package/packages/config-eslint/node_modules/eslint/lib/shared/serialization.js +0 -55
- package/packages/config-eslint/node_modules/eslint/lib/shared/severity.js +0 -49
- package/packages/config-eslint/node_modules/eslint/lib/shared/stats.js +0 -30
- package/packages/config-eslint/node_modules/eslint/lib/shared/string-utils.js +0 -58
- package/packages/config-eslint/node_modules/eslint/lib/shared/traverser.js +0 -195
- package/packages/config-eslint/node_modules/eslint/lib/shared/types.js +0 -250
- package/packages/config-eslint/node_modules/eslint/lib/unsupported-api.js +0 -28
- package/packages/config-eslint/node_modules/eslint/messages/all-files-ignored.js +0 -16
- package/packages/config-eslint/node_modules/eslint/messages/all-matched-files-ignored.js +0 -21
- package/packages/config-eslint/node_modules/eslint/messages/config-file-missing.js +0 -16
- package/packages/config-eslint/node_modules/eslint/messages/eslintrc-incompat.js +0 -119
- package/packages/config-eslint/node_modules/eslint/messages/eslintrc-plugins.js +0 -24
- package/packages/config-eslint/node_modules/eslint/messages/extend-config-missing.js +0 -13
- package/packages/config-eslint/node_modules/eslint/messages/failed-to-read-json.js +0 -11
- package/packages/config-eslint/node_modules/eslint/messages/file-not-found.js +0 -10
- package/packages/config-eslint/node_modules/eslint/messages/invalid-rule-options.js +0 -17
- package/packages/config-eslint/node_modules/eslint/messages/invalid-rule-severity.js +0 -13
- package/packages/config-eslint/node_modules/eslint/messages/no-config-found.js +0 -15
- package/packages/config-eslint/node_modules/eslint/messages/plugin-conflict.js +0 -22
- package/packages/config-eslint/node_modules/eslint/messages/plugin-invalid.js +0 -16
- package/packages/config-eslint/node_modules/eslint/messages/plugin-missing.js +0 -19
- package/packages/config-eslint/node_modules/eslint/messages/print-config-with-directory-path.js +0 -8
- package/packages/config-eslint/node_modules/eslint/messages/shared.js +0 -18
- package/packages/config-eslint/node_modules/eslint/messages/whitespace-found.js +0 -11
- package/packages/config-eslint/node_modules/eslint/package.json +0 -188
- package/packages/config-eslint/node_modules/eslint-scope/LICENSE +0 -22
- package/packages/config-eslint/node_modules/eslint-scope/README.md +0 -91
- package/packages/config-eslint/node_modules/eslint-scope/dist/eslint-scope.cjs +0 -2266
- package/packages/config-eslint/node_modules/eslint-scope/lib/definition.js +0 -85
- package/packages/config-eslint/node_modules/eslint-scope/lib/index.js +0 -169
- package/packages/config-eslint/node_modules/eslint-scope/lib/pattern-visitor.js +0 -154
- package/packages/config-eslint/node_modules/eslint-scope/lib/reference.js +0 -166
- package/packages/config-eslint/node_modules/eslint-scope/lib/referencer.js +0 -656
- package/packages/config-eslint/node_modules/eslint-scope/lib/scope-manager.js +0 -249
- package/packages/config-eslint/node_modules/eslint-scope/lib/scope.js +0 -793
- package/packages/config-eslint/node_modules/eslint-scope/lib/variable.js +0 -87
- package/packages/config-eslint/node_modules/eslint-scope/lib/version.js +0 -3
- package/packages/config-eslint/node_modules/eslint-scope/package.json +0 -65
- package/packages/config-eslint/node_modules/eslint-visitor-keys/LICENSE +0 -201
- package/packages/config-eslint/node_modules/eslint-visitor-keys/README.md +0 -105
- package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +0 -384
- package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts +0 -27
- package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/index.d.ts +0 -16
- package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +0 -12
- package/packages/config-eslint/node_modules/eslint-visitor-keys/lib/index.js +0 -65
- package/packages/config-eslint/node_modules/eslint-visitor-keys/lib/visitor-keys.js +0 -315
- package/packages/config-eslint/node_modules/eslint-visitor-keys/package.json +0 -74
- package/packages/config-eslint/node_modules/file-entry-cache/LICENSE +0 -22
- package/packages/config-eslint/node_modules/file-entry-cache/README.md +0 -115
- package/packages/config-eslint/node_modules/file-entry-cache/cache.js +0 -291
- package/packages/config-eslint/node_modules/file-entry-cache/package.json +0 -56
- package/packages/config-eslint/node_modules/find-up/index.d.ts +0 -138
- package/packages/config-eslint/node_modules/find-up/index.js +0 -89
- package/packages/config-eslint/node_modules/find-up/license +0 -9
- package/packages/config-eslint/node_modules/find-up/package.json +0 -54
- package/packages/config-eslint/node_modules/find-up/readme.md +0 -151
- package/packages/config-eslint/node_modules/flat-cache/LICENSE +0 -22
- package/packages/config-eslint/node_modules/flat-cache/README.md +0 -77
- package/packages/config-eslint/node_modules/flat-cache/changelog.md +0 -278
- package/packages/config-eslint/node_modules/flat-cache/package.json +0 -63
- package/packages/config-eslint/node_modules/flat-cache/src/cache.js +0 -214
- package/packages/config-eslint/node_modules/flat-cache/src/del.js +0 -30
- package/packages/config-eslint/node_modules/flat-cache/src/utils.js +0 -42
- package/packages/config-eslint/node_modules/glob-parent/LICENSE +0 -15
- package/packages/config-eslint/node_modules/glob-parent/README.md +0 -134
- package/packages/config-eslint/node_modules/glob-parent/index.js +0 -75
- package/packages/config-eslint/node_modules/glob-parent/package.json +0 -54
- package/packages/config-eslint/node_modules/json-schema-traverse/.eslintrc.yml +0 -27
- package/packages/config-eslint/node_modules/json-schema-traverse/.travis.yml +0 -8
- package/packages/config-eslint/node_modules/json-schema-traverse/LICENSE +0 -21
- package/packages/config-eslint/node_modules/json-schema-traverse/README.md +0 -83
- package/packages/config-eslint/node_modules/json-schema-traverse/index.js +0 -89
- package/packages/config-eslint/node_modules/json-schema-traverse/package.json +0 -43
- package/packages/config-eslint/node_modules/json-schema-traverse/spec/.eslintrc.yml +0 -6
- package/packages/config-eslint/node_modules/json-schema-traverse/spec/fixtures/schema.js +0 -125
- package/packages/config-eslint/node_modules/json-schema-traverse/spec/index.spec.js +0 -171
- package/packages/config-eslint/node_modules/locate-path/index.d.ts +0 -83
- package/packages/config-eslint/node_modules/locate-path/index.js +0 -68
- package/packages/config-eslint/node_modules/locate-path/license +0 -9
- package/packages/config-eslint/node_modules/locate-path/package.json +0 -46
- package/packages/config-eslint/node_modules/locate-path/readme.md +0 -125
- package/packages/config-eslint/node_modules/p-limit/index.d.ts +0 -42
- package/packages/config-eslint/node_modules/p-limit/index.js +0 -71
- package/packages/config-eslint/node_modules/p-limit/license +0 -9
- package/packages/config-eslint/node_modules/p-limit/package.json +0 -52
- package/packages/config-eslint/node_modules/p-limit/readme.md +0 -101
- package/packages/config-eslint/node_modules/p-locate/index.d.ts +0 -53
- package/packages/config-eslint/node_modules/p-locate/index.js +0 -50
- package/packages/config-eslint/node_modules/p-locate/license +0 -9
- package/packages/config-eslint/node_modules/p-locate/package.json +0 -54
- package/packages/config-eslint/node_modules/p-locate/readme.md +0 -93
- package/packages/config-eslint/node_modules/path-exists/index.d.ts +0 -28
- package/packages/config-eslint/node_modules/path-exists/index.js +0 -23
- package/packages/config-eslint/node_modules/path-exists/license +0 -9
- package/packages/config-eslint/node_modules/path-exists/package.json +0 -39
- package/packages/config-eslint/node_modules/path-exists/readme.md +0 -52
- package/packages/config-eslint/node_modules/yocto-queue/index.d.ts +0 -56
- package/packages/config-eslint/node_modules/yocto-queue/index.js +0 -68
- package/packages/config-eslint/node_modules/yocto-queue/license +0 -9
- package/packages/config-eslint/node_modules/yocto-queue/package.json +0 -43
- package/packages/config-eslint/node_modules/yocto-queue/readme.md +0 -64
|
@@ -1,552 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Main CLI object.
|
|
3
|
-
* @author Nicholas C. Zakas
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
|
|
8
|
-
/*
|
|
9
|
-
* NOTE: The CLI object should *not* call process.exit() directly. It should only return
|
|
10
|
-
* exit codes. This allows other programs to use the CLI object and still control
|
|
11
|
-
* when the program exits.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
//------------------------------------------------------------------------------
|
|
15
|
-
// Requirements
|
|
16
|
-
//------------------------------------------------------------------------------
|
|
17
|
-
|
|
18
|
-
const fs = require("node:fs"),
|
|
19
|
-
path = require("node:path"),
|
|
20
|
-
{ promisify } = require("node:util"),
|
|
21
|
-
{ LegacyESLint } = require("./eslint"),
|
|
22
|
-
{ ESLint, shouldUseFlatConfig, locateConfigFileToUse } = require("./eslint/eslint"),
|
|
23
|
-
createCLIOptions = require("./options"),
|
|
24
|
-
log = require("./shared/logging"),
|
|
25
|
-
RuntimeInfo = require("./shared/runtime-info"),
|
|
26
|
-
{ normalizeSeverityToString } = require("./shared/severity");
|
|
27
|
-
const { Legacy: { naming } } = require("@eslint/eslintrc");
|
|
28
|
-
const { ModuleImporter } = require("@humanwhocodes/module-importer");
|
|
29
|
-
const debug = require("debug")("eslint:cli");
|
|
30
|
-
|
|
31
|
-
//------------------------------------------------------------------------------
|
|
32
|
-
// Types
|
|
33
|
-
//------------------------------------------------------------------------------
|
|
34
|
-
|
|
35
|
-
/** @typedef {import("./eslint/eslint").ESLintOptions} ESLintOptions */
|
|
36
|
-
/** @typedef {import("./eslint/eslint").LintMessage} LintMessage */
|
|
37
|
-
/** @typedef {import("./eslint/eslint").LintResult} LintResult */
|
|
38
|
-
/** @typedef {import("./options").ParsedCLIOptions} ParsedCLIOptions */
|
|
39
|
-
/** @typedef {import("./shared/types").Plugin} Plugin */
|
|
40
|
-
/** @typedef {import("./shared/types").ResultsMeta} ResultsMeta */
|
|
41
|
-
|
|
42
|
-
//------------------------------------------------------------------------------
|
|
43
|
-
// Helpers
|
|
44
|
-
//------------------------------------------------------------------------------
|
|
45
|
-
|
|
46
|
-
const mkdir = promisify(fs.mkdir);
|
|
47
|
-
const stat = promisify(fs.stat);
|
|
48
|
-
const writeFile = promisify(fs.writeFile);
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Loads plugins with the specified names.
|
|
52
|
-
* @param {{ "import": (name: string) => Promise<any> }} importer An object with an `import` method called once for each plugin.
|
|
53
|
-
* @param {string[]} pluginNames The names of the plugins to be loaded, with or without the "eslint-plugin-" prefix.
|
|
54
|
-
* @returns {Promise<Record<string, Plugin>>} A mapping of plugin short names to implementations.
|
|
55
|
-
*/
|
|
56
|
-
async function loadPlugins(importer, pluginNames) {
|
|
57
|
-
const plugins = {};
|
|
58
|
-
|
|
59
|
-
await Promise.all(pluginNames.map(async pluginName => {
|
|
60
|
-
|
|
61
|
-
const longName = naming.normalizePackageName(pluginName, "eslint-plugin");
|
|
62
|
-
const module = await importer.import(longName);
|
|
63
|
-
|
|
64
|
-
if (!("default" in module)) {
|
|
65
|
-
throw new Error(`"${longName}" cannot be used with the \`--plugin\` option because its default module does not provide a \`default\` export`);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
const shortName = naming.getShorthandName(pluginName, "eslint-plugin");
|
|
69
|
-
|
|
70
|
-
plugins[shortName] = module.default;
|
|
71
|
-
}));
|
|
72
|
-
|
|
73
|
-
return plugins;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Predicate function for whether or not to apply fixes in quiet mode.
|
|
78
|
-
* If a message is a warning, do not apply a fix.
|
|
79
|
-
* @param {LintMessage} message The lint result.
|
|
80
|
-
* @returns {boolean} True if the lint message is an error (and thus should be
|
|
81
|
-
* autofixed), false otherwise.
|
|
82
|
-
*/
|
|
83
|
-
function quietFixPredicate(message) {
|
|
84
|
-
return message.severity === 2;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Predicate function for whether or not to run a rule in quiet mode.
|
|
89
|
-
* If a rule is set to warning, do not run it.
|
|
90
|
-
* @param {{ ruleId: string; severity: number; }} rule The rule id and severity.
|
|
91
|
-
* @returns {boolean} True if the lint rule should run, false otherwise.
|
|
92
|
-
*/
|
|
93
|
-
function quietRuleFilter(rule) {
|
|
94
|
-
return rule.severity === 2;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Translates the CLI options into the options expected by the ESLint constructor.
|
|
99
|
-
* @param {ParsedCLIOptions} cliOptions The CLI options to translate.
|
|
100
|
-
* @param {"flat"|"eslintrc"} [configType="eslintrc"] The format of the
|
|
101
|
-
* config to generate.
|
|
102
|
-
* @returns {Promise<ESLintOptions>} The options object for the ESLint constructor.
|
|
103
|
-
* @private
|
|
104
|
-
*/
|
|
105
|
-
async function translateOptions({
|
|
106
|
-
cache,
|
|
107
|
-
cacheFile,
|
|
108
|
-
cacheLocation,
|
|
109
|
-
cacheStrategy,
|
|
110
|
-
config,
|
|
111
|
-
configLookup,
|
|
112
|
-
env,
|
|
113
|
-
errorOnUnmatchedPattern,
|
|
114
|
-
eslintrc,
|
|
115
|
-
ext,
|
|
116
|
-
fix,
|
|
117
|
-
fixDryRun,
|
|
118
|
-
fixType,
|
|
119
|
-
flag,
|
|
120
|
-
global,
|
|
121
|
-
ignore,
|
|
122
|
-
ignorePath,
|
|
123
|
-
ignorePattern,
|
|
124
|
-
inlineConfig,
|
|
125
|
-
parser,
|
|
126
|
-
parserOptions,
|
|
127
|
-
plugin,
|
|
128
|
-
quiet,
|
|
129
|
-
reportUnusedDisableDirectives,
|
|
130
|
-
reportUnusedDisableDirectivesSeverity,
|
|
131
|
-
resolvePluginsRelativeTo,
|
|
132
|
-
rule,
|
|
133
|
-
rulesdir,
|
|
134
|
-
stats,
|
|
135
|
-
warnIgnored,
|
|
136
|
-
passOnNoPatterns,
|
|
137
|
-
maxWarnings
|
|
138
|
-
}, configType) {
|
|
139
|
-
|
|
140
|
-
let overrideConfig, overrideConfigFile;
|
|
141
|
-
const importer = new ModuleImporter();
|
|
142
|
-
|
|
143
|
-
if (configType === "flat") {
|
|
144
|
-
overrideConfigFile = (typeof config === "string") ? config : !configLookup;
|
|
145
|
-
if (overrideConfigFile === false) {
|
|
146
|
-
overrideConfigFile = void 0;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
let globals = {};
|
|
150
|
-
|
|
151
|
-
if (global) {
|
|
152
|
-
globals = global.reduce((obj, name) => {
|
|
153
|
-
if (name.endsWith(":true")) {
|
|
154
|
-
obj[name.slice(0, -5)] = "writable";
|
|
155
|
-
} else {
|
|
156
|
-
obj[name] = "readonly";
|
|
157
|
-
}
|
|
158
|
-
return obj;
|
|
159
|
-
}, globals);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
overrideConfig = [{
|
|
163
|
-
languageOptions: {
|
|
164
|
-
globals,
|
|
165
|
-
parserOptions: parserOptions || {}
|
|
166
|
-
},
|
|
167
|
-
rules: rule ? rule : {}
|
|
168
|
-
}];
|
|
169
|
-
|
|
170
|
-
if (reportUnusedDisableDirectives || reportUnusedDisableDirectivesSeverity !== void 0) {
|
|
171
|
-
overrideConfig[0].linterOptions = {
|
|
172
|
-
reportUnusedDisableDirectives: reportUnusedDisableDirectives
|
|
173
|
-
? "error"
|
|
174
|
-
: normalizeSeverityToString(reportUnusedDisableDirectivesSeverity)
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
if (parser) {
|
|
179
|
-
overrideConfig[0].languageOptions.parser = await importer.import(parser);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
if (plugin) {
|
|
183
|
-
overrideConfig[0].plugins = await loadPlugins(importer, plugin);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
} else {
|
|
187
|
-
overrideConfigFile = config;
|
|
188
|
-
|
|
189
|
-
overrideConfig = {
|
|
190
|
-
env: env && env.reduce((obj, name) => {
|
|
191
|
-
obj[name] = true;
|
|
192
|
-
return obj;
|
|
193
|
-
}, {}),
|
|
194
|
-
globals: global && global.reduce((obj, name) => {
|
|
195
|
-
if (name.endsWith(":true")) {
|
|
196
|
-
obj[name.slice(0, -5)] = "writable";
|
|
197
|
-
} else {
|
|
198
|
-
obj[name] = "readonly";
|
|
199
|
-
}
|
|
200
|
-
return obj;
|
|
201
|
-
}, {}),
|
|
202
|
-
ignorePatterns: ignorePattern,
|
|
203
|
-
parser,
|
|
204
|
-
parserOptions,
|
|
205
|
-
plugins: plugin,
|
|
206
|
-
rules: rule
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
const options = {
|
|
211
|
-
allowInlineConfig: inlineConfig,
|
|
212
|
-
cache,
|
|
213
|
-
cacheLocation: cacheLocation || cacheFile,
|
|
214
|
-
cacheStrategy,
|
|
215
|
-
errorOnUnmatchedPattern,
|
|
216
|
-
fix: (fix || fixDryRun) && (quiet ? quietFixPredicate : true),
|
|
217
|
-
fixTypes: fixType,
|
|
218
|
-
ignore,
|
|
219
|
-
overrideConfig,
|
|
220
|
-
overrideConfigFile,
|
|
221
|
-
passOnNoPatterns
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
if (configType === "flat") {
|
|
225
|
-
options.ignorePatterns = ignorePattern;
|
|
226
|
-
options.stats = stats;
|
|
227
|
-
options.warnIgnored = warnIgnored;
|
|
228
|
-
options.flags = flag;
|
|
229
|
-
|
|
230
|
-
/*
|
|
231
|
-
* For performance reasons rules not marked as 'error' are filtered out in quiet mode. As maxWarnings
|
|
232
|
-
* requires rules set to 'warn' to be run, we only filter out 'warn' rules if maxWarnings is not specified.
|
|
233
|
-
*/
|
|
234
|
-
options.ruleFilter = quiet && maxWarnings === -1 ? quietRuleFilter : () => true;
|
|
235
|
-
} else {
|
|
236
|
-
options.resolvePluginsRelativeTo = resolvePluginsRelativeTo;
|
|
237
|
-
options.rulePaths = rulesdir;
|
|
238
|
-
options.useEslintrc = eslintrc;
|
|
239
|
-
options.extensions = ext;
|
|
240
|
-
options.ignorePath = ignorePath;
|
|
241
|
-
if (reportUnusedDisableDirectives || reportUnusedDisableDirectivesSeverity !== void 0) {
|
|
242
|
-
options.reportUnusedDisableDirectives = reportUnusedDisableDirectives
|
|
243
|
-
? "error"
|
|
244
|
-
: normalizeSeverityToString(reportUnusedDisableDirectivesSeverity);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
return options;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* Count error messages.
|
|
253
|
-
* @param {LintResult[]} results The lint results.
|
|
254
|
-
* @returns {{errorCount:number;fatalErrorCount:number,warningCount:number}} The number of error messages.
|
|
255
|
-
*/
|
|
256
|
-
function countErrors(results) {
|
|
257
|
-
let errorCount = 0;
|
|
258
|
-
let fatalErrorCount = 0;
|
|
259
|
-
let warningCount = 0;
|
|
260
|
-
|
|
261
|
-
for (const result of results) {
|
|
262
|
-
errorCount += result.errorCount;
|
|
263
|
-
fatalErrorCount += result.fatalErrorCount;
|
|
264
|
-
warningCount += result.warningCount;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
return { errorCount, fatalErrorCount, warningCount };
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* Check if a given file path is a directory or not.
|
|
272
|
-
* @param {string} filePath The path to a file to check.
|
|
273
|
-
* @returns {Promise<boolean>} `true` if the given path is a directory.
|
|
274
|
-
*/
|
|
275
|
-
async function isDirectory(filePath) {
|
|
276
|
-
try {
|
|
277
|
-
return (await stat(filePath)).isDirectory();
|
|
278
|
-
} catch (error) {
|
|
279
|
-
if (error.code === "ENOENT" || error.code === "ENOTDIR") {
|
|
280
|
-
return false;
|
|
281
|
-
}
|
|
282
|
-
throw error;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Outputs the results of the linting.
|
|
288
|
-
* @param {ESLint} engine The ESLint instance to use.
|
|
289
|
-
* @param {LintResult[]} results The results to print.
|
|
290
|
-
* @param {string} format The name of the formatter to use or the path to the formatter.
|
|
291
|
-
* @param {string} outputFile The path for the output file.
|
|
292
|
-
* @param {ResultsMeta} resultsMeta Warning count and max threshold.
|
|
293
|
-
* @returns {Promise<boolean>} True if the printing succeeds, false if not.
|
|
294
|
-
* @private
|
|
295
|
-
*/
|
|
296
|
-
async function printResults(engine, results, format, outputFile, resultsMeta) {
|
|
297
|
-
let formatter;
|
|
298
|
-
|
|
299
|
-
try {
|
|
300
|
-
formatter = await engine.loadFormatter(format);
|
|
301
|
-
} catch (e) {
|
|
302
|
-
log.error(e.message);
|
|
303
|
-
return false;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
const output = await formatter.format(results, resultsMeta);
|
|
307
|
-
|
|
308
|
-
if (outputFile) {
|
|
309
|
-
const filePath = path.resolve(process.cwd(), outputFile);
|
|
310
|
-
|
|
311
|
-
if (await isDirectory(filePath)) {
|
|
312
|
-
log.error("Cannot write to output file path, it is a directory: %s", outputFile);
|
|
313
|
-
return false;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
try {
|
|
317
|
-
await mkdir(path.dirname(filePath), { recursive: true });
|
|
318
|
-
await writeFile(filePath, output);
|
|
319
|
-
} catch (ex) {
|
|
320
|
-
log.error("There was a problem writing the output file:\n%s", ex);
|
|
321
|
-
return false;
|
|
322
|
-
}
|
|
323
|
-
} else if (output) {
|
|
324
|
-
log.info(output);
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
return true;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
//------------------------------------------------------------------------------
|
|
331
|
-
// Public Interface
|
|
332
|
-
//------------------------------------------------------------------------------
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Encapsulates all CLI behavior for eslint. Makes it easier to test as well as
|
|
336
|
-
* for other Node.js programs to effectively run the CLI.
|
|
337
|
-
*/
|
|
338
|
-
const cli = {
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* Calculates the command string for the --inspect-config operation.
|
|
342
|
-
* @param {string} configFile The path to the config file to inspect.
|
|
343
|
-
* @param {boolean} hasUnstableTSConfigFlag `true` if the `unstable_ts_config` flag is enabled, `false` if it's not.
|
|
344
|
-
* @returns {Promise<string>} The command string to execute.
|
|
345
|
-
*/
|
|
346
|
-
async calculateInspectConfigFlags(configFile, hasUnstableTSConfigFlag) {
|
|
347
|
-
|
|
348
|
-
// find the config file
|
|
349
|
-
const {
|
|
350
|
-
configFilePath,
|
|
351
|
-
basePath,
|
|
352
|
-
error
|
|
353
|
-
} = await locateConfigFileToUse({ cwd: process.cwd(), configFile }, hasUnstableTSConfigFlag);
|
|
354
|
-
|
|
355
|
-
if (error) {
|
|
356
|
-
throw error;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
return ["--config", configFilePath, "--basePath", basePath];
|
|
360
|
-
},
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Executes the CLI based on an array of arguments that is passed in.
|
|
364
|
-
* @param {string|Array|Object} args The arguments to process.
|
|
365
|
-
* @param {string} [text] The text to lint (used for TTY).
|
|
366
|
-
* @param {boolean} [allowFlatConfig=true] Whether or not to allow flat config.
|
|
367
|
-
* @returns {Promise<number>} The exit code for the operation.
|
|
368
|
-
*/
|
|
369
|
-
async execute(args, text, allowFlatConfig = true) {
|
|
370
|
-
if (Array.isArray(args)) {
|
|
371
|
-
debug("CLI args: %o", args.slice(2));
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
/*
|
|
375
|
-
* Before doing anything, we need to see if we are using a
|
|
376
|
-
* flat config file. If so, then we need to change the way command
|
|
377
|
-
* line args are parsed. This is temporary, and when we fully
|
|
378
|
-
* switch to flat config we can remove this logic.
|
|
379
|
-
*/
|
|
380
|
-
|
|
381
|
-
const usingFlatConfig = allowFlatConfig && await shouldUseFlatConfig();
|
|
382
|
-
|
|
383
|
-
debug("Using flat config?", usingFlatConfig);
|
|
384
|
-
|
|
385
|
-
if (allowFlatConfig && !usingFlatConfig) {
|
|
386
|
-
process.emitWarning("You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details.", "ESLintRCWarning");
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
const CLIOptions = createCLIOptions(usingFlatConfig);
|
|
390
|
-
|
|
391
|
-
/** @type {ParsedCLIOptions} */
|
|
392
|
-
let options;
|
|
393
|
-
|
|
394
|
-
try {
|
|
395
|
-
options = CLIOptions.parse(args);
|
|
396
|
-
} catch (error) {
|
|
397
|
-
debug("Error parsing CLI options:", error.message);
|
|
398
|
-
|
|
399
|
-
let errorMessage = error.message;
|
|
400
|
-
|
|
401
|
-
if (usingFlatConfig) {
|
|
402
|
-
errorMessage += "\nYou're using eslint.config.js, some command line flags are no longer available. Please see https://eslint.org/docs/latest/use/command-line-interface for details.";
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
log.error(errorMessage);
|
|
406
|
-
return 2;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
const files = options._;
|
|
410
|
-
const useStdin = typeof text === "string";
|
|
411
|
-
|
|
412
|
-
if (options.help) {
|
|
413
|
-
log.info(CLIOptions.generateHelp());
|
|
414
|
-
return 0;
|
|
415
|
-
}
|
|
416
|
-
if (options.version) {
|
|
417
|
-
log.info(RuntimeInfo.version());
|
|
418
|
-
return 0;
|
|
419
|
-
}
|
|
420
|
-
if (options.envInfo) {
|
|
421
|
-
try {
|
|
422
|
-
log.info(RuntimeInfo.environment());
|
|
423
|
-
return 0;
|
|
424
|
-
} catch (err) {
|
|
425
|
-
debug("Error retrieving environment info");
|
|
426
|
-
log.error(err.message);
|
|
427
|
-
return 2;
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
if (options.printConfig) {
|
|
432
|
-
if (files.length) {
|
|
433
|
-
log.error("The --print-config option must be used with exactly one file name.");
|
|
434
|
-
return 2;
|
|
435
|
-
}
|
|
436
|
-
if (useStdin) {
|
|
437
|
-
log.error("The --print-config option is not available for piped-in code.");
|
|
438
|
-
return 2;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
const engine = usingFlatConfig
|
|
442
|
-
? new ESLint(await translateOptions(options, "flat"))
|
|
443
|
-
: new LegacyESLint(await translateOptions(options));
|
|
444
|
-
const fileConfig =
|
|
445
|
-
await engine.calculateConfigForFile(options.printConfig);
|
|
446
|
-
|
|
447
|
-
log.info(JSON.stringify(fileConfig, null, " "));
|
|
448
|
-
return 0;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
if (options.inspectConfig) {
|
|
452
|
-
|
|
453
|
-
log.info("You can also run this command directly using 'npx @eslint/config-inspector@latest' in the same directory as your configuration file.");
|
|
454
|
-
|
|
455
|
-
try {
|
|
456
|
-
const flatOptions = await translateOptions(options, "flat");
|
|
457
|
-
const spawn = require("cross-spawn");
|
|
458
|
-
const flags = await cli.calculateInspectConfigFlags(flatOptions.overrideConfigFile, flatOptions.flags ? flatOptions.flags.includes("unstable_ts_config") : false);
|
|
459
|
-
|
|
460
|
-
spawn.sync("npx", ["@eslint/config-inspector@latest", ...flags], { encoding: "utf8", stdio: "inherit" });
|
|
461
|
-
} catch (error) {
|
|
462
|
-
log.error(error);
|
|
463
|
-
return 2;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
return 0;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
debug(`Running on ${useStdin ? "text" : "files"}`);
|
|
470
|
-
|
|
471
|
-
if (options.fix && options.fixDryRun) {
|
|
472
|
-
log.error("The --fix option and the --fix-dry-run option cannot be used together.");
|
|
473
|
-
return 2;
|
|
474
|
-
}
|
|
475
|
-
if (useStdin && options.fix) {
|
|
476
|
-
log.error("The --fix option is not available for piped-in code; use --fix-dry-run instead.");
|
|
477
|
-
return 2;
|
|
478
|
-
}
|
|
479
|
-
if (options.fixType && !options.fix && !options.fixDryRun) {
|
|
480
|
-
log.error("The --fix-type option requires either --fix or --fix-dry-run.");
|
|
481
|
-
return 2;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
if (options.reportUnusedDisableDirectives && options.reportUnusedDisableDirectivesSeverity !== void 0) {
|
|
485
|
-
log.error("The --report-unused-disable-directives option and the --report-unused-disable-directives-severity option cannot be used together.");
|
|
486
|
-
return 2;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
const ActiveESLint = usingFlatConfig ? ESLint : LegacyESLint;
|
|
490
|
-
const eslintOptions = await translateOptions(options, usingFlatConfig ? "flat" : "eslintrc");
|
|
491
|
-
const engine = new ActiveESLint(eslintOptions);
|
|
492
|
-
let results;
|
|
493
|
-
|
|
494
|
-
if (useStdin) {
|
|
495
|
-
results = await engine.lintText(text, {
|
|
496
|
-
filePath: options.stdinFilename,
|
|
497
|
-
|
|
498
|
-
// flatConfig respects CLI flag and constructor warnIgnored, eslintrc forces true for backwards compatibility
|
|
499
|
-
warnIgnored: usingFlatConfig ? void 0 : true
|
|
500
|
-
});
|
|
501
|
-
} else {
|
|
502
|
-
results = await engine.lintFiles(files);
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
if (options.fix) {
|
|
506
|
-
debug("Fix mode enabled - applying fixes");
|
|
507
|
-
await ActiveESLint.outputFixes(results);
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
let resultsToPrint = results;
|
|
511
|
-
|
|
512
|
-
if (options.quiet) {
|
|
513
|
-
debug("Quiet mode enabled - filtering out warnings");
|
|
514
|
-
resultsToPrint = ActiveESLint.getErrorResults(resultsToPrint);
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
const resultCounts = countErrors(results);
|
|
518
|
-
const tooManyWarnings = options.maxWarnings >= 0 && resultCounts.warningCount > options.maxWarnings;
|
|
519
|
-
const resultsMeta = tooManyWarnings
|
|
520
|
-
? {
|
|
521
|
-
maxWarningsExceeded: {
|
|
522
|
-
maxWarnings: options.maxWarnings,
|
|
523
|
-
foundWarnings: resultCounts.warningCount
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
: {};
|
|
527
|
-
|
|
528
|
-
if (await printResults(engine, resultsToPrint, options.format, options.outputFile, resultsMeta)) {
|
|
529
|
-
|
|
530
|
-
// Errors and warnings from the original unfiltered results should determine the exit code
|
|
531
|
-
const shouldExitForFatalErrors =
|
|
532
|
-
options.exitOnFatalError && resultCounts.fatalErrorCount > 0;
|
|
533
|
-
|
|
534
|
-
if (!resultCounts.errorCount && tooManyWarnings) {
|
|
535
|
-
log.error(
|
|
536
|
-
"ESLint found too many warnings (maximum: %s).",
|
|
537
|
-
options.maxWarnings
|
|
538
|
-
);
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
if (shouldExitForFatalErrors) {
|
|
542
|
-
return 2;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
return (resultCounts.errorCount || tooManyWarnings) ? 1 : 0;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
return 2;
|
|
549
|
-
}
|
|
550
|
-
};
|
|
551
|
-
|
|
552
|
-
module.exports = cli;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Default configuration
|
|
3
|
-
* @author Nicholas C. Zakas
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
|
|
8
|
-
//-----------------------------------------------------------------------------
|
|
9
|
-
// Requirements
|
|
10
|
-
//-----------------------------------------------------------------------------
|
|
11
|
-
|
|
12
|
-
const Rules = require("../rules");
|
|
13
|
-
|
|
14
|
-
//-----------------------------------------------------------------------------
|
|
15
|
-
// Helpers
|
|
16
|
-
//-----------------------------------------------------------------------------
|
|
17
|
-
|
|
18
|
-
exports.defaultConfig = [
|
|
19
|
-
{
|
|
20
|
-
plugins: {
|
|
21
|
-
"@": {
|
|
22
|
-
|
|
23
|
-
languages: {
|
|
24
|
-
js: require("../languages/js")
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
/*
|
|
28
|
-
* Because we try to delay loading rules until absolutely
|
|
29
|
-
* necessary, a proxy allows us to hook into the lazy-loading
|
|
30
|
-
* aspect of the rules map while still keeping all of the
|
|
31
|
-
* relevant configuration inside of the config array.
|
|
32
|
-
*/
|
|
33
|
-
rules: new Proxy({}, {
|
|
34
|
-
get(target, property) {
|
|
35
|
-
return Rules.get(property);
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
has(target, property) {
|
|
39
|
-
return Rules.has(property);
|
|
40
|
-
}
|
|
41
|
-
})
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
language: "@/js",
|
|
45
|
-
languageOptions: {
|
|
46
|
-
sourceType: "module",
|
|
47
|
-
ecmaVersion: "latest",
|
|
48
|
-
parser: require("espree"),
|
|
49
|
-
parserOptions: {}
|
|
50
|
-
},
|
|
51
|
-
linterOptions: {
|
|
52
|
-
reportUnusedDisableDirectives: 1
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
// default ignores are listed here
|
|
57
|
-
{
|
|
58
|
-
ignores: [
|
|
59
|
-
"**/node_modules/",
|
|
60
|
-
".git/"
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
// intentionally empty config to ensure these files are globbed by default
|
|
65
|
-
{
|
|
66
|
-
files: ["**/*.js", "**/*.mjs"]
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
files: ["**/*.cjs"],
|
|
70
|
-
languageOptions: {
|
|
71
|
-
sourceType: "commonjs",
|
|
72
|
-
ecmaVersion: "latest"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
];
|