@alexlit/lint-kit 175.0.0 → 176.0.1

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.
Files changed (948) hide show
  1. package/package.json +1 -1
  2. package/packages/config-eslint/node_modules/@eslint/core/README.md +29 -0
  3. package/packages/config-eslint/node_modules/@eslint/core/dist/cjs/types.d.cts +1179 -0
  4. package/packages/config-eslint/node_modules/@eslint/core/dist/esm/types.d.ts +1179 -0
  5. package/packages/config-eslint/node_modules/@eslint/core/package.json +49 -0
  6. package/packages/config-eslint/node_modules/@eslint/plugin-kit/README.md +10 -10
  7. package/packages/config-eslint/node_modules/@eslint/plugin-kit/dist/cjs/index.cjs +1 -12
  8. package/packages/config-eslint/node_modules/@eslint/plugin-kit/dist/cjs/index.d.cts +3 -4
  9. package/packages/config-eslint/node_modules/@eslint/plugin-kit/dist/cjs/types.cts +0 -74
  10. package/packages/config-eslint/node_modules/@eslint/plugin-kit/dist/esm/index.d.ts +3 -4
  11. package/packages/config-eslint/node_modules/@eslint/plugin-kit/dist/esm/index.js +1 -12
  12. package/packages/config-eslint/node_modules/@eslint/plugin-kit/dist/esm/types.d.ts +0 -40
  13. package/packages/config-eslint/node_modules/@eslint/plugin-kit/dist/esm/types.ts +0 -74
  14. package/packages/config-eslint/node_modules/@eslint/plugin-kit/package.json +4 -5
  15. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/configs/flat-config-base.js +9 -0
  16. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/index.d.ts +17 -0
  17. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/index.js +91 -0
  18. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/license +9 -0
  19. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/node_modules/globals/globals.json +3345 -0
  20. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/node_modules/globals/index.d.ts +3452 -0
  21. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/node_modules/globals/index.js +2 -0
  22. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/node_modules/globals/license +9 -0
  23. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/node_modules/globals/package.json +117 -0
  24. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/node_modules/globals/readme.md +42 -0
  25. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/package.json +128 -0
  26. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/readme.md +261 -0
  27. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/call-or-new-expression.js +120 -0
  28. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/function-types.js +7 -0
  29. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/index.js +30 -0
  30. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/is-arrow-function-body.js +3 -0
  31. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/is-directive.js +4 -0
  32. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/is-empty-array-expression.js +5 -0
  33. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/is-empty-node.js +17 -0
  34. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/is-expression-statement.js +7 -0
  35. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/is-function.js +5 -0
  36. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/is-member-expression.js +98 -0
  37. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/is-method-call.js +62 -0
  38. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/is-negative-one.js +8 -0
  39. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/is-reference-identifier.js +159 -0
  40. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/is-static-require.js +10 -0
  41. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/is-tagged-template-literal.js +24 -0
  42. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/is-undefined.js +3 -0
  43. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/ast/literal.js +24 -0
  44. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/better-regex.js +146 -0
  45. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/catch-error-name.js +138 -0
  46. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/consistent-assert.js +98 -0
  47. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/consistent-date-clone.js +54 -0
  48. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/consistent-destructuring.js +168 -0
  49. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/consistent-empty-array-spread.js +127 -0
  50. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/consistent-existence-index-check.js +137 -0
  51. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/consistent-function-scoping.js +265 -0
  52. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/custom-error-definition.js +218 -0
  53. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/empty-brace-spaces.js +62 -0
  54. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/error-message.js +98 -0
  55. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/escape-case.js +86 -0
  56. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/expiring-todo-comments.js +584 -0
  57. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/explicit-length-check.js +236 -0
  58. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/filename-case.js +276 -0
  59. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/add-parenthesizes-to-return-or-throw-expression.js +29 -0
  60. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/append-argument.js +30 -0
  61. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/extend-fix-range.js +11 -0
  62. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/fix-space-around-keywords.js +43 -0
  63. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/index.js +23 -0
  64. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/remove-argument.js +40 -0
  65. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/remove-expression-statement.js +34 -0
  66. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/remove-method-call.js +28 -0
  67. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/remove-object-property.js +21 -0
  68. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/remove-parentheses.js +19 -0
  69. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/remove-spaces-after.js +22 -0
  70. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/remove-specifier.js +59 -0
  71. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/rename-variable.js +8 -0
  72. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/replace-argument.js +17 -0
  73. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/replace-member-expression-property.js +25 -0
  74. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/replace-node-or-token-and-spaces-before.js +31 -0
  75. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/replace-reference-identifier.js +32 -0
  76. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/replace-string-raw.js +12 -0
  77. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/replace-template-element.js +10 -0
  78. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/switch-call-expression-to-new-expression.js +29 -0
  79. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/fix/switch-new-expression-to-call-expression.js +42 -0
  80. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/import-style.js +375 -0
  81. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/index.js +143 -0
  82. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/new-for-builtins.js +112 -0
  83. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-abusive-eslint-disable.js +63 -0
  84. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-accessor-recursion.js +160 -0
  85. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-anonymous-default-export.js +210 -0
  86. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-array-callback-reference.js +285 -0
  87. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-array-for-each.js +496 -0
  88. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-array-method-this-argument.js +223 -0
  89. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-array-reduce.js +128 -0
  90. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-array-reverse.js +6 -0
  91. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-array-sort.js +6 -0
  92. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-await-expression-member.js +85 -0
  93. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-await-in-promise-methods.js +69 -0
  94. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-console-spaces.js +89 -0
  95. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-document-cookie.js +27 -0
  96. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-empty-file.js +58 -0
  97. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-for-loop.js +419 -0
  98. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-hex-escape.js +54 -0
  99. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-immediate-mutation.js +778 -0
  100. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-instanceof-builtins.js +216 -0
  101. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-invalid-fetch-options.js +112 -0
  102. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-invalid-remove-event-listener.js +61 -0
  103. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-keyword-prefix.js +202 -0
  104. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-lonely-if.js +155 -0
  105. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-magic-array-flat-depth.js +55 -0
  106. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-named-default.js +101 -0
  107. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-negated-condition.js +145 -0
  108. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-negation-in-equality-check.js +99 -0
  109. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-nested-ternary.js +60 -0
  110. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-new-array.js +106 -0
  111. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-new-buffer.js +100 -0
  112. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-null.js +153 -0
  113. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-object-as-default-parameter.js +52 -0
  114. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-process-exit.js +106 -0
  115. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-single-promise-in-promise-methods.js +179 -0
  116. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-static-only-class.js +226 -0
  117. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-thenable.js +194 -0
  118. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-this-assignment.js +40 -0
  119. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-typeof-undefined.js +146 -0
  120. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-unnecessary-array-flat-depth.js +49 -0
  121. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-unnecessary-array-splice-count.js +23 -0
  122. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-unnecessary-await.js +110 -0
  123. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-unnecessary-polyfills.js +174 -0
  124. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-unnecessary-slice-end.js +22 -0
  125. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-unreadable-array-destructuring.js +85 -0
  126. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-unreadable-iife.js +43 -0
  127. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-unused-properties.js +240 -0
  128. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-useless-collection-argument.js +101 -0
  129. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-useless-error-capture-stack-trace.js +146 -0
  130. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-useless-fallback-in-spread.js +66 -0
  131. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-useless-length-check.js +150 -0
  132. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-useless-promise-resolve-reject.js +210 -0
  133. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-useless-spread.js +389 -0
  134. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-useless-switch-case.js +59 -0
  135. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-useless-undefined.js +275 -0
  136. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/no-zero-fractions.js +81 -0
  137. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/number-literal-case.js +82 -0
  138. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/numeric-separators-style.js +189 -0
  139. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-add-event-listener.js +191 -0
  140. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-array-find.js +458 -0
  141. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-array-flat-map.js +86 -0
  142. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-array-flat.js +279 -0
  143. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-array-index-of.js +34 -0
  144. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-array-some.js +219 -0
  145. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-at.js +380 -0
  146. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-bigint-literals.js +129 -0
  147. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-blob-reading-methods.js +47 -0
  148. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-class-fields.js +158 -0
  149. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-classlist-toggle.js +255 -0
  150. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-code-point.js +56 -0
  151. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-date-now.js +133 -0
  152. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-default-parameters.js +218 -0
  153. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-dom-node-append.js +50 -0
  154. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-dom-node-dataset.js +135 -0
  155. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-dom-node-remove.js +124 -0
  156. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-dom-node-text-content.js +77 -0
  157. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-event-target.js +119 -0
  158. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-export-from.js +367 -0
  159. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-global-this.js +222 -0
  160. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-import-meta-properties.js +320 -0
  161. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-includes.js +111 -0
  162. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-json-parse-buffer.js +161 -0
  163. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-keyboard-event-key.js +188 -0
  164. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-logical-operator-over-ternary.js +162 -0
  165. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-math-min-max.js +205 -0
  166. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-math-trunc.js +111 -0
  167. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-modern-dom-apis.js +145 -0
  168. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-modern-math-apis.js +210 -0
  169. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-module.js +377 -0
  170. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-native-coercion-functions.js +187 -0
  171. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-negative-index.js +211 -0
  172. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-node-protocol.js +86 -0
  173. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-number-properties.js +142 -0
  174. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-object-from-entries.js +256 -0
  175. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-optional-catch-binding.js +77 -0
  176. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-prototype-methods.js +162 -0
  177. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-query-selector.js +170 -0
  178. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-reflect-apply.js +99 -0
  179. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-regexp-test.js +155 -0
  180. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-response-static-json.js +85 -0
  181. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-set-has.js +181 -0
  182. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-set-size.js +106 -0
  183. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-single-call.js +188 -0
  184. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-spread.js +521 -0
  185. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-string-raw.js +149 -0
  186. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-string-replace-all.js +180 -0
  187. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-string-slice.js +180 -0
  188. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-string-starts-ends-with.js +201 -0
  189. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-string-trim-start-end.js +46 -0
  190. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-structured-clone.js +149 -0
  191. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-switch.js +357 -0
  192. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-ternary.js +288 -0
  193. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-top-level-await.js +154 -0
  194. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prefer-type-error.js +169 -0
  195. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/prevent-abbreviations.js +655 -0
  196. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/relative-url-style.js +171 -0
  197. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/require-array-join-separator.js +65 -0
  198. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/require-module-attributes.js +120 -0
  199. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/require-module-specifiers.js +158 -0
  200. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/require-number-to-fixed-digits-argument.js +55 -0
  201. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/require-post-message-target-origin.js +74 -0
  202. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/rule/get-documentation-url.js +9 -0
  203. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/rule/index.js +9 -0
  204. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/rule/to-eslint-create.js +51 -0
  205. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/rule/to-eslint-listener.js +40 -0
  206. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/rule/to-eslint-problem.js +38 -0
  207. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/rule/to-eslint-rule-fixer.js +49 -0
  208. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/rule/to-eslint-rule.js +38 -0
  209. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/rule/to-eslint-rules.js +13 -0
  210. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/rule/unicorn-context.js +36 -0
  211. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/rule/unicorn-listeners.js +65 -0
  212. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/rule/utilities.js +27 -0
  213. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/shared/abbreviations.js +270 -0
  214. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/shared/builtin-errors.js +14 -0
  215. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/shared/dom-events.js +275 -0
  216. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/shared/event-keys.js +54 -0
  217. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/shared/negative-index.js +52 -0
  218. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/shared/no-array-mutate-rule.js +139 -0
  219. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/shared/no-unnecessary-length-or-infinity-rule.js +80 -0
  220. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/shared/package-json.js +42 -0
  221. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/shared/simple-array-search-rule.js +126 -0
  222. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/shared/typed-array.js +17 -0
  223. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/string-content.js +192 -0
  224. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/switch-case-braces.js +114 -0
  225. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/template-indent.js +219 -0
  226. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/text-encoding-identifier-case.js +130 -0
  227. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/throw-new-error.js +60 -0
  228. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/array-or-object-prototype-property.js +57 -0
  229. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/assert-token.js +29 -0
  230. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/boolean.js +88 -0
  231. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/builtins.js +30 -0
  232. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/cartesian-product-samples.js +22 -0
  233. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/create-deprecated-rules.js +29 -0
  234. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/escape-string.js +24 -0
  235. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/escape-template-element-raw.js +6 -0
  236. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/get-ancestor.js +15 -0
  237. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/get-available-variable-name.js +147 -0
  238. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/get-builtin-rule.js +5 -0
  239. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/get-call-expression-arguments-text.js +36 -0
  240. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/get-call-or-new-expression-tokens.js +67 -0
  241. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/get-class-head-location.js +22 -0
  242. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/get-documentation-url.js +9 -0
  243. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/get-indent-string.js +18 -0
  244. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/get-references.js +5 -0
  245. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/get-scopes.js +12 -0
  246. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/get-sibling-node.js +38 -0
  247. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/get-switch-case-head-location.js +22 -0
  248. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/get-token-store.js +24 -0
  249. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/get-variable-identifiers.js +7 -0
  250. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/global-reference-tracker.js +68 -0
  251. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/has-optional-chain-element.js +17 -0
  252. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/has-same-range.js +7 -0
  253. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/index.js +59 -0
  254. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-function-self-used-inside.js +39 -0
  255. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-left-hand-side.js +20 -0
  256. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-logical-expression.js +14 -0
  257. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-method-named.js +7 -0
  258. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-new-expression-with-parentheses.js +28 -0
  259. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-node-matches.js +58 -0
  260. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-node-value-not-dom-node.js +20 -0
  261. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-node-value-not-function.js +40 -0
  262. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-number.js +224 -0
  263. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-object-method.js +10 -0
  264. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-on-same-line.js +7 -0
  265. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-same-identifier.js +5 -0
  266. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-same-reference.js +170 -0
  267. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-shorthand-export-local.js +8 -0
  268. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-shorthand-import-local.js +8 -0
  269. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-shorthand-property-assignment-pattern-left.js +8 -0
  270. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-shorthand-property-value.js +6 -0
  271. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-unresolved-variable.js +14 -0
  272. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/is-value-not-usable.js +5 -0
  273. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/needs-semicolon.js +118 -0
  274. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/numeric.js +49 -0
  275. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/parentheses.js +71 -0
  276. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/resolve-variable-name.js +18 -0
  277. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/rule.js +27 -0
  278. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/should-add-parentheses-to-await-expression-argument.js +17 -0
  279. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/should-add-parentheses-to-call-expression-callee.js +18 -0
  280. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/should-add-parentheses-to-conditional-expression-child.js +13 -0
  281. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/should-add-parentheses-to-expression-statement-expression.js +22 -0
  282. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/should-add-parentheses-to-logical-expression-child.js +43 -0
  283. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/should-add-parentheses-to-member-expression-object.js +47 -0
  284. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/should-add-parentheses-to-new-expression-callee.js +28 -0
  285. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/should-add-parentheses-to-unary-expression.js +24 -0
  286. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/singular.js +16 -0
  287. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/string-cases.js +2 -0
  288. package/packages/config-eslint/node_modules/eslint-plugin-unicorn/rules/utils/to-location.js +25 -0
  289. package/packages/config-eslint/package.json +4 -4
  290. package/packages/config-eslint/plugins/vue.js +6 -0
  291. package/packages/config-eslint/node_modules/@eslint/config-array/README.md +0 -368
  292. package/packages/config-eslint/node_modules/@eslint/config-array/dist/cjs/index.cjs +0 -1536
  293. package/packages/config-eslint/node_modules/@eslint/config-array/dist/cjs/index.d.cts +0 -144
  294. package/packages/config-eslint/node_modules/@eslint/config-array/dist/cjs/std__path/posix.cjs +0 -1336
  295. package/packages/config-eslint/node_modules/@eslint/config-array/dist/cjs/std__path/windows.cjs +0 -1678
  296. package/packages/config-eslint/node_modules/@eslint/config-array/dist/cjs/types.cts +0 -29
  297. package/packages/config-eslint/node_modules/@eslint/config-array/dist/esm/index.d.ts +0 -144
  298. package/packages/config-eslint/node_modules/@eslint/config-array/dist/esm/index.js +0 -1511
  299. package/packages/config-eslint/node_modules/@eslint/config-array/dist/esm/std__path/posix.js +0 -1314
  300. package/packages/config-eslint/node_modules/@eslint/config-array/dist/esm/std__path/windows.js +0 -1656
  301. package/packages/config-eslint/node_modules/@eslint/config-array/dist/esm/types.d.ts +0 -23
  302. package/packages/config-eslint/node_modules/@eslint/config-array/dist/esm/types.ts +0 -29
  303. package/packages/config-eslint/node_modules/@eslint/config-array/package.json +0 -65
  304. package/packages/config-eslint/node_modules/@eslint/config-helpers/LICENSE +0 -201
  305. package/packages/config-eslint/node_modules/@eslint/config-helpers/README.md +0 -97
  306. package/packages/config-eslint/node_modules/@eslint/config-helpers/dist/cjs/index.cjs +0 -588
  307. package/packages/config-eslint/node_modules/@eslint/config-helpers/dist/cjs/index.d.cts +0 -26
  308. package/packages/config-eslint/node_modules/@eslint/config-helpers/dist/cjs/types.cts +0 -29
  309. package/packages/config-eslint/node_modules/@eslint/config-helpers/dist/esm/index.d.ts +0 -26
  310. package/packages/config-eslint/node_modules/@eslint/config-helpers/dist/esm/index.js +0 -586
  311. package/packages/config-eslint/node_modules/@eslint/config-helpers/dist/esm/types.d.ts +0 -23
  312. package/packages/config-eslint/node_modules/@eslint/config-helpers/dist/esm/types.ts +0 -29
  313. package/packages/config-eslint/node_modules/@eslint/config-helpers/package.json +0 -60
  314. package/packages/config-eslint/node_modules/@eslint/js/LICENSE +0 -19
  315. package/packages/config-eslint/node_modules/@eslint/js/README.md +0 -103
  316. package/packages/config-eslint/node_modules/@eslint/js/package.json +0 -44
  317. package/packages/config-eslint/node_modules/@eslint/js/src/configs/eslint-all.js +0 -210
  318. package/packages/config-eslint/node_modules/@eslint/js/src/configs/eslint-recommended.js +0 -75
  319. package/packages/config-eslint/node_modules/@eslint/js/src/index.js +0 -23
  320. package/packages/config-eslint/node_modules/@eslint/js/types/index.d.ts +0 -14
  321. package/packages/config-eslint/node_modules/@eslint/object-schema/LICENSE +0 -201
  322. package/packages/config-eslint/node_modules/@eslint/object-schema/README.md +0 -243
  323. package/packages/config-eslint/node_modules/@eslint/object-schema/dist/cjs/index.cjs +0 -459
  324. package/packages/config-eslint/node_modules/@eslint/object-schema/dist/cjs/index.d.cts +0 -127
  325. package/packages/config-eslint/node_modules/@eslint/object-schema/dist/cjs/types.cts +0 -57
  326. package/packages/config-eslint/node_modules/@eslint/object-schema/dist/esm/index.d.ts +0 -127
  327. package/packages/config-eslint/node_modules/@eslint/object-schema/dist/esm/index.js +0 -456
  328. package/packages/config-eslint/node_modules/@eslint/object-schema/dist/esm/types.d.ts +0 -40
  329. package/packages/config-eslint/node_modules/@eslint/object-schema/dist/esm/types.ts +0 -57
  330. package/packages/config-eslint/node_modules/@eslint/object-schema/package.json +0 -62
  331. package/packages/config-eslint/node_modules/ajv/.tonic_example.js +0 -20
  332. package/packages/config-eslint/node_modules/ajv/LICENSE +0 -22
  333. package/packages/config-eslint/node_modules/ajv/README.md +0 -1497
  334. package/packages/config-eslint/node_modules/ajv/dist/ajv.bundle.js +0 -7189
  335. package/packages/config-eslint/node_modules/ajv/dist/ajv.min.js +0 -3
  336. package/packages/config-eslint/node_modules/ajv/dist/ajv.min.js.map +0 -1
  337. package/packages/config-eslint/node_modules/ajv/lib/ajv.d.ts +0 -397
  338. package/packages/config-eslint/node_modules/ajv/lib/ajv.js +0 -506
  339. package/packages/config-eslint/node_modules/ajv/lib/cache.js +0 -26
  340. package/packages/config-eslint/node_modules/ajv/lib/compile/async.js +0 -90
  341. package/packages/config-eslint/node_modules/ajv/lib/compile/equal.js +0 -5
  342. package/packages/config-eslint/node_modules/ajv/lib/compile/error_classes.js +0 -34
  343. package/packages/config-eslint/node_modules/ajv/lib/compile/formats.js +0 -142
  344. package/packages/config-eslint/node_modules/ajv/lib/compile/index.js +0 -387
  345. package/packages/config-eslint/node_modules/ajv/lib/compile/resolve.js +0 -270
  346. package/packages/config-eslint/node_modules/ajv/lib/compile/rules.js +0 -66
  347. package/packages/config-eslint/node_modules/ajv/lib/compile/schema_obj.js +0 -9
  348. package/packages/config-eslint/node_modules/ajv/lib/compile/ucs2length.js +0 -20
  349. package/packages/config-eslint/node_modules/ajv/lib/compile/util.js +0 -239
  350. package/packages/config-eslint/node_modules/ajv/lib/data.js +0 -49
  351. package/packages/config-eslint/node_modules/ajv/lib/definition_schema.js +0 -37
  352. package/packages/config-eslint/node_modules/ajv/lib/dot/_limit.jst +0 -113
  353. package/packages/config-eslint/node_modules/ajv/lib/dot/_limitItems.jst +0 -12
  354. package/packages/config-eslint/node_modules/ajv/lib/dot/_limitLength.jst +0 -12
  355. package/packages/config-eslint/node_modules/ajv/lib/dot/_limitProperties.jst +0 -12
  356. package/packages/config-eslint/node_modules/ajv/lib/dot/allOf.jst +0 -32
  357. package/packages/config-eslint/node_modules/ajv/lib/dot/anyOf.jst +0 -46
  358. package/packages/config-eslint/node_modules/ajv/lib/dot/coerce.def +0 -51
  359. package/packages/config-eslint/node_modules/ajv/lib/dot/comment.jst +0 -9
  360. package/packages/config-eslint/node_modules/ajv/lib/dot/const.jst +0 -11
  361. package/packages/config-eslint/node_modules/ajv/lib/dot/contains.jst +0 -55
  362. package/packages/config-eslint/node_modules/ajv/lib/dot/custom.jst +0 -191
  363. package/packages/config-eslint/node_modules/ajv/lib/dot/defaults.def +0 -47
  364. package/packages/config-eslint/node_modules/ajv/lib/dot/definitions.def +0 -203
  365. package/packages/config-eslint/node_modules/ajv/lib/dot/dependencies.jst +0 -79
  366. package/packages/config-eslint/node_modules/ajv/lib/dot/enum.jst +0 -30
  367. package/packages/config-eslint/node_modules/ajv/lib/dot/errors.def +0 -194
  368. package/packages/config-eslint/node_modules/ajv/lib/dot/format.jst +0 -106
  369. package/packages/config-eslint/node_modules/ajv/lib/dot/if.jst +0 -73
  370. package/packages/config-eslint/node_modules/ajv/lib/dot/items.jst +0 -98
  371. package/packages/config-eslint/node_modules/ajv/lib/dot/missing.def +0 -39
  372. package/packages/config-eslint/node_modules/ajv/lib/dot/multipleOf.jst +0 -22
  373. package/packages/config-eslint/node_modules/ajv/lib/dot/not.jst +0 -43
  374. package/packages/config-eslint/node_modules/ajv/lib/dot/oneOf.jst +0 -54
  375. package/packages/config-eslint/node_modules/ajv/lib/dot/pattern.jst +0 -14
  376. package/packages/config-eslint/node_modules/ajv/lib/dot/properties.jst +0 -245
  377. package/packages/config-eslint/node_modules/ajv/lib/dot/propertyNames.jst +0 -52
  378. package/packages/config-eslint/node_modules/ajv/lib/dot/ref.jst +0 -85
  379. package/packages/config-eslint/node_modules/ajv/lib/dot/required.jst +0 -108
  380. package/packages/config-eslint/node_modules/ajv/lib/dot/uniqueItems.jst +0 -62
  381. package/packages/config-eslint/node_modules/ajv/lib/dot/validate.jst +0 -276
  382. package/packages/config-eslint/node_modules/ajv/lib/dotjs/README.md +0 -3
  383. package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limit.js +0 -163
  384. package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limitItems.js +0 -80
  385. package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limitLength.js +0 -85
  386. package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limitProperties.js +0 -80
  387. package/packages/config-eslint/node_modules/ajv/lib/dotjs/allOf.js +0 -42
  388. package/packages/config-eslint/node_modules/ajv/lib/dotjs/anyOf.js +0 -73
  389. package/packages/config-eslint/node_modules/ajv/lib/dotjs/comment.js +0 -14
  390. package/packages/config-eslint/node_modules/ajv/lib/dotjs/const.js +0 -56
  391. package/packages/config-eslint/node_modules/ajv/lib/dotjs/contains.js +0 -81
  392. package/packages/config-eslint/node_modules/ajv/lib/dotjs/custom.js +0 -228
  393. package/packages/config-eslint/node_modules/ajv/lib/dotjs/dependencies.js +0 -168
  394. package/packages/config-eslint/node_modules/ajv/lib/dotjs/enum.js +0 -66
  395. package/packages/config-eslint/node_modules/ajv/lib/dotjs/format.js +0 -150
  396. package/packages/config-eslint/node_modules/ajv/lib/dotjs/if.js +0 -103
  397. package/packages/config-eslint/node_modules/ajv/lib/dotjs/index.js +0 -33
  398. package/packages/config-eslint/node_modules/ajv/lib/dotjs/items.js +0 -140
  399. package/packages/config-eslint/node_modules/ajv/lib/dotjs/multipleOf.js +0 -80
  400. package/packages/config-eslint/node_modules/ajv/lib/dotjs/not.js +0 -84
  401. package/packages/config-eslint/node_modules/ajv/lib/dotjs/oneOf.js +0 -73
  402. package/packages/config-eslint/node_modules/ajv/lib/dotjs/pattern.js +0 -75
  403. package/packages/config-eslint/node_modules/ajv/lib/dotjs/properties.js +0 -335
  404. package/packages/config-eslint/node_modules/ajv/lib/dotjs/propertyNames.js +0 -81
  405. package/packages/config-eslint/node_modules/ajv/lib/dotjs/ref.js +0 -124
  406. package/packages/config-eslint/node_modules/ajv/lib/dotjs/required.js +0 -270
  407. package/packages/config-eslint/node_modules/ajv/lib/dotjs/uniqueItems.js +0 -86
  408. package/packages/config-eslint/node_modules/ajv/lib/dotjs/validate.js +0 -482
  409. package/packages/config-eslint/node_modules/ajv/lib/keyword.js +0 -146
  410. package/packages/config-eslint/node_modules/ajv/lib/refs/data.json +0 -17
  411. package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-draft-04.json +0 -149
  412. package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -154
  413. package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -168
  414. package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-secure.json +0 -94
  415. package/packages/config-eslint/node_modules/ajv/package.json +0 -106
  416. package/packages/config-eslint/node_modules/ajv/scripts/.eslintrc.yml +0 -3
  417. package/packages/config-eslint/node_modules/ajv/scripts/bundle.js +0 -61
  418. package/packages/config-eslint/node_modules/ajv/scripts/compile-dots.js +0 -73
  419. package/packages/config-eslint/node_modules/ajv/scripts/info +0 -10
  420. package/packages/config-eslint/node_modules/ajv/scripts/prepare-tests +0 -12
  421. package/packages/config-eslint/node_modules/ajv/scripts/publish-built-version +0 -32
  422. package/packages/config-eslint/node_modules/ajv/scripts/travis-gh-pages +0 -23
  423. package/packages/config-eslint/node_modules/eslint/LICENSE +0 -19
  424. package/packages/config-eslint/node_modules/eslint/README.md +0 -363
  425. package/packages/config-eslint/node_modules/eslint/bin/eslint.js +0 -195
  426. package/packages/config-eslint/node_modules/eslint/conf/ecma-version.js +0 -16
  427. package/packages/config-eslint/node_modules/eslint/conf/globals.js +0 -169
  428. package/packages/config-eslint/node_modules/eslint/conf/replacements.json +0 -26
  429. package/packages/config-eslint/node_modules/eslint/conf/rule-type-list.json +0 -91
  430. package/packages/config-eslint/node_modules/eslint/lib/api.js +0 -39
  431. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json +0 -18
  432. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/html.js +0 -359
  433. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js +0 -16
  434. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/json.js +0 -13
  435. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/stylish.js +0 -153
  436. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/hash.js +0 -35
  437. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/lint-result-cache.js +0 -220
  438. package/packages/config-eslint/node_modules/eslint/lib/cli.js +0 -521
  439. package/packages/config-eslint/node_modules/eslint/lib/config/config-loader.js +0 -668
  440. package/packages/config-eslint/node_modules/eslint/lib/config/config.js +0 -674
  441. package/packages/config-eslint/node_modules/eslint/lib/config/default-config.js +0 -78
  442. package/packages/config-eslint/node_modules/eslint/lib/config/flat-config-array.js +0 -217
  443. package/packages/config-eslint/node_modules/eslint/lib/config/flat-config-schema.js +0 -598
  444. package/packages/config-eslint/node_modules/eslint/lib/config-api.js +0 -12
  445. package/packages/config-eslint/node_modules/eslint/lib/eslint/eslint-helpers.js +0 -1462
  446. package/packages/config-eslint/node_modules/eslint/lib/eslint/eslint.js +0 -1364
  447. package/packages/config-eslint/node_modules/eslint/lib/eslint/index.js +0 -7
  448. package/packages/config-eslint/node_modules/eslint/lib/eslint/worker.js +0 -173
  449. package/packages/config-eslint/node_modules/eslint/lib/languages/js/index.js +0 -336
  450. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/index.js +0 -7
  451. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/source-code.js +0 -1178
  452. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-comment-cursor.js +0 -61
  453. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-cursor.js +0 -57
  454. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/cursor.js +0 -76
  455. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/cursors.js +0 -120
  456. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/decorative-cursor.js +0 -38
  457. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/filter-cursor.js +0 -42
  458. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-comment-cursor.js +0 -65
  459. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-cursor.js +0 -62
  460. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/index.js +0 -695
  461. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/limit-cursor.js +0 -39
  462. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/padded-token-cursor.js +0 -45
  463. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/skip-cursor.js +0 -41
  464. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/utils.js +0 -131
  465. package/packages/config-eslint/node_modules/eslint/lib/languages/js/validate-language-options.js +0 -196
  466. package/packages/config-eslint/node_modules/eslint/lib/linter/apply-disable-directives.js +0 -583
  467. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +0 -828
  468. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js +0 -262
  469. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js +0 -2370
  470. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +0 -332
  471. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +0 -223
  472. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +0 -374
  473. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/id-generator.js +0 -44
  474. package/packages/config-eslint/node_modules/eslint/lib/linter/esquery.js +0 -332
  475. package/packages/config-eslint/node_modules/eslint/lib/linter/file-context.js +0 -88
  476. package/packages/config-eslint/node_modules/eslint/lib/linter/file-report.js +0 -604
  477. package/packages/config-eslint/node_modules/eslint/lib/linter/index.js +0 -11
  478. package/packages/config-eslint/node_modules/eslint/lib/linter/interpolate.js +0 -50
  479. package/packages/config-eslint/node_modules/eslint/lib/linter/linter.js +0 -1614
  480. package/packages/config-eslint/node_modules/eslint/lib/linter/rule-fixer.js +0 -199
  481. package/packages/config-eslint/node_modules/eslint/lib/linter/source-code-fixer.js +0 -154
  482. package/packages/config-eslint/node_modules/eslint/lib/linter/source-code-traverser.js +0 -333
  483. package/packages/config-eslint/node_modules/eslint/lib/linter/source-code-visitor.js +0 -81
  484. package/packages/config-eslint/node_modules/eslint/lib/linter/timing.js +0 -209
  485. package/packages/config-eslint/node_modules/eslint/lib/linter/vfile.js +0 -115
  486. package/packages/config-eslint/node_modules/eslint/lib/options.js +0 -416
  487. package/packages/config-eslint/node_modules/eslint/lib/rule-tester/index.js +0 -7
  488. package/packages/config-eslint/node_modules/eslint/lib/rule-tester/rule-tester.js +0 -1996
  489. package/packages/config-eslint/node_modules/eslint/lib/rules/accessor-pairs.js +0 -420
  490. package/packages/config-eslint/node_modules/eslint/lib/rules/array-bracket-newline.js +0 -291
  491. package/packages/config-eslint/node_modules/eslint/lib/rules/array-bracket-spacing.js +0 -301
  492. package/packages/config-eslint/node_modules/eslint/lib/rules/array-callback-return.js +0 -510
  493. package/packages/config-eslint/node_modules/eslint/lib/rules/array-element-newline.js +0 -374
  494. package/packages/config-eslint/node_modules/eslint/lib/rules/arrow-body-style.js +0 -418
  495. package/packages/config-eslint/node_modules/eslint/lib/rules/arrow-parens.js +0 -237
  496. package/packages/config-eslint/node_modules/eslint/lib/rules/arrow-spacing.js +0 -188
  497. package/packages/config-eslint/node_modules/eslint/lib/rules/block-scoped-var.js +0 -137
  498. package/packages/config-eslint/node_modules/eslint/lib/rules/block-spacing.js +0 -202
  499. package/packages/config-eslint/node_modules/eslint/lib/rules/brace-style.js +0 -278
  500. package/packages/config-eslint/node_modules/eslint/lib/rules/callback-return.js +0 -216
  501. package/packages/config-eslint/node_modules/eslint/lib/rules/camelcase.js +0 -422
  502. package/packages/config-eslint/node_modules/eslint/lib/rules/capitalized-comments.js +0 -325
  503. package/packages/config-eslint/node_modules/eslint/lib/rules/class-methods-use-this.js +0 -250
  504. package/packages/config-eslint/node_modules/eslint/lib/rules/comma-dangle.js +0 -424
  505. package/packages/config-eslint/node_modules/eslint/lib/rules/comma-spacing.js +0 -205
  506. package/packages/config-eslint/node_modules/eslint/lib/rules/comma-style.js +0 -391
  507. package/packages/config-eslint/node_modules/eslint/lib/rules/complexity.js +0 -201
  508. package/packages/config-eslint/node_modules/eslint/lib/rules/computed-property-spacing.js +0 -251
  509. package/packages/config-eslint/node_modules/eslint/lib/rules/consistent-return.js +0 -221
  510. package/packages/config-eslint/node_modules/eslint/lib/rules/consistent-this.js +0 -179
  511. package/packages/config-eslint/node_modules/eslint/lib/rules/constructor-super.js +0 -453
  512. package/packages/config-eslint/node_modules/eslint/lib/rules/curly.js +0 -425
  513. package/packages/config-eslint/node_modules/eslint/lib/rules/default-case-last.js +0 -51
  514. package/packages/config-eslint/node_modules/eslint/lib/rules/default-case.js +0 -103
  515. package/packages/config-eslint/node_modules/eslint/lib/rules/default-param-last.js +0 -78
  516. package/packages/config-eslint/node_modules/eslint/lib/rules/dot-location.js +0 -138
  517. package/packages/config-eslint/node_modules/eslint/lib/rules/dot-notation.js +0 -216
  518. package/packages/config-eslint/node_modules/eslint/lib/rules/eol-last.js +0 -135
  519. package/packages/config-eslint/node_modules/eslint/lib/rules/eqeqeq.js +0 -210
  520. package/packages/config-eslint/node_modules/eslint/lib/rules/for-direction.js +0 -168
  521. package/packages/config-eslint/node_modules/eslint/lib/rules/func-call-spacing.js +0 -281
  522. package/packages/config-eslint/node_modules/eslint/lib/rules/func-name-matching.js +0 -338
  523. package/packages/config-eslint/node_modules/eslint/lib/rules/func-names.js +0 -194
  524. package/packages/config-eslint/node_modules/eslint/lib/rules/func-style.js +0 -221
  525. package/packages/config-eslint/node_modules/eslint/lib/rules/function-call-argument-newline.js +0 -166
  526. package/packages/config-eslint/node_modules/eslint/lib/rules/function-paren-newline.js +0 -368
  527. package/packages/config-eslint/node_modules/eslint/lib/rules/generator-star-spacing.js +0 -246
  528. package/packages/config-eslint/node_modules/eslint/lib/rules/getter-return.js +0 -242
  529. package/packages/config-eslint/node_modules/eslint/lib/rules/global-require.js +0 -117
  530. package/packages/config-eslint/node_modules/eslint/lib/rules/grouped-accessor-pairs.js +0 -268
  531. package/packages/config-eslint/node_modules/eslint/lib/rules/guard-for-in.js +0 -85
  532. package/packages/config-eslint/node_modules/eslint/lib/rules/handle-callback-err.js +0 -122
  533. package/packages/config-eslint/node_modules/eslint/lib/rules/id-blacklist.js +0 -241
  534. package/packages/config-eslint/node_modules/eslint/lib/rules/id-denylist.js +0 -223
  535. package/packages/config-eslint/node_modules/eslint/lib/rules/id-length.js +0 -217
  536. package/packages/config-eslint/node_modules/eslint/lib/rules/id-match.js +0 -363
  537. package/packages/config-eslint/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js +0 -125
  538. package/packages/config-eslint/node_modules/eslint/lib/rules/indent-legacy.js +0 -1369
  539. package/packages/config-eslint/node_modules/eslint/lib/rules/indent.js +0 -2334
  540. package/packages/config-eslint/node_modules/eslint/lib/rules/index.js +0 -332
  541. package/packages/config-eslint/node_modules/eslint/lib/rules/init-declarations.js +0 -172
  542. package/packages/config-eslint/node_modules/eslint/lib/rules/jsx-quotes.js +0 -128
  543. package/packages/config-eslint/node_modules/eslint/lib/rules/key-spacing.js +0 -822
  544. package/packages/config-eslint/node_modules/eslint/lib/rules/keyword-spacing.js +0 -701
  545. package/packages/config-eslint/node_modules/eslint/lib/rules/line-comment-position.js +0 -157
  546. package/packages/config-eslint/node_modules/eslint/lib/rules/linebreak-style.js +0 -135
  547. package/packages/config-eslint/node_modules/eslint/lib/rules/lines-around-comment.js +0 -581
  548. package/packages/config-eslint/node_modules/eslint/lib/rules/lines-around-directive.js +0 -249
  549. package/packages/config-eslint/node_modules/eslint/lib/rules/lines-between-class-members.js +0 -358
  550. package/packages/config-eslint/node_modules/eslint/lib/rules/logical-assignment-operators.js +0 -688
  551. package/packages/config-eslint/node_modules/eslint/lib/rules/max-classes-per-file.js +0 -90
  552. package/packages/config-eslint/node_modules/eslint/lib/rules/max-depth.js +0 -159
  553. package/packages/config-eslint/node_modules/eslint/lib/rules/max-len.js +0 -497
  554. package/packages/config-eslint/node_modules/eslint/lib/rules/max-lines-per-function.js +0 -238
  555. package/packages/config-eslint/node_modules/eslint/lib/rules/max-lines.js +0 -189
  556. package/packages/config-eslint/node_modules/eslint/lib/rules/max-nested-callbacks.js +0 -115
  557. package/packages/config-eslint/node_modules/eslint/lib/rules/max-params.js +0 -148
  558. package/packages/config-eslint/node_modules/eslint/lib/rules/max-statements-per-line.js +0 -224
  559. package/packages/config-eslint/node_modules/eslint/lib/rules/max-statements.js +0 -188
  560. package/packages/config-eslint/node_modules/eslint/lib/rules/multiline-comment-style.js +0 -652
  561. package/packages/config-eslint/node_modules/eslint/lib/rules/multiline-ternary.js +0 -257
  562. package/packages/config-eslint/node_modules/eslint/lib/rules/new-cap.js +0 -277
  563. package/packages/config-eslint/node_modules/eslint/lib/rules/new-parens.js +0 -120
  564. package/packages/config-eslint/node_modules/eslint/lib/rules/newline-after-var.js +0 -307
  565. package/packages/config-eslint/node_modules/eslint/lib/rules/newline-before-return.js +0 -242
  566. package/packages/config-eslint/node_modules/eslint/lib/rules/newline-per-chained-call.js +0 -159
  567. package/packages/config-eslint/node_modules/eslint/lib/rules/no-alert.js +0 -149
  568. package/packages/config-eslint/node_modules/eslint/lib/rules/no-array-constructor.js +0 -195
  569. package/packages/config-eslint/node_modules/eslint/lib/rules/no-async-promise-executor.js +0 -45
  570. package/packages/config-eslint/node_modules/eslint/lib/rules/no-await-in-loop.js +0 -115
  571. package/packages/config-eslint/node_modules/eslint/lib/rules/no-bitwise.js +0 -145
  572. package/packages/config-eslint/node_modules/eslint/lib/rules/no-buffer-constructor.js +0 -74
  573. package/packages/config-eslint/node_modules/eslint/lib/rules/no-caller.js +0 -52
  574. package/packages/config-eslint/node_modules/eslint/lib/rules/no-case-declarations.js +0 -80
  575. package/packages/config-eslint/node_modules/eslint/lib/rules/no-catch-shadow.js +0 -96
  576. package/packages/config-eslint/node_modules/eslint/lib/rules/no-class-assign.js +0 -66
  577. package/packages/config-eslint/node_modules/eslint/lib/rules/no-compare-neg-zero.js +0 -74
  578. package/packages/config-eslint/node_modules/eslint/lib/rules/no-cond-assign.js +0 -175
  579. package/packages/config-eslint/node_modules/eslint/lib/rules/no-confusing-arrow.js +0 -127
  580. package/packages/config-eslint/node_modules/eslint/lib/rules/no-console.js +0 -221
  581. package/packages/config-eslint/node_modules/eslint/lib/rules/no-const-assign.js +0 -73
  582. package/packages/config-eslint/node_modules/eslint/lib/rules/no-constant-binary-expression.js +0 -603
  583. package/packages/config-eslint/node_modules/eslint/lib/rules/no-constant-condition.js +0 -177
  584. package/packages/config-eslint/node_modules/eslint/lib/rules/no-constructor-return.js +0 -62
  585. package/packages/config-eslint/node_modules/eslint/lib/rules/no-continue.js +0 -38
  586. package/packages/config-eslint/node_modules/eslint/lib/rules/no-control-regex.js +0 -142
  587. package/packages/config-eslint/node_modules/eslint/lib/rules/no-debugger.js +0 -41
  588. package/packages/config-eslint/node_modules/eslint/lib/rules/no-delete-var.js +0 -42
  589. package/packages/config-eslint/node_modules/eslint/lib/rules/no-div-regex.js +0 -60
  590. package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-args.js +0 -92
  591. package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-class-members.js +0 -117
  592. package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-else-if.js +0 -145
  593. package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-keys.js +0 -165
  594. package/packages/config-eslint/node_modules/eslint/lib/rules/no-duplicate-case.js +0 -78
  595. package/packages/config-eslint/node_modules/eslint/lib/rules/no-duplicate-imports.js +0 -368
  596. package/packages/config-eslint/node_modules/eslint/lib/rules/no-else-return.js +0 -450
  597. package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-character-class.js +0 -83
  598. package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-function.js +0 -236
  599. package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-pattern.js +0 -85
  600. package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-static-block.js +0 -73
  601. package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty.js +0 -153
  602. package/packages/config-eslint/node_modules/eslint/lib/rules/no-eq-null.js +0 -51
  603. package/packages/config-eslint/node_modules/eslint/lib/rules/no-eval.js +0 -295
  604. package/packages/config-eslint/node_modules/eslint/lib/rules/no-ex-assign.js +0 -57
  605. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extend-native.js +0 -180
  606. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-bind.js +0 -224
  607. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-boolean-cast.js +0 -420
  608. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-label.js +0 -169
  609. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-parens.js +0 -1669
  610. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-semi.js +0 -167
  611. package/packages/config-eslint/node_modules/eslint/lib/rules/no-fallthrough.js +0 -260
  612. package/packages/config-eslint/node_modules/eslint/lib/rules/no-floating-decimal.js +0 -99
  613. package/packages/config-eslint/node_modules/eslint/lib/rules/no-func-assign.js +0 -77
  614. package/packages/config-eslint/node_modules/eslint/lib/rules/no-global-assign.js +0 -101
  615. package/packages/config-eslint/node_modules/eslint/lib/rules/no-implicit-coercion.js +0 -468
  616. package/packages/config-eslint/node_modules/eslint/lib/rules/no-implicit-globals.js +0 -187
  617. package/packages/config-eslint/node_modules/eslint/lib/rules/no-implied-eval.js +0 -171
  618. package/packages/config-eslint/node_modules/eslint/lib/rules/no-import-assign.js +0 -227
  619. package/packages/config-eslint/node_modules/eslint/lib/rules/no-inline-comments.js +0 -115
  620. package/packages/config-eslint/node_modules/eslint/lib/rules/no-inner-declarations.js +0 -147
  621. package/packages/config-eslint/node_modules/eslint/lib/rules/no-invalid-regexp.js +0 -244
  622. package/packages/config-eslint/node_modules/eslint/lib/rules/no-invalid-this.js +0 -178
  623. package/packages/config-eslint/node_modules/eslint/lib/rules/no-irregular-whitespace.js +0 -292
  624. package/packages/config-eslint/node_modules/eslint/lib/rules/no-iterator.js +0 -48
  625. package/packages/config-eslint/node_modules/eslint/lib/rules/no-label-var.js +0 -78
  626. package/packages/config-eslint/node_modules/eslint/lib/rules/no-labels.js +0 -156
  627. package/packages/config-eslint/node_modules/eslint/lib/rules/no-lone-blocks.js +0 -140
  628. package/packages/config-eslint/node_modules/eslint/lib/rules/no-lonely-if.js +0 -126
  629. package/packages/config-eslint/node_modules/eslint/lib/rules/no-loop-func.js +0 -267
  630. package/packages/config-eslint/node_modules/eslint/lib/rules/no-loss-of-precision.js +0 -249
  631. package/packages/config-eslint/node_modules/eslint/lib/rules/no-magic-numbers.js +0 -365
  632. package/packages/config-eslint/node_modules/eslint/lib/rules/no-misleading-character-class.js +0 -595
  633. package/packages/config-eslint/node_modules/eslint/lib/rules/no-mixed-operators.js +0 -253
  634. package/packages/config-eslint/node_modules/eslint/lib/rules/no-mixed-requires.js +0 -267
  635. package/packages/config-eslint/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +0 -148
  636. package/packages/config-eslint/node_modules/eslint/lib/rules/no-multi-assign.js +0 -66
  637. package/packages/config-eslint/node_modules/eslint/lib/rules/no-multi-spaces.js +0 -179
  638. package/packages/config-eslint/node_modules/eslint/lib/rules/no-multi-str.js +0 -67
  639. package/packages/config-eslint/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +0 -210
  640. package/packages/config-eslint/node_modules/eslint/lib/rules/no-native-reassign.js +0 -114
  641. package/packages/config-eslint/node_modules/eslint/lib/rules/no-negated-condition.js +0 -100
  642. package/packages/config-eslint/node_modules/eslint/lib/rules/no-negated-in-lhs.js +0 -59
  643. package/packages/config-eslint/node_modules/eslint/lib/rules/no-nested-ternary.js +0 -46
  644. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-func.js +0 -96
  645. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js +0 -70
  646. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-object.js +0 -76
  647. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-require.js +0 -67
  648. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-symbol.js +0 -74
  649. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-wrappers.js +0 -62
  650. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new.js +0 -42
  651. package/packages/config-eslint/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js +0 -176
  652. package/packages/config-eslint/node_modules/eslint/lib/rules/no-obj-calls.js +0 -99
  653. package/packages/config-eslint/node_modules/eslint/lib/rules/no-object-constructor.js +0 -124
  654. package/packages/config-eslint/node_modules/eslint/lib/rules/no-octal-escape.js +0 -53
  655. package/packages/config-eslint/node_modules/eslint/lib/rules/no-octal.js +0 -42
  656. package/packages/config-eslint/node_modules/eslint/lib/rules/no-param-reassign.js +0 -248
  657. package/packages/config-eslint/node_modules/eslint/lib/rules/no-path-concat.js +0 -79
  658. package/packages/config-eslint/node_modules/eslint/lib/rules/no-plusplus.js +0 -102
  659. package/packages/config-eslint/node_modules/eslint/lib/rules/no-process-env.js +0 -68
  660. package/packages/config-eslint/node_modules/eslint/lib/rules/no-process-exit.js +0 -67
  661. package/packages/config-eslint/node_modules/eslint/lib/rules/no-promise-executor-return.js +0 -264
  662. package/packages/config-eslint/node_modules/eslint/lib/rules/no-proto.js +0 -45
  663. package/packages/config-eslint/node_modules/eslint/lib/rules/no-prototype-builtins.js +0 -181
  664. package/packages/config-eslint/node_modules/eslint/lib/rules/no-redeclare.js +0 -173
  665. package/packages/config-eslint/node_modules/eslint/lib/rules/no-regex-spaces.js +0 -219
  666. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-exports.js +0 -227
  667. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-globals.js +0 -266
  668. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-imports.js +0 -892
  669. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-modules.js +0 -249
  670. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-properties.js +0 -233
  671. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-syntax.js +0 -74
  672. package/packages/config-eslint/node_modules/eslint/lib/rules/no-return-assign.js +0 -87
  673. package/packages/config-eslint/node_modules/eslint/lib/rules/no-return-await.js +0 -162
  674. package/packages/config-eslint/node_modules/eslint/lib/rules/no-script-url.js +0 -68
  675. package/packages/config-eslint/node_modules/eslint/lib/rules/no-self-assign.js +0 -186
  676. package/packages/config-eslint/node_modules/eslint/lib/rules/no-self-compare.js +0 -77
  677. package/packages/config-eslint/node_modules/eslint/lib/rules/no-sequences.js +0 -158
  678. package/packages/config-eslint/node_modules/eslint/lib/rules/no-setter-return.js +0 -224
  679. package/packages/config-eslint/node_modules/eslint/lib/rules/no-shadow-restricted-names.js +0 -113
  680. package/packages/config-eslint/node_modules/eslint/lib/rules/no-shadow.js +0 -689
  681. package/packages/config-eslint/node_modules/eslint/lib/rules/no-spaced-func.js +0 -105
  682. package/packages/config-eslint/node_modules/eslint/lib/rules/no-sparse-arrays.js +0 -68
  683. package/packages/config-eslint/node_modules/eslint/lib/rules/no-sync.js +0 -81
  684. package/packages/config-eslint/node_modules/eslint/lib/rules/no-tabs.js +0 -110
  685. package/packages/config-eslint/node_modules/eslint/lib/rules/no-template-curly-in-string.js +0 -45
  686. package/packages/config-eslint/node_modules/eslint/lib/rules/no-ternary.js +0 -38
  687. package/packages/config-eslint/node_modules/eslint/lib/rules/no-this-before-super.js +0 -365
  688. package/packages/config-eslint/node_modules/eslint/lib/rules/no-throw-literal.js +0 -46
  689. package/packages/config-eslint/node_modules/eslint/lib/rules/no-trailing-spaces.js +0 -227
  690. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unassigned-vars.js +0 -80
  691. package/packages/config-eslint/node_modules/eslint/lib/rules/no-undef-init.js +0 -101
  692. package/packages/config-eslint/node_modules/eslint/lib/rules/no-undef.js +0 -84
  693. package/packages/config-eslint/node_modules/eslint/lib/rules/no-undefined.js +0 -85
  694. package/packages/config-eslint/node_modules/eslint/lib/rules/no-underscore-dangle.js +0 -383
  695. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unexpected-multiline.js +0 -130
  696. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js +0 -360
  697. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unneeded-ternary.js +0 -232
  698. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unreachable-loop.js +0 -190
  699. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unreachable.js +0 -300
  700. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unsafe-finally.js +0 -119
  701. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unsafe-negation.js +0 -152
  702. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +0 -221
  703. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-expressions.js +0 -227
  704. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-labels.js +0 -158
  705. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-private-class-members.js +0 -219
  706. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-vars.js +0 -1739
  707. package/packages/config-eslint/node_modules/eslint/lib/rules/no-use-before-define.js +0 -446
  708. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-assignment.js +0 -657
  709. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-backreference.js +0 -263
  710. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-call.js +0 -95
  711. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-catch.js +0 -57
  712. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-computed-key.js +0 -204
  713. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-concat.js +0 -121
  714. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-constructor.js +0 -262
  715. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-escape.js +0 -406
  716. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-rename.js +0 -202
  717. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-return.js +0 -401
  718. package/packages/config-eslint/node_modules/eslint/lib/rules/no-var.js +0 -367
  719. package/packages/config-eslint/node_modules/eslint/lib/rules/no-void.js +0 -69
  720. package/packages/config-eslint/node_modules/eslint/lib/rules/no-warning-comments.js +0 -209
  721. package/packages/config-eslint/node_modules/eslint/lib/rules/no-whitespace-before-property.js +0 -150
  722. package/packages/config-eslint/node_modules/eslint/lib/rules/no-with.js +0 -37
  723. package/packages/config-eslint/node_modules/eslint/lib/rules/nonblock-statement-body-position.js +0 -164
  724. package/packages/config-eslint/node_modules/eslint/lib/rules/object-curly-newline.js +0 -383
  725. package/packages/config-eslint/node_modules/eslint/lib/rules/object-curly-spacing.js +0 -369
  726. package/packages/config-eslint/node_modules/eslint/lib/rules/object-property-newline.js +0 -151
  727. package/packages/config-eslint/node_modules/eslint/lib/rules/object-shorthand.js +0 -652
  728. package/packages/config-eslint/node_modules/eslint/lib/rules/one-var-declaration-per-line.js +0 -117
  729. package/packages/config-eslint/node_modules/eslint/lib/rules/one-var.js +0 -717
  730. package/packages/config-eslint/node_modules/eslint/lib/rules/operator-assignment.js +0 -270
  731. package/packages/config-eslint/node_modules/eslint/lib/rules/operator-linebreak.js +0 -315
  732. package/packages/config-eslint/node_modules/eslint/lib/rules/padded-blocks.js +0 -366
  733. package/packages/config-eslint/node_modules/eslint/lib/rules/padding-line-between-statements.js +0 -612
  734. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-arrow-callback.js +0 -437
  735. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-const.js +0 -546
  736. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-destructuring.js +0 -332
  737. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js +0 -235
  738. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-named-capture-group.js +0 -197
  739. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-numeric-literals.js +0 -157
  740. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-object-has-own.js +0 -148
  741. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-object-spread.js +0 -319
  742. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js +0 -154
  743. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-reflect.js +0 -150
  744. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-regex-literals.js +0 -605
  745. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-rest-params.js +0 -117
  746. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-spread.js +0 -91
  747. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-template.js +0 -347
  748. package/packages/config-eslint/node_modules/eslint/lib/rules/preserve-caught-error.js +0 -535
  749. package/packages/config-eslint/node_modules/eslint/lib/rules/quote-props.js +0 -394
  750. package/packages/config-eslint/node_modules/eslint/lib/rules/quotes.js +0 -416
  751. package/packages/config-eslint/node_modules/eslint/lib/rules/radix.js +0 -193
  752. package/packages/config-eslint/node_modules/eslint/lib/rules/require-atomic-updates.js +0 -365
  753. package/packages/config-eslint/node_modules/eslint/lib/rules/require-await.js +0 -184
  754. package/packages/config-eslint/node_modules/eslint/lib/rules/require-unicode-regexp.js +0 -317
  755. package/packages/config-eslint/node_modules/eslint/lib/rules/require-yield.js +0 -86
  756. package/packages/config-eslint/node_modules/eslint/lib/rules/rest-spread-spacing.js +0 -150
  757. package/packages/config-eslint/node_modules/eslint/lib/rules/semi-spacing.js +0 -297
  758. package/packages/config-eslint/node_modules/eslint/lib/rules/semi-style.js +0 -218
  759. package/packages/config-eslint/node_modules/eslint/lib/rules/semi.js +0 -476
  760. package/packages/config-eslint/node_modules/eslint/lib/rules/sort-imports.js +0 -319
  761. package/packages/config-eslint/node_modules/eslint/lib/rules/sort-keys.js +0 -268
  762. package/packages/config-eslint/node_modules/eslint/lib/rules/sort-vars.js +0 -140
  763. package/packages/config-eslint/node_modules/eslint/lib/rules/space-before-blocks.js +0 -232
  764. package/packages/config-eslint/node_modules/eslint/lib/rules/space-before-function-paren.js +0 -202
  765. package/packages/config-eslint/node_modules/eslint/lib/rules/space-in-parens.js +0 -374
  766. package/packages/config-eslint/node_modules/eslint/lib/rules/space-infix-ops.js +0 -249
  767. package/packages/config-eslint/node_modules/eslint/lib/rules/space-unary-ops.js +0 -400
  768. package/packages/config-eslint/node_modules/eslint/lib/rules/spaced-comment.js +0 -447
  769. package/packages/config-eslint/node_modules/eslint/lib/rules/strict.js +0 -324
  770. package/packages/config-eslint/node_modules/eslint/lib/rules/switch-colon-spacing.js +0 -158
  771. package/packages/config-eslint/node_modules/eslint/lib/rules/symbol-description.js +0 -70
  772. package/packages/config-eslint/node_modules/eslint/lib/rules/template-curly-spacing.js +0 -168
  773. package/packages/config-eslint/node_modules/eslint/lib/rules/template-tag-spacing.js +0 -121
  774. package/packages/config-eslint/node_modules/eslint/lib/rules/unicode-bom.js +0 -73
  775. package/packages/config-eslint/node_modules/eslint/lib/rules/use-isnan.js +0 -268
  776. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/ast-utils.js +0 -2841
  777. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/char-source.js +0 -247
  778. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/fix-tracker.js +0 -125
  779. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/keywords.js +0 -67
  780. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +0 -118
  781. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/regular-expressions.js +0 -58
  782. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/index.js +0 -16
  783. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js +0 -13
  784. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js +0 -13
  785. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js +0 -13
  786. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js +0 -14
  787. package/packages/config-eslint/node_modules/eslint/lib/rules/valid-typeof.js +0 -171
  788. package/packages/config-eslint/node_modules/eslint/lib/rules/vars-on-top.js +0 -165
  789. package/packages/config-eslint/node_modules/eslint/lib/rules/wrap-iife.js +0 -238
  790. package/packages/config-eslint/node_modules/eslint/lib/rules/wrap-regex.js +0 -91
  791. package/packages/config-eslint/node_modules/eslint/lib/rules/yield-star-spacing.js +0 -158
  792. package/packages/config-eslint/node_modules/eslint/lib/rules/yoda.js +0 -362
  793. package/packages/config-eslint/node_modules/eslint/lib/services/parser-service.js +0 -64
  794. package/packages/config-eslint/node_modules/eslint/lib/services/processor-service.js +0 -100
  795. package/packages/config-eslint/node_modules/eslint/lib/services/suppressions-service.js +0 -302
  796. package/packages/config-eslint/node_modules/eslint/lib/services/warning-service.js +0 -87
  797. package/packages/config-eslint/node_modules/eslint/lib/shared/ajv.js +0 -34
  798. package/packages/config-eslint/node_modules/eslint/lib/shared/assert.js +0 -21
  799. package/packages/config-eslint/node_modules/eslint/lib/shared/ast-utils.js +0 -30
  800. package/packages/config-eslint/node_modules/eslint/lib/shared/deep-merge-arrays.js +0 -62
  801. package/packages/config-eslint/node_modules/eslint/lib/shared/directives.js +0 -16
  802. package/packages/config-eslint/node_modules/eslint/lib/shared/flags.js +0 -89
  803. package/packages/config-eslint/node_modules/eslint/lib/shared/logging.js +0 -38
  804. package/packages/config-eslint/node_modules/eslint/lib/shared/naming.js +0 -109
  805. package/packages/config-eslint/node_modules/eslint/lib/shared/option-utils.js +0 -63
  806. package/packages/config-eslint/node_modules/eslint/lib/shared/relative-module-resolver.js +0 -28
  807. package/packages/config-eslint/node_modules/eslint/lib/shared/runtime-info.js +0 -177
  808. package/packages/config-eslint/node_modules/eslint/lib/shared/serialization.js +0 -78
  809. package/packages/config-eslint/node_modules/eslint/lib/shared/severity.js +0 -49
  810. package/packages/config-eslint/node_modules/eslint/lib/shared/stats.js +0 -30
  811. package/packages/config-eslint/node_modules/eslint/lib/shared/string-utils.js +0 -58
  812. package/packages/config-eslint/node_modules/eslint/lib/shared/text-table.js +0 -68
  813. package/packages/config-eslint/node_modules/eslint/lib/shared/translate-cli-options.js +0 -223
  814. package/packages/config-eslint/node_modules/eslint/lib/shared/traverser.js +0 -202
  815. package/packages/config-eslint/node_modules/eslint/lib/types/config-api.d.ts +0 -12
  816. package/packages/config-eslint/node_modules/eslint/lib/types/index.d.ts +0 -1475
  817. package/packages/config-eslint/node_modules/eslint/lib/types/rules.d.ts +0 -5603
  818. package/packages/config-eslint/node_modules/eslint/lib/types/universal.d.ts +0 -6
  819. package/packages/config-eslint/node_modules/eslint/lib/types/use-at-your-own-risk.d.ts +0 -34
  820. package/packages/config-eslint/node_modules/eslint/lib/universal.js +0 -10
  821. package/packages/config-eslint/node_modules/eslint/lib/unsupported-api.js +0 -21
  822. package/packages/config-eslint/node_modules/eslint/messages/all-files-ignored.js +0 -16
  823. package/packages/config-eslint/node_modules/eslint/messages/all-matched-files-ignored.js +0 -21
  824. package/packages/config-eslint/node_modules/eslint/messages/config-file-missing.js +0 -16
  825. package/packages/config-eslint/node_modules/eslint/messages/config-plugin-missing.js +0 -14
  826. package/packages/config-eslint/node_modules/eslint/messages/config-serialize-function.js +0 -30
  827. package/packages/config-eslint/node_modules/eslint/messages/eslintrc-incompat.js +0 -117
  828. package/packages/config-eslint/node_modules/eslint/messages/eslintrc-plugins.js +0 -27
  829. package/packages/config-eslint/node_modules/eslint/messages/extend-config-missing.js +0 -13
  830. package/packages/config-eslint/node_modules/eslint/messages/failed-to-read-json.js +0 -11
  831. package/packages/config-eslint/node_modules/eslint/messages/file-not-found.js +0 -10
  832. package/packages/config-eslint/node_modules/eslint/messages/invalid-rule-options.js +0 -17
  833. package/packages/config-eslint/node_modules/eslint/messages/invalid-rule-severity.js +0 -13
  834. package/packages/config-eslint/node_modules/eslint/messages/no-config-found.js +0 -15
  835. package/packages/config-eslint/node_modules/eslint/messages/plugin-conflict.js +0 -22
  836. package/packages/config-eslint/node_modules/eslint/messages/plugin-invalid.js +0 -16
  837. package/packages/config-eslint/node_modules/eslint/messages/plugin-missing.js +0 -19
  838. package/packages/config-eslint/node_modules/eslint/messages/print-config-with-directory-path.js +0 -8
  839. package/packages/config-eslint/node_modules/eslint/messages/shared.js +0 -23
  840. package/packages/config-eslint/node_modules/eslint/messages/whitespace-found.js +0 -11
  841. package/packages/config-eslint/node_modules/eslint/package.json +0 -220
  842. package/packages/config-eslint/node_modules/eslint-scope/LICENSE +0 -22
  843. package/packages/config-eslint/node_modules/eslint-scope/README.md +0 -206
  844. package/packages/config-eslint/node_modules/eslint-scope/dist/eslint-scope.cjs +0 -2420
  845. package/packages/config-eslint/node_modules/eslint-scope/lib/assert.js +0 -17
  846. package/packages/config-eslint/node_modules/eslint-scope/lib/definition.js +0 -89
  847. package/packages/config-eslint/node_modules/eslint-scope/lib/index.d.cts +0 -1069
  848. package/packages/config-eslint/node_modules/eslint-scope/lib/index.d.ts +0 -6
  849. package/packages/config-eslint/node_modules/eslint-scope/lib/index.js +0 -170
  850. package/packages/config-eslint/node_modules/eslint-scope/lib/pattern-visitor.js +0 -157
  851. package/packages/config-eslint/node_modules/eslint-scope/lib/reference.js +0 -165
  852. package/packages/config-eslint/node_modules/eslint-scope/lib/referencer.js +0 -712
  853. package/packages/config-eslint/node_modules/eslint-scope/lib/scope-manager.js +0 -271
  854. package/packages/config-eslint/node_modules/eslint-scope/lib/scope.js +0 -839
  855. package/packages/config-eslint/node_modules/eslint-scope/lib/variable.js +0 -91
  856. package/packages/config-eslint/node_modules/eslint-scope/package.json +0 -69
  857. package/packages/config-eslint/node_modules/eslint-visitor-keys/LICENSE +0 -201
  858. package/packages/config-eslint/node_modules/eslint-visitor-keys/README.md +0 -121
  859. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +0 -396
  860. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts +0 -28
  861. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/index.d.ts +0 -16
  862. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +0 -12
  863. package/packages/config-eslint/node_modules/eslint-visitor-keys/lib/index.js +0 -67
  864. package/packages/config-eslint/node_modules/eslint-visitor-keys/lib/visitor-keys.js +0 -327
  865. package/packages/config-eslint/node_modules/eslint-visitor-keys/package.json +0 -59
  866. package/packages/config-eslint/node_modules/espree/LICENSE +0 -25
  867. package/packages/config-eslint/node_modules/espree/README.md +0 -262
  868. package/packages/config-eslint/node_modules/espree/dist/espree.cjs +0 -1272
  869. package/packages/config-eslint/node_modules/espree/dist/espree.d.cts +0 -3
  870. package/packages/config-eslint/node_modules/espree/dist/espree.d.cts.map +0 -1
  871. package/packages/config-eslint/node_modules/espree/dist/espree.d.ts +0 -71
  872. package/packages/config-eslint/node_modules/espree/dist/espree.d.ts.map +0 -1
  873. package/packages/config-eslint/node_modules/espree/espree.js +0 -291
  874. package/packages/config-eslint/node_modules/espree/lib/espree.js +0 -482
  875. package/packages/config-eslint/node_modules/espree/lib/features.js +0 -21
  876. package/packages/config-eslint/node_modules/espree/lib/options.js +0 -164
  877. package/packages/config-eslint/node_modules/espree/lib/token-translator.js +0 -306
  878. package/packages/config-eslint/node_modules/espree/lib/types.js +0 -118
  879. package/packages/config-eslint/node_modules/espree/package.json +0 -72
  880. package/packages/config-eslint/node_modules/ignore/LICENSE-MIT +0 -21
  881. package/packages/config-eslint/node_modules/ignore/README.md +0 -412
  882. package/packages/config-eslint/node_modules/ignore/index.d.ts +0 -61
  883. package/packages/config-eslint/node_modules/ignore/index.js +0 -636
  884. package/packages/config-eslint/node_modules/ignore/legacy.js +0 -559
  885. package/packages/config-eslint/node_modules/ignore/package.json +0 -74
  886. package/packages/config-eslint/node_modules/json-schema-traverse/.eslintrc.yml +0 -27
  887. package/packages/config-eslint/node_modules/json-schema-traverse/.travis.yml +0 -8
  888. package/packages/config-eslint/node_modules/json-schema-traverse/LICENSE +0 -21
  889. package/packages/config-eslint/node_modules/json-schema-traverse/README.md +0 -83
  890. package/packages/config-eslint/node_modules/json-schema-traverse/index.js +0 -89
  891. package/packages/config-eslint/node_modules/json-schema-traverse/package.json +0 -43
  892. package/packages/config-eslint/node_modules/json-schema-traverse/spec/.eslintrc.yml +0 -6
  893. package/packages/config-eslint/node_modules/json-schema-traverse/spec/fixtures/schema.js +0 -125
  894. package/packages/config-eslint/node_modules/json-schema-traverse/spec/index.spec.js +0 -171
  895. package/packages/config-eslint/node_modules/minimatch/LICENSE.md +0 -55
  896. package/packages/config-eslint/node_modules/minimatch/README.md +0 -453
  897. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +0 -2
  898. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +0 -1
  899. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +0 -14
  900. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +0 -1
  901. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -20
  902. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
  903. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/ast.js +0 -591
  904. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
  905. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
  906. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
  907. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -152
  908. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
  909. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/escape.d.ts +0 -15
  910. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/escape.d.ts.map +0 -1
  911. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/escape.js +0 -30
  912. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/escape.js.map +0 -1
  913. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/index.d.ts +0 -94
  914. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/index.d.ts.map +0 -1
  915. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/index.js +0 -1029
  916. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/index.js.map +0 -1
  917. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/package.json +0 -3
  918. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/unescape.d.ts +0 -22
  919. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +0 -1
  920. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/unescape.js +0 -38
  921. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/unescape.js.map +0 -1
  922. package/packages/config-eslint/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +0 -2
  923. package/packages/config-eslint/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +0 -1
  924. package/packages/config-eslint/node_modules/minimatch/dist/esm/assert-valid-pattern.js +0 -10
  925. package/packages/config-eslint/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +0 -1
  926. package/packages/config-eslint/node_modules/minimatch/dist/esm/ast.d.ts +0 -20
  927. package/packages/config-eslint/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
  928. package/packages/config-eslint/node_modules/minimatch/dist/esm/ast.js +0 -587
  929. package/packages/config-eslint/node_modules/minimatch/dist/esm/ast.js.map +0 -1
  930. package/packages/config-eslint/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
  931. package/packages/config-eslint/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
  932. package/packages/config-eslint/node_modules/minimatch/dist/esm/brace-expressions.js +0 -148
  933. package/packages/config-eslint/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
  934. package/packages/config-eslint/node_modules/minimatch/dist/esm/escape.d.ts +0 -15
  935. package/packages/config-eslint/node_modules/minimatch/dist/esm/escape.d.ts.map +0 -1
  936. package/packages/config-eslint/node_modules/minimatch/dist/esm/escape.js +0 -26
  937. package/packages/config-eslint/node_modules/minimatch/dist/esm/escape.js.map +0 -1
  938. package/packages/config-eslint/node_modules/minimatch/dist/esm/index.d.ts +0 -94
  939. package/packages/config-eslint/node_modules/minimatch/dist/esm/index.d.ts.map +0 -1
  940. package/packages/config-eslint/node_modules/minimatch/dist/esm/index.js +0 -1016
  941. package/packages/config-eslint/node_modules/minimatch/dist/esm/index.js.map +0 -1
  942. package/packages/config-eslint/node_modules/minimatch/dist/esm/package.json +0 -3
  943. package/packages/config-eslint/node_modules/minimatch/dist/esm/unescape.d.ts +0 -22
  944. package/packages/config-eslint/node_modules/minimatch/dist/esm/unescape.d.ts.map +0 -1
  945. package/packages/config-eslint/node_modules/minimatch/dist/esm/unescape.js +0 -34
  946. package/packages/config-eslint/node_modules/minimatch/dist/esm/unescape.js.map +0 -1
  947. package/packages/config-eslint/node_modules/minimatch/package.json +0 -67
  948. /package/packages/config-eslint/node_modules/@eslint/{config-array → core}/LICENSE +0 -0
