@alexlit/lint-kit 178.0.0 → 180.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (780) hide show
  1. package/eslint.config.js +5 -0
  2. package/package.json +1 -1
  3. package/packages/config-eslint/package.json +2 -2
  4. package/packages/config-eslint/plugins/tailwindcss.js +2 -2
  5. package/packages/config-eslint/plugins/vitest.js +3 -3
  6. package/packages/config-eslint/presets/default.js +0 -4
  7. package/packages/config-eslint/node_modules/@eslint/config-array/LICENSE +0 -201
  8. package/packages/config-eslint/node_modules/@eslint/config-array/README.md +0 -368
  9. package/packages/config-eslint/node_modules/@eslint/config-array/dist/cjs/index.cjs +0 -1536
  10. package/packages/config-eslint/node_modules/@eslint/config-array/dist/cjs/index.d.cts +0 -144
  11. package/packages/config-eslint/node_modules/@eslint/config-array/dist/cjs/std__path/posix.cjs +0 -1336
  12. package/packages/config-eslint/node_modules/@eslint/config-array/dist/cjs/std__path/windows.cjs +0 -1678
  13. package/packages/config-eslint/node_modules/@eslint/config-array/dist/cjs/types.cts +0 -29
  14. package/packages/config-eslint/node_modules/@eslint/config-array/dist/esm/index.d.ts +0 -144
  15. package/packages/config-eslint/node_modules/@eslint/config-array/dist/esm/index.js +0 -1511
  16. package/packages/config-eslint/node_modules/@eslint/config-array/dist/esm/std__path/posix.js +0 -1314
  17. package/packages/config-eslint/node_modules/@eslint/config-array/dist/esm/std__path/windows.js +0 -1656
  18. package/packages/config-eslint/node_modules/@eslint/config-array/dist/esm/types.d.ts +0 -23
  19. package/packages/config-eslint/node_modules/@eslint/config-array/dist/esm/types.ts +0 -29
  20. package/packages/config-eslint/node_modules/@eslint/config-array/package.json +0 -65
  21. package/packages/config-eslint/node_modules/@eslint/config-helpers/LICENSE +0 -201
  22. package/packages/config-eslint/node_modules/@eslint/config-helpers/README.md +0 -97
  23. package/packages/config-eslint/node_modules/@eslint/config-helpers/dist/cjs/index.cjs +0 -588
  24. package/packages/config-eslint/node_modules/@eslint/config-helpers/dist/cjs/index.d.cts +0 -26
  25. package/packages/config-eslint/node_modules/@eslint/config-helpers/dist/cjs/types.cts +0 -29
  26. package/packages/config-eslint/node_modules/@eslint/config-helpers/dist/esm/index.d.ts +0 -26
  27. package/packages/config-eslint/node_modules/@eslint/config-helpers/dist/esm/index.js +0 -586
  28. package/packages/config-eslint/node_modules/@eslint/config-helpers/dist/esm/types.d.ts +0 -23
  29. package/packages/config-eslint/node_modules/@eslint/config-helpers/dist/esm/types.ts +0 -29
  30. package/packages/config-eslint/node_modules/@eslint/config-helpers/package.json +0 -60
  31. package/packages/config-eslint/node_modules/@eslint/js/LICENSE +0 -19
  32. package/packages/config-eslint/node_modules/@eslint/js/README.md +0 -103
  33. package/packages/config-eslint/node_modules/@eslint/js/package.json +0 -44
  34. package/packages/config-eslint/node_modules/@eslint/js/src/configs/eslint-all.js +0 -210
  35. package/packages/config-eslint/node_modules/@eslint/js/src/configs/eslint-recommended.js +0 -75
  36. package/packages/config-eslint/node_modules/@eslint/js/src/index.js +0 -23
  37. package/packages/config-eslint/node_modules/@eslint/js/types/index.d.ts +0 -14
  38. package/packages/config-eslint/node_modules/@eslint/object-schema/LICENSE +0 -201
  39. package/packages/config-eslint/node_modules/@eslint/object-schema/README.md +0 -243
  40. package/packages/config-eslint/node_modules/@eslint/object-schema/dist/cjs/index.cjs +0 -459
  41. package/packages/config-eslint/node_modules/@eslint/object-schema/dist/cjs/index.d.cts +0 -127
  42. package/packages/config-eslint/node_modules/@eslint/object-schema/dist/cjs/types.cts +0 -57
  43. package/packages/config-eslint/node_modules/@eslint/object-schema/dist/esm/index.d.ts +0 -127
  44. package/packages/config-eslint/node_modules/@eslint/object-schema/dist/esm/index.js +0 -456
  45. package/packages/config-eslint/node_modules/@eslint/object-schema/dist/esm/types.d.ts +0 -40
  46. package/packages/config-eslint/node_modules/@eslint/object-schema/dist/esm/types.ts +0 -57
  47. package/packages/config-eslint/node_modules/@eslint/object-schema/package.json +0 -62
  48. package/packages/config-eslint/node_modules/@isaacs/cliui/LICENSE.md +0 -63
  49. package/packages/config-eslint/node_modules/@isaacs/cliui/README.md +0 -151
  50. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts +0 -4
  51. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts.map +0 -1
  52. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js +0 -16
  53. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js.map +0 -1
  54. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.d.ts +0 -34
  55. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.d.ts.map +0 -1
  56. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.js +0 -170
  57. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.js.map +0 -1
  58. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.d.ts +0 -6
  59. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.d.ts.map +0 -1
  60. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.js +0 -307
  61. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.js.map +0 -1
  62. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.d.ts +0 -2
  63. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.d.ts.map +0 -1
  64. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.js +0 -7
  65. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.js.map +0 -1
  66. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/index.d.ts +0 -41
  67. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/index.d.ts.map +0 -1
  68. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/index.js +0 -322
  69. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/index.js.map +0 -1
  70. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/index.min.js +0 -12
  71. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/index.min.js.map +0 -7
  72. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/package.json +0 -3
  73. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.d.ts +0 -5
  74. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.d.ts.map +0 -1
  75. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.js +0 -49
  76. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.js.map +0 -1
  77. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.d.ts +0 -2
  78. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.d.ts.map +0 -1
  79. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.js +0 -8
  80. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.js.map +0 -1
  81. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.d.ts +0 -7
  82. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.d.ts.map +0 -1
  83. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.js +0 -176
  84. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.js.map +0 -1
  85. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.d.ts +0 -4
  86. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.d.ts.map +0 -1
  87. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.js +0 -12
  88. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.js.map +0 -1
  89. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.d.ts +0 -34
  90. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.d.ts.map +0 -1
  91. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.js +0 -167
  92. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.js.map +0 -1
  93. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.d.ts +0 -6
  94. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.d.ts.map +0 -1
  95. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.js +0 -299
  96. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.js.map +0 -1
  97. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.d.ts +0 -2
  98. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.d.ts.map +0 -1
  99. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.js +0 -3
  100. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.js.map +0 -1
  101. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/index.d.ts +0 -41
  102. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/index.d.ts.map +0 -1
  103. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/index.js +0 -317
  104. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/index.js.map +0 -1
  105. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/index.min.js +0 -12
  106. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/index.min.js.map +0 -7
  107. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/package.json +0 -3
  108. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/string-width/index.d.ts +0 -5
  109. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/string-width/index.d.ts.map +0 -1
  110. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/string-width/index.js +0 -46
  111. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/string-width/index.js.map +0 -1
  112. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.d.ts +0 -2
  113. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.d.ts.map +0 -1
  114. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.js +0 -4
  115. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.js.map +0 -1
  116. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.d.ts +0 -7
  117. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.d.ts.map +0 -1
  118. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.js +0 -172
  119. package/packages/config-eslint/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.js.map +0 -1
  120. package/packages/config-eslint/node_modules/@isaacs/cliui/package.json +0 -163
  121. package/packages/config-eslint/node_modules/ajv/.tonic_example.js +0 -20
  122. package/packages/config-eslint/node_modules/ajv/LICENSE +0 -22
  123. package/packages/config-eslint/node_modules/ajv/README.md +0 -1497
  124. package/packages/config-eslint/node_modules/ajv/dist/ajv.bundle.js +0 -7189
  125. package/packages/config-eslint/node_modules/ajv/dist/ajv.min.js +0 -3
  126. package/packages/config-eslint/node_modules/ajv/dist/ajv.min.js.map +0 -1
  127. package/packages/config-eslint/node_modules/ajv/lib/ajv.d.ts +0 -397
  128. package/packages/config-eslint/node_modules/ajv/lib/ajv.js +0 -506
  129. package/packages/config-eslint/node_modules/ajv/lib/cache.js +0 -26
  130. package/packages/config-eslint/node_modules/ajv/lib/compile/async.js +0 -90
  131. package/packages/config-eslint/node_modules/ajv/lib/compile/equal.js +0 -5
  132. package/packages/config-eslint/node_modules/ajv/lib/compile/error_classes.js +0 -34
  133. package/packages/config-eslint/node_modules/ajv/lib/compile/formats.js +0 -142
  134. package/packages/config-eslint/node_modules/ajv/lib/compile/index.js +0 -387
  135. package/packages/config-eslint/node_modules/ajv/lib/compile/resolve.js +0 -270
  136. package/packages/config-eslint/node_modules/ajv/lib/compile/rules.js +0 -66
  137. package/packages/config-eslint/node_modules/ajv/lib/compile/schema_obj.js +0 -9
  138. package/packages/config-eslint/node_modules/ajv/lib/compile/ucs2length.js +0 -20
  139. package/packages/config-eslint/node_modules/ajv/lib/compile/util.js +0 -239
  140. package/packages/config-eslint/node_modules/ajv/lib/data.js +0 -49
  141. package/packages/config-eslint/node_modules/ajv/lib/definition_schema.js +0 -37
  142. package/packages/config-eslint/node_modules/ajv/lib/dot/_limit.jst +0 -113
  143. package/packages/config-eslint/node_modules/ajv/lib/dot/_limitItems.jst +0 -12
  144. package/packages/config-eslint/node_modules/ajv/lib/dot/_limitLength.jst +0 -12
  145. package/packages/config-eslint/node_modules/ajv/lib/dot/_limitProperties.jst +0 -12
  146. package/packages/config-eslint/node_modules/ajv/lib/dot/allOf.jst +0 -32
  147. package/packages/config-eslint/node_modules/ajv/lib/dot/anyOf.jst +0 -46
  148. package/packages/config-eslint/node_modules/ajv/lib/dot/coerce.def +0 -51
  149. package/packages/config-eslint/node_modules/ajv/lib/dot/comment.jst +0 -9
  150. package/packages/config-eslint/node_modules/ajv/lib/dot/const.jst +0 -11
  151. package/packages/config-eslint/node_modules/ajv/lib/dot/contains.jst +0 -55
  152. package/packages/config-eslint/node_modules/ajv/lib/dot/custom.jst +0 -191
  153. package/packages/config-eslint/node_modules/ajv/lib/dot/defaults.def +0 -47
  154. package/packages/config-eslint/node_modules/ajv/lib/dot/definitions.def +0 -203
  155. package/packages/config-eslint/node_modules/ajv/lib/dot/dependencies.jst +0 -79
  156. package/packages/config-eslint/node_modules/ajv/lib/dot/enum.jst +0 -30
  157. package/packages/config-eslint/node_modules/ajv/lib/dot/errors.def +0 -194
  158. package/packages/config-eslint/node_modules/ajv/lib/dot/format.jst +0 -106
  159. package/packages/config-eslint/node_modules/ajv/lib/dot/if.jst +0 -73
  160. package/packages/config-eslint/node_modules/ajv/lib/dot/items.jst +0 -98
  161. package/packages/config-eslint/node_modules/ajv/lib/dot/missing.def +0 -39
  162. package/packages/config-eslint/node_modules/ajv/lib/dot/multipleOf.jst +0 -22
  163. package/packages/config-eslint/node_modules/ajv/lib/dot/not.jst +0 -43
  164. package/packages/config-eslint/node_modules/ajv/lib/dot/oneOf.jst +0 -54
  165. package/packages/config-eslint/node_modules/ajv/lib/dot/pattern.jst +0 -14
  166. package/packages/config-eslint/node_modules/ajv/lib/dot/properties.jst +0 -245
  167. package/packages/config-eslint/node_modules/ajv/lib/dot/propertyNames.jst +0 -52
  168. package/packages/config-eslint/node_modules/ajv/lib/dot/ref.jst +0 -85
  169. package/packages/config-eslint/node_modules/ajv/lib/dot/required.jst +0 -108
  170. package/packages/config-eslint/node_modules/ajv/lib/dot/uniqueItems.jst +0 -62
  171. package/packages/config-eslint/node_modules/ajv/lib/dot/validate.jst +0 -276
  172. package/packages/config-eslint/node_modules/ajv/lib/dotjs/README.md +0 -3
  173. package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limit.js +0 -163
  174. package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limitItems.js +0 -80
  175. package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limitLength.js +0 -85
  176. package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limitProperties.js +0 -80
  177. package/packages/config-eslint/node_modules/ajv/lib/dotjs/allOf.js +0 -42
  178. package/packages/config-eslint/node_modules/ajv/lib/dotjs/anyOf.js +0 -73
  179. package/packages/config-eslint/node_modules/ajv/lib/dotjs/comment.js +0 -14
  180. package/packages/config-eslint/node_modules/ajv/lib/dotjs/const.js +0 -56
  181. package/packages/config-eslint/node_modules/ajv/lib/dotjs/contains.js +0 -81
  182. package/packages/config-eslint/node_modules/ajv/lib/dotjs/custom.js +0 -228
  183. package/packages/config-eslint/node_modules/ajv/lib/dotjs/dependencies.js +0 -168
  184. package/packages/config-eslint/node_modules/ajv/lib/dotjs/enum.js +0 -66
  185. package/packages/config-eslint/node_modules/ajv/lib/dotjs/format.js +0 -150
  186. package/packages/config-eslint/node_modules/ajv/lib/dotjs/if.js +0 -103
  187. package/packages/config-eslint/node_modules/ajv/lib/dotjs/index.js +0 -33
  188. package/packages/config-eslint/node_modules/ajv/lib/dotjs/items.js +0 -140
  189. package/packages/config-eslint/node_modules/ajv/lib/dotjs/multipleOf.js +0 -80
  190. package/packages/config-eslint/node_modules/ajv/lib/dotjs/not.js +0 -84
  191. package/packages/config-eslint/node_modules/ajv/lib/dotjs/oneOf.js +0 -73
  192. package/packages/config-eslint/node_modules/ajv/lib/dotjs/pattern.js +0 -75
  193. package/packages/config-eslint/node_modules/ajv/lib/dotjs/properties.js +0 -335
  194. package/packages/config-eslint/node_modules/ajv/lib/dotjs/propertyNames.js +0 -81
  195. package/packages/config-eslint/node_modules/ajv/lib/dotjs/ref.js +0 -124
  196. package/packages/config-eslint/node_modules/ajv/lib/dotjs/required.js +0 -270
  197. package/packages/config-eslint/node_modules/ajv/lib/dotjs/uniqueItems.js +0 -86
  198. package/packages/config-eslint/node_modules/ajv/lib/dotjs/validate.js +0 -482
  199. package/packages/config-eslint/node_modules/ajv/lib/keyword.js +0 -146
  200. package/packages/config-eslint/node_modules/ajv/lib/refs/data.json +0 -17
  201. package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-draft-04.json +0 -149
  202. package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -154
  203. package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -168
  204. package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-secure.json +0 -94
  205. package/packages/config-eslint/node_modules/ajv/package.json +0 -106
  206. package/packages/config-eslint/node_modules/ajv/scripts/.eslintrc.yml +0 -3
  207. package/packages/config-eslint/node_modules/ajv/scripts/bundle.js +0 -61
  208. package/packages/config-eslint/node_modules/ajv/scripts/compile-dots.js +0 -73
  209. package/packages/config-eslint/node_modules/ajv/scripts/info +0 -10
  210. package/packages/config-eslint/node_modules/ajv/scripts/prepare-tests +0 -12
  211. package/packages/config-eslint/node_modules/ajv/scripts/publish-built-version +0 -32
  212. package/packages/config-eslint/node_modules/ajv/scripts/travis-gh-pages +0 -23
  213. package/packages/config-eslint/node_modules/balanced-match/LICENSE.md +0 -23
  214. package/packages/config-eslint/node_modules/balanced-match/README.md +0 -57
  215. package/packages/config-eslint/node_modules/balanced-match/dist/commonjs/index.d.ts +0 -9
  216. package/packages/config-eslint/node_modules/balanced-match/dist/commonjs/index.d.ts.map +0 -1
  217. package/packages/config-eslint/node_modules/balanced-match/dist/commonjs/index.js +0 -59
  218. package/packages/config-eslint/node_modules/balanced-match/dist/commonjs/index.js.map +0 -1
  219. package/packages/config-eslint/node_modules/balanced-match/dist/commonjs/package.json +0 -3
  220. package/packages/config-eslint/node_modules/balanced-match/dist/esm/index.d.ts +0 -9
  221. package/packages/config-eslint/node_modules/balanced-match/dist/esm/index.d.ts.map +0 -1
  222. package/packages/config-eslint/node_modules/balanced-match/dist/esm/index.js +0 -54
  223. package/packages/config-eslint/node_modules/balanced-match/dist/esm/index.js.map +0 -1
  224. package/packages/config-eslint/node_modules/balanced-match/dist/esm/package.json +0 -3
  225. package/packages/config-eslint/node_modules/balanced-match/package.json +0 -71
  226. package/packages/config-eslint/node_modules/brace-expansion/LICENSE +0 -23
  227. package/packages/config-eslint/node_modules/brace-expansion/README.md +0 -94
  228. package/packages/config-eslint/node_modules/brace-expansion/dist/commonjs/index.d.ts +0 -6
  229. package/packages/config-eslint/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +0 -1
  230. package/packages/config-eslint/node_modules/brace-expansion/dist/commonjs/index.js +0 -199
  231. package/packages/config-eslint/node_modules/brace-expansion/dist/commonjs/index.js.map +0 -1
  232. package/packages/config-eslint/node_modules/brace-expansion/dist/commonjs/package.json +0 -3
  233. package/packages/config-eslint/node_modules/brace-expansion/dist/esm/index.d.ts +0 -6
  234. package/packages/config-eslint/node_modules/brace-expansion/dist/esm/index.d.ts.map +0 -1
  235. package/packages/config-eslint/node_modules/brace-expansion/dist/esm/index.js +0 -195
  236. package/packages/config-eslint/node_modules/brace-expansion/dist/esm/index.js.map +0 -1
  237. package/packages/config-eslint/node_modules/brace-expansion/dist/esm/package.json +0 -3
  238. package/packages/config-eslint/node_modules/brace-expansion/package.json +0 -64
  239. package/packages/config-eslint/node_modules/eslint/LICENSE +0 -19
  240. package/packages/config-eslint/node_modules/eslint/README.md +0 -363
  241. package/packages/config-eslint/node_modules/eslint/bin/eslint.js +0 -195
  242. package/packages/config-eslint/node_modules/eslint/conf/ecma-version.js +0 -16
  243. package/packages/config-eslint/node_modules/eslint/conf/globals.js +0 -169
  244. package/packages/config-eslint/node_modules/eslint/conf/replacements.json +0 -26
  245. package/packages/config-eslint/node_modules/eslint/conf/rule-type-list.json +0 -91
  246. package/packages/config-eslint/node_modules/eslint/lib/api.js +0 -39
  247. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json +0 -18
  248. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/html.js +0 -359
  249. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js +0 -16
  250. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/json.js +0 -13
  251. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/stylish.js +0 -153
  252. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/hash.js +0 -35
  253. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/lint-result-cache.js +0 -220
  254. package/packages/config-eslint/node_modules/eslint/lib/cli.js +0 -521
  255. package/packages/config-eslint/node_modules/eslint/lib/config/config-loader.js +0 -668
  256. package/packages/config-eslint/node_modules/eslint/lib/config/config.js +0 -674
  257. package/packages/config-eslint/node_modules/eslint/lib/config/default-config.js +0 -78
  258. package/packages/config-eslint/node_modules/eslint/lib/config/flat-config-array.js +0 -217
  259. package/packages/config-eslint/node_modules/eslint/lib/config/flat-config-schema.js +0 -598
  260. package/packages/config-eslint/node_modules/eslint/lib/config-api.js +0 -12
  261. package/packages/config-eslint/node_modules/eslint/lib/eslint/eslint-helpers.js +0 -1462
  262. package/packages/config-eslint/node_modules/eslint/lib/eslint/eslint.js +0 -1364
  263. package/packages/config-eslint/node_modules/eslint/lib/eslint/index.js +0 -7
  264. package/packages/config-eslint/node_modules/eslint/lib/eslint/worker.js +0 -173
  265. package/packages/config-eslint/node_modules/eslint/lib/languages/js/index.js +0 -336
  266. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/index.js +0 -7
  267. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/source-code.js +0 -1178
  268. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-comment-cursor.js +0 -61
  269. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-cursor.js +0 -57
  270. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/cursor.js +0 -76
  271. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/cursors.js +0 -120
  272. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/decorative-cursor.js +0 -38
  273. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/filter-cursor.js +0 -42
  274. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-comment-cursor.js +0 -65
  275. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-cursor.js +0 -62
  276. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/index.js +0 -695
  277. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/limit-cursor.js +0 -39
  278. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/padded-token-cursor.js +0 -45
  279. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/skip-cursor.js +0 -41
  280. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/utils.js +0 -131
  281. package/packages/config-eslint/node_modules/eslint/lib/languages/js/validate-language-options.js +0 -196
  282. package/packages/config-eslint/node_modules/eslint/lib/linter/apply-disable-directives.js +0 -583
  283. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +0 -828
  284. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js +0 -262
  285. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js +0 -2370
  286. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +0 -332
  287. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +0 -223
  288. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +0 -374
  289. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/id-generator.js +0 -44
  290. package/packages/config-eslint/node_modules/eslint/lib/linter/esquery.js +0 -332
  291. package/packages/config-eslint/node_modules/eslint/lib/linter/file-context.js +0 -88
  292. package/packages/config-eslint/node_modules/eslint/lib/linter/file-report.js +0 -604
  293. package/packages/config-eslint/node_modules/eslint/lib/linter/index.js +0 -11
  294. package/packages/config-eslint/node_modules/eslint/lib/linter/interpolate.js +0 -50
  295. package/packages/config-eslint/node_modules/eslint/lib/linter/linter.js +0 -1614
  296. package/packages/config-eslint/node_modules/eslint/lib/linter/rule-fixer.js +0 -199
  297. package/packages/config-eslint/node_modules/eslint/lib/linter/source-code-fixer.js +0 -154
  298. package/packages/config-eslint/node_modules/eslint/lib/linter/source-code-traverser.js +0 -333
  299. package/packages/config-eslint/node_modules/eslint/lib/linter/source-code-visitor.js +0 -81
  300. package/packages/config-eslint/node_modules/eslint/lib/linter/timing.js +0 -209
  301. package/packages/config-eslint/node_modules/eslint/lib/linter/vfile.js +0 -115
  302. package/packages/config-eslint/node_modules/eslint/lib/options.js +0 -416
  303. package/packages/config-eslint/node_modules/eslint/lib/rule-tester/index.js +0 -7
  304. package/packages/config-eslint/node_modules/eslint/lib/rule-tester/rule-tester.js +0 -1996
  305. package/packages/config-eslint/node_modules/eslint/lib/rules/accessor-pairs.js +0 -420
  306. package/packages/config-eslint/node_modules/eslint/lib/rules/array-bracket-newline.js +0 -291
  307. package/packages/config-eslint/node_modules/eslint/lib/rules/array-bracket-spacing.js +0 -301
  308. package/packages/config-eslint/node_modules/eslint/lib/rules/array-callback-return.js +0 -510
  309. package/packages/config-eslint/node_modules/eslint/lib/rules/array-element-newline.js +0 -374
  310. package/packages/config-eslint/node_modules/eslint/lib/rules/arrow-body-style.js +0 -418
  311. package/packages/config-eslint/node_modules/eslint/lib/rules/arrow-parens.js +0 -237
  312. package/packages/config-eslint/node_modules/eslint/lib/rules/arrow-spacing.js +0 -188
  313. package/packages/config-eslint/node_modules/eslint/lib/rules/block-scoped-var.js +0 -137
  314. package/packages/config-eslint/node_modules/eslint/lib/rules/block-spacing.js +0 -202
  315. package/packages/config-eslint/node_modules/eslint/lib/rules/brace-style.js +0 -278
  316. package/packages/config-eslint/node_modules/eslint/lib/rules/callback-return.js +0 -216
  317. package/packages/config-eslint/node_modules/eslint/lib/rules/camelcase.js +0 -422
  318. package/packages/config-eslint/node_modules/eslint/lib/rules/capitalized-comments.js +0 -325
  319. package/packages/config-eslint/node_modules/eslint/lib/rules/class-methods-use-this.js +0 -250
  320. package/packages/config-eslint/node_modules/eslint/lib/rules/comma-dangle.js +0 -424
  321. package/packages/config-eslint/node_modules/eslint/lib/rules/comma-spacing.js +0 -205
  322. package/packages/config-eslint/node_modules/eslint/lib/rules/comma-style.js +0 -391
  323. package/packages/config-eslint/node_modules/eslint/lib/rules/complexity.js +0 -201
  324. package/packages/config-eslint/node_modules/eslint/lib/rules/computed-property-spacing.js +0 -251
  325. package/packages/config-eslint/node_modules/eslint/lib/rules/consistent-return.js +0 -221
  326. package/packages/config-eslint/node_modules/eslint/lib/rules/consistent-this.js +0 -179
  327. package/packages/config-eslint/node_modules/eslint/lib/rules/constructor-super.js +0 -453
  328. package/packages/config-eslint/node_modules/eslint/lib/rules/curly.js +0 -425
  329. package/packages/config-eslint/node_modules/eslint/lib/rules/default-case-last.js +0 -51
  330. package/packages/config-eslint/node_modules/eslint/lib/rules/default-case.js +0 -103
  331. package/packages/config-eslint/node_modules/eslint/lib/rules/default-param-last.js +0 -78
  332. package/packages/config-eslint/node_modules/eslint/lib/rules/dot-location.js +0 -138
  333. package/packages/config-eslint/node_modules/eslint/lib/rules/dot-notation.js +0 -216
  334. package/packages/config-eslint/node_modules/eslint/lib/rules/eol-last.js +0 -135
  335. package/packages/config-eslint/node_modules/eslint/lib/rules/eqeqeq.js +0 -210
  336. package/packages/config-eslint/node_modules/eslint/lib/rules/for-direction.js +0 -168
  337. package/packages/config-eslint/node_modules/eslint/lib/rules/func-call-spacing.js +0 -281
  338. package/packages/config-eslint/node_modules/eslint/lib/rules/func-name-matching.js +0 -338
  339. package/packages/config-eslint/node_modules/eslint/lib/rules/func-names.js +0 -194
  340. package/packages/config-eslint/node_modules/eslint/lib/rules/func-style.js +0 -221
  341. package/packages/config-eslint/node_modules/eslint/lib/rules/function-call-argument-newline.js +0 -166
  342. package/packages/config-eslint/node_modules/eslint/lib/rules/function-paren-newline.js +0 -368
  343. package/packages/config-eslint/node_modules/eslint/lib/rules/generator-star-spacing.js +0 -246
  344. package/packages/config-eslint/node_modules/eslint/lib/rules/getter-return.js +0 -242
  345. package/packages/config-eslint/node_modules/eslint/lib/rules/global-require.js +0 -117
  346. package/packages/config-eslint/node_modules/eslint/lib/rules/grouped-accessor-pairs.js +0 -268
  347. package/packages/config-eslint/node_modules/eslint/lib/rules/guard-for-in.js +0 -85
  348. package/packages/config-eslint/node_modules/eslint/lib/rules/handle-callback-err.js +0 -122
  349. package/packages/config-eslint/node_modules/eslint/lib/rules/id-blacklist.js +0 -241
  350. package/packages/config-eslint/node_modules/eslint/lib/rules/id-denylist.js +0 -223
  351. package/packages/config-eslint/node_modules/eslint/lib/rules/id-length.js +0 -217
  352. package/packages/config-eslint/node_modules/eslint/lib/rules/id-match.js +0 -363
  353. package/packages/config-eslint/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js +0 -125
  354. package/packages/config-eslint/node_modules/eslint/lib/rules/indent-legacy.js +0 -1369
  355. package/packages/config-eslint/node_modules/eslint/lib/rules/indent.js +0 -2334
  356. package/packages/config-eslint/node_modules/eslint/lib/rules/index.js +0 -332
  357. package/packages/config-eslint/node_modules/eslint/lib/rules/init-declarations.js +0 -172
  358. package/packages/config-eslint/node_modules/eslint/lib/rules/jsx-quotes.js +0 -128
  359. package/packages/config-eslint/node_modules/eslint/lib/rules/key-spacing.js +0 -822
  360. package/packages/config-eslint/node_modules/eslint/lib/rules/keyword-spacing.js +0 -701
  361. package/packages/config-eslint/node_modules/eslint/lib/rules/line-comment-position.js +0 -157
  362. package/packages/config-eslint/node_modules/eslint/lib/rules/linebreak-style.js +0 -135
  363. package/packages/config-eslint/node_modules/eslint/lib/rules/lines-around-comment.js +0 -581
  364. package/packages/config-eslint/node_modules/eslint/lib/rules/lines-around-directive.js +0 -249
  365. package/packages/config-eslint/node_modules/eslint/lib/rules/lines-between-class-members.js +0 -358
  366. package/packages/config-eslint/node_modules/eslint/lib/rules/logical-assignment-operators.js +0 -688
  367. package/packages/config-eslint/node_modules/eslint/lib/rules/max-classes-per-file.js +0 -90
  368. package/packages/config-eslint/node_modules/eslint/lib/rules/max-depth.js +0 -159
  369. package/packages/config-eslint/node_modules/eslint/lib/rules/max-len.js +0 -497
  370. package/packages/config-eslint/node_modules/eslint/lib/rules/max-lines-per-function.js +0 -238
  371. package/packages/config-eslint/node_modules/eslint/lib/rules/max-lines.js +0 -189
  372. package/packages/config-eslint/node_modules/eslint/lib/rules/max-nested-callbacks.js +0 -115
  373. package/packages/config-eslint/node_modules/eslint/lib/rules/max-params.js +0 -148
  374. package/packages/config-eslint/node_modules/eslint/lib/rules/max-statements-per-line.js +0 -224
  375. package/packages/config-eslint/node_modules/eslint/lib/rules/max-statements.js +0 -188
  376. package/packages/config-eslint/node_modules/eslint/lib/rules/multiline-comment-style.js +0 -652
  377. package/packages/config-eslint/node_modules/eslint/lib/rules/multiline-ternary.js +0 -257
  378. package/packages/config-eslint/node_modules/eslint/lib/rules/new-cap.js +0 -277
  379. package/packages/config-eslint/node_modules/eslint/lib/rules/new-parens.js +0 -120
  380. package/packages/config-eslint/node_modules/eslint/lib/rules/newline-after-var.js +0 -307
  381. package/packages/config-eslint/node_modules/eslint/lib/rules/newline-before-return.js +0 -242
  382. package/packages/config-eslint/node_modules/eslint/lib/rules/newline-per-chained-call.js +0 -159
  383. package/packages/config-eslint/node_modules/eslint/lib/rules/no-alert.js +0 -149
  384. package/packages/config-eslint/node_modules/eslint/lib/rules/no-array-constructor.js +0 -195
  385. package/packages/config-eslint/node_modules/eslint/lib/rules/no-async-promise-executor.js +0 -45
  386. package/packages/config-eslint/node_modules/eslint/lib/rules/no-await-in-loop.js +0 -115
  387. package/packages/config-eslint/node_modules/eslint/lib/rules/no-bitwise.js +0 -145
  388. package/packages/config-eslint/node_modules/eslint/lib/rules/no-buffer-constructor.js +0 -74
  389. package/packages/config-eslint/node_modules/eslint/lib/rules/no-caller.js +0 -52
  390. package/packages/config-eslint/node_modules/eslint/lib/rules/no-case-declarations.js +0 -80
  391. package/packages/config-eslint/node_modules/eslint/lib/rules/no-catch-shadow.js +0 -96
  392. package/packages/config-eslint/node_modules/eslint/lib/rules/no-class-assign.js +0 -66
  393. package/packages/config-eslint/node_modules/eslint/lib/rules/no-compare-neg-zero.js +0 -74
  394. package/packages/config-eslint/node_modules/eslint/lib/rules/no-cond-assign.js +0 -175
  395. package/packages/config-eslint/node_modules/eslint/lib/rules/no-confusing-arrow.js +0 -127
  396. package/packages/config-eslint/node_modules/eslint/lib/rules/no-console.js +0 -221
  397. package/packages/config-eslint/node_modules/eslint/lib/rules/no-const-assign.js +0 -73
  398. package/packages/config-eslint/node_modules/eslint/lib/rules/no-constant-binary-expression.js +0 -603
  399. package/packages/config-eslint/node_modules/eslint/lib/rules/no-constant-condition.js +0 -177
  400. package/packages/config-eslint/node_modules/eslint/lib/rules/no-constructor-return.js +0 -62
  401. package/packages/config-eslint/node_modules/eslint/lib/rules/no-continue.js +0 -38
  402. package/packages/config-eslint/node_modules/eslint/lib/rules/no-control-regex.js +0 -142
  403. package/packages/config-eslint/node_modules/eslint/lib/rules/no-debugger.js +0 -41
  404. package/packages/config-eslint/node_modules/eslint/lib/rules/no-delete-var.js +0 -42
  405. package/packages/config-eslint/node_modules/eslint/lib/rules/no-div-regex.js +0 -60
  406. package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-args.js +0 -92
  407. package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-class-members.js +0 -117
  408. package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-else-if.js +0 -145
  409. package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-keys.js +0 -165
  410. package/packages/config-eslint/node_modules/eslint/lib/rules/no-duplicate-case.js +0 -78
  411. package/packages/config-eslint/node_modules/eslint/lib/rules/no-duplicate-imports.js +0 -368
  412. package/packages/config-eslint/node_modules/eslint/lib/rules/no-else-return.js +0 -450
  413. package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-character-class.js +0 -83
  414. package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-function.js +0 -236
  415. package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-pattern.js +0 -85
  416. package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-static-block.js +0 -73
  417. package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty.js +0 -153
  418. package/packages/config-eslint/node_modules/eslint/lib/rules/no-eq-null.js +0 -51
  419. package/packages/config-eslint/node_modules/eslint/lib/rules/no-eval.js +0 -295
  420. package/packages/config-eslint/node_modules/eslint/lib/rules/no-ex-assign.js +0 -57
  421. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extend-native.js +0 -180
  422. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-bind.js +0 -224
  423. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-boolean-cast.js +0 -420
  424. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-label.js +0 -169
  425. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-parens.js +0 -1669
  426. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-semi.js +0 -167
  427. package/packages/config-eslint/node_modules/eslint/lib/rules/no-fallthrough.js +0 -260
  428. package/packages/config-eslint/node_modules/eslint/lib/rules/no-floating-decimal.js +0 -99
  429. package/packages/config-eslint/node_modules/eslint/lib/rules/no-func-assign.js +0 -77
  430. package/packages/config-eslint/node_modules/eslint/lib/rules/no-global-assign.js +0 -101
  431. package/packages/config-eslint/node_modules/eslint/lib/rules/no-implicit-coercion.js +0 -468
  432. package/packages/config-eslint/node_modules/eslint/lib/rules/no-implicit-globals.js +0 -187
  433. package/packages/config-eslint/node_modules/eslint/lib/rules/no-implied-eval.js +0 -171
  434. package/packages/config-eslint/node_modules/eslint/lib/rules/no-import-assign.js +0 -227
  435. package/packages/config-eslint/node_modules/eslint/lib/rules/no-inline-comments.js +0 -115
  436. package/packages/config-eslint/node_modules/eslint/lib/rules/no-inner-declarations.js +0 -147
  437. package/packages/config-eslint/node_modules/eslint/lib/rules/no-invalid-regexp.js +0 -244
  438. package/packages/config-eslint/node_modules/eslint/lib/rules/no-invalid-this.js +0 -178
  439. package/packages/config-eslint/node_modules/eslint/lib/rules/no-irregular-whitespace.js +0 -292
  440. package/packages/config-eslint/node_modules/eslint/lib/rules/no-iterator.js +0 -48
  441. package/packages/config-eslint/node_modules/eslint/lib/rules/no-label-var.js +0 -78
  442. package/packages/config-eslint/node_modules/eslint/lib/rules/no-labels.js +0 -156
  443. package/packages/config-eslint/node_modules/eslint/lib/rules/no-lone-blocks.js +0 -140
  444. package/packages/config-eslint/node_modules/eslint/lib/rules/no-lonely-if.js +0 -126
  445. package/packages/config-eslint/node_modules/eslint/lib/rules/no-loop-func.js +0 -267
  446. package/packages/config-eslint/node_modules/eslint/lib/rules/no-loss-of-precision.js +0 -249
  447. package/packages/config-eslint/node_modules/eslint/lib/rules/no-magic-numbers.js +0 -365
  448. package/packages/config-eslint/node_modules/eslint/lib/rules/no-misleading-character-class.js +0 -595
  449. package/packages/config-eslint/node_modules/eslint/lib/rules/no-mixed-operators.js +0 -253
  450. package/packages/config-eslint/node_modules/eslint/lib/rules/no-mixed-requires.js +0 -267
  451. package/packages/config-eslint/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +0 -148
  452. package/packages/config-eslint/node_modules/eslint/lib/rules/no-multi-assign.js +0 -66
  453. package/packages/config-eslint/node_modules/eslint/lib/rules/no-multi-spaces.js +0 -179
  454. package/packages/config-eslint/node_modules/eslint/lib/rules/no-multi-str.js +0 -67
  455. package/packages/config-eslint/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +0 -210
  456. package/packages/config-eslint/node_modules/eslint/lib/rules/no-native-reassign.js +0 -114
  457. package/packages/config-eslint/node_modules/eslint/lib/rules/no-negated-condition.js +0 -100
  458. package/packages/config-eslint/node_modules/eslint/lib/rules/no-negated-in-lhs.js +0 -59
  459. package/packages/config-eslint/node_modules/eslint/lib/rules/no-nested-ternary.js +0 -46
  460. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-func.js +0 -96
  461. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js +0 -70
  462. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-object.js +0 -76
  463. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-require.js +0 -67
  464. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-symbol.js +0 -74
  465. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-wrappers.js +0 -62
  466. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new.js +0 -42
  467. package/packages/config-eslint/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js +0 -176
  468. package/packages/config-eslint/node_modules/eslint/lib/rules/no-obj-calls.js +0 -99
  469. package/packages/config-eslint/node_modules/eslint/lib/rules/no-object-constructor.js +0 -124
  470. package/packages/config-eslint/node_modules/eslint/lib/rules/no-octal-escape.js +0 -53
  471. package/packages/config-eslint/node_modules/eslint/lib/rules/no-octal.js +0 -42
  472. package/packages/config-eslint/node_modules/eslint/lib/rules/no-param-reassign.js +0 -248
  473. package/packages/config-eslint/node_modules/eslint/lib/rules/no-path-concat.js +0 -79
  474. package/packages/config-eslint/node_modules/eslint/lib/rules/no-plusplus.js +0 -102
  475. package/packages/config-eslint/node_modules/eslint/lib/rules/no-process-env.js +0 -68
  476. package/packages/config-eslint/node_modules/eslint/lib/rules/no-process-exit.js +0 -67
  477. package/packages/config-eslint/node_modules/eslint/lib/rules/no-promise-executor-return.js +0 -264
  478. package/packages/config-eslint/node_modules/eslint/lib/rules/no-proto.js +0 -45
  479. package/packages/config-eslint/node_modules/eslint/lib/rules/no-prototype-builtins.js +0 -181
  480. package/packages/config-eslint/node_modules/eslint/lib/rules/no-redeclare.js +0 -173
  481. package/packages/config-eslint/node_modules/eslint/lib/rules/no-regex-spaces.js +0 -219
  482. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-exports.js +0 -227
  483. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-globals.js +0 -266
  484. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-imports.js +0 -892
  485. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-modules.js +0 -249
  486. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-properties.js +0 -233
  487. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-syntax.js +0 -74
  488. package/packages/config-eslint/node_modules/eslint/lib/rules/no-return-assign.js +0 -87
  489. package/packages/config-eslint/node_modules/eslint/lib/rules/no-return-await.js +0 -162
  490. package/packages/config-eslint/node_modules/eslint/lib/rules/no-script-url.js +0 -68
  491. package/packages/config-eslint/node_modules/eslint/lib/rules/no-self-assign.js +0 -186
  492. package/packages/config-eslint/node_modules/eslint/lib/rules/no-self-compare.js +0 -77
  493. package/packages/config-eslint/node_modules/eslint/lib/rules/no-sequences.js +0 -158
  494. package/packages/config-eslint/node_modules/eslint/lib/rules/no-setter-return.js +0 -224
  495. package/packages/config-eslint/node_modules/eslint/lib/rules/no-shadow-restricted-names.js +0 -113
  496. package/packages/config-eslint/node_modules/eslint/lib/rules/no-shadow.js +0 -689
  497. package/packages/config-eslint/node_modules/eslint/lib/rules/no-spaced-func.js +0 -105
  498. package/packages/config-eslint/node_modules/eslint/lib/rules/no-sparse-arrays.js +0 -68
  499. package/packages/config-eslint/node_modules/eslint/lib/rules/no-sync.js +0 -81
  500. package/packages/config-eslint/node_modules/eslint/lib/rules/no-tabs.js +0 -110
  501. package/packages/config-eslint/node_modules/eslint/lib/rules/no-template-curly-in-string.js +0 -45
  502. package/packages/config-eslint/node_modules/eslint/lib/rules/no-ternary.js +0 -38
  503. package/packages/config-eslint/node_modules/eslint/lib/rules/no-this-before-super.js +0 -365
  504. package/packages/config-eslint/node_modules/eslint/lib/rules/no-throw-literal.js +0 -46
  505. package/packages/config-eslint/node_modules/eslint/lib/rules/no-trailing-spaces.js +0 -227
  506. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unassigned-vars.js +0 -80
  507. package/packages/config-eslint/node_modules/eslint/lib/rules/no-undef-init.js +0 -101
  508. package/packages/config-eslint/node_modules/eslint/lib/rules/no-undef.js +0 -84
  509. package/packages/config-eslint/node_modules/eslint/lib/rules/no-undefined.js +0 -85
  510. package/packages/config-eslint/node_modules/eslint/lib/rules/no-underscore-dangle.js +0 -383
  511. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unexpected-multiline.js +0 -130
  512. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js +0 -360
  513. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unneeded-ternary.js +0 -232
  514. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unreachable-loop.js +0 -190
  515. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unreachable.js +0 -300
  516. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unsafe-finally.js +0 -119
  517. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unsafe-negation.js +0 -152
  518. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +0 -221
  519. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-expressions.js +0 -227
  520. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-labels.js +0 -158
  521. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-private-class-members.js +0 -219
  522. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-vars.js +0 -1739
  523. package/packages/config-eslint/node_modules/eslint/lib/rules/no-use-before-define.js +0 -446
  524. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-assignment.js +0 -657
  525. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-backreference.js +0 -263
  526. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-call.js +0 -95
  527. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-catch.js +0 -57
  528. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-computed-key.js +0 -204
  529. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-concat.js +0 -121
  530. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-constructor.js +0 -262
  531. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-escape.js +0 -406
  532. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-rename.js +0 -202
  533. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-return.js +0 -401
  534. package/packages/config-eslint/node_modules/eslint/lib/rules/no-var.js +0 -367
  535. package/packages/config-eslint/node_modules/eslint/lib/rules/no-void.js +0 -69
  536. package/packages/config-eslint/node_modules/eslint/lib/rules/no-warning-comments.js +0 -209
  537. package/packages/config-eslint/node_modules/eslint/lib/rules/no-whitespace-before-property.js +0 -150
  538. package/packages/config-eslint/node_modules/eslint/lib/rules/no-with.js +0 -37
  539. package/packages/config-eslint/node_modules/eslint/lib/rules/nonblock-statement-body-position.js +0 -164
  540. package/packages/config-eslint/node_modules/eslint/lib/rules/object-curly-newline.js +0 -383
  541. package/packages/config-eslint/node_modules/eslint/lib/rules/object-curly-spacing.js +0 -369
  542. package/packages/config-eslint/node_modules/eslint/lib/rules/object-property-newline.js +0 -151
  543. package/packages/config-eslint/node_modules/eslint/lib/rules/object-shorthand.js +0 -652
  544. package/packages/config-eslint/node_modules/eslint/lib/rules/one-var-declaration-per-line.js +0 -117
  545. package/packages/config-eslint/node_modules/eslint/lib/rules/one-var.js +0 -717
  546. package/packages/config-eslint/node_modules/eslint/lib/rules/operator-assignment.js +0 -270
  547. package/packages/config-eslint/node_modules/eslint/lib/rules/operator-linebreak.js +0 -315
  548. package/packages/config-eslint/node_modules/eslint/lib/rules/padded-blocks.js +0 -366
  549. package/packages/config-eslint/node_modules/eslint/lib/rules/padding-line-between-statements.js +0 -612
  550. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-arrow-callback.js +0 -437
  551. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-const.js +0 -546
  552. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-destructuring.js +0 -332
  553. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js +0 -235
  554. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-named-capture-group.js +0 -197
  555. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-numeric-literals.js +0 -157
  556. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-object-has-own.js +0 -148
  557. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-object-spread.js +0 -319
  558. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js +0 -154
  559. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-reflect.js +0 -150
  560. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-regex-literals.js +0 -605
  561. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-rest-params.js +0 -117
  562. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-spread.js +0 -91
  563. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-template.js +0 -347
  564. package/packages/config-eslint/node_modules/eslint/lib/rules/preserve-caught-error.js +0 -535
  565. package/packages/config-eslint/node_modules/eslint/lib/rules/quote-props.js +0 -394
  566. package/packages/config-eslint/node_modules/eslint/lib/rules/quotes.js +0 -416
  567. package/packages/config-eslint/node_modules/eslint/lib/rules/radix.js +0 -193
  568. package/packages/config-eslint/node_modules/eslint/lib/rules/require-atomic-updates.js +0 -365
  569. package/packages/config-eslint/node_modules/eslint/lib/rules/require-await.js +0 -184
  570. package/packages/config-eslint/node_modules/eslint/lib/rules/require-unicode-regexp.js +0 -317
  571. package/packages/config-eslint/node_modules/eslint/lib/rules/require-yield.js +0 -86
  572. package/packages/config-eslint/node_modules/eslint/lib/rules/rest-spread-spacing.js +0 -150
  573. package/packages/config-eslint/node_modules/eslint/lib/rules/semi-spacing.js +0 -297
  574. package/packages/config-eslint/node_modules/eslint/lib/rules/semi-style.js +0 -218
  575. package/packages/config-eslint/node_modules/eslint/lib/rules/semi.js +0 -476
  576. package/packages/config-eslint/node_modules/eslint/lib/rules/sort-imports.js +0 -319
  577. package/packages/config-eslint/node_modules/eslint/lib/rules/sort-keys.js +0 -268
  578. package/packages/config-eslint/node_modules/eslint/lib/rules/sort-vars.js +0 -140
  579. package/packages/config-eslint/node_modules/eslint/lib/rules/space-before-blocks.js +0 -232
  580. package/packages/config-eslint/node_modules/eslint/lib/rules/space-before-function-paren.js +0 -202
  581. package/packages/config-eslint/node_modules/eslint/lib/rules/space-in-parens.js +0 -374
  582. package/packages/config-eslint/node_modules/eslint/lib/rules/space-infix-ops.js +0 -249
  583. package/packages/config-eslint/node_modules/eslint/lib/rules/space-unary-ops.js +0 -400
  584. package/packages/config-eslint/node_modules/eslint/lib/rules/spaced-comment.js +0 -447
  585. package/packages/config-eslint/node_modules/eslint/lib/rules/strict.js +0 -324
  586. package/packages/config-eslint/node_modules/eslint/lib/rules/switch-colon-spacing.js +0 -158
  587. package/packages/config-eslint/node_modules/eslint/lib/rules/symbol-description.js +0 -70
  588. package/packages/config-eslint/node_modules/eslint/lib/rules/template-curly-spacing.js +0 -168
  589. package/packages/config-eslint/node_modules/eslint/lib/rules/template-tag-spacing.js +0 -121
  590. package/packages/config-eslint/node_modules/eslint/lib/rules/unicode-bom.js +0 -73
  591. package/packages/config-eslint/node_modules/eslint/lib/rules/use-isnan.js +0 -268
  592. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/ast-utils.js +0 -2841
  593. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/char-source.js +0 -247
  594. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/fix-tracker.js +0 -125
  595. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/keywords.js +0 -67
  596. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +0 -118
  597. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/regular-expressions.js +0 -58
  598. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/index.js +0 -16
  599. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js +0 -13
  600. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js +0 -13
  601. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js +0 -13
  602. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js +0 -14
  603. package/packages/config-eslint/node_modules/eslint/lib/rules/valid-typeof.js +0 -171
  604. package/packages/config-eslint/node_modules/eslint/lib/rules/vars-on-top.js +0 -165
  605. package/packages/config-eslint/node_modules/eslint/lib/rules/wrap-iife.js +0 -238
  606. package/packages/config-eslint/node_modules/eslint/lib/rules/wrap-regex.js +0 -91
  607. package/packages/config-eslint/node_modules/eslint/lib/rules/yield-star-spacing.js +0 -158
  608. package/packages/config-eslint/node_modules/eslint/lib/rules/yoda.js +0 -362
  609. package/packages/config-eslint/node_modules/eslint/lib/services/parser-service.js +0 -64
  610. package/packages/config-eslint/node_modules/eslint/lib/services/processor-service.js +0 -100
  611. package/packages/config-eslint/node_modules/eslint/lib/services/suppressions-service.js +0 -302
  612. package/packages/config-eslint/node_modules/eslint/lib/services/warning-service.js +0 -87
  613. package/packages/config-eslint/node_modules/eslint/lib/shared/ajv.js +0 -34
  614. package/packages/config-eslint/node_modules/eslint/lib/shared/assert.js +0 -21
  615. package/packages/config-eslint/node_modules/eslint/lib/shared/ast-utils.js +0 -30
  616. package/packages/config-eslint/node_modules/eslint/lib/shared/deep-merge-arrays.js +0 -62
  617. package/packages/config-eslint/node_modules/eslint/lib/shared/directives.js +0 -16
  618. package/packages/config-eslint/node_modules/eslint/lib/shared/flags.js +0 -89
  619. package/packages/config-eslint/node_modules/eslint/lib/shared/logging.js +0 -38
  620. package/packages/config-eslint/node_modules/eslint/lib/shared/naming.js +0 -109
  621. package/packages/config-eslint/node_modules/eslint/lib/shared/option-utils.js +0 -63
  622. package/packages/config-eslint/node_modules/eslint/lib/shared/relative-module-resolver.js +0 -28
  623. package/packages/config-eslint/node_modules/eslint/lib/shared/runtime-info.js +0 -177
  624. package/packages/config-eslint/node_modules/eslint/lib/shared/serialization.js +0 -78
  625. package/packages/config-eslint/node_modules/eslint/lib/shared/severity.js +0 -49
  626. package/packages/config-eslint/node_modules/eslint/lib/shared/stats.js +0 -30
  627. package/packages/config-eslint/node_modules/eslint/lib/shared/string-utils.js +0 -58
  628. package/packages/config-eslint/node_modules/eslint/lib/shared/text-table.js +0 -68
  629. package/packages/config-eslint/node_modules/eslint/lib/shared/translate-cli-options.js +0 -223
  630. package/packages/config-eslint/node_modules/eslint/lib/shared/traverser.js +0 -202
  631. package/packages/config-eslint/node_modules/eslint/lib/types/config-api.d.ts +0 -12
  632. package/packages/config-eslint/node_modules/eslint/lib/types/index.d.ts +0 -1475
  633. package/packages/config-eslint/node_modules/eslint/lib/types/rules.d.ts +0 -5603
  634. package/packages/config-eslint/node_modules/eslint/lib/types/universal.d.ts +0 -6
  635. package/packages/config-eslint/node_modules/eslint/lib/types/use-at-your-own-risk.d.ts +0 -34
  636. package/packages/config-eslint/node_modules/eslint/lib/universal.js +0 -10
  637. package/packages/config-eslint/node_modules/eslint/lib/unsupported-api.js +0 -21
  638. package/packages/config-eslint/node_modules/eslint/messages/all-files-ignored.js +0 -16
  639. package/packages/config-eslint/node_modules/eslint/messages/all-matched-files-ignored.js +0 -21
  640. package/packages/config-eslint/node_modules/eslint/messages/config-file-missing.js +0 -16
  641. package/packages/config-eslint/node_modules/eslint/messages/config-plugin-missing.js +0 -14
  642. package/packages/config-eslint/node_modules/eslint/messages/config-serialize-function.js +0 -30
  643. package/packages/config-eslint/node_modules/eslint/messages/eslintrc-incompat.js +0 -117
  644. package/packages/config-eslint/node_modules/eslint/messages/eslintrc-plugins.js +0 -27
  645. package/packages/config-eslint/node_modules/eslint/messages/extend-config-missing.js +0 -13
  646. package/packages/config-eslint/node_modules/eslint/messages/failed-to-read-json.js +0 -11
  647. package/packages/config-eslint/node_modules/eslint/messages/file-not-found.js +0 -10
  648. package/packages/config-eslint/node_modules/eslint/messages/invalid-rule-options.js +0 -17
  649. package/packages/config-eslint/node_modules/eslint/messages/invalid-rule-severity.js +0 -13
  650. package/packages/config-eslint/node_modules/eslint/messages/no-config-found.js +0 -15
  651. package/packages/config-eslint/node_modules/eslint/messages/plugin-conflict.js +0 -22
  652. package/packages/config-eslint/node_modules/eslint/messages/plugin-invalid.js +0 -16
  653. package/packages/config-eslint/node_modules/eslint/messages/plugin-missing.js +0 -19
  654. package/packages/config-eslint/node_modules/eslint/messages/print-config-with-directory-path.js +0 -8
  655. package/packages/config-eslint/node_modules/eslint/messages/shared.js +0 -23
  656. package/packages/config-eslint/node_modules/eslint/messages/whitespace-found.js +0 -11
  657. package/packages/config-eslint/node_modules/eslint/package.json +0 -220
  658. package/packages/config-eslint/node_modules/eslint-scope/LICENSE +0 -22
  659. package/packages/config-eslint/node_modules/eslint-scope/README.md +0 -206
  660. package/packages/config-eslint/node_modules/eslint-scope/dist/eslint-scope.cjs +0 -2420
  661. package/packages/config-eslint/node_modules/eslint-scope/lib/assert.js +0 -17
  662. package/packages/config-eslint/node_modules/eslint-scope/lib/definition.js +0 -89
  663. package/packages/config-eslint/node_modules/eslint-scope/lib/index.d.cts +0 -1069
  664. package/packages/config-eslint/node_modules/eslint-scope/lib/index.d.ts +0 -6
  665. package/packages/config-eslint/node_modules/eslint-scope/lib/index.js +0 -170
  666. package/packages/config-eslint/node_modules/eslint-scope/lib/pattern-visitor.js +0 -157
  667. package/packages/config-eslint/node_modules/eslint-scope/lib/reference.js +0 -165
  668. package/packages/config-eslint/node_modules/eslint-scope/lib/referencer.js +0 -712
  669. package/packages/config-eslint/node_modules/eslint-scope/lib/scope-manager.js +0 -271
  670. package/packages/config-eslint/node_modules/eslint-scope/lib/scope.js +0 -839
  671. package/packages/config-eslint/node_modules/eslint-scope/lib/variable.js +0 -91
  672. package/packages/config-eslint/node_modules/eslint-scope/package.json +0 -69
  673. package/packages/config-eslint/node_modules/eslint-visitor-keys/LICENSE +0 -201
  674. package/packages/config-eslint/node_modules/eslint-visitor-keys/README.md +0 -121
  675. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +0 -396
  676. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts +0 -28
  677. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/index.d.ts +0 -16
  678. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +0 -12
  679. package/packages/config-eslint/node_modules/eslint-visitor-keys/lib/index.js +0 -67
  680. package/packages/config-eslint/node_modules/eslint-visitor-keys/lib/visitor-keys.js +0 -327
  681. package/packages/config-eslint/node_modules/eslint-visitor-keys/package.json +0 -59
  682. package/packages/config-eslint/node_modules/espree/LICENSE +0 -25
  683. package/packages/config-eslint/node_modules/espree/README.md +0 -262
  684. package/packages/config-eslint/node_modules/espree/dist/espree.cjs +0 -1272
  685. package/packages/config-eslint/node_modules/espree/dist/espree.d.cts +0 -3
  686. package/packages/config-eslint/node_modules/espree/dist/espree.d.cts.map +0 -1
  687. package/packages/config-eslint/node_modules/espree/dist/espree.d.ts +0 -71
  688. package/packages/config-eslint/node_modules/espree/dist/espree.d.ts.map +0 -1
  689. package/packages/config-eslint/node_modules/espree/espree.js +0 -291
  690. package/packages/config-eslint/node_modules/espree/lib/espree.js +0 -482
  691. package/packages/config-eslint/node_modules/espree/lib/features.js +0 -21
  692. package/packages/config-eslint/node_modules/espree/lib/options.js +0 -164
  693. package/packages/config-eslint/node_modules/espree/lib/token-translator.js +0 -306
  694. package/packages/config-eslint/node_modules/espree/lib/types.js +0 -118
  695. package/packages/config-eslint/node_modules/espree/package.json +0 -72
  696. package/packages/config-eslint/node_modules/ignore/LICENSE-MIT +0 -21
  697. package/packages/config-eslint/node_modules/ignore/README.md +0 -412
  698. package/packages/config-eslint/node_modules/ignore/index.d.ts +0 -61
  699. package/packages/config-eslint/node_modules/ignore/index.js +0 -636
  700. package/packages/config-eslint/node_modules/ignore/legacy.js +0 -559
  701. package/packages/config-eslint/node_modules/ignore/package.json +0 -74
  702. package/packages/config-eslint/node_modules/jackspeak/LICENSE.md +0 -55
  703. package/packages/config-eslint/node_modules/jackspeak/README.md +0 -394
  704. package/packages/config-eslint/node_modules/jackspeak/dist/commonjs/index.d.ts +0 -323
  705. package/packages/config-eslint/node_modules/jackspeak/dist/commonjs/index.d.ts.map +0 -1
  706. package/packages/config-eslint/node_modules/jackspeak/dist/commonjs/index.js +0 -944
  707. package/packages/config-eslint/node_modules/jackspeak/dist/commonjs/index.js.map +0 -1
  708. package/packages/config-eslint/node_modules/jackspeak/dist/commonjs/index.min.js +0 -33
  709. package/packages/config-eslint/node_modules/jackspeak/dist/commonjs/index.min.js.map +0 -7
  710. package/packages/config-eslint/node_modules/jackspeak/dist/commonjs/package.json +0 -3
  711. package/packages/config-eslint/node_modules/jackspeak/dist/esm/index.d.ts +0 -323
  712. package/packages/config-eslint/node_modules/jackspeak/dist/esm/index.d.ts.map +0 -1
  713. package/packages/config-eslint/node_modules/jackspeak/dist/esm/index.js +0 -936
  714. package/packages/config-eslint/node_modules/jackspeak/dist/esm/index.js.map +0 -1
  715. package/packages/config-eslint/node_modules/jackspeak/dist/esm/index.min.js +0 -33
  716. package/packages/config-eslint/node_modules/jackspeak/dist/esm/index.min.js.map +0 -7
  717. package/packages/config-eslint/node_modules/jackspeak/dist/esm/package.json +0 -3
  718. package/packages/config-eslint/node_modules/jackspeak/package.json +0 -115
  719. package/packages/config-eslint/node_modules/json-schema-traverse/.eslintrc.yml +0 -27
  720. package/packages/config-eslint/node_modules/json-schema-traverse/.travis.yml +0 -8
  721. package/packages/config-eslint/node_modules/json-schema-traverse/LICENSE +0 -21
  722. package/packages/config-eslint/node_modules/json-schema-traverse/README.md +0 -83
  723. package/packages/config-eslint/node_modules/json-schema-traverse/index.js +0 -89
  724. package/packages/config-eslint/node_modules/json-schema-traverse/package.json +0 -43
  725. package/packages/config-eslint/node_modules/json-schema-traverse/spec/.eslintrc.yml +0 -6
  726. package/packages/config-eslint/node_modules/json-schema-traverse/spec/fixtures/schema.js +0 -125
  727. package/packages/config-eslint/node_modules/json-schema-traverse/spec/index.spec.js +0 -171
  728. package/packages/config-eslint/node_modules/minimatch/LICENSE.md +0 -55
  729. package/packages/config-eslint/node_modules/minimatch/README.md +0 -455
  730. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +0 -2
  731. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +0 -1
  732. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +0 -14
  733. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +0 -1
  734. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -20
  735. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
  736. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/ast.js +0 -601
  737. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
  738. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
  739. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
  740. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -150
  741. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
  742. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/escape.d.ts +0 -15
  743. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/escape.d.ts.map +0 -1
  744. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/escape.js +0 -30
  745. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/escape.js.map +0 -1
  746. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/index.d.ts +0 -144
  747. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/index.d.ts.map +0 -1
  748. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/index.js +0 -1035
  749. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/index.js.map +0 -1
  750. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/package.json +0 -3
  751. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/unescape.d.ts +0 -22
  752. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +0 -1
  753. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/unescape.js +0 -38
  754. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/unescape.js.map +0 -1
  755. package/packages/config-eslint/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +0 -2
  756. package/packages/config-eslint/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +0 -1
  757. package/packages/config-eslint/node_modules/minimatch/dist/esm/assert-valid-pattern.js +0 -10
  758. package/packages/config-eslint/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +0 -1
  759. package/packages/config-eslint/node_modules/minimatch/dist/esm/ast.d.ts +0 -20
  760. package/packages/config-eslint/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
  761. package/packages/config-eslint/node_modules/minimatch/dist/esm/ast.js +0 -597
  762. package/packages/config-eslint/node_modules/minimatch/dist/esm/ast.js.map +0 -1
  763. package/packages/config-eslint/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
  764. package/packages/config-eslint/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
  765. package/packages/config-eslint/node_modules/minimatch/dist/esm/brace-expressions.js +0 -146
  766. package/packages/config-eslint/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
  767. package/packages/config-eslint/node_modules/minimatch/dist/esm/escape.d.ts +0 -15
  768. package/packages/config-eslint/node_modules/minimatch/dist/esm/escape.d.ts.map +0 -1
  769. package/packages/config-eslint/node_modules/minimatch/dist/esm/escape.js +0 -26
  770. package/packages/config-eslint/node_modules/minimatch/dist/esm/escape.js.map +0 -1
  771. package/packages/config-eslint/node_modules/minimatch/dist/esm/index.d.ts +0 -144
  772. package/packages/config-eslint/node_modules/minimatch/dist/esm/index.d.ts.map +0 -1
  773. package/packages/config-eslint/node_modules/minimatch/dist/esm/index.js +0 -1022
  774. package/packages/config-eslint/node_modules/minimatch/dist/esm/index.js.map +0 -1
  775. package/packages/config-eslint/node_modules/minimatch/dist/esm/package.json +0 -3
  776. package/packages/config-eslint/node_modules/minimatch/dist/esm/unescape.d.ts +0 -22
  777. package/packages/config-eslint/node_modules/minimatch/dist/esm/unescape.d.ts.map +0 -1
  778. package/packages/config-eslint/node_modules/minimatch/dist/esm/unescape.js +0 -34
  779. package/packages/config-eslint/node_modules/minimatch/dist/esm/unescape.js.map +0 -1
  780. package/packages/config-eslint/node_modules/minimatch/package.json +0 -67
