@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,1678 +0,0 @@
1
- // @ts-nocheck
2
- 'use strict';
3
-
4
- // Copyright 2018-2025 the Deno authors. MIT license.
5
- // Copyright the Browserify authors. MIT License.
6
- function assertPath(path) {
7
- if (typeof path !== "string") {
8
- throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`);
9
- }
10
- }
11
-
12
- // Copyright 2018-2025 the Deno authors. MIT license.
13
- // This module is browser compatible.
14
- function stripSuffix(name, suffix) {
15
- if (suffix.length >= name.length) {
16
- return name;
17
- }
18
- const lenDiff = name.length - suffix.length;
19
- for(let i = suffix.length - 1; i >= 0; --i){
20
- if (name.charCodeAt(lenDiff + i) !== suffix.charCodeAt(i)) {
21
- return name;
22
- }
23
- }
24
- return name.slice(0, -suffix.length);
25
- }
26
- function lastPathSegment(path, isSep, start = 0) {
27
- let matchedNonSeparator = false;
28
- let end = path.length;
29
- for(let i = path.length - 1; i >= start; --i){
30
- if (isSep(path.charCodeAt(i))) {
31
- if (matchedNonSeparator) {
32
- start = i + 1;
33
- break;
34
- }
35
- } else if (!matchedNonSeparator) {
36
- matchedNonSeparator = true;
37
- end = i + 1;
38
- }
39
- }
40
- return path.slice(start, end);
41
- }
42
- function assertArgs$1(path, suffix) {
43
- assertPath(path);
44
- if (path.length === 0) return path;
45
- if (typeof suffix !== "string") {
46
- throw new TypeError(`Suffix must be a string, received "${JSON.stringify(suffix)}"`);
47
- }
48
- }
49
-
50
- // Copyright 2018-2025 the Deno authors. MIT license.
51
- // Copyright the Browserify authors. MIT License.
52
- // Ported from https://github.com/browserify/path-browserify/
53
- // This module is browser compatible.
54
- // Alphabet chars.
55
- const CHAR_UPPERCASE_A = 65; /* A */
56
- const CHAR_LOWERCASE_A = 97; /* a */
57
- const CHAR_UPPERCASE_Z = 90; /* Z */
58
- const CHAR_LOWERCASE_Z = 122; /* z */
59
- // Non-alphabetic chars.
60
- const CHAR_DOT = 46; /* . */
61
- const CHAR_FORWARD_SLASH = 47; /* / */
62
- const CHAR_BACKWARD_SLASH = 92; /* \ */
63
- const CHAR_COLON = 58; /* : */
64
- const CHAR_QUESTION_MARK = 63; /* ? */
65
-
66
- // Copyright 2018-2025 the Deno authors. MIT license.
67
- // Copyright the Browserify authors. MIT License.
68
- // Ported from https://github.com/browserify/path-browserify/
69
- // This module is browser compatible.
70
- function stripTrailingSeparators(segment, isSep) {
71
- if (segment.length <= 1) {
72
- return segment;
73
- }
74
- let end = segment.length;
75
- for(let i = segment.length - 1; i > 0; i--){
76
- if (isSep(segment.charCodeAt(i))) {
77
- end = i;
78
- } else {
79
- break;
80
- }
81
- }
82
- return segment.slice(0, end);
83
- }
84
-
85
- // Copyright 2018-2025 the Deno authors. MIT license.
86
- // Copyright the Browserify authors. MIT License.
87
- // Ported from https://github.com/browserify/path-browserify/
88
- // This module is browser compatible.
89
- function isPosixPathSeparator(code) {
90
- return code === CHAR_FORWARD_SLASH;
91
- }
92
- function isPathSeparator(code) {
93
- return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
94
- }
95
- function isWindowsDeviceRoot(code) {
96
- return code >= CHAR_LOWERCASE_A && code <= CHAR_LOWERCASE_Z || code >= CHAR_UPPERCASE_A && code <= CHAR_UPPERCASE_Z;
97
- }
98
-
99
- // Copyright 2018-2025 the Deno authors. MIT license.
100
- // This module is browser compatible.
101
- function assertArg$3(url) {
102
- url = url instanceof URL ? url : new URL(url);
103
- if (url.protocol !== "file:") {
104
- throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
105
- }
106
- return url;
107
- }
108
-
109
- // Copyright 2018-2025 the Deno authors. MIT license.
110
- // This module is browser compatible.
111
- /**
112
- * Converts a file URL to a path string.
113
- *
114
- * @example Usage
115
- * ```ts
116
- * import { fromFileUrl } from "@std/path/windows/from-file-url";
117
- * import { assertEquals } from "@std/assert";
118
- *
119
- * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
120
- * assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo");
121
- * assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo");
122
- * ```
123
- *
124
- * @param url The file URL to convert.
125
- * @returns The path string.
126
- */ function fromFileUrl(url) {
127
- url = assertArg$3(url);
128
- let path = decodeURIComponent(url.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\");
129
- if (url.hostname !== "") {
130
- // Note: The `URL` implementation guarantees that the drive letter and
131
- // hostname are mutually exclusive. Otherwise it would not have been valid
132
- // to append the hostname and path like this.
133
- path = `\\\\${url.hostname}${path}`;
134
- }
135
- return path;
136
- }
137
-
138
- // Copyright 2018-2025 the Deno authors. MIT license.
139
- // This module is browser compatible.
140
- /**
141
- * Return the last portion of a `path`.
142
- * Trailing directory separators are ignored, and optional suffix is removed.
143
- *
144
- * @example Usage
145
- * ```ts
146
- * import { basename } from "@std/path/windows/basename";
147
- * import { assertEquals } from "@std/assert";
148
- *
149
- * assertEquals(basename("C:\\user\\Documents\\"), "Documents");
150
- * assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png");
151
- * assertEquals(basename("C:\\user\\Documents\\image.png", ".png"), "image");
152
- * assertEquals(basename(new URL("file:///C:/user/Documents/image.png")), "image.png");
153
- * assertEquals(basename(new URL("file:///C:/user/Documents/image.png"), ".png"), "image");
154
- * ```
155
- *
156
- * @param path The path to extract the name from.
157
- * @param suffix The suffix to remove from extracted name.
158
- * @returns The extracted name.
159
- */ function basename(path, suffix = "") {
160
- if (path instanceof URL) {
161
- path = fromFileUrl(path);
162
- }
163
- assertArgs$1(path, suffix);
164
- // Check for a drive letter prefix so as not to mistake the following
165
- // path separator as an extra separator at the end of the path that can be
166
- // disregarded
167
- let start = 0;
168
- if (path.length >= 2) {
169
- const drive = path.charCodeAt(0);
170
- if (isWindowsDeviceRoot(drive)) {
171
- if (path.charCodeAt(1) === CHAR_COLON) start = 2;
172
- }
173
- }
174
- const lastSegment = lastPathSegment(path, isPathSeparator, start);
175
- const strippedSegment = stripTrailingSeparators(lastSegment, isPathSeparator);
176
- return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment;
177
- }
178
-
179
- // Copyright 2018-2025 the Deno authors. MIT license.
180
- // This module is browser compatible.
181
- /**
182
- * The character used to separate entries in the PATH environment variable.
183
- */ const DELIMITER = ";";
184
- /**
185
- * The character used to separate components of a file path.
186
- */ const SEPARATOR = "\\";
187
- /**
188
- * A regular expression that matches one or more path separators.
189
- */ const SEPARATOR_PATTERN = /[\\/]+/;
190
-
191
- // Copyright 2018-2025 the Deno authors. MIT license.
192
- // This module is browser compatible.
193
- function assertArg$2(path) {
194
- assertPath(path);
195
- if (path.length === 0) return ".";
196
- }
197
-
198
- // Copyright 2018-2025 the Deno authors. MIT license.
199
- // This module is browser compatible.
200
- /**
201
- * Return the directory path of a `path`.
202
- *
203
- * @example Usage
204
- * ```ts
205
- * import { dirname } from "@std/path/windows/dirname";
206
- * import { assertEquals } from "@std/assert";
207
- *
208
- * assertEquals(dirname("C:\\foo\\bar\\baz.ext"), "C:\\foo\\bar");
209
- * assertEquals(dirname(new URL("file:///C:/foo/bar/baz.ext")), "C:\\foo\\bar");
210
- * ```
211
- *
212
- * @param path The path to get the directory from.
213
- * @returns The directory path.
214
- */ function dirname(path) {
215
- if (path instanceof URL) {
216
- path = fromFileUrl(path);
217
- }
218
- assertArg$2(path);
219
- const len = path.length;
220
- let rootEnd = -1;
221
- let end = -1;
222
- let matchedSlash = true;
223
- let offset = 0;
224
- const code = path.charCodeAt(0);
225
- // Try to match a root
226
- if (len > 1) {
227
- if (isPathSeparator(code)) {
228
- // Possible UNC root
229
- rootEnd = offset = 1;
230
- if (isPathSeparator(path.charCodeAt(1))) {
231
- // Matched double path separator at beginning
232
- let j = 2;
233
- let last = j;
234
- // Match 1 or more non-path separators
235
- for(; j < len; ++j){
236
- if (isPathSeparator(path.charCodeAt(j))) break;
237
- }
238
- if (j < len && j !== last) {
239
- // Matched!
240
- last = j;
241
- // Match 1 or more path separators
242
- for(; j < len; ++j){
243
- if (!isPathSeparator(path.charCodeAt(j))) break;
244
- }
245
- if (j < len && j !== last) {
246
- // Matched!
247
- last = j;
248
- // Match 1 or more non-path separators
249
- for(; j < len; ++j){
250
- if (isPathSeparator(path.charCodeAt(j))) break;
251
- }
252
- if (j === len) {
253
- // We matched a UNC root only
254
- return path;
255
- }
256
- if (j !== last) {
257
- // We matched a UNC root with leftovers
258
- // Offset by 1 to include the separator after the UNC root to
259
- // treat it as a "normal root" on top of a (UNC) root
260
- rootEnd = offset = j + 1;
261
- }
262
- }
263
- }
264
- }
265
- } else if (isWindowsDeviceRoot(code)) {
266
- // Possible device root
267
- if (path.charCodeAt(1) === CHAR_COLON) {
268
- rootEnd = offset = 2;
269
- if (len > 2) {
270
- if (isPathSeparator(path.charCodeAt(2))) rootEnd = offset = 3;
271
- }
272
- }
273
- }
274
- } else if (isPathSeparator(code)) {
275
- // `path` contains just a path separator, exit early to avoid
276
- // unnecessary work
277
- return path;
278
- }
279
- for(let i = len - 1; i >= offset; --i){
280
- if (isPathSeparator(path.charCodeAt(i))) {
281
- if (!matchedSlash) {
282
- end = i;
283
- break;
284
- }
285
- } else {
286
- // We saw the first non-path separator
287
- matchedSlash = false;
288
- }
289
- }
290
- if (end === -1) {
291
- if (rootEnd === -1) return ".";
292
- else end = rootEnd;
293
- }
294
- return stripTrailingSeparators(path.slice(0, end), isPosixPathSeparator);
295
- }
296
-
297
- // Copyright 2018-2025 the Deno authors. MIT license.
298
- // This module is browser compatible.
299
- /**
300
- * Return the extension of the `path` with leading period.
301
- *
302
- * @example Usage
303
- * ```ts
304
- * import { extname } from "@std/path/windows/extname";
305
- * import { assertEquals } from "@std/assert";
306
- *
307
- * assertEquals(extname("file.ts"), ".ts");
308
- * assertEquals(extname(new URL("file:///C:/foo/bar/baz.ext")), ".ext");
309
- * ```
310
- *
311
- * @param path The path to get the extension from.
312
- * @returns The extension of the `path`.
313
- */ function extname(path) {
314
- if (path instanceof URL) {
315
- path = fromFileUrl(path);
316
- }
317
- assertPath(path);
318
- let start = 0;
319
- let startDot = -1;
320
- let startPart = 0;
321
- let end = -1;
322
- let matchedSlash = true;
323
- // Track the state of characters (if any) we see before our first dot and
324
- // after any path separator we find
325
- let preDotState = 0;
326
- // Check for a drive letter prefix so as not to mistake the following
327
- // path separator as an extra separator at the end of the path that can be
328
- // disregarded
329
- if (path.length >= 2 && path.charCodeAt(1) === CHAR_COLON && isWindowsDeviceRoot(path.charCodeAt(0))) {
330
- start = startPart = 2;
331
- }
332
- for(let i = path.length - 1; i >= start; --i){
333
- const code = path.charCodeAt(i);
334
- if (isPathSeparator(code)) {
335
- // If we reached a path separator that was not part of a set of path
336
- // separators at the end of the string, stop now
337
- if (!matchedSlash) {
338
- startPart = i + 1;
339
- break;
340
- }
341
- continue;
342
- }
343
- if (end === -1) {
344
- // We saw the first non-path separator, mark this as the end of our
345
- // extension
346
- matchedSlash = false;
347
- end = i + 1;
348
- }
349
- if (code === CHAR_DOT) {
350
- // If this is our first dot, mark it as the start of our extension
351
- if (startDot === -1) startDot = i;
352
- else if (preDotState !== 1) preDotState = 1;
353
- } else if (startDot !== -1) {
354
- // We saw a non-dot and non-path separator before our dot, so we should
355
- // have a good chance at having a non-empty extension
356
- preDotState = -1;
357
- }
358
- }
359
- if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
360
- preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
361
- preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
362
- return "";
363
- }
364
- return path.slice(startDot, end);
365
- }
366
-
367
- // Copyright 2018-2025 the Deno authors. MIT license.
368
- // This module is browser compatible.
369
- function _format(sep, pathObject) {
370
- const dir = pathObject.dir || pathObject.root;
371
- const base = pathObject.base || (pathObject.name ?? "") + (pathObject.ext ?? "");
372
- if (!dir) return base;
373
- if (base === sep) return dir;
374
- if (dir === pathObject.root) return dir + base;
375
- return dir + sep + base;
376
- }
377
- function assertArg$1(pathObject) {
378
- if (pathObject === null || typeof pathObject !== "object") {
379
- throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof pathObject}"`);
380
- }
381
- }
382
-
383
- // Copyright 2018-2025 the Deno authors. MIT license.
384
- // This module is browser compatible.
385
- /**
386
- * Generate a path from `ParsedPath` object.
387
- *
388
- * @example Usage
389
- * ```ts
390
- * import { format } from "@std/path/windows/format";
391
- * import { assertEquals } from "@std/assert";
392
- *
393
- * const path = format({
394
- * root: "C:\\",
395
- * dir: "C:\\path\\dir",
396
- * base: "file.txt",
397
- * ext: ".txt",
398
- * name: "file"
399
- * });
400
- * assertEquals(path, "C:\\path\\dir\\file.txt");
401
- * ```
402
- *
403
- * @param pathObject The path object to format.
404
- * @returns The formatted path.
405
- */ function format(pathObject) {
406
- assertArg$1(pathObject);
407
- return _format("\\", pathObject);
408
- }
409
-
410
- // Copyright 2018-2025 the Deno authors. MIT license.
411
- // This module is browser compatible.
412
- /**
413
- * Verifies whether provided path is absolute.
414
- *
415
- * @example Usage
416
- * ```ts
417
- * import { isAbsolute } from "@std/path/windows/is-absolute";
418
- * import { assert, assertFalse } from "@std/assert";
419
- *
420
- * assert(isAbsolute("C:\\foo\\bar"));
421
- * assertFalse(isAbsolute("..\\baz"));
422
- * ```
423
- *
424
- * @param path The path to verify.
425
- * @returns `true` if the path is absolute, `false` otherwise.
426
- */ function isAbsolute(path) {
427
- assertPath(path);
428
- const len = path.length;
429
- if (len === 0) return false;
430
- const code = path.charCodeAt(0);
431
- if (isPathSeparator(code)) {
432
- return true;
433
- } else if (isWindowsDeviceRoot(code)) {
434
- // Possible device root
435
- if (len > 2 && path.charCodeAt(1) === CHAR_COLON) {
436
- if (isPathSeparator(path.charCodeAt(2))) return true;
437
- }
438
- }
439
- return false;
440
- }
441
-
442
- // Copyright 2018-2025 the Deno authors. MIT license.
443
- // This module is browser compatible.
444
- function assertArg(path) {
445
- assertPath(path);
446
- if (path.length === 0) return ".";
447
- }
448
-
449
- // Copyright 2018-2025 the Deno authors. MIT license.
450
- // Copyright the Browserify authors. MIT License.
451
- // Ported from https://github.com/browserify/path-browserify/
452
- // This module is browser compatible.
453
- // Resolves . and .. elements in a path with directory names
454
- function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
455
- let res = "";
456
- let lastSegmentLength = 0;
457
- let lastSlash = -1;
458
- let dots = 0;
459
- let code;
460
- for(let i = 0; i <= path.length; ++i){
461
- if (i < path.length) code = path.charCodeAt(i);
462
- else if (isPathSeparator(code)) break;
463
- else code = CHAR_FORWARD_SLASH;
464
- if (isPathSeparator(code)) {
465
- if (lastSlash === i - 1 || dots === 1) ; else if (lastSlash !== i - 1 && dots === 2) {
466
- if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== CHAR_DOT || res.charCodeAt(res.length - 2) !== CHAR_DOT) {
467
- if (res.length > 2) {
468
- const lastSlashIndex = res.lastIndexOf(separator);
469
- if (lastSlashIndex === -1) {
470
- res = "";
471
- lastSegmentLength = 0;
472
- } else {
473
- res = res.slice(0, lastSlashIndex);
474
- lastSegmentLength = res.length - 1 - res.lastIndexOf(separator);
475
- }
476
- lastSlash = i;
477
- dots = 0;
478
- continue;
479
- } else if (res.length === 2 || res.length === 1) {
480
- res = "";
481
- lastSegmentLength = 0;
482
- lastSlash = i;
483
- dots = 0;
484
- continue;
485
- }
486
- }
487
- if (allowAboveRoot) {
488
- if (res.length > 0) res += `${separator}..`;
489
- else res = "..";
490
- lastSegmentLength = 2;
491
- }
492
- } else {
493
- if (res.length > 0) res += separator + path.slice(lastSlash + 1, i);
494
- else res = path.slice(lastSlash + 1, i);
495
- lastSegmentLength = i - lastSlash - 1;
496
- }
497
- lastSlash = i;
498
- dots = 0;
499
- } else if (code === CHAR_DOT && dots !== -1) {
500
- ++dots;
501
- } else {
502
- dots = -1;
503
- }
504
- }
505
- return res;
506
- }
507
-
508
- // Copyright 2018-2025 the Deno authors. MIT license.
509
- // This module is browser compatible.
510
- /**
511
- * Normalize the `path`, resolving `'..'` and `'.'` segments.
512
- * Note that resolving these segments does not necessarily mean that all will be eliminated.
513
- * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
514
- *
515
- * @example Usage
516
- * ```ts
517
- * import { normalize } from "@std/path/windows/normalize";
518
- * import { assertEquals } from "@std/assert";
519
- *
520
- * assertEquals(normalize("C:\\foo\\..\\bar"), "C:\\bar");
521
- * assertEquals(normalize(new URL("file:///C:/foo/../bar")), "C:\\bar");
522
- * ```
523
- *
524
- * @param path The path to normalize
525
- * @returns The normalized path
526
- */ function normalize(path) {
527
- if (path instanceof URL) {
528
- path = fromFileUrl(path);
529
- }
530
- assertArg(path);
531
- const len = path.length;
532
- let rootEnd = 0;
533
- let device;
534
- let isAbsolute = false;
535
- const code = path.charCodeAt(0);
536
- // Try to match a root
537
- if (len > 1) {
538
- if (isPathSeparator(code)) {
539
- // Possible UNC root
540
- // If we started with a separator, we know we at least have an absolute
541
- // path of some kind (UNC or otherwise)
542
- isAbsolute = true;
543
- if (isPathSeparator(path.charCodeAt(1))) {
544
- // Matched double path separator at beginning
545
- let j = 2;
546
- let last = j;
547
- // Match 1 or more non-path separators
548
- for(; j < len; ++j){
549
- if (isPathSeparator(path.charCodeAt(j))) break;
550
- }
551
- if (j < len && j !== last) {
552
- const firstPart = path.slice(last, j);
553
- // Matched!
554
- last = j;
555
- // Match 1 or more path separators
556
- for(; j < len; ++j){
557
- if (!isPathSeparator(path.charCodeAt(j))) break;
558
- }
559
- if (j < len && j !== last) {
560
- // Matched!
561
- last = j;
562
- // Match 1 or more non-path separators
563
- for(; j < len; ++j){
564
- if (isPathSeparator(path.charCodeAt(j))) break;
565
- }
566
- if (j === len) {
567
- // We matched a UNC root only
568
- // Return the normalized version of the UNC root since there
569
- // is nothing left to process
570
- return `\\\\${firstPart}\\${path.slice(last)}\\`;
571
- } else if (j !== last) {
572
- // We matched a UNC root with leftovers
573
- device = `\\\\${firstPart}\\${path.slice(last, j)}`;
574
- rootEnd = j;
575
- }
576
- }
577
- }
578
- } else {
579
- rootEnd = 1;
580
- }
581
- } else if (isWindowsDeviceRoot(code)) {
582
- // Possible device root
583
- if (path.charCodeAt(1) === CHAR_COLON) {
584
- device = path.slice(0, 2);
585
- rootEnd = 2;
586
- if (len > 2) {
587
- if (isPathSeparator(path.charCodeAt(2))) {
588
- // Treat separator following drive name as an absolute path
589
- // indicator
590
- isAbsolute = true;
591
- rootEnd = 3;
592
- }
593
- }
594
- }
595
- }
596
- } else if (isPathSeparator(code)) {
597
- // `path` contains just a path separator, exit early to avoid unnecessary
598
- // work
599
- return "\\";
600
- }
601
- let tail;
602
- if (rootEnd < len) {
603
- tail = normalizeString(path.slice(rootEnd), !isAbsolute, "\\", isPathSeparator);
604
- } else {
605
- tail = "";
606
- }
607
- if (tail.length === 0 && !isAbsolute) tail = ".";
608
- if (tail.length > 0 && isPathSeparator(path.charCodeAt(len - 1))) {
609
- tail += "\\";
610
- }
611
- if (device === undefined) {
612
- if (isAbsolute) {
613
- if (tail.length > 0) return `\\${tail}`;
614
- else return "\\";
615
- }
616
- return tail;
617
- } else if (isAbsolute) {
618
- if (tail.length > 0) return `${device}\\${tail}`;
619
- else return `${device}\\`;
620
- }
621
- return device + tail;
622
- }
623
-
624
- // Copyright 2018-2025 the Deno authors. MIT license.
625
- // This module is browser compatible.
626
- /**
627
- * Join all given a sequence of `paths`,then normalizes the resulting path.
628
- *
629
- * @example Usage
630
- * ```ts
631
- * import { join } from "@std/path/windows/join";
632
- * import { assertEquals } from "@std/assert";
633
- *
634
- * assertEquals(join("C:\\foo", "bar", "baz\\.."), "C:\\foo\\bar");
635
- * assertEquals(join(new URL("file:///C:/foo"), "bar", "baz\\.."), "C:\\foo\\bar");
636
- * ```
637
- *
638
- * @param path The path to join. This can be string or file URL.
639
- * @param paths The paths to join.
640
- * @returns The joined path.
641
- */ function join(path, ...paths) {
642
- if (path instanceof URL) {
643
- path = fromFileUrl(path);
644
- }
645
- paths = path ? [
646
- path,
647
- ...paths
648
- ] : paths;
649
- paths.forEach((path)=>assertPath(path));
650
- paths = paths.filter((path)=>path.length > 0);
651
- if (paths.length === 0) return ".";
652
- // Make sure that the joined path doesn't start with two slashes, because
653
- // normalize() will mistake it for an UNC path then.
654
- //
655
- // This step is skipped when it is very clear that the user actually
656
- // intended to point at an UNC path. This is assumed when the first
657
- // non-empty string arguments starts with exactly two slashes followed by
658
- // at least one more non-slash character.
659
- //
660
- // Note that for normalize() to treat a path as an UNC path it needs to
661
- // have at least 2 components, so we don't filter for that here.
662
- // This means that the user can use join to construct UNC paths from
663
- // a server name and a share name; for example:
664
- // path.join('//server', 'share') -> '\\\\server\\share\\'
665
- let needsReplace = true;
666
- let slashCount = 0;
667
- const firstPart = paths[0];
668
- if (isPathSeparator(firstPart.charCodeAt(0))) {
669
- ++slashCount;
670
- const firstLen = firstPart.length;
671
- if (firstLen > 1) {
672
- if (isPathSeparator(firstPart.charCodeAt(1))) {
673
- ++slashCount;
674
- if (firstLen > 2) {
675
- if (isPathSeparator(firstPart.charCodeAt(2))) ++slashCount;
676
- else {
677
- // We matched a UNC path in the first part
678
- needsReplace = false;
679
- }
680
- }
681
- }
682
- }
683
- }
684
- let joined = paths.join("\\");
685
- if (needsReplace) {
686
- // Find any more consecutive slashes we need to replace
687
- for(; slashCount < joined.length; ++slashCount){
688
- if (!isPathSeparator(joined.charCodeAt(slashCount))) break;
689
- }
690
- // Replace the slashes if needed
691
- if (slashCount >= 2) joined = `\\${joined.slice(slashCount)}`;
692
- }
693
- return normalize(joined);
694
- }
695
-
696
- // Copyright 2018-2025 the Deno authors. MIT license.
697
- // This module is browser compatible.
698
- /**
699
- * Return a `ParsedPath` object of the `path`.
700
- *
701
- * @example Usage
702
- * ```ts
703
- * import { parse } from "@std/path/windows/parse";
704
- * import { assertEquals } from "@std/assert";
705
- *
706
- * const parsed = parse("C:\\foo\\bar\\baz.ext");
707
- * assertEquals(parsed, {
708
- * root: "C:\\",
709
- * dir: "C:\\foo\\bar",
710
- * base: "baz.ext",
711
- * ext: ".ext",
712
- * name: "baz",
713
- * });
714
- * ```
715
- *
716
- * @param path The path to parse.
717
- * @returns The `ParsedPath` object.
718
- */ function parse(path) {
719
- assertPath(path);
720
- const ret = {
721
- root: "",
722
- dir: "",
723
- base: "",
724
- ext: "",
725
- name: ""
726
- };
727
- const len = path.length;
728
- if (len === 0) return ret;
729
- let rootEnd = 0;
730
- let code = path.charCodeAt(0);
731
- // Try to match a root
732
- if (len > 1) {
733
- if (isPathSeparator(code)) {
734
- // Possible UNC root
735
- rootEnd = 1;
736
- if (isPathSeparator(path.charCodeAt(1))) {
737
- // Matched double path separator at beginning
738
- let j = 2;
739
- let last = j;
740
- // Match 1 or more non-path separators
741
- for(; j < len; ++j){
742
- if (isPathSeparator(path.charCodeAt(j))) break;
743
- }
744
- if (j < len && j !== last) {
745
- // Matched!
746
- last = j;
747
- // Match 1 or more path separators
748
- for(; j < len; ++j){
749
- if (!isPathSeparator(path.charCodeAt(j))) break;
750
- }
751
- if (j < len && j !== last) {
752
- // Matched!
753
- last = j;
754
- // Match 1 or more non-path separators
755
- for(; j < len; ++j){
756
- if (isPathSeparator(path.charCodeAt(j))) break;
757
- }
758
- if (j === len) {
759
- // We matched a UNC root only
760
- rootEnd = j;
761
- } else if (j !== last) {
762
- // We matched a UNC root with leftovers
763
- rootEnd = j + 1;
764
- }
765
- }
766
- }
767
- }
768
- } else if (isWindowsDeviceRoot(code)) {
769
- // Possible device root
770
- if (path.charCodeAt(1) === CHAR_COLON) {
771
- rootEnd = 2;
772
- if (len > 2) {
773
- if (isPathSeparator(path.charCodeAt(2))) {
774
- if (len === 3) {
775
- // `path` contains just a drive root, exit early to avoid
776
- // unnecessary work
777
- ret.root = ret.dir = path;
778
- ret.base = "\\";
779
- return ret;
780
- }
781
- rootEnd = 3;
782
- }
783
- } else {
784
- // `path` contains just a relative drive root, exit early to avoid
785
- // unnecessary work
786
- ret.root = ret.dir = path;
787
- return ret;
788
- }
789
- }
790
- }
791
- } else if (isPathSeparator(code)) {
792
- // `path` contains just a path separator, exit early to avoid
793
- // unnecessary work
794
- ret.root = ret.dir = path;
795
- ret.base = "\\";
796
- return ret;
797
- }
798
- if (rootEnd > 0) ret.root = path.slice(0, rootEnd);
799
- let startDot = -1;
800
- let startPart = rootEnd;
801
- let end = -1;
802
- let matchedSlash = true;
803
- let i = path.length - 1;
804
- // Track the state of characters (if any) we see before our first dot and
805
- // after any path separator we find
806
- let preDotState = 0;
807
- // Get non-dir info
808
- for(; i >= rootEnd; --i){
809
- code = path.charCodeAt(i);
810
- if (isPathSeparator(code)) {
811
- // If we reached a path separator that was not part of a set of path
812
- // separators at the end of the string, stop now
813
- if (!matchedSlash) {
814
- startPart = i + 1;
815
- break;
816
- }
817
- continue;
818
- }
819
- if (end === -1) {
820
- // We saw the first non-path separator, mark this as the end of our
821
- // extension
822
- matchedSlash = false;
823
- end = i + 1;
824
- }
825
- if (code === CHAR_DOT) {
826
- // If this is our first dot, mark it as the start of our extension
827
- if (startDot === -1) startDot = i;
828
- else if (preDotState !== 1) preDotState = 1;
829
- } else if (startDot !== -1) {
830
- // We saw a non-dot and non-path separator before our dot, so we should
831
- // have a good chance at having a non-empty extension
832
- preDotState = -1;
833
- }
834
- }
835
- if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
836
- preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
837
- preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
838
- if (end !== -1) {
839
- ret.base = ret.name = path.slice(startPart, end);
840
- }
841
- } else {
842
- ret.name = path.slice(startPart, startDot);
843
- ret.base = path.slice(startPart, end);
844
- ret.ext = path.slice(startDot, end);
845
- }
846
- // Fallback to '\' in case there is no basename
847
- ret.base = ret.base || "\\";
848
- // If the directory is the root, use the entire root as the `dir` including
849
- // the trailing slash if any (`C:\abc` -> `C:\`). Otherwise, strip out the
850
- // trailing slash (`C:\abc\def` -> `C:\abc`).
851
- if (startPart > 0 && startPart !== rootEnd) {
852
- ret.dir = path.slice(0, startPart - 1);
853
- } else ret.dir = ret.root;
854
- return ret;
855
- }
856
-
857
- // Copyright 2018-2025 the Deno authors. MIT license.
858
- // This module is browser compatible.
859
- /**
860
- * Resolves path segments into a `path`.
861
- *
862
- * @example Usage
863
- * ```ts
864
- * import { resolve } from "@std/path/windows/resolve";
865
- * import { assertEquals } from "@std/assert";
866
- *
867
- * const resolved = resolve("C:\\foo\\bar", "..\\baz");
868
- * assertEquals(resolved, "C:\\foo\\baz");
869
- * ```
870
- *
871
- * @param pathSegments The path segments to process to path
872
- * @returns The resolved path
873
- */ function resolve(...pathSegments) {
874
- let resolvedDevice = "";
875
- let resolvedTail = "";
876
- let resolvedAbsolute = false;
877
- for(let i = pathSegments.length - 1; i >= -1; i--){
878
- let path;
879
- // deno-lint-ignore no-explicit-any
880
- const { Deno } = globalThis;
881
- if (i >= 0) {
882
- path = pathSegments[i];
883
- } else if (!resolvedDevice) {
884
- if (typeof Deno?.cwd !== "function") {
885
- throw new TypeError("Resolved a drive-letter-less path without a current working directory (CWD)");
886
- }
887
- path = Deno.cwd();
888
- } else {
889
- if (typeof Deno?.env?.get !== "function" || typeof Deno?.cwd !== "function") {
890
- throw new TypeError("Resolved a relative path without a current working directory (CWD)");
891
- }
892
- path = Deno.cwd();
893
- // Verify that a cwd was found and that it actually points
894
- // to our drive. If not, default to the drive's root.
895
- if (path === undefined || path.slice(0, 3).toLowerCase() !== `${resolvedDevice.toLowerCase()}\\`) {
896
- path = `${resolvedDevice}\\`;
897
- }
898
- }
899
- assertPath(path);
900
- const len = path.length;
901
- // Skip empty entries
902
- if (len === 0) continue;
903
- let rootEnd = 0;
904
- let device = "";
905
- let isAbsolute = false;
906
- const code = path.charCodeAt(0);
907
- // Try to match a root
908
- if (len > 1) {
909
- if (isPathSeparator(code)) {
910
- // Possible UNC root
911
- // If we started with a separator, we know we at least have an
912
- // absolute path of some kind (UNC or otherwise)
913
- isAbsolute = true;
914
- if (isPathSeparator(path.charCodeAt(1))) {
915
- // Matched double path separator at beginning
916
- let j = 2;
917
- let last = j;
918
- // Match 1 or more non-path separators
919
- for(; j < len; ++j){
920
- if (isPathSeparator(path.charCodeAt(j))) break;
921
- }
922
- if (j < len && j !== last) {
923
- const firstPart = path.slice(last, j);
924
- // Matched!
925
- last = j;
926
- // Match 1 or more path separators
927
- for(; j < len; ++j){
928
- if (!isPathSeparator(path.charCodeAt(j))) break;
929
- }
930
- if (j < len && j !== last) {
931
- // Matched!
932
- last = j;
933
- // Match 1 or more non-path separators
934
- for(; j < len; ++j){
935
- if (isPathSeparator(path.charCodeAt(j))) break;
936
- }
937
- if (j === len) {
938
- // We matched a UNC root only
939
- device = `\\\\${firstPart}\\${path.slice(last)}`;
940
- rootEnd = j;
941
- } else if (j !== last) {
942
- // We matched a UNC root with leftovers
943
- device = `\\\\${firstPart}\\${path.slice(last, j)}`;
944
- rootEnd = j;
945
- }
946
- }
947
- }
948
- } else {
949
- rootEnd = 1;
950
- }
951
- } else if (isWindowsDeviceRoot(code)) {
952
- // Possible device root
953
- if (path.charCodeAt(1) === CHAR_COLON) {
954
- device = path.slice(0, 2);
955
- rootEnd = 2;
956
- if (len > 2) {
957
- if (isPathSeparator(path.charCodeAt(2))) {
958
- // Treat separator following drive name as an absolute path
959
- // indicator
960
- isAbsolute = true;
961
- rootEnd = 3;
962
- }
963
- }
964
- }
965
- }
966
- } else if (isPathSeparator(code)) {
967
- // `path` contains just a path separator
968
- rootEnd = 1;
969
- isAbsolute = true;
970
- }
971
- if (device.length > 0 && resolvedDevice.length > 0 && device.toLowerCase() !== resolvedDevice.toLowerCase()) {
972
- continue;
973
- }
974
- if (resolvedDevice.length === 0 && device.length > 0) {
975
- resolvedDevice = device;
976
- }
977
- if (!resolvedAbsolute) {
978
- resolvedTail = `${path.slice(rootEnd)}\\${resolvedTail}`;
979
- resolvedAbsolute = isAbsolute;
980
- }
981
- if (resolvedAbsolute && resolvedDevice.length > 0) break;
982
- }
983
- // At this point the path should be resolved to a full absolute path,
984
- // but handle relative paths to be safe (might happen when Deno.cwd()
985
- // fails)
986
- // Normalize the tail path
987
- resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, "\\", isPathSeparator);
988
- return resolvedDevice + (resolvedAbsolute ? "\\" : "") + resolvedTail || ".";
989
- }
990
-
991
- // Copyright 2018-2025 the Deno authors. MIT license.
992
- // This module is browser compatible.
993
- function assertArgs(from, to) {
994
- assertPath(from);
995
- assertPath(to);
996
- if (from === to) return "";
997
- }
998
-
999
- // Copyright 2018-2025 the Deno authors. MIT license.
1000
- // This module is browser compatible.
1001
- /**
1002
- * Return the relative path from `from` to `to` based on current working directory.
1003
- *
1004
- * An example in windows, for instance:
1005
- * from = 'C:\\orandea\\test\\aaa'
1006
- * to = 'C:\\orandea\\impl\\bbb'
1007
- * The output of the function should be: '..\\..\\impl\\bbb'
1008
- *
1009
- * @example Usage
1010
- * ```ts
1011
- * import { relative } from "@std/path/windows/relative";
1012
- * import { assertEquals } from "@std/assert";
1013
- *
1014
- * const relativePath = relative("C:\\foobar\\test\\aaa", "C:\\foobar\\impl\\bbb");
1015
- * assertEquals(relativePath, "..\\..\\impl\\bbb");
1016
- * ```
1017
- *
1018
- * @param from The path from which to calculate the relative path
1019
- * @param to The path to which to calculate the relative path
1020
- * @returns The relative path from `from` to `to`
1021
- */ function relative(from, to) {
1022
- assertArgs(from, to);
1023
- const fromOrig = resolve(from);
1024
- const toOrig = resolve(to);
1025
- if (fromOrig === toOrig) return "";
1026
- from = fromOrig.toLowerCase();
1027
- to = toOrig.toLowerCase();
1028
- if (from === to) return "";
1029
- // Trim any leading backslashes
1030
- let fromStart = 0;
1031
- let fromEnd = from.length;
1032
- for(; fromStart < fromEnd; ++fromStart){
1033
- if (from.charCodeAt(fromStart) !== CHAR_BACKWARD_SLASH) break;
1034
- }
1035
- // Trim trailing backslashes (applicable to UNC paths only)
1036
- for(; fromEnd - 1 > fromStart; --fromEnd){
1037
- if (from.charCodeAt(fromEnd - 1) !== CHAR_BACKWARD_SLASH) break;
1038
- }
1039
- const fromLen = fromEnd - fromStart;
1040
- // Trim any leading backslashes
1041
- let toStart = 0;
1042
- let toEnd = to.length;
1043
- for(; toStart < toEnd; ++toStart){
1044
- if (to.charCodeAt(toStart) !== CHAR_BACKWARD_SLASH) break;
1045
- }
1046
- // Trim trailing backslashes (applicable to UNC paths only)
1047
- for(; toEnd - 1 > toStart; --toEnd){
1048
- if (to.charCodeAt(toEnd - 1) !== CHAR_BACKWARD_SLASH) break;
1049
- }
1050
- const toLen = toEnd - toStart;
1051
- // Compare paths to find the longest common path from root
1052
- const length = fromLen < toLen ? fromLen : toLen;
1053
- let lastCommonSep = -1;
1054
- let i = 0;
1055
- for(; i <= length; ++i){
1056
- if (i === length) {
1057
- if (toLen > length) {
1058
- if (to.charCodeAt(toStart + i) === CHAR_BACKWARD_SLASH) {
1059
- // We get here if `from` is the exact base path for `to`.
1060
- // For example: from='C:\\foo\\bar'; to='C:\\foo\\bar\\baz'
1061
- return toOrig.slice(toStart + i + 1);
1062
- } else if (i === 2) {
1063
- // We get here if `from` is the device root.
1064
- // For example: from='C:\\'; to='C:\\foo'
1065
- return toOrig.slice(toStart + i);
1066
- }
1067
- }
1068
- if (fromLen > length) {
1069
- if (from.charCodeAt(fromStart + i) === CHAR_BACKWARD_SLASH) {
1070
- // We get here if `to` is the exact base path for `from`.
1071
- // For example: from='C:\\foo\\bar'; to='C:\\foo'
1072
- lastCommonSep = i;
1073
- } else if (i === 2) {
1074
- // We get here if `to` is the device root.
1075
- // For example: from='C:\\foo\\bar'; to='C:\\'
1076
- lastCommonSep = 3;
1077
- }
1078
- }
1079
- break;
1080
- }
1081
- const fromCode = from.charCodeAt(fromStart + i);
1082
- const toCode = to.charCodeAt(toStart + i);
1083
- if (fromCode !== toCode) break;
1084
- else if (fromCode === CHAR_BACKWARD_SLASH) lastCommonSep = i;
1085
- }
1086
- // We found a mismatch before the first common path separator was seen, so
1087
- // return the original `to`.
1088
- if (i !== length && lastCommonSep === -1) {
1089
- return toOrig;
1090
- }
1091
- let out = "";
1092
- if (lastCommonSep === -1) lastCommonSep = 0;
1093
- // Generate the relative path based on the path difference between `to` and
1094
- // `from`
1095
- for(i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i){
1096
- if (i === fromEnd || from.charCodeAt(i) === CHAR_BACKWARD_SLASH) {
1097
- if (out.length === 0) out += "..";
1098
- else out += "\\..";
1099
- }
1100
- }
1101
- // Lastly, append the rest of the destination (`to`) path that comes after
1102
- // the common path parts
1103
- if (out.length > 0) {
1104
- return out + toOrig.slice(toStart + lastCommonSep, toEnd);
1105
- } else {
1106
- toStart += lastCommonSep;
1107
- if (toOrig.charCodeAt(toStart) === CHAR_BACKWARD_SLASH) ++toStart;
1108
- return toOrig.slice(toStart, toEnd);
1109
- }
1110
- }
1111
-
1112
- // Copyright 2018-2025 the Deno authors. MIT license.
1113
- // This module is browser compatible.
1114
- const WHITESPACE_ENCODINGS = {
1115
- "\u0009": "%09",
1116
- "\u000A": "%0A",
1117
- "\u000B": "%0B",
1118
- "\u000C": "%0C",
1119
- "\u000D": "%0D",
1120
- "\u0020": "%20"
1121
- };
1122
- function encodeWhitespace(string) {
1123
- return string.replaceAll(/[\s]/g, (c)=>{
1124
- return WHITESPACE_ENCODINGS[c] ?? c;
1125
- });
1126
- }
1127
-
1128
- // Copyright 2018-2025 the Deno authors. MIT license.
1129
- // This module is browser compatible.
1130
- /**
1131
- * Converts a path string to a file URL.
1132
- *
1133
- * @example Usage
1134
- * ```ts
1135
- * import { toFileUrl } from "@std/path/windows/to-file-url";
1136
- * import { assertEquals } from "@std/assert";
1137
- *
1138
- * assertEquals(toFileUrl("\\home\\foo"), new URL("file:///home/foo"));
1139
- * assertEquals(toFileUrl("C:\\Users\\foo"), new URL("file:///C:/Users/foo"));
1140
- * assertEquals(toFileUrl("\\\\127.0.0.1\\home\\foo"), new URL("file://127.0.0.1/home/foo"));
1141
- * ```
1142
- * @param path The path to convert.
1143
- * @returns The file URL.
1144
- */ function toFileUrl(path) {
1145
- if (!isAbsolute(path)) {
1146
- throw new TypeError(`Path must be absolute: received "${path}"`);
1147
- }
1148
- const [, hostname, pathname] = path.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/);
1149
- const url = new URL("file:///");
1150
- url.pathname = encodeWhitespace(pathname.replace(/%/g, "%25"));
1151
- if (hostname !== undefined && hostname !== "localhost") {
1152
- url.hostname = hostname;
1153
- if (!url.hostname) {
1154
- throw new TypeError(`Invalid hostname: "${url.hostname}"`);
1155
- }
1156
- }
1157
- return url;
1158
- }
1159
-
1160
- // Copyright 2018-2025 the Deno authors. MIT license.
1161
- // This module is browser compatible.
1162
- /**
1163
- * Resolves path to a namespace path
1164
- *
1165
- * @example Usage
1166
- * ```ts
1167
- * import { toNamespacedPath } from "@std/path/windows/to-namespaced-path";
1168
- * import { assertEquals } from "@std/assert";
1169
- *
1170
- * const namespaced = toNamespacedPath("C:\\foo\\bar");
1171
- * assertEquals(namespaced, "\\\\?\\C:\\foo\\bar");
1172
- * ```
1173
- *
1174
- * @param path The path to resolve to namespaced path
1175
- * @returns The resolved namespaced path
1176
- */ function toNamespacedPath(path) {
1177
- // Note: this will *probably* throw somewhere.
1178
- if (typeof path !== "string") return path;
1179
- if (path.length === 0) return "";
1180
- const resolvedPath = resolve(path);
1181
- if (resolvedPath.length >= 3) {
1182
- if (resolvedPath.charCodeAt(0) === CHAR_BACKWARD_SLASH) {
1183
- // Possible UNC root
1184
- if (resolvedPath.charCodeAt(1) === CHAR_BACKWARD_SLASH) {
1185
- const code = resolvedPath.charCodeAt(2);
1186
- if (code !== CHAR_QUESTION_MARK && code !== CHAR_DOT) {
1187
- // Matched non-long UNC root, convert the path to a long UNC path
1188
- return `\\\\?\\UNC\\${resolvedPath.slice(2)}`;
1189
- }
1190
- }
1191
- } else if (isWindowsDeviceRoot(resolvedPath.charCodeAt(0))) {
1192
- // Possible device root
1193
- if (resolvedPath.charCodeAt(1) === CHAR_COLON && resolvedPath.charCodeAt(2) === CHAR_BACKWARD_SLASH) {
1194
- // Matched device root, convert the path to a long UNC path
1195
- return `\\\\?\\${resolvedPath}`;
1196
- }
1197
- }
1198
- }
1199
- return path;
1200
- }
1201
-
1202
- // Copyright 2018-2025 the Deno authors. MIT license.
1203
- // This module is browser compatible.
1204
- function common$1(paths, sep) {
1205
- const [first = "", ...remaining] = paths;
1206
- const parts = first.split(sep);
1207
- let endOfPrefix = parts.length;
1208
- let append = "";
1209
- for (const path of remaining){
1210
- const compare = path.split(sep);
1211
- if (compare.length <= endOfPrefix) {
1212
- endOfPrefix = compare.length;
1213
- append = "";
1214
- }
1215
- for(let i = 0; i < endOfPrefix; i++){
1216
- if (compare[i] !== parts[i]) {
1217
- endOfPrefix = i;
1218
- append = i === 0 ? "" : sep;
1219
- break;
1220
- }
1221
- }
1222
- }
1223
- return parts.slice(0, endOfPrefix).join(sep) + append;
1224
- }
1225
-
1226
- // Copyright 2018-2025 the Deno authors. MIT license.
1227
- // This module is browser compatible.
1228
- /**
1229
- * Determines the common path from a set of paths for Windows systems.
1230
- *
1231
- * @example Usage
1232
- * ```ts
1233
- * import { common } from "@std/path/windows/common";
1234
- * import { assertEquals } from "@std/assert";
1235
- *
1236
- * const path = common([
1237
- * "C:\\foo\\bar",
1238
- * "C:\\foo\\baz",
1239
- * ]);
1240
- * assertEquals(path, "C:\\foo\\");
1241
- * ```
1242
- *
1243
- * @param paths The paths to compare.
1244
- * @returns The common path.
1245
- */ function common(paths) {
1246
- return common$1(paths, SEPARATOR);
1247
- }
1248
-
1249
- // Copyright 2018-2025 the Deno authors. MIT license.
1250
- // This module is browser compatible.
1251
- /**
1252
- * Options for {@linkcode globToRegExp}, {@linkcode joinGlobs},
1253
- * {@linkcode normalizeGlob} and {@linkcode expandGlob}.
1254
- */ const REG_EXP_ESCAPE_CHARS = [
1255
- "!",
1256
- "$",
1257
- "(",
1258
- ")",
1259
- "*",
1260
- "+",
1261
- ".",
1262
- "=",
1263
- "?",
1264
- "[",
1265
- "\\",
1266
- "^",
1267
- "{",
1268
- "|"
1269
- ];
1270
- const RANGE_ESCAPE_CHARS = [
1271
- "-",
1272
- "\\",
1273
- "]"
1274
- ];
1275
- function _globToRegExp(c, glob, { extended = true, globstar: globstarOption = true, // os = osType,
1276
- caseInsensitive = false } = {}) {
1277
- if (glob === "") {
1278
- return /(?!)/;
1279
- }
1280
- // Remove trailing separators.
1281
- let newLength = glob.length;
1282
- for(; newLength > 1 && c.seps.includes(glob[newLength - 1]); newLength--);
1283
- glob = glob.slice(0, newLength);
1284
- let regExpString = "";
1285
- // Terminates correctly. Trust that `j` is incremented every iteration.
1286
- for(let j = 0; j < glob.length;){
1287
- let segment = "";
1288
- const groupStack = [];
1289
- let inRange = false;
1290
- let inEscape = false;
1291
- let endsWithSep = false;
1292
- let i = j;
1293
- // Terminates with `i` at the non-inclusive end of the current segment.
1294
- for(; i < glob.length && !(c.seps.includes(glob[i]) && groupStack.length === 0); i++){
1295
- if (inEscape) {
1296
- inEscape = false;
1297
- const escapeChars = inRange ? RANGE_ESCAPE_CHARS : REG_EXP_ESCAPE_CHARS;
1298
- segment += escapeChars.includes(glob[i]) ? `\\${glob[i]}` : glob[i];
1299
- continue;
1300
- }
1301
- if (glob[i] === c.escapePrefix) {
1302
- inEscape = true;
1303
- continue;
1304
- }
1305
- if (glob[i] === "[") {
1306
- if (!inRange) {
1307
- inRange = true;
1308
- segment += "[";
1309
- if (glob[i + 1] === "!") {
1310
- i++;
1311
- segment += "^";
1312
- } else if (glob[i + 1] === "^") {
1313
- i++;
1314
- segment += "\\^";
1315
- }
1316
- continue;
1317
- } else if (glob[i + 1] === ":") {
1318
- let k = i + 1;
1319
- let value = "";
1320
- while(glob[k + 1] !== undefined && glob[k + 1] !== ":"){
1321
- value += glob[k + 1];
1322
- k++;
1323
- }
1324
- if (glob[k + 1] === ":" && glob[k + 2] === "]") {
1325
- i = k + 2;
1326
- if (value === "alnum") segment += "\\dA-Za-z";
1327
- else if (value === "alpha") segment += "A-Za-z";
1328
- else if (value === "ascii") segment += "\x00-\x7F";
1329
- else if (value === "blank") segment += "\t ";
1330
- else if (value === "cntrl") segment += "\x00-\x1F\x7F";
1331
- else if (value === "digit") segment += "\\d";
1332
- else if (value === "graph") segment += "\x21-\x7E";
1333
- else if (value === "lower") segment += "a-z";
1334
- else if (value === "print") segment += "\x20-\x7E";
1335
- else if (value === "punct") {
1336
- segment += "!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~";
1337
- } else if (value === "space") segment += "\\s\v";
1338
- else if (value === "upper") segment += "A-Z";
1339
- else if (value === "word") segment += "\\w";
1340
- else if (value === "xdigit") segment += "\\dA-Fa-f";
1341
- continue;
1342
- }
1343
- }
1344
- }
1345
- if (glob[i] === "]" && inRange) {
1346
- inRange = false;
1347
- segment += "]";
1348
- continue;
1349
- }
1350
- if (inRange) {
1351
- segment += glob[i];
1352
- continue;
1353
- }
1354
- if (glob[i] === ")" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") {
1355
- segment += ")";
1356
- const type = groupStack.pop();
1357
- if (type === "!") {
1358
- segment += c.wildcard;
1359
- } else if (type !== "@") {
1360
- segment += type;
1361
- }
1362
- continue;
1363
- }
1364
- if (glob[i] === "|" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") {
1365
- segment += "|";
1366
- continue;
1367
- }
1368
- if (glob[i] === "+" && extended && glob[i + 1] === "(") {
1369
- i++;
1370
- groupStack.push("+");
1371
- segment += "(?:";
1372
- continue;
1373
- }
1374
- if (glob[i] === "@" && extended && glob[i + 1] === "(") {
1375
- i++;
1376
- groupStack.push("@");
1377
- segment += "(?:";
1378
- continue;
1379
- }
1380
- if (glob[i] === "?") {
1381
- if (extended && glob[i + 1] === "(") {
1382
- i++;
1383
- groupStack.push("?");
1384
- segment += "(?:";
1385
- } else {
1386
- segment += ".";
1387
- }
1388
- continue;
1389
- }
1390
- if (glob[i] === "!" && extended && glob[i + 1] === "(") {
1391
- i++;
1392
- groupStack.push("!");
1393
- segment += "(?!";
1394
- continue;
1395
- }
1396
- if (glob[i] === "{") {
1397
- groupStack.push("BRACE");
1398
- segment += "(?:";
1399
- continue;
1400
- }
1401
- if (glob[i] === "}" && groupStack[groupStack.length - 1] === "BRACE") {
1402
- groupStack.pop();
1403
- segment += ")";
1404
- continue;
1405
- }
1406
- if (glob[i] === "," && groupStack[groupStack.length - 1] === "BRACE") {
1407
- segment += "|";
1408
- continue;
1409
- }
1410
- if (glob[i] === "*") {
1411
- if (extended && glob[i + 1] === "(") {
1412
- i++;
1413
- groupStack.push("*");
1414
- segment += "(?:";
1415
- } else {
1416
- const prevChar = glob[i - 1];
1417
- let numStars = 1;
1418
- while(glob[i + 1] === "*"){
1419
- i++;
1420
- numStars++;
1421
- }
1422
- const nextChar = glob[i + 1];
1423
- if (globstarOption && numStars === 2 && [
1424
- ...c.seps,
1425
- undefined
1426
- ].includes(prevChar) && [
1427
- ...c.seps,
1428
- undefined
1429
- ].includes(nextChar)) {
1430
- segment += c.globstar;
1431
- endsWithSep = true;
1432
- } else {
1433
- segment += c.wildcard;
1434
- }
1435
- }
1436
- continue;
1437
- }
1438
- segment += REG_EXP_ESCAPE_CHARS.includes(glob[i]) ? `\\${glob[i]}` : glob[i];
1439
- }
1440
- // Check for unclosed groups or a dangling backslash.
1441
- if (groupStack.length > 0 || inRange || inEscape) {
1442
- // Parse failure. Take all characters from this segment literally.
1443
- segment = "";
1444
- for (const c of glob.slice(j, i)){
1445
- segment += REG_EXP_ESCAPE_CHARS.includes(c) ? `\\${c}` : c;
1446
- endsWithSep = false;
1447
- }
1448
- }
1449
- regExpString += segment;
1450
- if (!endsWithSep) {
1451
- regExpString += i < glob.length ? c.sep : c.sepMaybe;
1452
- endsWithSep = true;
1453
- }
1454
- // Terminates with `i` at the start of the next segment.
1455
- while(c.seps.includes(glob[i]))i++;
1456
- j = i;
1457
- }
1458
- regExpString = `^${regExpString}$`;
1459
- return new RegExp(regExpString, caseInsensitive ? "i" : "");
1460
- }
1461
-
1462
- // Copyright 2018-2025 the Deno authors. MIT license.
1463
- // This module is browser compatible.
1464
- const constants = {
1465
- sep: "(?:\\\\|/)+",
1466
- sepMaybe: "(?:\\\\|/)*",
1467
- seps: [
1468
- "\\",
1469
- "/"
1470
- ],
1471
- globstar: "(?:[^\\\\/]*(?:\\\\|/|$)+)*",
1472
- wildcard: "[^\\\\/]*",
1473
- escapePrefix: "`"
1474
- };
1475
- /** Convert a glob string to a regular expression.
1476
- *
1477
- * Tries to match bash glob expansion as closely as possible.
1478
- *
1479
- * Basic glob syntax:
1480
- * - `*` - Matches everything without leaving the path segment.
1481
- * - `?` - Matches any single character.
1482
- * - `{foo,bar}` - Matches `foo` or `bar`.
1483
- * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
1484
- * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
1485
- * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
1486
- * - `[[:<class>:]]` - Matches any character belonging to `<class>`.
1487
- * - `[[:alnum:]]` - Matches any digit or letter.
1488
- * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
1489
- * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
1490
- * for a complete list of supported character classes.
1491
- * - `\` - Escapes the next character for an `os` other than `"windows"`.
1492
- * - \` - Escapes the next character for `os` set to `"windows"`.
1493
- * - `/` - Path separator.
1494
- * - `\` - Additional path separator only for `os` set to `"windows"`.
1495
- *
1496
- * Extended syntax:
1497
- * - Requires `{ extended: true }`.
1498
- * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
1499
- * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
1500
- * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
1501
- * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
1502
- * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
1503
- * - See https://www.linuxjournal.com/content/bash-extended-globbing.
1504
- *
1505
- * Globstar syntax:
1506
- * - Requires `{ globstar: true }`.
1507
- * - `**` - Matches any number of any path segments.
1508
- * - Must comprise its entire path segment in the provided glob.
1509
- * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
1510
- *
1511
- * Note the following properties:
1512
- * - The generated `RegExp` is anchored at both start and end.
1513
- * - Repeating and trailing separators are tolerated. Trailing separators in the
1514
- * provided glob have no meaning and are discarded.
1515
- * - Absolute globs will only match absolute paths, etc.
1516
- * - Empty globs will match nothing.
1517
- * - Any special glob syntax must be contained to one path segment. For example,
1518
- * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
1519
- * first segment ends with an unclosed group.
1520
- * - If a path segment ends with unclosed groups or a dangling escape prefix, a
1521
- * parse error has occurred. Every character for that segment is taken
1522
- * literally in this event.
1523
- *
1524
- * Limitations:
1525
- * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
1526
- * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
1527
- * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
1528
- * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
1529
- * the group occurs not nested at the end of the segment.
1530
- *
1531
- * @example Usage
1532
- * ```ts
1533
- * import { globToRegExp } from "@std/path/windows/glob-to-regexp";
1534
- * import { assertEquals } from "@std/assert";
1535
- *
1536
- * assertEquals(globToRegExp("*.js"), /^[^\\/]*\.js(?:\\|\/)*$/);
1537
- * ```
1538
- *
1539
- * @param glob Glob string to convert.
1540
- * @param options Conversion options.
1541
- * @returns The regular expression equivalent to the glob.
1542
- */ function globToRegExp(glob, options = {}) {
1543
- return _globToRegExp(constants, glob, options);
1544
- }
1545
-
1546
- // Copyright 2018-2025 the Deno authors. MIT license.
1547
- // This module is browser compatible.
1548
- /**
1549
- * Test whether the given string is a glob.
1550
- *
1551
- * @example Usage
1552
- * ```ts
1553
- * import { isGlob } from "@std/path/is-glob";
1554
- * import { assert } from "@std/assert";
1555
- *
1556
- * assert(!isGlob("foo/bar/../baz"));
1557
- * assert(isGlob("foo/*ar/../baz"));
1558
- * ```
1559
- *
1560
- * @param str String to test.
1561
- * @returns `true` if the given string is a glob, otherwise `false`
1562
- */ function isGlob(str) {
1563
- const chars = {
1564
- "{": "}",
1565
- "(": ")",
1566
- "[": "]"
1567
- };
1568
- const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\)|@\([^)]+\))/;
1569
- if (str === "") {
1570
- return false;
1571
- }
1572
- let match;
1573
- while(match = regex.exec(str)){
1574
- if (match[2]) return true;
1575
- let idx = match.index + match[0].length;
1576
- // if an open bracket/brace/paren is escaped,
1577
- // set the index to the next closing character
1578
- const open = match[1];
1579
- const close = open ? chars[open] : null;
1580
- if (open && close) {
1581
- const n = str.indexOf(close, idx);
1582
- if (n !== -1) {
1583
- idx = n + 1;
1584
- }
1585
- }
1586
- str = str.slice(idx);
1587
- }
1588
- return false;
1589
- }
1590
-
1591
- // Copyright 2018-2025 the Deno authors. MIT license.
1592
- // This module is browser compatible.
1593
- /**
1594
- * Like normalize(), but doesn't collapse "**\/.." when `globstar` is true.
1595
- *
1596
- * @example Usage
1597
- * ```ts
1598
- * import { normalizeGlob } from "@std/path/windows/normalize-glob";
1599
- * import { assertEquals } from "@std/assert";
1600
- *
1601
- * const normalized = normalizeGlob("**\\foo\\..\\bar", { globstar: true });
1602
- * assertEquals(normalized, "**\\bar");
1603
- * ```
1604
- *
1605
- * @param glob The glob pattern to normalize.
1606
- * @param options The options for glob pattern.
1607
- * @returns The normalized glob pattern.
1608
- */ function normalizeGlob(glob, options = {}) {
1609
- const { globstar = false } = options;
1610
- if (glob.match(/\0/g)) {
1611
- throw new Error(`Glob contains invalid characters: "${glob}"`);
1612
- }
1613
- if (!globstar) {
1614
- return normalize(glob);
1615
- }
1616
- const s = SEPARATOR_PATTERN.source;
1617
- const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
1618
- return normalize(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
1619
- }
1620
-
1621
- // Copyright 2018-2025 the Deno authors. MIT license.
1622
- // This module is browser compatible.
1623
- /**
1624
- * Like join(), but doesn't collapse "**\/.." when `globstar` is true.
1625
- *
1626
- * @example Usage
1627
- *
1628
- * ```ts
1629
- * import { joinGlobs } from "@std/path/windows/join-globs";
1630
- * import { assertEquals } from "@std/assert";
1631
- *
1632
- * const joined = joinGlobs(["foo", "**", "bar"], { globstar: true });
1633
- * assertEquals(joined, "foo\\**\\bar");
1634
- * ```
1635
- *
1636
- * @param globs The globs to join.
1637
- * @param options The options for glob pattern.
1638
- * @returns The joined glob pattern.
1639
- */ function joinGlobs(globs, options = {}) {
1640
- const { globstar = false } = options;
1641
- if (!globstar || globs.length === 0) {
1642
- return join(...globs);
1643
- }
1644
- let joined;
1645
- for (const glob of globs){
1646
- const path = glob;
1647
- if (path.length > 0) {
1648
- if (!joined) joined = path;
1649
- else joined += `${SEPARATOR}${path}`;
1650
- }
1651
- }
1652
- if (!joined) return ".";
1653
- return normalizeGlob(joined, {
1654
- globstar
1655
- });
1656
- }
1657
-
1658
- exports.DELIMITER = DELIMITER;
1659
- exports.SEPARATOR = SEPARATOR;
1660
- exports.SEPARATOR_PATTERN = SEPARATOR_PATTERN;
1661
- exports.basename = basename;
1662
- exports.common = common;
1663
- exports.dirname = dirname;
1664
- exports.extname = extname;
1665
- exports.format = format;
1666
- exports.fromFileUrl = fromFileUrl;
1667
- exports.globToRegExp = globToRegExp;
1668
- exports.isAbsolute = isAbsolute;
1669
- exports.isGlob = isGlob;
1670
- exports.join = join;
1671
- exports.joinGlobs = joinGlobs;
1672
- exports.normalize = normalize;
1673
- exports.normalizeGlob = normalizeGlob;
1674
- exports.parse = parse;
1675
- exports.relative = relative;
1676
- exports.resolve = resolve;
1677
- exports.toFileUrl = toFileUrl;
1678
- exports.toNamespacedPath = toNamespacedPath;