@@ -1,1614 +0,0 @@
1
- /**
2
- * @fileoverview Main Linter Class
3
- * @author Gyandeep Singh
4
- * @author aladdin-add
5
- */
6
-
7
- "use strict";
8
-
9
- //------------------------------------------------------------------------------
10
- // Requirements
11
- //------------------------------------------------------------------------------
12
-
13
- const path = require("node:path"),
14
- eslintScope = require("eslint-scope"),
15
- evk = require("eslint-visitor-keys"),
16
- pkg = require("../../package.json"),
17
- Traverser = require("../shared/traverser"),
18
- { SourceCode } = require("../languages/js/source-code"),
19
- applyDisableDirectives = require("./apply-disable-directives"),
20
- { ConfigCommentParser } = require("@eslint/plugin-kit"),
21
- SourceCodeFixer = require("./source-code-fixer"),
22
- { SourceCodeVisitor } = require("./source-code-visitor"),
23
- timing = require("./timing");
24
- const { FlatConfigArray } = require("../config/flat-config-array");
25
- const { startTime, endTime } = require("../shared/stats");
26
- const { assertIsRuleSeverity } = require("../config/flat-config-schema");
27
- const {
28
- normalizeSeverityToString,
29
- normalizeSeverityToNumber,
30
- } = require("../shared/severity");
31
- const { deepMergeArrays } = require("../shared/deep-merge-arrays");
32
- const {
33
- activeFlags,
34
- inactiveFlags,
35
- getInactivityReasonMessage,
36
- } = require("../shared/flags");
37
- const debug = require("debug")("eslint:linter");
38
- const MAX_AUTOFIX_PASSES = 10;
39
- const DEFAULT_ECMA_VERSION = 5;
40
- const commentParser = new ConfigCommentParser();
41
- const { VFile } = require("./vfile");
42
- const { ParserService } = require("../services/parser-service");
43
- const { FileContext } = require("./file-context");
44
- const { ProcessorService } = require("../services/processor-service");
45
- const { containsDifferentProperty } = require("../shared/option-utils");
46
- const { Config } = require("../config/config");
47
- const { WarningService } = require("../services/warning-service");
48
- const { SourceCodeTraverser } = require("./source-code-traverser");
49
- const { FileReport, updateLocationInformation } = require("./file-report");
50
-
51
- //------------------------------------------------------------------------------
52
- // Typedefs
53
- //------------------------------------------------------------------------------
54
-
55
- /** @import { Language, LanguageOptions, RuleConfig, RuleDefinition } from "@eslint/core" */
56
-
57
- /** @typedef {import("../types").Linter.Config} ConfigObject */
58
- /** @typedef {import("../types").Linter.LanguageOptions} JSLanguageOptions */
59
- /** @typedef {import("../types").Linter.LintMessage} LintMessage */
60
- /** @typedef {import("../types").Linter.Parser} Parser */
61
- /** @typedef {import("../types").Linter.ParserOptions} ParserOptions */
62
- /** @typedef {import("../types").Linter.Processor} Processor */
63
- /** @typedef {import("../types").Rule.RuleModule} Rule */
64
- /** @typedef {import("../types").Linter.StringSeverity} StringSeverity */
65
- /** @typedef {import("../types").Linter.SuppressedLintMessage} SuppressedLintMessage */
66
- /** @typedef {import("../types").Linter.TimePass} TimePass */
67
-
68
- /* eslint-disable jsdoc/valid-types -- https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/4#issuecomment-778805577 */
69
- /**
70
- * @template T
71
- * @typedef {{ [P in keyof T]-?: T[P] }} Required
72
- */
73
- /* eslint-enable jsdoc/valid-types -- https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/4#issuecomment-778805577 */
74
-
75
- /**
76
- * @typedef {Object} DisableDirective
77
- * @property {("disable"|"enable"|"disable-line"|"disable-next-line")} type Type of directive
78
- * @property {number} line The line number
79
- * @property {number} column The column number
80
- * @property {(string|null)} ruleId The rule ID
81
- * @property {string} justification The justification of directive
82
- */
83
-
84
- /**
85
- * The private data for `Linter` instance.
86
- * @typedef {Object} LinterInternalSlots
87
- * @property {FlatConfigArray|null} lastConfigArray The `ConfigArray` instance that the last `verify()` call used.
88
- * @property {SourceCode|null} lastSourceCode The `SourceCode` instance that the last `verify()` call used.
89
- * @property {SuppressedLintMessage[]} lastSuppressedMessages The `SuppressedLintMessage[]` instance that the last `verify()` call produced.
90
- * @property {{ passes: TimePass[]; }} times The times spent on applying a rule to a file (see `stats` option).
91
- * @property {WarningService} warningService The warning service.
92
- */
93
-
94
- /**
95
- * @typedef {Object} VerifyOptions
96
- * @property {boolean} [allowInlineConfig] Allow/disallow inline comments' ability
97
- * to change config once it is set. Defaults to true if not supplied.
98
- * Useful if you want to validate JS without comments overriding rules.
99
- * @property {boolean} [disableFixes] if `true` then the linter doesn't make `fix`
100
- * properties into the lint result.
101
- * @property {string} [filename] the filename of the source code.
102
- * @property {boolean | "off" | "warn" | "error"} [reportUnusedDisableDirectives] Adds reported errors for
103
- * unused `eslint-disable` directives.
104
- * @property {Function} [ruleFilter] A predicate function that determines whether a given rule should run.
105
- */
106
-
107
- /**
108
- * @typedef {Object} ProcessorOptions
109
- * @property {(filename:string, text:string) => boolean} [filterCodeBlock] the
110
- * predicate function that selects adopt code blocks.
111
- * @property {Processor.postprocess} [postprocess] postprocessor for report
112
- * messages. If provided, this should accept an array of the message lists
113
- * for each code block returned from the preprocessor, apply a mapping to
114
- * the messages as appropriate, and return a one-dimensional array of
115
- * messages.
116
- * @property {Processor.preprocess} [preprocess] preprocessor for source text.
117
- * If provided, this should accept a string of source text, and return an
118
- * array of code blocks to lint.
119
- */
120
-
121
- /**
122
- * @typedef {Object} FixOptions
123
- * @property {boolean | ((message: LintMessage) => boolean)} [fix] Determines
124
- * whether fixes should be applied.
125
- */
126
-
127
- /**
128
- * @typedef {Object} InternalOptions
129
- * @property {string | null} warnInlineConfig The config name what `noInlineConfig` setting came from. If `noInlineConfig` setting didn't exist, this is null. If this is a config name, then the linter warns directive comments.
130
- * @property {StringSeverity} reportUnusedDisableDirectives Severity to report unused disable directives, if not "off" (boolean values were normalized).
131
- * @property {StringSeverity} reportUnusedInlineConfigs Severity to report unused inline configs, if not "off".
132
- */
133
-
134
- //------------------------------------------------------------------------------
135
- // Helpers
136
- //------------------------------------------------------------------------------
137
-
138
- /**
139
- * Wraps the value in an Array if it isn't already one.
140
- * @template T
141
- * @param {T|T[]} value Value to be wrapped.
142
- * @returns {Array} The value as an array.
143
- */
144
- function asArray(value) {
145
- return Array.isArray(value) ? value : [value];
146
- }
147
-
148
- /**
149
- * Pushes a problem to inlineConfigProblems if ruleOptions are redundant.
150
- * @param {Config} config Provided config.
151
- * @param {Object} loc A line/column location
152
- * @param {FileReport} report Report that may be added to.
153
- * @param {string} ruleId The rule ID.
154
- * @param {Array} ruleOptions The rule options, merged with the config's.
155
- * @param {Array} ruleOptionsInline The rule options from the comment.
156
- * @param {"error"|"warn"} severity The severity to report.
157
- * @returns {void}
158
- */
159
- function addProblemIfSameSeverityAndOptions(
160
- config,
161
- loc,
162
- report,
163
- ruleId,
164
- ruleOptions,
165
- ruleOptionsInline,
166
- severity,
167
- ) {
168
- const existingConfigRaw = config.rules?.[ruleId];
169
- const existingConfig = existingConfigRaw
170
- ? asArray(existingConfigRaw)
171
- : ["off"];
172
- const existingSeverity = normalizeSeverityToString(existingConfig[0]);
173
- const inlineSeverity = normalizeSeverityToString(ruleOptions[0]);
174
- const sameSeverity = existingSeverity === inlineSeverity;
175
-
176
- if (!sameSeverity) {
177
- return;
178
- }
179
-
180
- const alreadyConfigured = existingConfigRaw
181
- ? `is already configured to '${existingSeverity}'`
182
- : "is not enabled so can't be turned off";
183
- let message;
184
-
185
- if (
186
- (existingConfig.length === 1 && ruleOptions.length === 1) ||
187
- existingSeverity === "off"
188
- ) {
189
- message = `Unused inline config ('${ruleId}' ${alreadyConfigured}).`;
190
- } else if (
191
- !containsDifferentProperty(
192
- ruleOptions.slice(1),
193
- existingConfig.slice(1),
194
- )
195
- ) {
196
- message =
197
- ruleOptionsInline.length === 1
198
- ? `Unused inline config ('${ruleId}' ${alreadyConfigured}).`
199
- : `Unused inline config ('${ruleId}' ${alreadyConfigured} with the same options).`;
200
- }
201
-
202
- if (message) {
203
- const numericSeverity = normalizeSeverityToNumber(severity);
204
- const descriptor = {
205
- message,
206
- loc,
207
- };
208
-
209
- if (numericSeverity === 1) {
210
- report.addWarning(descriptor);
211
- } else if (numericSeverity === 2) {
212
- report.addError(descriptor);
213
- }
214
- }
215
- }
216
-
217
- /**
218
- * Creates a collection of disable directives from a comment
219
- * @param {Object} options to create disable directives
220
- * @param {("disable"|"enable"|"disable-line"|"disable-next-line")} options.type The type of directive comment
221
- * @param {string} options.value The value after the directive in the comment
222
- * comment specified no specific rules, so it applies to all rules (e.g. `eslint-disable`)
223
- * @param {string} options.justification The justification of the directive
224
- * @param {ASTNode|token} options.node The Comment node/token.
225
- * @param {function(string): {create: Function}} ruleMapper A map from rule IDs to defined rules
226
- * @param {Language} language The language to use to adjust the location information.
227
- * @param {SourceCode} sourceCode The SourceCode object to get comments from.
228
- * @param {FileReport} report The report to add problems to.
229
- * @returns {Object[]} Directives from the comment
230
- */
231
- function createDisableDirectives(
232
- { type, value, justification, node },
233
- ruleMapper,
234
- language,
235
- sourceCode,
236
- report,
237
- ) {
238
- const ruleIds = Object.keys(commentParser.parseListConfig(value));
239
- const directiveRules = ruleIds.length ? ruleIds : [null];
240
- const directives = []; // valid disable directives
241
- const parentDirective = { node, value, ruleIds };
242
-
243
- for (const ruleId of directiveRules) {
244
- const loc = sourceCode.getLoc(node);
245
-
246
- // push to directives, if the rule is defined(including null, e.g. /*eslint enable*/)
247
- if (ruleId === null || !!ruleMapper(ruleId)) {
248
- if (type === "disable-next-line") {
249
- const { line, column } = updateLocationInformation(
250
- loc.end,
251
- language,
252
- );
253
-
254
- directives.push({
255
- parentDirective,
256
- type,
257
- line,
258
- column,
259
- ruleId,
260
- justification,
261
- });
262
- } else {
263
- const { line, column } = updateLocationInformation(
264
- loc.start,
265
- language,
266
- );
267
-
268
- directives.push({
269
- parentDirective,
270
- type,
271
- line,
272
- column,
273
- ruleId,
274
- justification,
275
- });
276
- }
277
- } else {
278
- report.addError({ ruleId, loc });
279
- }
280
- }
281
-
282
- return directives;
283
- }
284
-
285
- /**
286
- * Parses comments in file to extract disable directives.
287
- * @param {SourceCode} sourceCode The SourceCode object to get comments from.
288
- * @param {function(string): {create: Function}} ruleMapper A map from rule IDs to defined rules
289
- * @param {Language} language The language to use to adjust the location information
290
- * @param {FileReport} report The report to add problems to.
291
- * @returns {DisableDirective[]}
292
- * A collection of the directive comments that were found, along with any problems that occurred when parsing
293
- */
294
- function getDirectiveCommentsForFlatConfig(
295
- sourceCode,
296
- ruleMapper,
297
- language,
298
- report,
299
- ) {
300
- const disableDirectives = [];
301
-
302
- if (sourceCode.getDisableDirectives) {
303
- const { directives: directivesSources, problems: directivesProblems } =
304
- sourceCode.getDisableDirectives();
305
-
306
- if (Array.isArray(directivesProblems)) {
307
- directivesProblems.forEach(problem => report.addError(problem));
308
- }
309
-
310
- directivesSources.forEach(directive => {
311
- const directives = createDisableDirectives(
312
- directive,
313
- ruleMapper,
314
- language,
315
- sourceCode,
316
- report,
317
- );
318
-
319
- disableDirectives.push(...directives);
320
- });
321
- }
322
-
323
- return disableDirectives;
324
- }
325
-
326
- /**
327
- * Convert "/path/to/<text>" to "<text>".
328
- * `CLIEngine#executeOnText()` method gives "/path/to/<text>" if the filename
329
- * was omitted because `configArray.extractConfig()` requires an absolute path.
330
- * But the linter should pass `<text>` to `RuleContext#filename` in that
331
- * case.
332
- * Also, code blocks can have their virtual filename. If the parent filename was
333
- * `<text>`, the virtual filename is `<text>/0_foo.js` or something like (i.e.,
334
- * it's not an absolute path).
335
- * @param {string} filename The filename to normalize.
336
- * @returns {string} The normalized filename.
337
- */
338
- function normalizeFilename(filename) {
339
- const parts = filename.split(path.sep);
340
- const index = parts.lastIndexOf("<text>");
341
-
342
- return index === -1 ? filename : parts.slice(index).join(path.sep);
343
- }
344
-
345
- /**
346
- * Normalizes the possible options for `linter.verify` and `linter.verifyAndFix` to a
347
- * consistent shape.
348
- * @param {VerifyOptions} providedOptions Options
349
- * @param {Config} config Config.
350
- * @returns {Required<VerifyOptions> & InternalOptions} Normalized options
351
- */
352
- function normalizeVerifyOptions(providedOptions, config) {
353
- const linterOptions = config.linterOptions || config;
354
- const disableInlineConfig = linterOptions.noInlineConfig === true;
355
- const ignoreInlineConfig = providedOptions.allowInlineConfig === false;
356
- const configNameOfNoInlineConfig = config.configNameOfNoInlineConfig
357
- ? ` (${config.configNameOfNoInlineConfig})`
358
- : "";
359
-
360
- let reportUnusedDisableDirectives =
361
- providedOptions.reportUnusedDisableDirectives;
362
-
363
- if (typeof reportUnusedDisableDirectives === "boolean") {
364
- reportUnusedDisableDirectives = reportUnusedDisableDirectives
365
- ? "error"
366
- : "off";
367
- }
368
- if (typeof reportUnusedDisableDirectives !== "string") {
369
- if (typeof linterOptions.reportUnusedDisableDirectives === "boolean") {
370
- reportUnusedDisableDirectives =
371
- linterOptions.reportUnusedDisableDirectives ? "warn" : "off";
372
- } else {
373
- reportUnusedDisableDirectives =
374
- linterOptions.reportUnusedDisableDirectives === void 0
375
- ? "off"
376
- : normalizeSeverityToString(
377
- linterOptions.reportUnusedDisableDirectives,
378
- );
379
- }
380
- }
381
-
382
- const reportUnusedInlineConfigs =
383
- linterOptions.reportUnusedInlineConfigs === void 0
384
- ? "off"
385
- : normalizeSeverityToString(
386
- linterOptions.reportUnusedInlineConfigs,
387
- );
388
-
389
- let ruleFilter = providedOptions.ruleFilter;
390
-
391
- if (typeof ruleFilter !== "function") {
392
- ruleFilter = () => true;
393
- }
394
-
395
- return {
396
- filename: normalizeFilename(providedOptions.filename || "<input>"),
397
- allowInlineConfig: !ignoreInlineConfig,
398
- warnInlineConfig:
399
- disableInlineConfig && !ignoreInlineConfig
400
- ? `your config${configNameOfNoInlineConfig}`
401
- : null,
402
- reportUnusedDisableDirectives,
403
- reportUnusedInlineConfigs,
404
- disableFixes: Boolean(providedOptions.disableFixes),
405
- stats: providedOptions.stats,
406
- ruleFilter,
407
- };
408
- }
409
-
410
- /**
411
- * Store time measurements in map
412
- * @param {number} time Time measurement
413
- * @param {Object} timeOpts Options relating which time was measured
414
- * @param {WeakMap<Linter, LinterInternalSlots>} slots Linter internal slots map
415
- * @returns {void}
416
- */
417
- function storeTime(time, timeOpts, slots) {
418
- const { type, key } = timeOpts;
419
-
420
- if (!slots.times) {
421
- slots.times = { passes: [{}] };
422
- }
423
-
424
- const passIndex = slots.fixPasses;
425
-
426
- if (passIndex > slots.times.passes.length - 1) {
427
- slots.times.passes.push({});
428
- }
429
-
430
- if (key) {
431
- slots.times.passes[passIndex][type] ??= {};
432
- slots.times.passes[passIndex][type][key] ??= { total: 0 };
433
- slots.times.passes[passIndex][type][key].total += time;
434
- } else {
435
- slots.times.passes[passIndex][type] ??= { total: 0 };
436
- slots.times.passes[passIndex][type].total += time;
437
- }
438
- }
439
-
440
- /**
441
- * Get the options for a rule (not including severity), if any
442
- * @param {RuleConfig} ruleConfig rule configuration
443
- * @param {Object|undefined} defaultOptions rule.meta.defaultOptions
444
- * @returns {Array} of rule options, empty Array if none
445
- */
446
- function getRuleOptions(ruleConfig, defaultOptions) {
447
- if (Array.isArray(ruleConfig)) {
448
- return deepMergeArrays(defaultOptions, ruleConfig.slice(1));
449
- }
450
- return defaultOptions ?? [];
451
- }
452
-
453
- /**
454
- * Analyze scope of the given AST.
455
- * @param {ASTNode} ast The `Program` node to analyze.
456
- * @param {JSLanguageOptions} languageOptions The language options.
457
- * @param {Record<string, string[]>} visitorKeys The visitor keys.
458
- * @returns {ScopeManager} The analysis result.
459
- */
460
- function analyzeScope(ast, languageOptions, visitorKeys) {
461
- const parserOptions = languageOptions.parserOptions;
462
- const ecmaFeatures = parserOptions.ecmaFeatures || {};
463
- const ecmaVersion = languageOptions.ecmaVersion || DEFAULT_ECMA_VERSION;
464
-
465
- return eslintScope.analyze(ast, {
466
- ignoreEval: true,
467
- nodejsScope: ecmaFeatures.globalReturn,
468
- impliedStrict: ecmaFeatures.impliedStrict,
469
- ecmaVersion: typeof ecmaVersion === "number" ? ecmaVersion : 6,
470
- sourceType: languageOptions.sourceType || "script",
471
- childVisitorKeys: visitorKeys || evk.KEYS,
472
- fallback: Traverser.getKeys,
473
- jsx: ecmaFeatures.jsx,
474
- });
475
- }
476
-
477
- /**
478
- * Runs a rule, and gets its listeners
479
- * @param {RuleDefinition} rule A rule object
480
- * @param {Context} ruleContext The context that should be passed to the rule
481
- * @throws {TypeError} If `rule` is not an object with a `create` method
482
- * @throws {any} Any error during the rule's `create`
483
- * @returns {Object} A map of selector listeners provided by the rule
484
- */
485
- function createRuleListeners(rule, ruleContext) {
486
- if (
487
- !rule ||
488
- typeof rule !== "object" ||
489
- typeof rule.create !== "function"
490
- ) {
491
- throw new TypeError(
492
- `Error while loading rule '${ruleContext.id}': Rule must be an object with a \`create\` method`,
493
- );
494
- }
495
-
496
- try {
497
- return rule.create(ruleContext);
498
- } catch (ex) {
499
- ex.message = `Error while loading rule '${ruleContext.id}': ${ex.message}`;
500
- throw ex;
501
- }
502
- }
503
-
504
- /**
505
- * Runs the given rules on the given SourceCode object
506
- * @param {SourceCode} sourceCode A SourceCode object for the given text
507
- * @param {Object} configuredRules The rules configuration
508
- * @param {function(string): RuleDefinition} ruleMapper A mapper function from rule names to rules
509
- * @param {Language} language The language object used for parsing.
510
- * @param {LanguageOptions} languageOptions The options for parsing the code.
511
- * @param {Object} settings The settings that were enabled in the config
512
- * @param {string} filename The reported filename of the code
513
- * @param {boolean} applyDefaultOptions If true, apply rules' meta.defaultOptions in computing their config options.
514
- * @param {string | undefined} cwd cwd of the cli
515
- * @param {string} physicalFilename The full path of the file on disk without any code block information
516
- * @param {Function} ruleFilter A predicate function to filter which rules should be executed.
517
- * @param {boolean} stats If true, stats are collected appended to the result
518
- * @param {WeakMap<Linter, LinterInternalSlots>} slots InternalSlotsMap of linter
519
- * @param {FileReport} report The report to add problems to
520
- * @returns {FileReport} report The report with added problems
521
- * @throws {Error} If traversal into a node fails.
522
- */
523
- function runRules(
524
- sourceCode,
525
- configuredRules,
526
- ruleMapper,
527
- language,
528
- languageOptions,
529
- settings,
530
- filename,
531
- applyDefaultOptions,
532
- cwd,
533
- physicalFilename,
534
- ruleFilter,
535
- stats,
536
- slots,
537
- report,
538
- ) {
539
- const visitor = new SourceCodeVisitor();
540
-
541
- /*
542
- * Create a frozen object with the ruleContext properties and methods that are shared by all rules.
543
- * All rule contexts will inherit from this object. This avoids the performance penalty of copying all the
544
- * properties once for each rule.
545
- */
546
- const fileContext = new FileContext({
547
- cwd,
548
- filename,
549
- physicalFilename: physicalFilename || filename,
550
- sourceCode,
551
- languageOptions,
552
- settings,
553
- });
554
-
555
- const steps = sourceCode.traverse();
556
-
557
- Object.keys(configuredRules).forEach(ruleId => {
558
- const severity = Config.getRuleNumericSeverity(configuredRules[ruleId]);
559
-
560
- // not load disabled rules
561
- if (severity === 0) {
562
- return;
563
- }
564
-
565
- if (ruleFilter && !ruleFilter({ ruleId, severity })) {
566
- return;
567
- }
568
-
569
- const rule = ruleMapper(ruleId);
570
-
571
- if (!rule) {
572
- report.addError({ ruleId });
573
- return;
574
- }
575
-
576
- const ruleContext = fileContext.extend({
577
- id: ruleId,
578
- options: getRuleOptions(
579
- configuredRules[ruleId],
580
- applyDefaultOptions ? rule.meta?.defaultOptions : void 0,
581
- ),
582
- report(...args) {
583
- const problem = report.addRuleMessage(
584
- ruleId,
585
- severity,
586
- ...args,
587
- );
588
-
589
- if (problem.fix && !(rule.meta && rule.meta.fixable)) {
590
- throw new Error(
591
- 'Fixable rules must set the `meta.fixable` property to "code" or "whitespace".',
592
- );
593
- }
594
-
595
- if (
596
- problem.suggestions &&
597
- !(rule.meta && rule.meta.hasSuggestions === true)
598
- ) {
599
- if (
600
- rule.meta &&
601
- rule.meta.docs &&
602
- typeof rule.meta.docs.suggestion !== "undefined"
603
- ) {
604
- // Encourage migration from the former property name.
605
- throw new Error(
606
- "Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint.",
607
- );
608
- }
609
- throw new Error(
610
- "Rules with suggestions must set the `meta.hasSuggestions` property to `true`.",
611
- );
612
- }
613
- },
614
- });
615
-
616
- const ruleListenersReturn =
617
- timing.enabled || stats
618
- ? timing.time(
619
- ruleId,
620
- createRuleListeners,
621
- stats,
622
- )(rule, ruleContext)
623
- : createRuleListeners(rule, ruleContext);
624
-
625
- const ruleListeners = stats
626
- ? ruleListenersReturn.result
627
- : ruleListenersReturn;
628
-
629
- if (stats) {
630
- storeTime(
631
- ruleListenersReturn.tdiff,
632
- { type: "rules", key: ruleId },
633
- slots,
634
- );
635
- }
636
-
637
- /**
638
- * Include `ruleId` in error logs
639
- * @param {Function} ruleListener A rule method that listens for a node.
640
- * @returns {Function} ruleListener wrapped in error handler
641
- */
642
- function addRuleErrorHandler(ruleListener) {
643
- return function ruleErrorHandler(...listenerArgs) {
644
- try {
645
- const ruleListenerReturn = ruleListener(...listenerArgs);
646
-
647
- const ruleListenerResult = stats
648
- ? ruleListenerReturn.result
649
- : ruleListenerReturn;
650
-
651
- if (stats) {
652
- storeTime(
653
- ruleListenerReturn.tdiff,
654
- { type: "rules", key: ruleId },
655
- slots,
656
- );
657
- }
658
-
659
- return ruleListenerResult;
660
- } catch (e) {
661
- e.ruleId = ruleId;
662
- throw e;
663
- }
664
- };
665
- }
666
-
667
- if (typeof ruleListeners === "undefined" || ruleListeners === null) {
668
- throw new Error(
669
- `The create() function for rule '${ruleId}' did not return an object.`,
670
- );
671
- }
672
-
673
- // add all the selectors from the rule as listeners
674
- Object.keys(ruleListeners).forEach(selector => {
675
- const ruleListener =
676
- timing.enabled || stats
677
- ? timing.time(ruleId, ruleListeners[selector], stats)
678
- : ruleListeners[selector];
679
-
680
- visitor.add(selector, addRuleErrorHandler(ruleListener));
681
- });
682
- });
683
-
684
- const traverser = SourceCodeTraverser.getInstance(language);
685
-
686
- traverser.traverseSync(sourceCode, visitor, { steps });
687
-
688
- return report;
689
- }
690
-
691
- /**
692
- * Ensure the source code to be a string.
693
- * @param {string|SourceCode} textOrSourceCode The text or source code object.
694
- * @returns {string} The source code text.
695
- */
696
- function ensureText(textOrSourceCode) {
697
- if (typeof textOrSourceCode === "object") {
698
- const { hasBOM, text } = textOrSourceCode;
699
- const bom = hasBOM ? "\uFEFF" : "";
700
-
701
- return bom + text;
702
- }
703
-
704
- return String(textOrSourceCode);
705
- }
706
-
707
- /**
708
- * Normalize the value of the cwd
709
- * @param {string | undefined} cwd raw value of the cwd, path to a directory that should be considered as the current working directory, can be undefined.
710
- * @returns {string | undefined} normalized cwd
711
- */
712
- function normalizeCwd(cwd) {
713
- if (cwd) {
714
- return cwd;
715
- }
716
- if (typeof process === "object") {
717
- return process.cwd();
718
- }
719
-
720
- // It's more explicit to assign the undefined
721
- // eslint-disable-next-line no-undefined -- Consistently returning a value
722
- return undefined;
723
- }
724
-
725
- /**
726
- * The map to store private data.
727
- * @type {WeakMap<Linter, LinterInternalSlots>}
728
- */
729
- const internalSlotsMap = new WeakMap();
730
-
731
- //------------------------------------------------------------------------------
732
- // Public Interface
733
- //------------------------------------------------------------------------------
734
-
735
- /**
736
- * Object that is responsible for verifying JavaScript text
737
- * @name Linter
738
- */
739
- class Linter {
740
- /**
741
- * Initialize the Linter.
742
- * @param {Object} [config] the config object
743
- * @param {string} [config.cwd] path to a directory that should be considered as the current working directory, can be undefined.
744
- * @param {Array<string>} [config.flags] the feature flags to enable.
745
- * @param {"flat"} [config.configType="flat"] the type of config used. Retrained for backwards compatibility, will be removed in future.
746
- * @param {WarningService} [config.warningService] The warning service to use.
747
- */
748
- constructor({
749
- cwd,
750
- configType = "flat",
751
- flags = [],
752
- warningService = new WarningService(),
753
- } = {}) {
754
- const processedFlags = [];
755
-
756
- if (configType !== "flat") {
757
- throw new TypeError(
758
- `The 'configType' option value must be 'flat'. The value '${configType}' is not supported.`,
759
- );
760
- }
761
-
762
- flags.forEach(flag => {
763
- if (inactiveFlags.has(flag)) {
764
- const inactiveFlagData = inactiveFlags.get(flag);
765
- const inactivityReason =
766
- getInactivityReasonMessage(inactiveFlagData);
767
- const message = `The flag '${flag}' is inactive: ${inactivityReason}`;
768
-
769
- if (typeof inactiveFlagData.replacedBy === "undefined") {
770
- throw new Error(message);
771
- }
772
-
773
- // if there's a replacement, enable it instead of original
774
- if (typeof inactiveFlagData.replacedBy === "string") {
775
- processedFlags.push(inactiveFlagData.replacedBy);
776
- }
777
-
778
- warningService.emitInactiveFlagWarning(flag, message);
779
-
780
- return;
781
- }
782
-
783
- if (!activeFlags.has(flag)) {
784
- throw new Error(`Unknown flag '${flag}'.`);
785
- }
786
-
787
- processedFlags.push(flag);
788
- });
789
-
790
- internalSlotsMap.set(this, {
791
- cwd: normalizeCwd(cwd),
792
- flags: processedFlags,
793
- lastConfigArray: null,
794
- lastSourceCode: null,
795
- lastSuppressedMessages: [],
796
- warningService,
797
- });
798
-
799
- this.version = pkg.version;
800
- }
801
-
802
- /**
803
- * Getter for package version.
804
- * @static
805
- * @returns {string} The version from package.json.
806
- */
807
- static get version() {
808
- return pkg.version;
809
- }
810
-
811
- /**
812
- * Indicates if the given feature flag is enabled for this instance.
813
- * @param {string} flag The feature flag to check.
814
- * @returns {boolean} `true` if the feature flag is enabled, `false` if not.
815
- */
816
- hasFlag(flag) {
817
- return internalSlotsMap.get(this).flags.includes(flag);
818
- }
819
-
820
- /**
821
- * Verifies the text against the rules specified by the second argument.
822
- * @param {string|SourceCode} textOrSourceCode The text to parse or a SourceCode object.
823
- * @param {ConfigObject|ConfigObject[]} config The ESLint config object or array to use.
824
- * @param {(string|(VerifyOptions&ProcessorOptions))} [filenameOrOptions] The optional filename of the file being checked.
825
- * If this is not set, the filename will default to '<input>' in the rule context. If
826
- * an object, then it has "filename", "allowInlineConfig", and some properties.
827
- * @returns {LintMessage[]} The results as an array of messages or an empty array if no messages.
828
- */
829
- verify(textOrSourceCode, config, filenameOrOptions) {
830
- debug("Verify");
831
-
832
- const { cwd } = internalSlotsMap.get(this);
833
-
834
- const options =
835
- typeof filenameOrOptions === "string"
836
- ? { filename: filenameOrOptions }
837
- : filenameOrOptions || {};
838
-
839
- const configToUse = config ?? {};
840
-
841
- /*
842
- * Because of how Webpack packages up the files, we can't
843
- * compare directly to `FlatConfigArray` using `instanceof`
844
- * because it's not the same `FlatConfigArray` as in the tests.
845
- * So, we work around it by assuming an array is, in fact, a
846
- * `FlatConfigArray` if it has a `getConfig()` method.
847
- */
848
- let configArray = configToUse;
849
-
850
- if (
851
- !Array.isArray(configToUse) ||
852
- typeof configToUse.getConfig !== "function"
853
- ) {
854
- configArray = new FlatConfigArray(configToUse, {
855
- basePath: cwd,
856
- });
857
- configArray.normalizeSync();
858
- }
859
-
860
- return this._distinguishSuppressedMessages(
861
- this._verifyWithFlatConfigArray(
862
- textOrSourceCode,
863
- configArray,
864
- options,
865
- true,
866
- ),
867
- );
868
- }
869
-
870
- /**
871
- * Verify with a processor.
872
- * @param {string|SourceCode} textOrSourceCode The source code.
873
- * @param {Config} config The config array.
874
- * @param {VerifyOptions&ProcessorOptions} options The options.
875
- * @param {FlatConfigArray} [configForRecursive] The `ConfigArray` object to apply multiple processors recursively.
876
- * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems.
877
- */
878
- _verifyWithFlatConfigArrayAndProcessor(
879
- textOrSourceCode,
880
- config,
881
- options,
882
- configForRecursive,
883
- ) {
884
- const slots = internalSlotsMap.get(this);
885
- const filename = options.filename || "<input>";
886
- const filenameToExpose = normalizeFilename(filename);
887
- const physicalFilename = options.physicalFilename || filenameToExpose;
888
- const text = ensureText(textOrSourceCode);
889
- const file = new VFile(filenameToExpose, text, {
890
- physicalPath: physicalFilename,
891
- });
892
-
893
- const preprocess = options.preprocess || (rawText => [rawText]);
894
- const postprocess =
895
- options.postprocess || (messagesList => messagesList.flat());
896
-
897
- const processorService = new ProcessorService();
898
- const preprocessResult = processorService.preprocessSync(file, {
899
- processor: {
900
- preprocess,
901
- postprocess,
902
- },
903
- });
904
-
905
- if (!preprocessResult.ok) {
906
- return preprocessResult.errors;
907
- }
908
-
909
- const filterCodeBlock =
910
- options.filterCodeBlock ||
911
- (blockFilename => blockFilename.endsWith(".js"));
912
- const originalExtname = path.extname(filename);
913
- const { files } = preprocessResult;
914
-
915
- const messageLists = files.map(block => {
916
- debug("A code block was found: %o", block.path || "(unnamed)");
917
-
918
- // Keep the legacy behavior.
919
- if (typeof block === "string") {
920
- return this._verifyWithFlatConfigArrayAndWithoutProcessors(
921
- block,
922
- config,
923
- options,
924
- );
925
- }
926
-
927
- // Skip this block if filtered.
928
- if (!filterCodeBlock(block.path, block.body)) {
929
- debug("This code block was skipped.");
930
- return [];
931
- }
932
-
933
- // Resolve configuration again if the file content or extension was changed.
934
- if (
935
- configForRecursive &&
936
- (text !== block.rawBody ||
937
- path.extname(block.path) !== originalExtname)
938
- ) {
939
- debug(
940
- "Resolving configuration again because the file content or extension was changed.",
941
- );
942
- return this._verifyWithFlatConfigArray(
943
- block.rawBody,
944
- configForRecursive,
945
- {
946
- ...options,
947
- filename: block.path,
948
- physicalFilename: block.physicalPath,
949
- },
950
- );
951
- }
952
-
953
- slots.lastSourceCode = null;
954
-
955
- // Does lint.
956
- return this.#flatVerifyWithoutProcessors(block, config, {
957
- ...options,
958
- filename: block.path,
959
- physicalFilename: block.physicalPath,
960
- });
961
- });
962
-
963
- return processorService.postprocessSync(file, messageLists, {
964
- processor: {
965
- preprocess,
966
- postprocess,
967
- },
968
- });
969
- }
970
-
971
- /**
972
- * Verify using flat config and without any processors.
973
- * @param {VFile} file The file to lint.
974
- * @param {Config} providedConfig An ESLintConfig instance to configure everything.
975
- * @param {VerifyOptions} [providedOptions] The optional filename of the file being checked.
976
- * @throws {Error} If during rule execution.
977
- * @returns {(LintMessage|SuppressedLintMessage)[]} The results as an array of messages or an empty array if no messages.
978
- */
979
- #flatVerifyWithoutProcessors(file, providedConfig, providedOptions) {
980
- const slots = internalSlotsMap.get(this);
981
- const config = providedConfig || {};
982
- const { settings = {}, languageOptions } = config;
983
- const options = normalizeVerifyOptions(providedOptions, config);
984
-
985
- if (!slots.lastSourceCode) {
986
- let t;
987
-
988
- if (options.stats) {
989
- t = startTime();
990
- }
991
-
992
- const parserService = new ParserService();
993
- const parseResult = parserService.parseSync(file, config);
994
-
995
- if (options.stats) {
996
- const time = endTime(t);
997
-
998
- storeTime(time, { type: "parse" }, slots);
999
- }
1000
-
1001
- if (!parseResult.ok) {
1002
- return parseResult.errors;
1003
- }
1004
-
1005
- slots.lastSourceCode = parseResult.sourceCode;
1006
- } else {
1007
- /*
1008
- * If the given source code object as the first argument does not have scopeManager, analyze the scope.
1009
- * This is for backward compatibility (SourceCode is frozen so it cannot rebind).
1010
- *
1011
- * We check explicitly for `null` to ensure that this is a JS-flavored language.
1012
- * For non-JS languages we don't want to do this.
1013
- *
1014
- * TODO: Remove this check when we stop exporting the `SourceCode` object.
1015
- */
1016
- if (slots.lastSourceCode.scopeManager === null) {
1017
- slots.lastSourceCode = new SourceCode({
1018
- text: slots.lastSourceCode.text,
1019
- ast: slots.lastSourceCode.ast,
1020
- hasBOM: slots.lastSourceCode.hasBOM,
1021
- parserServices: slots.lastSourceCode.parserServices,
1022
- visitorKeys: slots.lastSourceCode.visitorKeys,
1023
- scopeManager: analyzeScope(
1024
- slots.lastSourceCode.ast,
1025
- languageOptions,
1026
- ),
1027
- });
1028
- }
1029
- }
1030
-
1031
- const sourceCode = slots.lastSourceCode;
1032
- const report = new FileReport({
1033
- ruleMapper: ruleId => config.getRuleDefinition(ruleId),
1034
- language: config.language,
1035
- sourceCode,
1036
- disableFixes: options.disableFixes,
1037
- });
1038
-
1039
- /*
1040
- * Make adjustments based on the language options. For JavaScript,
1041
- * this is primarily about adding variables into the global scope
1042
- * to account for ecmaVersion and configured globals.
1043
- */
1044
- sourceCode.applyLanguageOptions?.(languageOptions);
1045
-
1046
- const mergedInlineConfig = {
1047
- rules: {},
1048
- };
1049
-
1050
- /*
1051
- * Inline config can be either enabled or disabled. If disabled, it's possible
1052
- * to detect the inline config and emit a warning (though this is not required).
1053
- * So we first check to see if inline config is allowed at all, and if so, we
1054
- * need to check if it's a warning or not.
1055
- */
1056
- if (options.allowInlineConfig) {
1057
- // if inline config should warn then add the warnings
1058
- if (options.warnInlineConfig) {
1059
- if (sourceCode.getInlineConfigNodes) {
1060
- sourceCode.getInlineConfigNodes().forEach(node => {
1061
- const loc = sourceCode.getLoc(node);
1062
- const range = sourceCode.getRange(node);
1063
-
1064
- report.addWarning({
1065
- message: `'${sourceCode.text.slice(range[0], range[1])}' has no effect because you have 'noInlineConfig' setting in ${options.warnInlineConfig}.`,
1066
- loc,
1067
- });
1068
- });
1069
- }
1070
- } else {
1071
- const inlineConfigResult = sourceCode.applyInlineConfig?.();
1072
-
1073
- if (inlineConfigResult) {
1074
- inlineConfigResult.problems.forEach(problem => {
1075
- report.addFatal(problem);
1076
- });
1077
-
1078
- for (const {
1079
- config: inlineConfig,
1080
- loc,
1081
- } of inlineConfigResult.configs) {
1082
- Object.keys(inlineConfig.rules).forEach(ruleId => {
1083
- const rule = config.getRuleDefinition(ruleId);
1084
- const ruleValue = inlineConfig.rules[ruleId];
1085
-
1086
- if (!rule) {
1087
- report.addError({
1088
- ruleId,
1089
- loc,
1090
- });
1091
- return;
1092
- }
1093
-
1094
- if (
1095
- Object.hasOwn(mergedInlineConfig.rules, ruleId)
1096
- ) {
1097
- report.addError({
1098
- message: `Rule "${ruleId}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,
1099
- loc,
1100
- });
1101
- return;
1102
- }
1103
-
1104
- try {
1105
- const ruleOptionsInline = asArray(ruleValue);
1106
- let ruleOptions = ruleOptionsInline;
1107
-
1108
- assertIsRuleSeverity(ruleId, ruleOptions[0]);
1109
-
1110
- /*
1111
- * If the rule was already configured, inline rule configuration that
1112
- * only has severity should retain options from the config and just override the severity.
1113
- *
1114
- * Example:
1115
- *
1116
- * {
1117
- * rules: {
1118
- * curly: ["error", "multi"]
1119
- * }
1120
- * }
1121
- *
1122
- * /* eslint curly: ["warn"] * /
1123
- *
1124
- * Results in:
1125
- *
1126
- * curly: ["warn", "multi"]
1127
- */
1128
-
1129
- let shouldValidateOptions = true;
1130
-
1131
- if (
1132
- /*
1133
- * If inline config for the rule has only severity
1134
- */
1135
- ruleOptions.length === 1 &&
1136
- /*
1137
- * And the rule was already configured
1138
- */
1139
- config.rules &&
1140
- Object.hasOwn(config.rules, ruleId)
1141
- ) {
1142
- /*
1143
- * Then use severity from the inline config and options from the provided config
1144
- */
1145
- ruleOptions = [
1146
- ruleOptions[0], // severity from the inline config
1147
- ...config.rules[ruleId].slice(1), // options from the provided config
1148
- ];
1149
-
1150
- // if the rule was enabled, the options have already been validated
1151
- if (config.rules[ruleId][0] > 0) {
1152
- shouldValidateOptions = false;
1153
- }
1154
- } else {
1155
- /**
1156
- * Since we know the user provided options, apply defaults on top of them
1157
- */
1158
- const slicedOptions = ruleOptions.slice(1);
1159
- const mergedOptions = deepMergeArrays(
1160
- rule.meta?.defaultOptions,
1161
- slicedOptions,
1162
- );
1163
-
1164
- if (mergedOptions.length) {
1165
- ruleOptions = [
1166
- ruleOptions[0],
1167
- ...mergedOptions,
1168
- ];
1169
- }
1170
- }
1171
-
1172
- if (
1173
- options.reportUnusedInlineConfigs !== "off"
1174
- ) {
1175
- addProblemIfSameSeverityAndOptions(
1176
- config,
1177
- loc,
1178
- report,
1179
- ruleId,
1180
- ruleOptions,
1181
- ruleOptionsInline,
1182
- options.reportUnusedInlineConfigs,
1183
- );
1184
- }
1185
-
1186
- if (shouldValidateOptions) {
1187
- config.validateRulesConfig({
1188
- [ruleId]: ruleOptions,
1189
- });
1190
- }
1191
-
1192
- mergedInlineConfig.rules[ruleId] = ruleOptions;
1193
- } catch (err) {
1194
- /*
1195
- * If the rule has invalid `meta.schema`, throw the error because
1196
- * this is not an invalid inline configuration but an invalid rule.
1197
- */
1198
- if (
1199
- err.code ===
1200
- "ESLINT_INVALID_RULE_OPTIONS_SCHEMA"
1201
- ) {
1202
- throw err;
1203
- }
1204
-
1205
- let baseMessage = err.message
1206
- .slice(
1207
- err.message.startsWith('Key "rules":')
1208
- ? err.message.indexOf(":", 12) + 1
1209
- : err.message.indexOf(":") + 1,
1210
- )
1211
- .trim();
1212
-
1213
- if (err.messageTemplate) {
1214
- baseMessage += ` You passed "${ruleValue}".`;
1215
- }
1216
-
1217
- report.addError({
1218
- ruleId,
1219
- message: `Inline configuration for rule "${ruleId}" is invalid:\n\t${baseMessage}\n`,
1220
- loc,
1221
- });
1222
- }
1223
- });
1224
- }
1225
- }
1226
- }
1227
- }
1228
-
1229
- const commentDirectives =
1230
- options.allowInlineConfig && !options.warnInlineConfig
1231
- ? getDirectiveCommentsForFlatConfig(
1232
- sourceCode,
1233
- ruleId => config.getRuleDefinition(ruleId),
1234
- config.language,
1235
- report,
1236
- )
1237
- : [];
1238
-
1239
- const configuredRules = Object.assign(
1240
- {},
1241
- config.rules,
1242
- mergedInlineConfig.rules,
1243
- );
1244
-
1245
- sourceCode.finalize?.();
1246
-
1247
- try {
1248
- runRules(
1249
- sourceCode,
1250
- configuredRules,
1251
- ruleId => config.getRuleDefinition(ruleId),
1252
- config.language,
1253
- languageOptions,
1254
- settings,
1255
- options.filename,
1256
- false,
1257
- slots.cwd,
1258
- providedOptions.physicalFilename,
1259
- options.ruleFilter,
1260
- options.stats,
1261
- slots,
1262
- report,
1263
- );
1264
- } catch (err) {
1265
- err.message += `\nOccurred while linting ${options.filename}`;
1266
- debug("An error occurred while traversing");
1267
- debug("Filename:", options.filename);
1268
- if (err.currentNode) {
1269
- const { line } = sourceCode.getLoc(err.currentNode).start;
1270
-
1271
- debug("Line:", line);
1272
- err.message += `:${line}`;
1273
- }
1274
- debug("Parser Options:", languageOptions.parserOptions);
1275
- debug("Settings:", settings);
1276
-
1277
- if (err.ruleId) {
1278
- err.message += `\nRule: "${err.ruleId}"`;
1279
- }
1280
-
1281
- throw err;
1282
- }
1283
-
1284
- return applyDisableDirectives({
1285
- language: config.language,
1286
- sourceCode,
1287
- directives: commentDirectives,
1288
- disableFixes: options.disableFixes,
1289
- problems: report.messages.sort(
1290
- (problemA, problemB) =>
1291
- problemA.line - problemB.line ||
1292
- problemA.column - problemB.column,
1293
- ),
1294
- reportUnusedDisableDirectives:
1295
- options.reportUnusedDisableDirectives,
1296
- ruleFilter: options.ruleFilter,
1297
- configuredRules,
1298
- });
1299
- }
1300
-
1301
- /**
1302
- * Same as linter.verify, except without support for processors.
1303
- * @param {string|SourceCode} textOrSourceCode The text to parse or a SourceCode object.
1304
- * @param {Config} providedConfig An ESLintConfig instance to configure everything.
1305
- * @param {VerifyOptions} [providedOptions] The optional filename of the file being checked.
1306
- * @throws {Error} If during rule execution.
1307
- * @returns {(LintMessage|SuppressedLintMessage)[]} The results as an array of messages or an empty array if no messages.
1308
- */
1309
- _verifyWithFlatConfigArrayAndWithoutProcessors(
1310
- textOrSourceCode,
1311
- providedConfig,
1312
- providedOptions,
1313
- ) {
1314
- const slots = internalSlotsMap.get(this);
1315
- const filename = normalizeFilename(
1316
- providedOptions.filename || "<input>",
1317
- );
1318
- let text;
1319
-
1320
- // evaluate arguments
1321
- if (typeof textOrSourceCode === "string") {
1322
- slots.lastSourceCode = null;
1323
- text = textOrSourceCode;
1324
- } else {
1325
- slots.lastSourceCode = textOrSourceCode;
1326
- text = textOrSourceCode.text;
1327
- }
1328
-
1329
- const file = new VFile(filename, text, {
1330
- physicalPath: providedOptions.physicalFilename,
1331
- });
1332
-
1333
- return this.#flatVerifyWithoutProcessors(
1334
- file,
1335
- providedConfig,
1336
- providedOptions,
1337
- );
1338
- }
1339
-
1340
- /**
1341
- * Verify a given code with a flat config.
1342
- * @param {string|SourceCode} textOrSourceCode The source code.
1343
- * @param {FlatConfigArray} configArray The config array.
1344
- * @param {VerifyOptions&ProcessorOptions} options The options.
1345
- * @param {boolean} firstCall Indicates if this is the first call in `verify()`
1346
- * to determine processor behavior.
1347
- * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems.
1348
- */
1349
- _verifyWithFlatConfigArray(
1350
- textOrSourceCode,
1351
- configArray,
1352
- options,
1353
- firstCall = false,
1354
- ) {
1355
- debug("With flat config: %s", options.filename);
1356
-
1357
- // we need a filename to match configs against
1358
- const filename = options.filename || "__placeholder__.js";
1359
-
1360
- // Store the config array in order to get plugin envs and rules later.
1361
- internalSlotsMap.get(this).lastConfigArray = configArray;
1362
- const config = configArray.getConfig(filename);
1363
-
1364
- if (!config) {
1365
- return [
1366
- {
1367
- ruleId: null,
1368
- severity: 1,
1369
- message: `No matching configuration found for ${filename}.`,
1370
- line: 0,
1371
- column: 0,
1372
- },
1373
- ];
1374
- }
1375
-
1376
- // Verify.
1377
- if (config.processor) {
1378
- debug("Apply the processor: %o", config.processor);
1379
- const { preprocess, postprocess, supportsAutofix } =
1380
- config.processor;
1381
- const disableFixes = options.disableFixes || !supportsAutofix;
1382
-
1383
- return this._verifyWithFlatConfigArrayAndProcessor(
1384
- textOrSourceCode,
1385
- config,
1386
- { ...options, filename, disableFixes, postprocess, preprocess },
1387
- configArray,
1388
- );
1389
- }
1390
-
1391
- // check for options-based processing
1392
- if (firstCall && (options.preprocess || options.postprocess)) {
1393
- return this._verifyWithFlatConfigArrayAndProcessor(
1394
- textOrSourceCode,
1395
- config,
1396
- options,
1397
- );
1398
- }
1399
-
1400
- return this._verifyWithFlatConfigArrayAndWithoutProcessors(
1401
- textOrSourceCode,
1402
- config,
1403
- options,
1404
- );
1405
- }
1406
-
1407
- /**
1408
- * Given a list of reported problems, distinguish problems between normal messages and suppressed messages.
1409
- * The normal messages will be returned and the suppressed messages will be stored as lastSuppressedMessages.
1410
- * @param {Array<LintMessage|SuppressedLintMessage>} problems A list of reported problems.
1411
- * @returns {LintMessage[]} A list of LintMessage.
1412
- */
1413
- _distinguishSuppressedMessages(problems) {
1414
- const messages = [];
1415
- const suppressedMessages = [];
1416
- const slots = internalSlotsMap.get(this);
1417
-
1418
- for (const problem of problems) {
1419
- if (problem.suppressions) {
1420
- suppressedMessages.push(problem);
1421
- } else {
1422
- messages.push(problem);
1423
- }
1424
- }
1425
-
1426
- slots.lastSuppressedMessages = suppressedMessages;
1427
-
1428
- return messages;
1429
- }
1430
-
1431
- /**
1432
- * Gets the SourceCode object representing the parsed source.
1433
- * @returns {SourceCode} The SourceCode object.
1434
- */
1435
- getSourceCode() {
1436
- return internalSlotsMap.get(this).lastSourceCode;
1437
- }
1438
-
1439
- /**
1440
- * Gets the times spent on (parsing, fixing, linting) a file.
1441
- * @returns {{ passes: TimePass[]; }} The times.
1442
- */
1443
- getTimes() {
1444
- return internalSlotsMap.get(this).times ?? { passes: [] };
1445
- }
1446
-
1447
- /**
1448
- * Gets the number of autofix passes that were made in the last run.
1449
- * @returns {number} The number of autofix passes.
1450
- */
1451
- getFixPassCount() {
1452
- return internalSlotsMap.get(this).fixPasses ?? 0;
1453
- }
1454
-
1455
- /**
1456
- * Gets the list of SuppressedLintMessage produced in the last running.
1457
- * @returns {SuppressedLintMessage[]} The list of SuppressedLintMessage
1458
- */
1459
- getSuppressedMessages() {
1460
- return internalSlotsMap.get(this).lastSuppressedMessages;
1461
- }
1462
-
1463
- /**
1464
- * Performs multiple autofix passes over the text until as many fixes as possible
1465
- * have been applied.
1466
- * @param {string} text The source text to apply fixes to.
1467
- * @param {ConfigObject|ConfigObject[]} config The ESLint config object or array to use.
1468
- * @param {string|(VerifyOptions&ProcessorOptions&FixOptions)} [filenameOrOptions] The filename or ESLint options object to use.
1469
- * @returns {{fixed:boolean,messages:LintMessage[],output:string}} The result of the fix operation as returned from the
1470
- * SourceCodeFixer.
1471
- */
1472
- verifyAndFix(text, config, filenameOrOptions) {
1473
- let messages,
1474
- fixedResult,
1475
- fixed = false,
1476
- passNumber = 0,
1477
- currentText = text,
1478
- secondPreviousText,
1479
- previousText;
1480
- const options =
1481
- typeof filenameOrOptions === "string"
1482
- ? { filename: filenameOrOptions }
1483
- : filenameOrOptions || {};
1484
- const debugTextDescription =
1485
- options.filename || `${text.slice(0, 10)}...`;
1486
- const shouldFix =
1487
- typeof options.fix !== "undefined" ? options.fix : true;
1488
- const stats = options?.stats;
1489
-
1490
- const slots = internalSlotsMap.get(this);
1491
-
1492
- // Remove lint times from the last run.
1493
- if (stats) {
1494
- delete slots.times;
1495
- slots.fixPasses = 0;
1496
- }
1497
-
1498
- /**
1499
- * This loop continues until one of the following is true:
1500
- *
1501
- * 1. No more fixes have been applied.
1502
- * 2. Ten passes have been made.
1503
- *
1504
- * That means anytime a fix is successfully applied, there will be another pass.
1505
- * Essentially, guaranteeing a minimum of two passes.
1506
- */
1507
- do {
1508
- passNumber++;
1509
- let tTotal;
1510
-
1511
- if (stats) {
1512
- tTotal = startTime();
1513
- }
1514
-
1515
- debug(
1516
- `Linting code for ${debugTextDescription} (pass ${passNumber})`,
1517
- );
1518
- messages = this.verify(currentText, config, options);
1519
-
1520
- debug(
1521
- `Generating fixed text for ${debugTextDescription} (pass ${passNumber})`,
1522
- );
1523
- let t;
1524
-
1525
- if (stats) {
1526
- t = startTime();
1527
- }
1528
-
1529
- fixedResult = SourceCodeFixer.applyFixes(
1530
- currentText,
1531
- messages,
1532
- shouldFix,
1533
- );
1534
-
1535
- if (stats) {
1536
- if (fixedResult.fixed) {
1537
- const time = endTime(t);
1538
-
1539
- storeTime(time, { type: "fix" }, slots);
1540
- slots.fixPasses++;
1541
- } else {
1542
- storeTime(0, { type: "fix" }, slots);
1543
- }
1544
- }
1545
-
1546
- /*
1547
- * stop if there are any syntax errors.
1548
- * 'fixedResult.output' is a empty string.
1549
- */
1550
- if (messages.length === 1 && messages[0].fatal) {
1551
- break;
1552
- }
1553
-
1554
- // keep track if any fixes were ever applied - important for return value
1555
- fixed = fixed || fixedResult.fixed;
1556
-
1557
- // update to use the fixed output instead of the original text
1558
- secondPreviousText = previousText;
1559
- previousText = currentText;
1560
- currentText = fixedResult.output;
1561
-
1562
- if (stats) {
1563
- tTotal = endTime(tTotal);
1564
- const passIndex = slots.times.passes.length - 1;
1565
-
1566
- slots.times.passes[passIndex].total = tTotal;
1567
- }
1568
-
1569
- // Stop if we've made a circular fix
1570
- if (
1571
- passNumber > 1 &&
1572
- currentText.length === secondPreviousText.length &&
1573
- currentText === secondPreviousText
1574
- ) {
1575
- debug(
1576
- `Circular fixes detected after pass ${passNumber}. Exiting fix loop.`,
1577
- );
1578
- slots.warningService.emitCircularFixesWarning(
1579
- options.filename ?? "text",
1580
- );
1581
- break;
1582
- }
1583
- } while (fixedResult.fixed && passNumber < MAX_AUTOFIX_PASSES);
1584
-
1585
- /*
1586
- * If the last result had fixes, we need to lint again to be sure we have
1587
- * the most up-to-date information.
1588
- */
1589
- if (fixedResult.fixed) {
1590
- let tTotal;
1591
-
1592
- if (stats) {
1593
- tTotal = startTime();
1594
- }
1595
-
1596
- fixedResult.messages = this.verify(currentText, config, options);
1597
-
1598
- if (stats) {
1599
- storeTime(0, { type: "fix" }, slots);
1600
- slots.times.passes.at(-1).total = endTime(tTotal);
1601
- }
1602
- }
1603
-
1604
- // ensure the last result properly reflects if fixes were done
1605
- fixedResult.fixed = fixed;
1606
- fixedResult.output = currentText;
1607
-
1608
- return fixedResult;
1609
- }
1610
- }
1611
-
1612
- module.exports = {
1613
- Linter,
1614
- };