@@ -1,1336 +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
- // This module is browser compatible.
52
- function assertArg$3(url) {
53
- url = url instanceof URL ? url : new URL(url);
54
- if (url.protocol !== "file:") {
55
- throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
56
- }
57
- return url;
58
- }
59
-
60
- // Copyright 2018-2025 the Deno authors. MIT license.
61
- // This module is browser compatible.
62
- /**
63
- * Converts a file URL to a path string.
64
- *
65
- * @example Usage
66
- * ```ts
67
- * import { fromFileUrl } from "@std/path/posix/from-file-url";
68
- * import { assertEquals } from "@std/assert";
69
- *
70
- * assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo");
71
- * ```
72
- *
73
- * @param url The file URL to convert.
74
- * @returns The path string.
75
- */ function fromFileUrl(url) {
76
- url = assertArg$3(url);
77
- return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
78
- }
79
-
80
- // Copyright 2018-2025 the Deno authors. MIT license.
81
- // Copyright the Browserify authors. MIT License.
82
- // Ported from https://github.com/browserify/path-browserify/
83
- // This module is browser compatible.
84
- function stripTrailingSeparators(segment, isSep) {
85
- if (segment.length <= 1) {
86
- return segment;
87
- }
88
- let end = segment.length;
89
- for(let i = segment.length - 1; i > 0; i--){
90
- if (isSep(segment.charCodeAt(i))) {
91
- end = i;
92
- } else {
93
- break;
94
- }
95
- }
96
- return segment.slice(0, end);
97
- }
98
-
99
- // Copyright 2018-2025 the Deno authors. MIT license.
100
- // Copyright the Browserify authors. MIT License.
101
- // Ported from https://github.com/browserify/path-browserify/
102
- // This module is browser compatible.
103
- // Alphabet chars.
104
- // Non-alphabetic chars.
105
- const CHAR_DOT = 46; /* . */
106
- const CHAR_FORWARD_SLASH = 47; /* / */
107
-
108
- // Copyright 2018-2025 the Deno authors. MIT license.
109
- // Copyright the Browserify authors. MIT License.
110
- // Ported from https://github.com/browserify/path-browserify/
111
- // This module is browser compatible.
112
- function isPosixPathSeparator(code) {
113
- return code === CHAR_FORWARD_SLASH;
114
- }
115
-
116
- // Copyright 2018-2025 the Deno authors. MIT license.
117
- // This module is browser compatible.
118
- /**
119
- * Return the last portion of a `path`.
120
- * Trailing directory separators are ignored, and optional suffix is removed.
121
- *
122
- * @example Usage
123
- * ```ts
124
- * import { basename } from "@std/path/posix/basename";
125
- * import { assertEquals } from "@std/assert";
126
- *
127
- * assertEquals(basename("/home/user/Documents/"), "Documents");
128
- * assertEquals(basename("/home/user/Documents/image.png"), "image.png");
129
- * assertEquals(basename("/home/user/Documents/image.png", ".png"), "image");
130
- * assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
131
- * assertEquals(basename(new URL("file:///home/user/Documents/image.png"), ".png"), "image");
132
- * ```
133
- *
134
- * @example Working with URLs
135
- *
136
- * Note: This function doesn't automatically strip hash and query parts from
137
- * URLs. If your URL contains a hash or query, remove them before passing the
138
- * URL to the function. This can be done by passing the URL to `new URL(url)`,
139
- * and setting the `hash` and `search` properties to empty strings.
140
- *
141
- * ```ts
142
- * import { basename } from "@std/path/posix/basename";
143
- * import { assertEquals } from "@std/assert";
144
- *
145
- * assertEquals(basename("https://deno.land/std/path/mod.ts"), "mod.ts");
146
- * assertEquals(basename("https://deno.land/std/path/mod.ts", ".ts"), "mod");
147
- * assertEquals(basename("https://deno.land/std/path/mod.ts?a=b"), "mod.ts?a=b");
148
- * assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
149
- * ```
150
- *
151
- * @param path The path to extract the name from.
152
- * @param suffix The suffix to remove from extracted name.
153
- * @returns The extracted name.
154
- */ function basename(path, suffix = "") {
155
- if (path instanceof URL) {
156
- path = fromFileUrl(path);
157
- }
158
- assertArgs$1(path, suffix);
159
- const lastSegment = lastPathSegment(path, isPosixPathSeparator);
160
- const strippedSegment = stripTrailingSeparators(lastSegment, isPosixPathSeparator);
161
- return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment;
162
- }
163
-
164
- // Copyright 2018-2025 the Deno authors. MIT license.
165
- // This module is browser compatible.
166
- /**
167
- * The character used to separate entries in the PATH environment variable.
168
- */ const DELIMITER = ":";
169
- /**
170
- * The character used to separate components of a file path.
171
- */ const SEPARATOR = "/";
172
- /**
173
- * A regular expression that matches one or more path separators.
174
- */ const SEPARATOR_PATTERN = /\/+/;
175
-
176
- // Copyright 2018-2025 the Deno authors. MIT license.
177
- // This module is browser compatible.
178
- function assertArg$2(path) {
179
- assertPath(path);
180
- if (path.length === 0) return ".";
181
- }
182
-
183
- // Copyright 2018-2025 the Deno authors. MIT license.
184
- // This module is browser compatible.
185
- /**
186
- * Return the directory path of a `path`.
187
- *
188
- * @example Usage
189
- * ```ts
190
- * import { dirname } from "@std/path/posix/dirname";
191
- * import { assertEquals } from "@std/assert";
192
- *
193
- * assertEquals(dirname("/home/user/Documents/"), "/home/user");
194
- * assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents");
195
- * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
196
- * assertEquals(dirname(new URL("file:///home/user/Documents/image.png")), "/home/user/Documents");
197
- * ```
198
- *
199
- * @example Working with URLs
200
- *
201
- * ```ts
202
- * import { dirname } from "@std/path/posix/dirname";
203
- * import { assertEquals } from "@std/assert";
204
- *
205
- * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
206
- * assertEquals(dirname("https://deno.land/std/path/mod.ts?a=b"), "https://deno.land/std/path");
207
- * assertEquals(dirname("https://deno.land/std/path/mod.ts#header"), "https://deno.land/std/path");
208
- * ```
209
- *
210
- * @param path The path to get the directory from.
211
- * @returns The directory path.
212
- */ function dirname(path) {
213
- if (path instanceof URL) {
214
- path = fromFileUrl(path);
215
- }
216
- assertArg$2(path);
217
- let end = -1;
218
- let matchedNonSeparator = false;
219
- for(let i = path.length - 1; i >= 1; --i){
220
- if (isPosixPathSeparator(path.charCodeAt(i))) {
221
- if (matchedNonSeparator) {
222
- end = i;
223
- break;
224
- }
225
- } else {
226
- matchedNonSeparator = true;
227
- }
228
- }
229
- // No matches. Fallback based on provided path:
230
- //
231
- // - leading slashes paths
232
- // "/foo" => "/"
233
- // "///foo" => "/"
234
- // - no slash path
235
- // "foo" => "."
236
- if (end === -1) {
237
- return isPosixPathSeparator(path.charCodeAt(0)) ? "/" : ".";
238
- }
239
- return stripTrailingSeparators(path.slice(0, end), isPosixPathSeparator);
240
- }
241
-
242
- // Copyright 2018-2025 the Deno authors. MIT license.
243
- // This module is browser compatible.
244
- /**
245
- * Return the extension of the `path` with leading period.
246
- *
247
- * @example Usage
248
- * ```ts
249
- * import { extname } from "@std/path/posix/extname";
250
- * import { assertEquals } from "@std/assert";
251
- *
252
- * assertEquals(extname("/home/user/Documents/file.ts"), ".ts");
253
- * assertEquals(extname("/home/user/Documents/"), "");
254
- * assertEquals(extname("/home/user/Documents/image.png"), ".png");
255
- * assertEquals(extname(new URL("file:///home/user/Documents/file.ts")), ".ts");
256
- * assertEquals(extname(new URL("file:///home/user/Documents/file.ts?a=b")), ".ts");
257
- * assertEquals(extname(new URL("file:///home/user/Documents/file.ts#header")), ".ts");
258
- * ```
259
- *
260
- * @example Working with URLs
261
- *
262
- * Note: This function doesn't automatically strip hash and query parts from
263
- * URLs. If your URL contains a hash or query, remove them before passing the
264
- * URL to the function. This can be done by passing the URL to `new URL(url)`,
265
- * and setting the `hash` and `search` properties to empty strings.
266
- *
267
- * ```ts
268
- * import { extname } from "@std/path/posix/extname";
269
- * import { assertEquals } from "@std/assert";
270
- *
271
- * assertEquals(extname("https://deno.land/std/path/mod.ts"), ".ts");
272
- * assertEquals(extname("https://deno.land/std/path/mod.ts?a=b"), ".ts?a=b");
273
- * assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
274
- * ```
275
- *
276
- * @param path The path to get the extension from.
277
- * @returns The extension (ex. for `file.ts` returns `.ts`).
278
- */ function extname(path) {
279
- if (path instanceof URL) {
280
- path = fromFileUrl(path);
281
- }
282
- assertPath(path);
283
- let startDot = -1;
284
- let startPart = 0;
285
- let end = -1;
286
- let matchedSlash = true;
287
- // Track the state of characters (if any) we see before our first dot and
288
- // after any path separator we find
289
- let preDotState = 0;
290
- for(let i = path.length - 1; i >= 0; --i){
291
- const code = path.charCodeAt(i);
292
- if (isPosixPathSeparator(code)) {
293
- // If we reached a path separator that was not part of a set of path
294
- // separators at the end of the string, stop now
295
- if (!matchedSlash) {
296
- startPart = i + 1;
297
- break;
298
- }
299
- continue;
300
- }
301
- if (end === -1) {
302
- // We saw the first non-path separator, mark this as the end of our
303
- // extension
304
- matchedSlash = false;
305
- end = i + 1;
306
- }
307
- if (code === CHAR_DOT) {
308
- // If this is our first dot, mark it as the start of our extension
309
- if (startDot === -1) startDot = i;
310
- else if (preDotState !== 1) preDotState = 1;
311
- } else if (startDot !== -1) {
312
- // We saw a non-dot and non-path separator before our dot, so we should
313
- // have a good chance at having a non-empty extension
314
- preDotState = -1;
315
- }
316
- }
317
- if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
318
- preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
319
- preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
320
- return "";
321
- }
322
- return path.slice(startDot, end);
323
- }
324
-
325
- // Copyright 2018-2025 the Deno authors. MIT license.
326
- // This module is browser compatible.
327
- function _format(sep, pathObject) {
328
- const dir = pathObject.dir || pathObject.root;
329
- const base = pathObject.base || (pathObject.name ?? "") + (pathObject.ext ?? "");
330
- if (!dir) return base;
331
- if (base === sep) return dir;
332
- if (dir === pathObject.root) return dir + base;
333
- return dir + sep + base;
334
- }
335
- function assertArg$1(pathObject) {
336
- if (pathObject === null || typeof pathObject !== "object") {
337
- throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof pathObject}"`);
338
- }
339
- }
340
-
341
- // Copyright 2018-2025 the Deno authors. MIT license.
342
- // This module is browser compatible.
343
- /**
344
- * Generate a path from `ParsedPath` object.
345
- *
346
- * @example Usage
347
- * ```ts
348
- * import { format } from "@std/path/posix/format";
349
- * import { assertEquals } from "@std/assert";
350
- *
351
- * const path = format({
352
- * root: "/",
353
- * dir: "/path/dir",
354
- * base: "file.txt",
355
- * ext: ".txt",
356
- * name: "file"
357
- * });
358
- * assertEquals(path, "/path/dir/file.txt");
359
- * ```
360
- *
361
- * @param pathObject The path object to format.
362
- * @returns The formatted path.
363
- */ function format(pathObject) {
364
- assertArg$1(pathObject);
365
- return _format("/", pathObject);
366
- }
367
-
368
- // Copyright 2018-2025 the Deno authors. MIT license.
369
- // This module is browser compatible.
370
- /**
371
- * Verifies whether provided path is absolute.
372
- *
373
- * @example Usage
374
- * ```ts
375
- * import { isAbsolute } from "@std/path/posix/is-absolute";
376
- * import { assert, assertFalse } from "@std/assert";
377
- *
378
- * assert(isAbsolute("/home/user/Documents/"));
379
- * assertFalse(isAbsolute("home/user/Documents/"));
380
- * ```
381
- *
382
- * @param path The path to verify.
383
- * @returns Whether the path is absolute.
384
- */ function isAbsolute(path) {
385
- assertPath(path);
386
- return path.length > 0 && isPosixPathSeparator(path.charCodeAt(0));
387
- }
388
-
389
- // Copyright 2018-2025 the Deno authors. MIT license.
390
- // This module is browser compatible.
391
- function assertArg(path) {
392
- assertPath(path);
393
- if (path.length === 0) return ".";
394
- }
395
-
396
- // Copyright 2018-2025 the Deno authors. MIT license.
397
- // Copyright the Browserify authors. MIT License.
398
- // Ported from https://github.com/browserify/path-browserify/
399
- // This module is browser compatible.
400
- // Resolves . and .. elements in a path with directory names
401
- function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
402
- let res = "";
403
- let lastSegmentLength = 0;
404
- let lastSlash = -1;
405
- let dots = 0;
406
- let code;
407
- for(let i = 0; i <= path.length; ++i){
408
- if (i < path.length) code = path.charCodeAt(i);
409
- else if (isPathSeparator(code)) break;
410
- else code = CHAR_FORWARD_SLASH;
411
- if (isPathSeparator(code)) {
412
- if (lastSlash === i - 1 || dots === 1) ; else if (lastSlash !== i - 1 && dots === 2) {
413
- if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== CHAR_DOT || res.charCodeAt(res.length - 2) !== CHAR_DOT) {
414
- if (res.length > 2) {
415
- const lastSlashIndex = res.lastIndexOf(separator);
416
- if (lastSlashIndex === -1) {
417
- res = "";
418
- lastSegmentLength = 0;
419
- } else {
420
- res = res.slice(0, lastSlashIndex);
421
- lastSegmentLength = res.length - 1 - res.lastIndexOf(separator);
422
- }
423
- lastSlash = i;
424
- dots = 0;
425
- continue;
426
- } else if (res.length === 2 || res.length === 1) {
427
- res = "";
428
- lastSegmentLength = 0;
429
- lastSlash = i;
430
- dots = 0;
431
- continue;
432
- }
433
- }
434
- if (allowAboveRoot) {
435
- if (res.length > 0) res += `${separator}..`;
436
- else res = "..";
437
- lastSegmentLength = 2;
438
- }
439
- } else {
440
- if (res.length > 0) res += separator + path.slice(lastSlash + 1, i);
441
- else res = path.slice(lastSlash + 1, i);
442
- lastSegmentLength = i - lastSlash - 1;
443
- }
444
- lastSlash = i;
445
- dots = 0;
446
- } else if (code === CHAR_DOT && dots !== -1) {
447
- ++dots;
448
- } else {
449
- dots = -1;
450
- }
451
- }
452
- return res;
453
- }
454
-
455
- // Copyright 2018-2025 the Deno authors. MIT license.
456
- // This module is browser compatible.
457
- /**
458
- * Normalize the `path`, resolving `'..'` and `'.'` segments.
459
- * Note that resolving these segments does not necessarily mean that all will be eliminated.
460
- * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
461
- *
462
- * @example Usage
463
- * ```ts
464
- * import { normalize } from "@std/path/posix/normalize";
465
- * import { assertEquals } from "@std/assert";
466
- *
467
- * assertEquals(normalize("/foo/bar//baz/asdf/quux/.."), "/foo/bar/baz/asdf");
468
- * assertEquals(normalize(new URL("file:///foo/bar//baz/asdf/quux/..")), "/foo/bar/baz/asdf/");
469
- * ```
470
- *
471
- * @example Working with URLs
472
- *
473
- * Note: This function will remove the double slashes from a URL's scheme.
474
- * Hence, do not pass a full URL to this function. Instead, pass the pathname of
475
- * the URL.
476
- *
477
- * ```ts
478
- * import { normalize } from "@std/path/posix/normalize";
479
- * import { assertEquals } from "@std/assert";
480
- *
481
- * const url = new URL("https://deno.land");
482
- * url.pathname = normalize("//std//assert//.//mod.ts");
483
- * assertEquals(url.href, "https://deno.land/std/assert/mod.ts");
484
- *
485
- * url.pathname = normalize("std/assert/../async/retry.ts");
486
- * assertEquals(url.href, "https://deno.land/std/async/retry.ts");
487
- * ```
488
- *
489
- * @param path The path to normalize.
490
- * @returns The normalized path.
491
- */ function normalize(path) {
492
- if (path instanceof URL) {
493
- path = fromFileUrl(path);
494
- }
495
- assertArg(path);
496
- const isAbsolute = isPosixPathSeparator(path.charCodeAt(0));
497
- const trailingSeparator = isPosixPathSeparator(path.charCodeAt(path.length - 1));
498
- // Normalize the path
499
- path = normalizeString(path, !isAbsolute, "/", isPosixPathSeparator);
500
- if (path.length === 0 && !isAbsolute) path = ".";
501
- if (path.length > 0 && trailingSeparator) path += "/";
502
- if (isAbsolute) return `/${path}`;
503
- return path;
504
- }
505
-
506
- // Copyright 2018-2025 the Deno authors. MIT license.
507
- // This module is browser compatible.
508
- /**
509
- * Join all given a sequence of `paths`,then normalizes the resulting path.
510
- *
511
- * @example Usage
512
- * ```ts
513
- * import { join } from "@std/path/posix/join";
514
- * import { assertEquals } from "@std/assert";
515
- *
516
- * assertEquals(join("/foo", "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
517
- * assertEquals(join(new URL("file:///foo"), "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
518
- * ```
519
- *
520
- * @example Working with URLs
521
- * ```ts
522
- * import { join } from "@std/path/posix/join";
523
- * import { assertEquals } from "@std/assert";
524
- *
525
- * const url = new URL("https://deno.land");
526
- * url.pathname = join("std", "path", "mod.ts");
527
- * assertEquals(url.href, "https://deno.land/std/path/mod.ts");
528
- *
529
- * url.pathname = join("//std", "path/", "/mod.ts");
530
- * assertEquals(url.href, "https://deno.land/std/path/mod.ts");
531
- * ```
532
- *
533
- * @param path The path to join. This can be string or file URL.
534
- * @param paths The paths to join.
535
- * @returns The joined path.
536
- */ function join(path, ...paths) {
537
- if (path === undefined) return ".";
538
- if (path instanceof URL) {
539
- path = fromFileUrl(path);
540
- }
541
- paths = path ? [
542
- path,
543
- ...paths
544
- ] : paths;
545
- paths.forEach((path)=>assertPath(path));
546
- const joined = paths.filter((path)=>path.length > 0).join("/");
547
- return joined === "" ? "." : normalize(joined);
548
- }
549
-
550
- // Copyright 2018-2025 the Deno authors. MIT license.
551
- // This module is browser compatible.
552
- /**
553
- * Return a `ParsedPath` object of the `path`.
554
- *
555
- * @example Usage
556
- * ```ts
557
- * import { parse } from "@std/path/posix/parse";
558
- * import { assertEquals } from "@std/assert";
559
- *
560
- * const path = parse("/home/user/file.txt");
561
- * assertEquals(path, {
562
- * root: "/",
563
- * dir: "/home/user",
564
- * base: "file.txt",
565
- * ext: ".txt",
566
- * name: "file"
567
- * });
568
- * ```
569
- *
570
- * @param path The path to parse.
571
- * @returns The parsed path object.
572
- */ function parse(path) {
573
- assertPath(path);
574
- const ret = {
575
- root: "",
576
- dir: "",
577
- base: "",
578
- ext: "",
579
- name: ""
580
- };
581
- if (path.length === 0) return ret;
582
- const isAbsolute = isPosixPathSeparator(path.charCodeAt(0));
583
- let start;
584
- if (isAbsolute) {
585
- ret.root = "/";
586
- start = 1;
587
- } else {
588
- start = 0;
589
- }
590
- let startDot = -1;
591
- let startPart = 0;
592
- let end = -1;
593
- let matchedSlash = true;
594
- let i = path.length - 1;
595
- // Track the state of characters (if any) we see before our first dot and
596
- // after any path separator we find
597
- let preDotState = 0;
598
- // Get non-dir info
599
- for(; i >= start; --i){
600
- const code = path.charCodeAt(i);
601
- if (isPosixPathSeparator(code)) {
602
- // If we reached a path separator that was not part of a set of path
603
- // separators at the end of the string, stop now
604
- if (!matchedSlash) {
605
- startPart = i + 1;
606
- break;
607
- }
608
- continue;
609
- }
610
- if (end === -1) {
611
- // We saw the first non-path separator, mark this as the end of our
612
- // extension
613
- matchedSlash = false;
614
- end = i + 1;
615
- }
616
- if (code === CHAR_DOT) {
617
- // If this is our first dot, mark it as the start of our extension
618
- if (startDot === -1) startDot = i;
619
- else if (preDotState !== 1) preDotState = 1;
620
- } else if (startDot !== -1) {
621
- // We saw a non-dot and non-path separator before our dot, so we should
622
- // have a good chance at having a non-empty extension
623
- preDotState = -1;
624
- }
625
- }
626
- if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
627
- preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
628
- preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
629
- if (end !== -1) {
630
- if (startPart === 0 && isAbsolute) {
631
- ret.base = ret.name = path.slice(1, end);
632
- } else {
633
- ret.base = ret.name = path.slice(startPart, end);
634
- }
635
- }
636
- // Fallback to '/' in case there is no basename
637
- ret.base = ret.base || "/";
638
- } else {
639
- if (startPart === 0 && isAbsolute) {
640
- ret.name = path.slice(1, startDot);
641
- ret.base = path.slice(1, end);
642
- } else {
643
- ret.name = path.slice(startPart, startDot);
644
- ret.base = path.slice(startPart, end);
645
- }
646
- ret.ext = path.slice(startDot, end);
647
- }
648
- if (startPart > 0) {
649
- ret.dir = stripTrailingSeparators(path.slice(0, startPart - 1), isPosixPathSeparator);
650
- } else if (isAbsolute) ret.dir = "/";
651
- return ret;
652
- }
653
-
654
- // Copyright 2018-2025 the Deno authors. MIT license.
655
- // This module is browser compatible.
656
- /**
657
- * Resolves path segments into a `path`.
658
- *
659
- * @example Usage
660
- * ```ts
661
- * import { resolve } from "@std/path/posix/resolve";
662
- * import { assertEquals } from "@std/assert";
663
- *
664
- * const path = resolve("/foo", "bar", "baz/asdf", "quux", "..");
665
- * assertEquals(path, "/foo/bar/baz/asdf");
666
- * ```
667
- *
668
- * @param pathSegments The path segments to resolve.
669
- * @returns The resolved path.
670
- */ function resolve(...pathSegments) {
671
- let resolvedPath = "";
672
- let resolvedAbsolute = false;
673
- for(let i = pathSegments.length - 1; i >= -1 && !resolvedAbsolute; i--){
674
- let path;
675
- if (i >= 0) path = pathSegments[i];
676
- else {
677
- // deno-lint-ignore no-explicit-any
678
- const { Deno } = globalThis;
679
- if (typeof Deno?.cwd !== "function") {
680
- throw new TypeError("Resolved a relative path without a current working directory (CWD)");
681
- }
682
- path = Deno.cwd();
683
- }
684
- assertPath(path);
685
- // Skip empty entries
686
- if (path.length === 0) {
687
- continue;
688
- }
689
- resolvedPath = `${path}/${resolvedPath}`;
690
- resolvedAbsolute = isPosixPathSeparator(path.charCodeAt(0));
691
- }
692
- // At this point the path should be resolved to a full absolute path, but
693
- // handle relative paths to be safe (might happen when Deno.cwd() fails)
694
- // Normalize the path
695
- resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, "/", isPosixPathSeparator);
696
- if (resolvedAbsolute) {
697
- if (resolvedPath.length > 0) return `/${resolvedPath}`;
698
- else return "/";
699
- } else if (resolvedPath.length > 0) return resolvedPath;
700
- else return ".";
701
- }
702
-
703
- // Copyright 2018-2025 the Deno authors. MIT license.
704
- // This module is browser compatible.
705
- function assertArgs(from, to) {
706
- assertPath(from);
707
- assertPath(to);
708
- if (from === to) return "";
709
- }
710
-
711
- // Copyright 2018-2025 the Deno authors. MIT license.
712
- // This module is browser compatible.
713
- /**
714
- * Return the relative path from `from` to `to` based on current working directory.
715
- *
716
- * If `from` and `to` are the same, return an empty string.
717
- *
718
- * @example Usage
719
- * ```ts
720
- * import { relative } from "@std/path/posix/relative";
721
- * import { assertEquals } from "@std/assert";
722
- *
723
- * const path = relative("/data/orandea/test/aaa", "/data/orandea/impl/bbb");
724
- * assertEquals(path, "../../impl/bbb");
725
- * ```
726
- *
727
- * @param from The path to start from.
728
- * @param to The path to reach.
729
- * @returns The relative path.
730
- */ function relative(from, to) {
731
- assertArgs(from, to);
732
- from = resolve(from);
733
- to = resolve(to);
734
- if (from === to) return "";
735
- // Trim any leading backslashes
736
- let fromStart = 1;
737
- const fromEnd = from.length;
738
- for(; fromStart < fromEnd; ++fromStart){
739
- if (!isPosixPathSeparator(from.charCodeAt(fromStart))) break;
740
- }
741
- const fromLen = fromEnd - fromStart;
742
- // Trim any leading backslashes
743
- let toStart = 1;
744
- const toEnd = to.length;
745
- for(; toStart < toEnd; ++toStart){
746
- if (!isPosixPathSeparator(to.charCodeAt(toStart))) break;
747
- }
748
- const toLen = toEnd - toStart;
749
- // Compare paths to find the longest common path from root
750
- const length = fromLen < toLen ? fromLen : toLen;
751
- let lastCommonSep = -1;
752
- let i = 0;
753
- for(; i <= length; ++i){
754
- if (i === length) {
755
- if (toLen > length) {
756
- if (isPosixPathSeparator(to.charCodeAt(toStart + i))) {
757
- // We get here if `from` is the exact base path for `to`.
758
- // For example: from='/foo/bar'; to='/foo/bar/baz'
759
- return to.slice(toStart + i + 1);
760
- } else if (i === 0) {
761
- // We get here if `from` is the root
762
- // For example: from='/'; to='/foo'
763
- return to.slice(toStart + i);
764
- }
765
- } else if (fromLen > length) {
766
- if (isPosixPathSeparator(from.charCodeAt(fromStart + i))) {
767
- // We get here if `to` is the exact base path for `from`.
768
- // For example: from='/foo/bar/baz'; to='/foo/bar'
769
- lastCommonSep = i;
770
- } else if (i === 0) {
771
- // We get here if `to` is the root.
772
- // For example: from='/foo'; to='/'
773
- lastCommonSep = 0;
774
- }
775
- }
776
- break;
777
- }
778
- const fromCode = from.charCodeAt(fromStart + i);
779
- const toCode = to.charCodeAt(toStart + i);
780
- if (fromCode !== toCode) break;
781
- else if (isPosixPathSeparator(fromCode)) lastCommonSep = i;
782
- }
783
- let out = "";
784
- // Generate the relative path based on the path difference between `to`
785
- // and `from`
786
- for(i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i){
787
- if (i === fromEnd || isPosixPathSeparator(from.charCodeAt(i))) {
788
- if (out.length === 0) out += "..";
789
- else out += "/..";
790
- }
791
- }
792
- // Lastly, append the rest of the destination (`to`) path that comes after
793
- // the common path parts
794
- if (out.length > 0) return out + to.slice(toStart + lastCommonSep);
795
- else {
796
- toStart += lastCommonSep;
797
- if (isPosixPathSeparator(to.charCodeAt(toStart))) ++toStart;
798
- return to.slice(toStart);
799
- }
800
- }
801
-
802
- // Copyright 2018-2025 the Deno authors. MIT license.
803
- // This module is browser compatible.
804
- const WHITESPACE_ENCODINGS = {
805
- "\u0009": "%09",
806
- "\u000A": "%0A",
807
- "\u000B": "%0B",
808
- "\u000C": "%0C",
809
- "\u000D": "%0D",
810
- "\u0020": "%20"
811
- };
812
- function encodeWhitespace(string) {
813
- return string.replaceAll(/[\s]/g, (c)=>{
814
- return WHITESPACE_ENCODINGS[c] ?? c;
815
- });
816
- }
817
-
818
- // Copyright 2018-2025 the Deno authors. MIT license.
819
- // This module is browser compatible.
820
- /**
821
- * Converts a path string to a file URL.
822
- *
823
- * @example Usage
824
- * ```ts
825
- * import { toFileUrl } from "@std/path/posix/to-file-url";
826
- * import { assertEquals } from "@std/assert";
827
- *
828
- * assertEquals(toFileUrl("/home/foo"), new URL("file:///home/foo"));
829
- * assertEquals(toFileUrl("/home/foo bar"), new URL("file:///home/foo%20bar"));
830
- * ```
831
- *
832
- * @param path The path to convert.
833
- * @returns The file URL.
834
- */ function toFileUrl(path) {
835
- if (!isAbsolute(path)) {
836
- throw new TypeError(`Path must be absolute: received "${path}"`);
837
- }
838
- const url = new URL("file:///");
839
- url.pathname = encodeWhitespace(path.replace(/%/g, "%25").replace(/\\/g, "%5C"));
840
- return url;
841
- }
842
-
843
- // Copyright 2018-2025 the Deno authors. MIT license.
844
- // This module is browser compatible.
845
- /**
846
- * Converts a path to a namespaced path. This function returns the path as is on posix.
847
- *
848
- * @example Usage
849
- * ```ts
850
- * import { toNamespacedPath } from "@std/path/posix/to-namespaced-path";
851
- * import { assertEquals } from "@std/assert";
852
- *
853
- * assertEquals(toNamespacedPath("/home/foo"), "/home/foo");
854
- * ```
855
- *
856
- * @param path The path.
857
- * @returns The namespaced path.
858
- */ function toNamespacedPath(path) {
859
- // Non-op on posix systems
860
- return path;
861
- }
862
-
863
- // Copyright 2018-2025 the Deno authors. MIT license.
864
- // This module is browser compatible.
865
- function common$1(paths, sep) {
866
- const [first = "", ...remaining] = paths;
867
- const parts = first.split(sep);
868
- let endOfPrefix = parts.length;
869
- let append = "";
870
- for (const path of remaining){
871
- const compare = path.split(sep);
872
- if (compare.length <= endOfPrefix) {
873
- endOfPrefix = compare.length;
874
- append = "";
875
- }
876
- for(let i = 0; i < endOfPrefix; i++){
877
- if (compare[i] !== parts[i]) {
878
- endOfPrefix = i;
879
- append = i === 0 ? "" : sep;
880
- break;
881
- }
882
- }
883
- }
884
- return parts.slice(0, endOfPrefix).join(sep) + append;
885
- }
886
-
887
- // Copyright 2018-2025 the Deno authors. MIT license.
888
- // This module is browser compatible.
889
- /** Determines the common path from a set of paths for POSIX systems.
890
- *
891
- * @example Usage
892
- * ```ts
893
- * import { common } from "@std/path/posix/common";
894
- * import { assertEquals } from "@std/assert";
895
- *
896
- * const path = common([
897
- * "./deno/std/path/mod.ts",
898
- * "./deno/std/fs/mod.ts",
899
- * ]);
900
- * assertEquals(path, "./deno/std/");
901
- * ```
902
- *
903
- * @param paths The paths to compare.
904
- * @returns The common path.
905
- */ function common(paths) {
906
- return common$1(paths, SEPARATOR);
907
- }
908
-
909
- // Copyright 2018-2025 the Deno authors. MIT license.
910
- // This module is browser compatible.
911
- /**
912
- * Options for {@linkcode globToRegExp}, {@linkcode joinGlobs},
913
- * {@linkcode normalizeGlob} and {@linkcode expandGlob}.
914
- */ const REG_EXP_ESCAPE_CHARS = [
915
- "!",
916
- "$",
917
- "(",
918
- ")",
919
- "*",
920
- "+",
921
- ".",
922
- "=",
923
- "?",
924
- "[",
925
- "\\",
926
- "^",
927
- "{",
928
- "|"
929
- ];
930
- const RANGE_ESCAPE_CHARS = [
931
- "-",
932
- "\\",
933
- "]"
934
- ];
935
- function _globToRegExp(c, glob, { extended = true, globstar: globstarOption = true, // os = osType,
936
- caseInsensitive = false } = {}) {
937
- if (glob === "") {
938
- return /(?!)/;
939
- }
940
- // Remove trailing separators.
941
- let newLength = glob.length;
942
- for(; newLength > 1 && c.seps.includes(glob[newLength - 1]); newLength--);
943
- glob = glob.slice(0, newLength);
944
- let regExpString = "";
945
- // Terminates correctly. Trust that `j` is incremented every iteration.
946
- for(let j = 0; j < glob.length;){
947
- let segment = "";
948
- const groupStack = [];
949
- let inRange = false;
950
- let inEscape = false;
951
- let endsWithSep = false;
952
- let i = j;
953
- // Terminates with `i` at the non-inclusive end of the current segment.
954
- for(; i < glob.length && !(c.seps.includes(glob[i]) && groupStack.length === 0); i++){
955
- if (inEscape) {
956
- inEscape = false;
957
- const escapeChars = inRange ? RANGE_ESCAPE_CHARS : REG_EXP_ESCAPE_CHARS;
958
- segment += escapeChars.includes(glob[i]) ? `\\${glob[i]}` : glob[i];
959
- continue;
960
- }
961
- if (glob[i] === c.escapePrefix) {
962
- inEscape = true;
963
- continue;
964
- }
965
- if (glob[i] === "[") {
966
- if (!inRange) {
967
- inRange = true;
968
- segment += "[";
969
- if (glob[i + 1] === "!") {
970
- i++;
971
- segment += "^";
972
- } else if (glob[i + 1] === "^") {
973
- i++;
974
- segment += "\\^";
975
- }
976
- continue;
977
- } else if (glob[i + 1] === ":") {
978
- let k = i + 1;
979
- let value = "";
980
- while(glob[k + 1] !== undefined && glob[k + 1] !== ":"){
981
- value += glob[k + 1];
982
- k++;
983
- }
984
- if (glob[k + 1] === ":" && glob[k + 2] === "]") {
985
- i = k + 2;
986
- if (value === "alnum") segment += "\\dA-Za-z";
987
- else if (value === "alpha") segment += "A-Za-z";
988
- else if (value === "ascii") segment += "\x00-\x7F";
989
- else if (value === "blank") segment += "\t ";
990
- else if (value === "cntrl") segment += "\x00-\x1F\x7F";
991
- else if (value === "digit") segment += "\\d";
992
- else if (value === "graph") segment += "\x21-\x7E";
993
- else if (value === "lower") segment += "a-z";
994
- else if (value === "print") segment += "\x20-\x7E";
995
- else if (value === "punct") {
996
- segment += "!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~";
997
- } else if (value === "space") segment += "\\s\v";
998
- else if (value === "upper") segment += "A-Z";
999
- else if (value === "word") segment += "\\w";
1000
- else if (value === "xdigit") segment += "\\dA-Fa-f";
1001
- continue;
1002
- }
1003
- }
1004
- }
1005
- if (glob[i] === "]" && inRange) {
1006
- inRange = false;
1007
- segment += "]";
1008
- continue;
1009
- }
1010
- if (inRange) {
1011
- segment += glob[i];
1012
- continue;
1013
- }
1014
- if (glob[i] === ")" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") {
1015
- segment += ")";
1016
- const type = groupStack.pop();
1017
- if (type === "!") {
1018
- segment += c.wildcard;
1019
- } else if (type !== "@") {
1020
- segment += type;
1021
- }
1022
- continue;
1023
- }
1024
- if (glob[i] === "|" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") {
1025
- segment += "|";
1026
- continue;
1027
- }
1028
- if (glob[i] === "+" && extended && glob[i + 1] === "(") {
1029
- i++;
1030
- groupStack.push("+");
1031
- segment += "(?:";
1032
- continue;
1033
- }
1034
- if (glob[i] === "@" && extended && glob[i + 1] === "(") {
1035
- i++;
1036
- groupStack.push("@");
1037
- segment += "(?:";
1038
- continue;
1039
- }
1040
- if (glob[i] === "?") {
1041
- if (extended && glob[i + 1] === "(") {
1042
- i++;
1043
- groupStack.push("?");
1044
- segment += "(?:";
1045
- } else {
1046
- segment += ".";
1047
- }
1048
- continue;
1049
- }
1050
- if (glob[i] === "!" && extended && glob[i + 1] === "(") {
1051
- i++;
1052
- groupStack.push("!");
1053
- segment += "(?!";
1054
- continue;
1055
- }
1056
- if (glob[i] === "{") {
1057
- groupStack.push("BRACE");
1058
- segment += "(?:";
1059
- continue;
1060
- }
1061
- if (glob[i] === "}" && groupStack[groupStack.length - 1] === "BRACE") {
1062
- groupStack.pop();
1063
- segment += ")";
1064
- continue;
1065
- }
1066
- if (glob[i] === "," && groupStack[groupStack.length - 1] === "BRACE") {
1067
- segment += "|";
1068
- continue;
1069
- }
1070
- if (glob[i] === "*") {
1071
- if (extended && glob[i + 1] === "(") {
1072
- i++;
1073
- groupStack.push("*");
1074
- segment += "(?:";
1075
- } else {
1076
- const prevChar = glob[i - 1];
1077
- let numStars = 1;
1078
- while(glob[i + 1] === "*"){
1079
- i++;
1080
- numStars++;
1081
- }
1082
- const nextChar = glob[i + 1];
1083
- if (globstarOption && numStars === 2 && [
1084
- ...c.seps,
1085
- undefined
1086
- ].includes(prevChar) && [
1087
- ...c.seps,
1088
- undefined
1089
- ].includes(nextChar)) {
1090
- segment += c.globstar;
1091
- endsWithSep = true;
1092
- } else {
1093
- segment += c.wildcard;
1094
- }
1095
- }
1096
- continue;
1097
- }
1098
- segment += REG_EXP_ESCAPE_CHARS.includes(glob[i]) ? `\\${glob[i]}` : glob[i];
1099
- }
1100
- // Check for unclosed groups or a dangling backslash.
1101
- if (groupStack.length > 0 || inRange || inEscape) {
1102
- // Parse failure. Take all characters from this segment literally.
1103
- segment = "";
1104
- for (const c of glob.slice(j, i)){
1105
- segment += REG_EXP_ESCAPE_CHARS.includes(c) ? `\\${c}` : c;
1106
- endsWithSep = false;
1107
- }
1108
- }
1109
- regExpString += segment;
1110
- if (!endsWithSep) {
1111
- regExpString += i < glob.length ? c.sep : c.sepMaybe;
1112
- endsWithSep = true;
1113
- }
1114
- // Terminates with `i` at the start of the next segment.
1115
- while(c.seps.includes(glob[i]))i++;
1116
- j = i;
1117
- }
1118
- regExpString = `^${regExpString}$`;
1119
- return new RegExp(regExpString, caseInsensitive ? "i" : "");
1120
- }
1121
-
1122
- // Copyright 2018-2025 the Deno authors. MIT license.
1123
- // This module is browser compatible.
1124
- const constants = {
1125
- sep: "/+",
1126
- sepMaybe: "/*",
1127
- seps: [
1128
- "/"
1129
- ],
1130
- globstar: "(?:[^/]*(?:/|$)+)*",
1131
- wildcard: "[^/]*",
1132
- escapePrefix: "\\"
1133
- };
1134
- /** Convert a glob string to a regular expression.
1135
- *
1136
- * Tries to match bash glob expansion as closely as possible.
1137
- *
1138
- * Basic glob syntax:
1139
- * - `*` - Matches everything without leaving the path segment.
1140
- * - `?` - Matches any single character.
1141
- * - `{foo,bar}` - Matches `foo` or `bar`.
1142
- * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
1143
- * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
1144
- * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
1145
- * - `[[:<class>:]]` - Matches any character belonging to `<class>`.
1146
- * - `[[:alnum:]]` - Matches any digit or letter.
1147
- * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
1148
- * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
1149
- * for a complete list of supported character classes.
1150
- * - `\` - Escapes the next character for an `os` other than `"windows"`.
1151
- * - \` - Escapes the next character for `os` set to `"windows"`.
1152
- * - `/` - Path separator.
1153
- * - `\` - Additional path separator only for `os` set to `"windows"`.
1154
- *
1155
- * Extended syntax:
1156
- * - Requires `{ extended: true }`.
1157
- * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
1158
- * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
1159
- * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
1160
- * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
1161
- * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
1162
- * - See https://www.linuxjournal.com/content/bash-extended-globbing.
1163
- *
1164
- * Globstar syntax:
1165
- * - Requires `{ globstar: true }`.
1166
- * - `**` - Matches any number of any path segments.
1167
- * - Must comprise its entire path segment in the provided glob.
1168
- * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
1169
- *
1170
- * Note the following properties:
1171
- * - The generated `RegExp` is anchored at both start and end.
1172
- * - Repeating and trailing separators are tolerated. Trailing separators in the
1173
- * provided glob have no meaning and are discarded.
1174
- * - Absolute globs will only match absolute paths, etc.
1175
- * - Empty globs will match nothing.
1176
- * - Any special glob syntax must be contained to one path segment. For example,
1177
- * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
1178
- * first segment ends with an unclosed group.
1179
- * - If a path segment ends with unclosed groups or a dangling escape prefix, a
1180
- * parse error has occurred. Every character for that segment is taken
1181
- * literally in this event.
1182
- *
1183
- * Limitations:
1184
- * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
1185
- * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
1186
- * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
1187
- * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
1188
- * the group occurs not nested at the end of the segment.
1189
- *
1190
- * @example Usage
1191
- * ```ts
1192
- * import { globToRegExp } from "@std/path/posix/glob-to-regexp";
1193
- * import { assertEquals } from "@std/assert";
1194
- *
1195
- * assertEquals(globToRegExp("*.js"), /^[^/]*\.js\/*$/);
1196
- * ```
1197
- *
1198
- * @param glob Glob string to convert.
1199
- * @param options Conversion options.
1200
- * @returns The regular expression equivalent to the glob.
1201
- */ function globToRegExp(glob, options = {}) {
1202
- return _globToRegExp(constants, glob, options);
1203
- }
1204
-
1205
- // Copyright 2018-2025 the Deno authors. MIT license.
1206
- // This module is browser compatible.
1207
- /**
1208
- * Test whether the given string is a glob.
1209
- *
1210
- * @example Usage
1211
- * ```ts
1212
- * import { isGlob } from "@std/path/is-glob";
1213
- * import { assert } from "@std/assert";
1214
- *
1215
- * assert(!isGlob("foo/bar/../baz"));
1216
- * assert(isGlob("foo/*ar/../baz"));
1217
- * ```
1218
- *
1219
- * @param str String to test.
1220
- * @returns `true` if the given string is a glob, otherwise `false`
1221
- */ function isGlob(str) {
1222
- const chars = {
1223
- "{": "}",
1224
- "(": ")",
1225
- "[": "]"
1226
- };
1227
- const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\)|@\([^)]+\))/;
1228
- if (str === "") {
1229
- return false;
1230
- }
1231
- let match;
1232
- while(match = regex.exec(str)){
1233
- if (match[2]) return true;
1234
- let idx = match.index + match[0].length;
1235
- // if an open bracket/brace/paren is escaped,
1236
- // set the index to the next closing character
1237
- const open = match[1];
1238
- const close = open ? chars[open] : null;
1239
- if (open && close) {
1240
- const n = str.indexOf(close, idx);
1241
- if (n !== -1) {
1242
- idx = n + 1;
1243
- }
1244
- }
1245
- str = str.slice(idx);
1246
- }
1247
- return false;
1248
- }
1249
-
1250
- // Copyright 2018-2025 the Deno authors. MIT license.
1251
- // This module is browser compatible.
1252
- /**
1253
- * Like normalize(), but doesn't collapse "**\/.." when `globstar` is true.
1254
- *
1255
- * @example Usage
1256
- * ```ts
1257
- * import { normalizeGlob } from "@std/path/posix/normalize-glob";
1258
- * import { assertEquals } from "@std/assert";
1259
- *
1260
- * const path = normalizeGlob("foo/bar/../*", { globstar: true });
1261
- * assertEquals(path, "foo/*");
1262
- * ```
1263
- *
1264
- * @param glob The glob to normalize.
1265
- * @param options The options to use.
1266
- * @returns The normalized path.
1267
- */ function normalizeGlob(glob, options = {}) {
1268
- const { globstar = false } = options;
1269
- if (glob.match(/\0/g)) {
1270
- throw new Error(`Glob contains invalid characters: "${glob}"`);
1271
- }
1272
- if (!globstar) {
1273
- return normalize(glob);
1274
- }
1275
- const s = SEPARATOR_PATTERN.source;
1276
- const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
1277
- return normalize(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
1278
- }
1279
-
1280
- // Copyright 2018-2025 the Deno authors. MIT license.
1281
- // This module is browser compatible.
1282
- /**
1283
- * Like join(), but doesn't collapse "**\/.." when `globstar` is true.
1284
- *
1285
- * @example Usage
1286
- * ```ts
1287
- * import { joinGlobs } from "@std/path/posix/join-globs";
1288
- * import { assertEquals } from "@std/assert";
1289
- *
1290
- * const path = joinGlobs(["foo", "bar", "**"], { globstar: true });
1291
- * assertEquals(path, "foo/bar/**");
1292
- * ```
1293
- *
1294
- * @param globs The globs to join.
1295
- * @param options The options to use.
1296
- * @returns The joined path.
1297
- */ function joinGlobs(globs, options = {}) {
1298
- const { globstar = false } = options;
1299
- if (!globstar || globs.length === 0) {
1300
- return join(...globs);
1301
- }
1302
- let joined;
1303
- for (const glob of globs){
1304
- const path = glob;
1305
- if (path.length > 0) {
1306
- if (!joined) joined = path;
1307
- else joined += `${SEPARATOR}${path}`;
1308
- }
1309
- }
1310
- if (!joined) return ".";
1311
- return normalizeGlob(joined, {
1312
- globstar
1313
- });
1314
- }
1315
-
1316
- exports.DELIMITER = DELIMITER;
1317
- exports.SEPARATOR = SEPARATOR;
1318
- exports.SEPARATOR_PATTERN = SEPARATOR_PATTERN;
1319
- exports.basename = basename;
1320
- exports.common = common;
1321
- exports.dirname = dirname;
1322
- exports.extname = extname;
1323
- exports.format = format;
1324
- exports.fromFileUrl = fromFileUrl;
1325
- exports.globToRegExp = globToRegExp;
1326
- exports.isAbsolute = isAbsolute;
1327
- exports.isGlob = isGlob;
1328
- exports.join = join;
1329
- exports.joinGlobs = joinGlobs;
1330
- exports.normalize = normalize;
1331
- exports.normalizeGlob = normalizeGlob;
1332
- exports.parse = parse;
1333
- exports.relative = relative;
1334
- exports.resolve = resolve;
1335
- exports.toFileUrl = toFileUrl;
1336
- exports.toNamespacedPath = toNamespacedPath;