@alexlit/lint-kit 182.4.0 → 183.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 (632) hide show
  1. package/package.json +1 -1
  2. package/packages/config-commitlint/package.json +3 -3
  3. package/packages/config-eslint/node_modules/ajv/.tonic_example.js +20 -0
  4. package/packages/config-eslint/node_modules/ajv/LICENSE +22 -0
  5. package/packages/config-eslint/node_modules/ajv/README.md +1505 -0
  6. package/packages/config-eslint/node_modules/ajv/dist/ajv.bundle.js +7201 -0
  7. package/packages/config-eslint/node_modules/ajv/dist/ajv.min.js +3 -0
  8. package/packages/config-eslint/node_modules/ajv/dist/ajv.min.js.map +1 -0
  9. package/packages/config-eslint/node_modules/ajv/lib/ajv.d.ts +402 -0
  10. package/packages/config-eslint/node_modules/ajv/lib/ajv.js +506 -0
  11. package/packages/config-eslint/node_modules/ajv/lib/cache.js +26 -0
  12. package/packages/config-eslint/node_modules/ajv/lib/compile/async.js +90 -0
  13. package/packages/config-eslint/node_modules/ajv/lib/compile/equal.js +5 -0
  14. package/packages/config-eslint/node_modules/ajv/lib/compile/error_classes.js +34 -0
  15. package/packages/config-eslint/node_modules/ajv/lib/compile/formats.js +142 -0
  16. package/packages/config-eslint/node_modules/ajv/lib/compile/index.js +389 -0
  17. package/packages/config-eslint/node_modules/ajv/lib/compile/resolve.js +270 -0
  18. package/packages/config-eslint/node_modules/ajv/lib/compile/rules.js +66 -0
  19. package/packages/config-eslint/node_modules/ajv/lib/compile/schema_obj.js +9 -0
  20. package/packages/config-eslint/node_modules/ajv/lib/compile/ucs2length.js +20 -0
  21. package/packages/config-eslint/node_modules/ajv/lib/compile/util.js +239 -0
  22. package/packages/config-eslint/node_modules/ajv/lib/data.js +49 -0
  23. package/packages/config-eslint/node_modules/ajv/lib/definition_schema.js +37 -0
  24. package/packages/config-eslint/node_modules/ajv/lib/dot/_limit.jst +113 -0
  25. package/packages/config-eslint/node_modules/ajv/lib/dot/_limitItems.jst +12 -0
  26. package/packages/config-eslint/node_modules/ajv/lib/dot/_limitLength.jst +12 -0
  27. package/packages/config-eslint/node_modules/ajv/lib/dot/_limitProperties.jst +12 -0
  28. package/packages/config-eslint/node_modules/ajv/lib/dot/allOf.jst +32 -0
  29. package/packages/config-eslint/node_modules/ajv/lib/dot/anyOf.jst +46 -0
  30. package/packages/config-eslint/node_modules/ajv/lib/dot/coerce.def +51 -0
  31. package/packages/config-eslint/node_modules/ajv/lib/dot/comment.jst +9 -0
  32. package/packages/config-eslint/node_modules/ajv/lib/dot/const.jst +11 -0
  33. package/packages/config-eslint/node_modules/ajv/lib/dot/contains.jst +55 -0
  34. package/packages/config-eslint/node_modules/ajv/lib/dot/custom.jst +191 -0
  35. package/packages/config-eslint/node_modules/ajv/lib/dot/defaults.def +47 -0
  36. package/packages/config-eslint/node_modules/ajv/lib/dot/definitions.def +203 -0
  37. package/packages/config-eslint/node_modules/ajv/lib/dot/dependencies.jst +79 -0
  38. package/packages/config-eslint/node_modules/ajv/lib/dot/enum.jst +30 -0
  39. package/packages/config-eslint/node_modules/ajv/lib/dot/errors.def +194 -0
  40. package/packages/config-eslint/node_modules/ajv/lib/dot/format.jst +106 -0
  41. package/packages/config-eslint/node_modules/ajv/lib/dot/if.jst +73 -0
  42. package/packages/config-eslint/node_modules/ajv/lib/dot/items.jst +98 -0
  43. package/packages/config-eslint/node_modules/ajv/lib/dot/missing.def +39 -0
  44. package/packages/config-eslint/node_modules/ajv/lib/dot/multipleOf.jst +22 -0
  45. package/packages/config-eslint/node_modules/ajv/lib/dot/not.jst +43 -0
  46. package/packages/config-eslint/node_modules/ajv/lib/dot/oneOf.jst +54 -0
  47. package/packages/config-eslint/node_modules/ajv/lib/dot/pattern.jst +25 -0
  48. package/packages/config-eslint/node_modules/ajv/lib/dot/properties.jst +245 -0
  49. package/packages/config-eslint/node_modules/ajv/lib/dot/propertyNames.jst +52 -0
  50. package/packages/config-eslint/node_modules/ajv/lib/dot/ref.jst +85 -0
  51. package/packages/config-eslint/node_modules/ajv/lib/dot/required.jst +108 -0
  52. package/packages/config-eslint/node_modules/ajv/lib/dot/uniqueItems.jst +62 -0
  53. package/packages/config-eslint/node_modules/ajv/lib/dot/validate.jst +276 -0
  54. package/packages/config-eslint/node_modules/ajv/lib/dotjs/README.md +3 -0
  55. package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limit.js +163 -0
  56. package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limitItems.js +80 -0
  57. package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limitLength.js +85 -0
  58. package/packages/config-eslint/node_modules/ajv/lib/dotjs/_limitProperties.js +80 -0
  59. package/packages/config-eslint/node_modules/ajv/lib/dotjs/allOf.js +42 -0
  60. package/packages/config-eslint/node_modules/ajv/lib/dotjs/anyOf.js +73 -0
  61. package/packages/config-eslint/node_modules/ajv/lib/dotjs/comment.js +14 -0
  62. package/packages/config-eslint/node_modules/ajv/lib/dotjs/const.js +56 -0
  63. package/packages/config-eslint/node_modules/ajv/lib/dotjs/contains.js +81 -0
  64. package/packages/config-eslint/node_modules/ajv/lib/dotjs/custom.js +228 -0
  65. package/packages/config-eslint/node_modules/ajv/lib/dotjs/dependencies.js +168 -0
  66. package/packages/config-eslint/node_modules/ajv/lib/dotjs/enum.js +66 -0
  67. package/packages/config-eslint/node_modules/ajv/lib/dotjs/format.js +150 -0
  68. package/packages/config-eslint/node_modules/ajv/lib/dotjs/if.js +103 -0
  69. package/packages/config-eslint/node_modules/ajv/lib/dotjs/index.js +33 -0
  70. package/packages/config-eslint/node_modules/ajv/lib/dotjs/items.js +140 -0
  71. package/packages/config-eslint/node_modules/ajv/lib/dotjs/multipleOf.js +80 -0
  72. package/packages/config-eslint/node_modules/ajv/lib/dotjs/not.js +84 -0
  73. package/packages/config-eslint/node_modules/ajv/lib/dotjs/oneOf.js +73 -0
  74. package/packages/config-eslint/node_modules/ajv/lib/dotjs/pattern.js +85 -0
  75. package/packages/config-eslint/node_modules/ajv/lib/dotjs/properties.js +335 -0
  76. package/packages/config-eslint/node_modules/ajv/lib/dotjs/propertyNames.js +81 -0
  77. package/packages/config-eslint/node_modules/ajv/lib/dotjs/ref.js +124 -0
  78. package/packages/config-eslint/node_modules/ajv/lib/dotjs/required.js +270 -0
  79. package/packages/config-eslint/node_modules/ajv/lib/dotjs/uniqueItems.js +86 -0
  80. package/packages/config-eslint/node_modules/ajv/lib/dotjs/validate.js +482 -0
  81. package/packages/config-eslint/node_modules/ajv/lib/keyword.js +146 -0
  82. package/packages/config-eslint/node_modules/ajv/lib/refs/data.json +17 -0
  83. package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-draft-04.json +149 -0
  84. package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-draft-06.json +154 -0
  85. package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-draft-07.json +168 -0
  86. package/packages/config-eslint/node_modules/ajv/lib/refs/json-schema-secure.json +94 -0
  87. package/packages/config-eslint/node_modules/ajv/package.json +107 -0
  88. package/packages/config-eslint/node_modules/ajv/scripts/.eslintrc.yml +3 -0
  89. package/packages/config-eslint/node_modules/ajv/scripts/bundle.js +61 -0
  90. package/packages/config-eslint/node_modules/ajv/scripts/compile-dots.js +73 -0
  91. package/packages/config-eslint/node_modules/ajv/scripts/info +10 -0
  92. package/packages/config-eslint/node_modules/ajv/scripts/prepare-tests +12 -0
  93. package/packages/config-eslint/node_modules/ajv/scripts/publish-built-version +32 -0
  94. package/packages/config-eslint/node_modules/ajv/scripts/travis-gh-pages +23 -0
  95. package/packages/config-eslint/node_modules/balanced-match/LICENSE.md +23 -0
  96. package/packages/config-eslint/node_modules/balanced-match/README.md +57 -0
  97. package/packages/config-eslint/node_modules/balanced-match/dist/commonjs/index.d.ts +9 -0
  98. package/packages/config-eslint/node_modules/balanced-match/dist/commonjs/index.d.ts.map +1 -0
  99. package/packages/config-eslint/node_modules/balanced-match/dist/commonjs/index.js +59 -0
  100. package/packages/config-eslint/node_modules/balanced-match/dist/commonjs/index.js.map +1 -0
  101. package/packages/config-eslint/node_modules/balanced-match/dist/commonjs/package.json +3 -0
  102. package/packages/config-eslint/node_modules/balanced-match/dist/esm/index.d.ts +9 -0
  103. package/packages/config-eslint/node_modules/balanced-match/dist/esm/index.d.ts.map +1 -0
  104. package/packages/config-eslint/node_modules/balanced-match/dist/esm/index.js +54 -0
  105. package/packages/config-eslint/node_modules/balanced-match/dist/esm/index.js.map +1 -0
  106. package/packages/config-eslint/node_modules/balanced-match/dist/esm/package.json +3 -0
  107. package/packages/config-eslint/node_modules/balanced-match/package.json +68 -0
  108. package/packages/config-eslint/node_modules/brace-expansion/LICENSE +23 -0
  109. package/packages/config-eslint/node_modules/brace-expansion/README.md +94 -0
  110. package/packages/config-eslint/node_modules/brace-expansion/dist/commonjs/index.d.ts +6 -0
  111. package/packages/config-eslint/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -0
  112. package/packages/config-eslint/node_modules/brace-expansion/dist/commonjs/index.js +199 -0
  113. package/packages/config-eslint/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -0
  114. package/packages/config-eslint/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
  115. package/packages/config-eslint/node_modules/brace-expansion/dist/esm/index.d.ts +6 -0
  116. package/packages/config-eslint/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -0
  117. package/packages/config-eslint/node_modules/brace-expansion/dist/esm/index.js +195 -0
  118. package/packages/config-eslint/node_modules/brace-expansion/dist/esm/index.js.map +1 -0
  119. package/packages/config-eslint/node_modules/brace-expansion/dist/esm/package.json +3 -0
  120. package/packages/config-eslint/node_modules/brace-expansion/package.json +64 -0
  121. package/packages/config-eslint/node_modules/eslint/LICENSE +19 -0
  122. package/packages/config-eslint/node_modules/eslint/README.md +369 -0
  123. package/packages/config-eslint/node_modules/eslint/bin/eslint.js +195 -0
  124. package/packages/config-eslint/node_modules/eslint/conf/ecma-version.js +16 -0
  125. package/packages/config-eslint/node_modules/eslint/conf/globals.js +169 -0
  126. package/packages/config-eslint/node_modules/eslint/conf/replacements.json +26 -0
  127. package/packages/config-eslint/node_modules/eslint/conf/rule-type-list.json +91 -0
  128. package/packages/config-eslint/node_modules/eslint/lib/api.js +39 -0
  129. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json +18 -0
  130. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/html.js +359 -0
  131. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js +16 -0
  132. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/json.js +13 -0
  133. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/formatters/stylish.js +153 -0
  134. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/hash.js +35 -0
  135. package/packages/config-eslint/node_modules/eslint/lib/cli-engine/lint-result-cache.js +220 -0
  136. package/packages/config-eslint/node_modules/eslint/lib/cli.js +521 -0
  137. package/packages/config-eslint/node_modules/eslint/lib/config/config-loader.js +668 -0
  138. package/packages/config-eslint/node_modules/eslint/lib/config/config.js +674 -0
  139. package/packages/config-eslint/node_modules/eslint/lib/config/default-config.js +78 -0
  140. package/packages/config-eslint/node_modules/eslint/lib/config/flat-config-array.js +217 -0
  141. package/packages/config-eslint/node_modules/eslint/lib/config/flat-config-schema.js +598 -0
  142. package/packages/config-eslint/node_modules/eslint/lib/config-api.js +12 -0
  143. package/packages/config-eslint/node_modules/eslint/lib/eslint/eslint-helpers.js +1462 -0
  144. package/packages/config-eslint/node_modules/eslint/lib/eslint/eslint.js +1364 -0
  145. package/packages/config-eslint/node_modules/eslint/lib/eslint/index.js +7 -0
  146. package/packages/config-eslint/node_modules/eslint/lib/eslint/worker.js +173 -0
  147. package/packages/config-eslint/node_modules/eslint/lib/languages/js/index.js +336 -0
  148. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/index.js +7 -0
  149. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/source-code.js +1178 -0
  150. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-comment-cursor.js +61 -0
  151. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-cursor.js +57 -0
  152. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/cursor.js +76 -0
  153. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/cursors.js +120 -0
  154. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/decorative-cursor.js +38 -0
  155. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/filter-cursor.js +42 -0
  156. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-comment-cursor.js +65 -0
  157. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-cursor.js +62 -0
  158. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/index.js +695 -0
  159. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/limit-cursor.js +39 -0
  160. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/padded-token-cursor.js +45 -0
  161. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/skip-cursor.js +41 -0
  162. package/packages/config-eslint/node_modules/eslint/lib/languages/js/source-code/token-store/utils.js +131 -0
  163. package/packages/config-eslint/node_modules/eslint/lib/languages/js/validate-language-options.js +196 -0
  164. package/packages/config-eslint/node_modules/eslint/lib/linter/apply-disable-directives.js +583 -0
  165. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +828 -0
  166. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js +262 -0
  167. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js +2370 -0
  168. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +332 -0
  169. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +223 -0
  170. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +374 -0
  171. package/packages/config-eslint/node_modules/eslint/lib/linter/code-path-analysis/id-generator.js +44 -0
  172. package/packages/config-eslint/node_modules/eslint/lib/linter/esquery.js +332 -0
  173. package/packages/config-eslint/node_modules/eslint/lib/linter/file-context.js +88 -0
  174. package/packages/config-eslint/node_modules/eslint/lib/linter/file-report.js +604 -0
  175. package/packages/config-eslint/node_modules/eslint/lib/linter/index.js +11 -0
  176. package/packages/config-eslint/node_modules/eslint/lib/linter/interpolate.js +50 -0
  177. package/packages/config-eslint/node_modules/eslint/lib/linter/linter.js +1614 -0
  178. package/packages/config-eslint/node_modules/eslint/lib/linter/rule-fixer.js +199 -0
  179. package/packages/config-eslint/node_modules/eslint/lib/linter/source-code-fixer.js +154 -0
  180. package/packages/config-eslint/node_modules/eslint/lib/linter/source-code-traverser.js +333 -0
  181. package/packages/config-eslint/node_modules/eslint/lib/linter/source-code-visitor.js +81 -0
  182. package/packages/config-eslint/node_modules/eslint/lib/linter/timing.js +209 -0
  183. package/packages/config-eslint/node_modules/eslint/lib/linter/vfile.js +115 -0
  184. package/packages/config-eslint/node_modules/eslint/lib/options.js +416 -0
  185. package/packages/config-eslint/node_modules/eslint/lib/rule-tester/index.js +7 -0
  186. package/packages/config-eslint/node_modules/eslint/lib/rule-tester/rule-tester.js +1996 -0
  187. package/packages/config-eslint/node_modules/eslint/lib/rules/accessor-pairs.js +420 -0
  188. package/packages/config-eslint/node_modules/eslint/lib/rules/array-bracket-newline.js +291 -0
  189. package/packages/config-eslint/node_modules/eslint/lib/rules/array-bracket-spacing.js +301 -0
  190. package/packages/config-eslint/node_modules/eslint/lib/rules/array-callback-return.js +510 -0
  191. package/packages/config-eslint/node_modules/eslint/lib/rules/array-element-newline.js +374 -0
  192. package/packages/config-eslint/node_modules/eslint/lib/rules/arrow-body-style.js +418 -0
  193. package/packages/config-eslint/node_modules/eslint/lib/rules/arrow-parens.js +237 -0
  194. package/packages/config-eslint/node_modules/eslint/lib/rules/arrow-spacing.js +188 -0
  195. package/packages/config-eslint/node_modules/eslint/lib/rules/block-scoped-var.js +144 -0
  196. package/packages/config-eslint/node_modules/eslint/lib/rules/block-spacing.js +202 -0
  197. package/packages/config-eslint/node_modules/eslint/lib/rules/brace-style.js +278 -0
  198. package/packages/config-eslint/node_modules/eslint/lib/rules/callback-return.js +216 -0
  199. package/packages/config-eslint/node_modules/eslint/lib/rules/camelcase.js +422 -0
  200. package/packages/config-eslint/node_modules/eslint/lib/rules/capitalized-comments.js +325 -0
  201. package/packages/config-eslint/node_modules/eslint/lib/rules/class-methods-use-this.js +250 -0
  202. package/packages/config-eslint/node_modules/eslint/lib/rules/comma-dangle.js +424 -0
  203. package/packages/config-eslint/node_modules/eslint/lib/rules/comma-spacing.js +205 -0
  204. package/packages/config-eslint/node_modules/eslint/lib/rules/comma-style.js +391 -0
  205. package/packages/config-eslint/node_modules/eslint/lib/rules/complexity.js +201 -0
  206. package/packages/config-eslint/node_modules/eslint/lib/rules/computed-property-spacing.js +251 -0
  207. package/packages/config-eslint/node_modules/eslint/lib/rules/consistent-return.js +221 -0
  208. package/packages/config-eslint/node_modules/eslint/lib/rules/consistent-this.js +179 -0
  209. package/packages/config-eslint/node_modules/eslint/lib/rules/constructor-super.js +453 -0
  210. package/packages/config-eslint/node_modules/eslint/lib/rules/curly.js +425 -0
  211. package/packages/config-eslint/node_modules/eslint/lib/rules/default-case-last.js +51 -0
  212. package/packages/config-eslint/node_modules/eslint/lib/rules/default-case.js +103 -0
  213. package/packages/config-eslint/node_modules/eslint/lib/rules/default-param-last.js +78 -0
  214. package/packages/config-eslint/node_modules/eslint/lib/rules/dot-location.js +138 -0
  215. package/packages/config-eslint/node_modules/eslint/lib/rules/dot-notation.js +216 -0
  216. package/packages/config-eslint/node_modules/eslint/lib/rules/eol-last.js +135 -0
  217. package/packages/config-eslint/node_modules/eslint/lib/rules/eqeqeq.js +210 -0
  218. package/packages/config-eslint/node_modules/eslint/lib/rules/for-direction.js +168 -0
  219. package/packages/config-eslint/node_modules/eslint/lib/rules/func-call-spacing.js +281 -0
  220. package/packages/config-eslint/node_modules/eslint/lib/rules/func-name-matching.js +338 -0
  221. package/packages/config-eslint/node_modules/eslint/lib/rules/func-names.js +204 -0
  222. package/packages/config-eslint/node_modules/eslint/lib/rules/func-style.js +221 -0
  223. package/packages/config-eslint/node_modules/eslint/lib/rules/function-call-argument-newline.js +166 -0
  224. package/packages/config-eslint/node_modules/eslint/lib/rules/function-paren-newline.js +368 -0
  225. package/packages/config-eslint/node_modules/eslint/lib/rules/generator-star-spacing.js +246 -0
  226. package/packages/config-eslint/node_modules/eslint/lib/rules/getter-return.js +242 -0
  227. package/packages/config-eslint/node_modules/eslint/lib/rules/global-require.js +117 -0
  228. package/packages/config-eslint/node_modules/eslint/lib/rules/grouped-accessor-pairs.js +268 -0
  229. package/packages/config-eslint/node_modules/eslint/lib/rules/guard-for-in.js +85 -0
  230. package/packages/config-eslint/node_modules/eslint/lib/rules/handle-callback-err.js +122 -0
  231. package/packages/config-eslint/node_modules/eslint/lib/rules/id-blacklist.js +241 -0
  232. package/packages/config-eslint/node_modules/eslint/lib/rules/id-denylist.js +223 -0
  233. package/packages/config-eslint/node_modules/eslint/lib/rules/id-length.js +217 -0
  234. package/packages/config-eslint/node_modules/eslint/lib/rules/id-match.js +363 -0
  235. package/packages/config-eslint/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js +125 -0
  236. package/packages/config-eslint/node_modules/eslint/lib/rules/indent-legacy.js +1369 -0
  237. package/packages/config-eslint/node_modules/eslint/lib/rules/indent.js +2334 -0
  238. package/packages/config-eslint/node_modules/eslint/lib/rules/index.js +332 -0
  239. package/packages/config-eslint/node_modules/eslint/lib/rules/init-declarations.js +172 -0
  240. package/packages/config-eslint/node_modules/eslint/lib/rules/jsx-quotes.js +128 -0
  241. package/packages/config-eslint/node_modules/eslint/lib/rules/key-spacing.js +822 -0
  242. package/packages/config-eslint/node_modules/eslint/lib/rules/keyword-spacing.js +701 -0
  243. package/packages/config-eslint/node_modules/eslint/lib/rules/line-comment-position.js +157 -0
  244. package/packages/config-eslint/node_modules/eslint/lib/rules/linebreak-style.js +135 -0
  245. package/packages/config-eslint/node_modules/eslint/lib/rules/lines-around-comment.js +581 -0
  246. package/packages/config-eslint/node_modules/eslint/lib/rules/lines-around-directive.js +249 -0
  247. package/packages/config-eslint/node_modules/eslint/lib/rules/lines-between-class-members.js +358 -0
  248. package/packages/config-eslint/node_modules/eslint/lib/rules/logical-assignment-operators.js +688 -0
  249. package/packages/config-eslint/node_modules/eslint/lib/rules/max-classes-per-file.js +90 -0
  250. package/packages/config-eslint/node_modules/eslint/lib/rules/max-depth.js +159 -0
  251. package/packages/config-eslint/node_modules/eslint/lib/rules/max-len.js +497 -0
  252. package/packages/config-eslint/node_modules/eslint/lib/rules/max-lines-per-function.js +238 -0
  253. package/packages/config-eslint/node_modules/eslint/lib/rules/max-lines.js +189 -0
  254. package/packages/config-eslint/node_modules/eslint/lib/rules/max-nested-callbacks.js +115 -0
  255. package/packages/config-eslint/node_modules/eslint/lib/rules/max-params.js +148 -0
  256. package/packages/config-eslint/node_modules/eslint/lib/rules/max-statements-per-line.js +224 -0
  257. package/packages/config-eslint/node_modules/eslint/lib/rules/max-statements.js +188 -0
  258. package/packages/config-eslint/node_modules/eslint/lib/rules/multiline-comment-style.js +652 -0
  259. package/packages/config-eslint/node_modules/eslint/lib/rules/multiline-ternary.js +257 -0
  260. package/packages/config-eslint/node_modules/eslint/lib/rules/new-cap.js +277 -0
  261. package/packages/config-eslint/node_modules/eslint/lib/rules/new-parens.js +120 -0
  262. package/packages/config-eslint/node_modules/eslint/lib/rules/newline-after-var.js +307 -0
  263. package/packages/config-eslint/node_modules/eslint/lib/rules/newline-before-return.js +242 -0
  264. package/packages/config-eslint/node_modules/eslint/lib/rules/newline-per-chained-call.js +159 -0
  265. package/packages/config-eslint/node_modules/eslint/lib/rules/no-alert.js +149 -0
  266. package/packages/config-eslint/node_modules/eslint/lib/rules/no-array-constructor.js +195 -0
  267. package/packages/config-eslint/node_modules/eslint/lib/rules/no-async-promise-executor.js +45 -0
  268. package/packages/config-eslint/node_modules/eslint/lib/rules/no-await-in-loop.js +115 -0
  269. package/packages/config-eslint/node_modules/eslint/lib/rules/no-bitwise.js +145 -0
  270. package/packages/config-eslint/node_modules/eslint/lib/rules/no-buffer-constructor.js +74 -0
  271. package/packages/config-eslint/node_modules/eslint/lib/rules/no-caller.js +52 -0
  272. package/packages/config-eslint/node_modules/eslint/lib/rules/no-case-declarations.js +80 -0
  273. package/packages/config-eslint/node_modules/eslint/lib/rules/no-catch-shadow.js +96 -0
  274. package/packages/config-eslint/node_modules/eslint/lib/rules/no-class-assign.js +66 -0
  275. package/packages/config-eslint/node_modules/eslint/lib/rules/no-compare-neg-zero.js +74 -0
  276. package/packages/config-eslint/node_modules/eslint/lib/rules/no-cond-assign.js +175 -0
  277. package/packages/config-eslint/node_modules/eslint/lib/rules/no-confusing-arrow.js +127 -0
  278. package/packages/config-eslint/node_modules/eslint/lib/rules/no-console.js +227 -0
  279. package/packages/config-eslint/node_modules/eslint/lib/rules/no-const-assign.js +73 -0
  280. package/packages/config-eslint/node_modules/eslint/lib/rules/no-constant-binary-expression.js +603 -0
  281. package/packages/config-eslint/node_modules/eslint/lib/rules/no-constant-condition.js +177 -0
  282. package/packages/config-eslint/node_modules/eslint/lib/rules/no-constructor-return.js +62 -0
  283. package/packages/config-eslint/node_modules/eslint/lib/rules/no-continue.js +38 -0
  284. package/packages/config-eslint/node_modules/eslint/lib/rules/no-control-regex.js +142 -0
  285. package/packages/config-eslint/node_modules/eslint/lib/rules/no-debugger.js +41 -0
  286. package/packages/config-eslint/node_modules/eslint/lib/rules/no-delete-var.js +42 -0
  287. package/packages/config-eslint/node_modules/eslint/lib/rules/no-div-regex.js +60 -0
  288. package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-args.js +98 -0
  289. package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-class-members.js +117 -0
  290. package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-else-if.js +145 -0
  291. package/packages/config-eslint/node_modules/eslint/lib/rules/no-dupe-keys.js +165 -0
  292. package/packages/config-eslint/node_modules/eslint/lib/rules/no-duplicate-case.js +78 -0
  293. package/packages/config-eslint/node_modules/eslint/lib/rules/no-duplicate-imports.js +368 -0
  294. package/packages/config-eslint/node_modules/eslint/lib/rules/no-else-return.js +456 -0
  295. package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-character-class.js +83 -0
  296. package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-function.js +236 -0
  297. package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-pattern.js +85 -0
  298. package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty-static-block.js +73 -0
  299. package/packages/config-eslint/node_modules/eslint/lib/rules/no-empty.js +153 -0
  300. package/packages/config-eslint/node_modules/eslint/lib/rules/no-eq-null.js +51 -0
  301. package/packages/config-eslint/node_modules/eslint/lib/rules/no-eval.js +301 -0
  302. package/packages/config-eslint/node_modules/eslint/lib/rules/no-ex-assign.js +57 -0
  303. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extend-native.js +180 -0
  304. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-bind.js +224 -0
  305. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-boolean-cast.js +420 -0
  306. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-label.js +169 -0
  307. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-parens.js +1669 -0
  308. package/packages/config-eslint/node_modules/eslint/lib/rules/no-extra-semi.js +167 -0
  309. package/packages/config-eslint/node_modules/eslint/lib/rules/no-fallthrough.js +260 -0
  310. package/packages/config-eslint/node_modules/eslint/lib/rules/no-floating-decimal.js +99 -0
  311. package/packages/config-eslint/node_modules/eslint/lib/rules/no-func-assign.js +77 -0
  312. package/packages/config-eslint/node_modules/eslint/lib/rules/no-global-assign.js +101 -0
  313. package/packages/config-eslint/node_modules/eslint/lib/rules/no-implicit-coercion.js +468 -0
  314. package/packages/config-eslint/node_modules/eslint/lib/rules/no-implicit-globals.js +187 -0
  315. package/packages/config-eslint/node_modules/eslint/lib/rules/no-implied-eval.js +171 -0
  316. package/packages/config-eslint/node_modules/eslint/lib/rules/no-import-assign.js +227 -0
  317. package/packages/config-eslint/node_modules/eslint/lib/rules/no-inline-comments.js +115 -0
  318. package/packages/config-eslint/node_modules/eslint/lib/rules/no-inner-declarations.js +147 -0
  319. package/packages/config-eslint/node_modules/eslint/lib/rules/no-invalid-regexp.js +244 -0
  320. package/packages/config-eslint/node_modules/eslint/lib/rules/no-invalid-this.js +178 -0
  321. package/packages/config-eslint/node_modules/eslint/lib/rules/no-irregular-whitespace.js +292 -0
  322. package/packages/config-eslint/node_modules/eslint/lib/rules/no-iterator.js +48 -0
  323. package/packages/config-eslint/node_modules/eslint/lib/rules/no-label-var.js +78 -0
  324. package/packages/config-eslint/node_modules/eslint/lib/rules/no-labels.js +156 -0
  325. package/packages/config-eslint/node_modules/eslint/lib/rules/no-lone-blocks.js +140 -0
  326. package/packages/config-eslint/node_modules/eslint/lib/rules/no-lonely-if.js +126 -0
  327. package/packages/config-eslint/node_modules/eslint/lib/rules/no-loop-func.js +273 -0
  328. package/packages/config-eslint/node_modules/eslint/lib/rules/no-loss-of-precision.js +249 -0
  329. package/packages/config-eslint/node_modules/eslint/lib/rules/no-magic-numbers.js +365 -0
  330. package/packages/config-eslint/node_modules/eslint/lib/rules/no-misleading-character-class.js +595 -0
  331. package/packages/config-eslint/node_modules/eslint/lib/rules/no-mixed-operators.js +253 -0
  332. package/packages/config-eslint/node_modules/eslint/lib/rules/no-mixed-requires.js +267 -0
  333. package/packages/config-eslint/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +148 -0
  334. package/packages/config-eslint/node_modules/eslint/lib/rules/no-multi-assign.js +66 -0
  335. package/packages/config-eslint/node_modules/eslint/lib/rules/no-multi-spaces.js +179 -0
  336. package/packages/config-eslint/node_modules/eslint/lib/rules/no-multi-str.js +67 -0
  337. package/packages/config-eslint/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +210 -0
  338. package/packages/config-eslint/node_modules/eslint/lib/rules/no-native-reassign.js +114 -0
  339. package/packages/config-eslint/node_modules/eslint/lib/rules/no-negated-condition.js +100 -0
  340. package/packages/config-eslint/node_modules/eslint/lib/rules/no-negated-in-lhs.js +59 -0
  341. package/packages/config-eslint/node_modules/eslint/lib/rules/no-nested-ternary.js +46 -0
  342. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-func.js +96 -0
  343. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js +70 -0
  344. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-object.js +76 -0
  345. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-require.js +67 -0
  346. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-symbol.js +74 -0
  347. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new-wrappers.js +62 -0
  348. package/packages/config-eslint/node_modules/eslint/lib/rules/no-new.js +42 -0
  349. package/packages/config-eslint/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js +176 -0
  350. package/packages/config-eslint/node_modules/eslint/lib/rules/no-obj-calls.js +99 -0
  351. package/packages/config-eslint/node_modules/eslint/lib/rules/no-object-constructor.js +124 -0
  352. package/packages/config-eslint/node_modules/eslint/lib/rules/no-octal-escape.js +53 -0
  353. package/packages/config-eslint/node_modules/eslint/lib/rules/no-octal.js +42 -0
  354. package/packages/config-eslint/node_modules/eslint/lib/rules/no-param-reassign.js +248 -0
  355. package/packages/config-eslint/node_modules/eslint/lib/rules/no-path-concat.js +79 -0
  356. package/packages/config-eslint/node_modules/eslint/lib/rules/no-plusplus.js +102 -0
  357. package/packages/config-eslint/node_modules/eslint/lib/rules/no-process-env.js +68 -0
  358. package/packages/config-eslint/node_modules/eslint/lib/rules/no-process-exit.js +67 -0
  359. package/packages/config-eslint/node_modules/eslint/lib/rules/no-promise-executor-return.js +264 -0
  360. package/packages/config-eslint/node_modules/eslint/lib/rules/no-proto.js +45 -0
  361. package/packages/config-eslint/node_modules/eslint/lib/rules/no-prototype-builtins.js +181 -0
  362. package/packages/config-eslint/node_modules/eslint/lib/rules/no-redeclare.js +173 -0
  363. package/packages/config-eslint/node_modules/eslint/lib/rules/no-regex-spaces.js +219 -0
  364. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-exports.js +227 -0
  365. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-globals.js +266 -0
  366. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-imports.js +892 -0
  367. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-modules.js +249 -0
  368. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-properties.js +233 -0
  369. package/packages/config-eslint/node_modules/eslint/lib/rules/no-restricted-syntax.js +74 -0
  370. package/packages/config-eslint/node_modules/eslint/lib/rules/no-return-assign.js +87 -0
  371. package/packages/config-eslint/node_modules/eslint/lib/rules/no-return-await.js +162 -0
  372. package/packages/config-eslint/node_modules/eslint/lib/rules/no-script-url.js +68 -0
  373. package/packages/config-eslint/node_modules/eslint/lib/rules/no-self-assign.js +186 -0
  374. package/packages/config-eslint/node_modules/eslint/lib/rules/no-self-compare.js +77 -0
  375. package/packages/config-eslint/node_modules/eslint/lib/rules/no-sequences.js +158 -0
  376. package/packages/config-eslint/node_modules/eslint/lib/rules/no-setter-return.js +224 -0
  377. package/packages/config-eslint/node_modules/eslint/lib/rules/no-shadow-restricted-names.js +113 -0
  378. package/packages/config-eslint/node_modules/eslint/lib/rules/no-shadow.js +695 -0
  379. package/packages/config-eslint/node_modules/eslint/lib/rules/no-spaced-func.js +105 -0
  380. package/packages/config-eslint/node_modules/eslint/lib/rules/no-sparse-arrays.js +68 -0
  381. package/packages/config-eslint/node_modules/eslint/lib/rules/no-sync.js +81 -0
  382. package/packages/config-eslint/node_modules/eslint/lib/rules/no-tabs.js +110 -0
  383. package/packages/config-eslint/node_modules/eslint/lib/rules/no-template-curly-in-string.js +45 -0
  384. package/packages/config-eslint/node_modules/eslint/lib/rules/no-ternary.js +38 -0
  385. package/packages/config-eslint/node_modules/eslint/lib/rules/no-this-before-super.js +365 -0
  386. package/packages/config-eslint/node_modules/eslint/lib/rules/no-throw-literal.js +46 -0
  387. package/packages/config-eslint/node_modules/eslint/lib/rules/no-trailing-spaces.js +227 -0
  388. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unassigned-vars.js +80 -0
  389. package/packages/config-eslint/node_modules/eslint/lib/rules/no-undef-init.js +101 -0
  390. package/packages/config-eslint/node_modules/eslint/lib/rules/no-undef.js +84 -0
  391. package/packages/config-eslint/node_modules/eslint/lib/rules/no-undefined.js +91 -0
  392. package/packages/config-eslint/node_modules/eslint/lib/rules/no-underscore-dangle.js +383 -0
  393. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unexpected-multiline.js +130 -0
  394. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js +367 -0
  395. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unneeded-ternary.js +232 -0
  396. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unreachable-loop.js +190 -0
  397. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unreachable.js +300 -0
  398. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unsafe-finally.js +119 -0
  399. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unsafe-negation.js +152 -0
  400. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +221 -0
  401. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-expressions.js +227 -0
  402. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-labels.js +158 -0
  403. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-private-class-members.js +219 -0
  404. package/packages/config-eslint/node_modules/eslint/lib/rules/no-unused-vars.js +1746 -0
  405. package/packages/config-eslint/node_modules/eslint/lib/rules/no-use-before-define.js +453 -0
  406. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-assignment.js +658 -0
  407. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-backreference.js +263 -0
  408. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-call.js +95 -0
  409. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-catch.js +57 -0
  410. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-computed-key.js +204 -0
  411. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-concat.js +121 -0
  412. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-constructor.js +262 -0
  413. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-escape.js +406 -0
  414. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-rename.js +202 -0
  415. package/packages/config-eslint/node_modules/eslint/lib/rules/no-useless-return.js +401 -0
  416. package/packages/config-eslint/node_modules/eslint/lib/rules/no-var.js +375 -0
  417. package/packages/config-eslint/node_modules/eslint/lib/rules/no-void.js +69 -0
  418. package/packages/config-eslint/node_modules/eslint/lib/rules/no-warning-comments.js +209 -0
  419. package/packages/config-eslint/node_modules/eslint/lib/rules/no-whitespace-before-property.js +150 -0
  420. package/packages/config-eslint/node_modules/eslint/lib/rules/no-with.js +37 -0
  421. package/packages/config-eslint/node_modules/eslint/lib/rules/nonblock-statement-body-position.js +164 -0
  422. package/packages/config-eslint/node_modules/eslint/lib/rules/object-curly-newline.js +383 -0
  423. package/packages/config-eslint/node_modules/eslint/lib/rules/object-curly-spacing.js +369 -0
  424. package/packages/config-eslint/node_modules/eslint/lib/rules/object-property-newline.js +151 -0
  425. package/packages/config-eslint/node_modules/eslint/lib/rules/object-shorthand.js +652 -0
  426. package/packages/config-eslint/node_modules/eslint/lib/rules/one-var-declaration-per-line.js +117 -0
  427. package/packages/config-eslint/node_modules/eslint/lib/rules/one-var.js +717 -0
  428. package/packages/config-eslint/node_modules/eslint/lib/rules/operator-assignment.js +270 -0
  429. package/packages/config-eslint/node_modules/eslint/lib/rules/operator-linebreak.js +315 -0
  430. package/packages/config-eslint/node_modules/eslint/lib/rules/padded-blocks.js +366 -0
  431. package/packages/config-eslint/node_modules/eslint/lib/rules/padding-line-between-statements.js +612 -0
  432. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-arrow-callback.js +444 -0
  433. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-const.js +554 -0
  434. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-destructuring.js +332 -0
  435. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js +235 -0
  436. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-named-capture-group.js +197 -0
  437. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-numeric-literals.js +157 -0
  438. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-object-has-own.js +148 -0
  439. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-object-spread.js +319 -0
  440. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js +154 -0
  441. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-reflect.js +150 -0
  442. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-regex-literals.js +605 -0
  443. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-rest-params.js +125 -0
  444. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-spread.js +91 -0
  445. package/packages/config-eslint/node_modules/eslint/lib/rules/prefer-template.js +347 -0
  446. package/packages/config-eslint/node_modules/eslint/lib/rules/preserve-caught-error.js +535 -0
  447. package/packages/config-eslint/node_modules/eslint/lib/rules/quote-props.js +394 -0
  448. package/packages/config-eslint/node_modules/eslint/lib/rules/quotes.js +416 -0
  449. package/packages/config-eslint/node_modules/eslint/lib/rules/radix.js +199 -0
  450. package/packages/config-eslint/node_modules/eslint/lib/rules/require-atomic-updates.js +365 -0
  451. package/packages/config-eslint/node_modules/eslint/lib/rules/require-await.js +184 -0
  452. package/packages/config-eslint/node_modules/eslint/lib/rules/require-unicode-regexp.js +317 -0
  453. package/packages/config-eslint/node_modules/eslint/lib/rules/require-yield.js +86 -0
  454. package/packages/config-eslint/node_modules/eslint/lib/rules/rest-spread-spacing.js +150 -0
  455. package/packages/config-eslint/node_modules/eslint/lib/rules/semi-spacing.js +297 -0
  456. package/packages/config-eslint/node_modules/eslint/lib/rules/semi-style.js +218 -0
  457. package/packages/config-eslint/node_modules/eslint/lib/rules/semi.js +476 -0
  458. package/packages/config-eslint/node_modules/eslint/lib/rules/sort-imports.js +319 -0
  459. package/packages/config-eslint/node_modules/eslint/lib/rules/sort-keys.js +268 -0
  460. package/packages/config-eslint/node_modules/eslint/lib/rules/sort-vars.js +140 -0
  461. package/packages/config-eslint/node_modules/eslint/lib/rules/space-before-blocks.js +232 -0
  462. package/packages/config-eslint/node_modules/eslint/lib/rules/space-before-function-paren.js +202 -0
  463. package/packages/config-eslint/node_modules/eslint/lib/rules/space-in-parens.js +374 -0
  464. package/packages/config-eslint/node_modules/eslint/lib/rules/space-infix-ops.js +249 -0
  465. package/packages/config-eslint/node_modules/eslint/lib/rules/space-unary-ops.js +400 -0
  466. package/packages/config-eslint/node_modules/eslint/lib/rules/spaced-comment.js +447 -0
  467. package/packages/config-eslint/node_modules/eslint/lib/rules/strict.js +324 -0
  468. package/packages/config-eslint/node_modules/eslint/lib/rules/switch-colon-spacing.js +158 -0
  469. package/packages/config-eslint/node_modules/eslint/lib/rules/symbol-description.js +70 -0
  470. package/packages/config-eslint/node_modules/eslint/lib/rules/template-curly-spacing.js +168 -0
  471. package/packages/config-eslint/node_modules/eslint/lib/rules/template-tag-spacing.js +121 -0
  472. package/packages/config-eslint/node_modules/eslint/lib/rules/unicode-bom.js +73 -0
  473. package/packages/config-eslint/node_modules/eslint/lib/rules/use-isnan.js +268 -0
  474. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/ast-utils.js +2848 -0
  475. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/char-source.js +247 -0
  476. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/fix-tracker.js +125 -0
  477. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/keywords.js +67 -0
  478. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +118 -0
  479. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/regular-expressions.js +58 -0
  480. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/index.js +16 -0
  481. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js +13 -0
  482. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js +13 -0
  483. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js +13 -0
  484. package/packages/config-eslint/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js +14 -0
  485. package/packages/config-eslint/node_modules/eslint/lib/rules/valid-typeof.js +171 -0
  486. package/packages/config-eslint/node_modules/eslint/lib/rules/vars-on-top.js +165 -0
  487. package/packages/config-eslint/node_modules/eslint/lib/rules/wrap-iife.js +238 -0
  488. package/packages/config-eslint/node_modules/eslint/lib/rules/wrap-regex.js +91 -0
  489. package/packages/config-eslint/node_modules/eslint/lib/rules/yield-star-spacing.js +158 -0
  490. package/packages/config-eslint/node_modules/eslint/lib/rules/yoda.js +362 -0
  491. package/packages/config-eslint/node_modules/eslint/lib/services/parser-service.js +64 -0
  492. package/packages/config-eslint/node_modules/eslint/lib/services/processor-service.js +100 -0
  493. package/packages/config-eslint/node_modules/eslint/lib/services/suppressions-service.js +302 -0
  494. package/packages/config-eslint/node_modules/eslint/lib/services/warning-service.js +87 -0
  495. package/packages/config-eslint/node_modules/eslint/lib/shared/ajv.js +34 -0
  496. package/packages/config-eslint/node_modules/eslint/lib/shared/assert.js +21 -0
  497. package/packages/config-eslint/node_modules/eslint/lib/shared/ast-utils.js +30 -0
  498. package/packages/config-eslint/node_modules/eslint/lib/shared/deep-merge-arrays.js +62 -0
  499. package/packages/config-eslint/node_modules/eslint/lib/shared/directives.js +16 -0
  500. package/packages/config-eslint/node_modules/eslint/lib/shared/flags.js +89 -0
  501. package/packages/config-eslint/node_modules/eslint/lib/shared/logging.js +38 -0
  502. package/packages/config-eslint/node_modules/eslint/lib/shared/naming.js +109 -0
  503. package/packages/config-eslint/node_modules/eslint/lib/shared/option-utils.js +63 -0
  504. package/packages/config-eslint/node_modules/eslint/lib/shared/relative-module-resolver.js +28 -0
  505. package/packages/config-eslint/node_modules/eslint/lib/shared/runtime-info.js +177 -0
  506. package/packages/config-eslint/node_modules/eslint/lib/shared/serialization.js +78 -0
  507. package/packages/config-eslint/node_modules/eslint/lib/shared/severity.js +49 -0
  508. package/packages/config-eslint/node_modules/eslint/lib/shared/stats.js +30 -0
  509. package/packages/config-eslint/node_modules/eslint/lib/shared/string-utils.js +58 -0
  510. package/packages/config-eslint/node_modules/eslint/lib/shared/text-table.js +68 -0
  511. package/packages/config-eslint/node_modules/eslint/lib/shared/translate-cli-options.js +223 -0
  512. package/packages/config-eslint/node_modules/eslint/lib/shared/traverser.js +202 -0
  513. package/packages/config-eslint/node_modules/eslint/lib/types/config-api.d.ts +12 -0
  514. package/packages/config-eslint/node_modules/eslint/lib/types/index.d.ts +1475 -0
  515. package/packages/config-eslint/node_modules/eslint/lib/types/rules.d.ts +5603 -0
  516. package/packages/config-eslint/node_modules/eslint/lib/types/universal.d.ts +6 -0
  517. package/packages/config-eslint/node_modules/eslint/lib/types/use-at-your-own-risk.d.ts +34 -0
  518. package/packages/config-eslint/node_modules/eslint/lib/universal.js +10 -0
  519. package/packages/config-eslint/node_modules/eslint/lib/unsupported-api.js +21 -0
  520. package/packages/config-eslint/node_modules/eslint/messages/all-matched-files-ignored.js +21 -0
  521. package/packages/config-eslint/node_modules/eslint/messages/config-file-missing.js +16 -0
  522. package/packages/config-eslint/node_modules/eslint/messages/config-plugin-missing.js +14 -0
  523. package/packages/config-eslint/node_modules/eslint/messages/config-serialize-function.js +30 -0
  524. package/packages/config-eslint/node_modules/eslint/messages/eslintrc-incompat.js +117 -0
  525. package/packages/config-eslint/node_modules/eslint/messages/eslintrc-plugins.js +27 -0
  526. package/packages/config-eslint/node_modules/eslint/messages/extend-config-missing.js +13 -0
  527. package/packages/config-eslint/node_modules/eslint/messages/failed-to-read-json.js +11 -0
  528. package/packages/config-eslint/node_modules/eslint/messages/file-not-found.js +10 -0
  529. package/packages/config-eslint/node_modules/eslint/messages/invalid-rule-options.js +17 -0
  530. package/packages/config-eslint/node_modules/eslint/messages/invalid-rule-severity.js +13 -0
  531. package/packages/config-eslint/node_modules/eslint/messages/no-config-found.js +15 -0
  532. package/packages/config-eslint/node_modules/eslint/messages/plugin-conflict.js +22 -0
  533. package/packages/config-eslint/node_modules/eslint/messages/plugin-invalid.js +16 -0
  534. package/packages/config-eslint/node_modules/eslint/messages/plugin-missing.js +19 -0
  535. package/packages/config-eslint/node_modules/eslint/messages/shared.js +23 -0
  536. package/packages/config-eslint/node_modules/eslint/messages/whitespace-found.js +11 -0
  537. package/packages/config-eslint/node_modules/eslint/package.json +220 -0
  538. package/packages/config-eslint/node_modules/eslint-visitor-keys/LICENSE +201 -0
  539. package/packages/config-eslint/node_modules/eslint-visitor-keys/README.md +123 -0
  540. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +187 -0
  541. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts +28 -0
  542. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/index.d.ts +16 -0
  543. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +12 -0
  544. package/packages/config-eslint/node_modules/eslint-visitor-keys/lib/index.js +67 -0
  545. package/packages/config-eslint/node_modules/eslint-visitor-keys/lib/visitor-keys.js +118 -0
  546. package/packages/config-eslint/node_modules/eslint-visitor-keys/package.json +57 -0
  547. package/packages/config-eslint/node_modules/espree/LICENSE +25 -0
  548. package/packages/config-eslint/node_modules/espree/README.md +261 -0
  549. package/packages/config-eslint/node_modules/espree/dist/espree.cjs +1284 -0
  550. package/packages/config-eslint/node_modules/espree/dist/espree.d.cts +3 -0
  551. package/packages/config-eslint/node_modules/espree/dist/espree.d.cts.map +1 -0
  552. package/packages/config-eslint/node_modules/espree/dist/espree.d.ts +67 -0
  553. package/packages/config-eslint/node_modules/espree/dist/espree.d.ts.map +1 -0
  554. package/packages/config-eslint/node_modules/espree/espree.js +287 -0
  555. package/packages/config-eslint/node_modules/espree/lib/espree.js +493 -0
  556. package/packages/config-eslint/node_modules/espree/lib/options.js +176 -0
  557. package/packages/config-eslint/node_modules/espree/lib/token-translator.js +306 -0
  558. package/packages/config-eslint/node_modules/espree/lib/types.js +118 -0
  559. package/packages/config-eslint/node_modules/espree/package.json +70 -0
  560. package/packages/config-eslint/node_modules/ignore/LICENSE-MIT +21 -0
  561. package/packages/config-eslint/node_modules/ignore/README.md +412 -0
  562. package/packages/config-eslint/node_modules/ignore/index.d.ts +61 -0
  563. package/packages/config-eslint/node_modules/ignore/index.js +636 -0
  564. package/packages/config-eslint/node_modules/ignore/legacy.js +559 -0
  565. package/packages/config-eslint/node_modules/ignore/package.json +74 -0
  566. package/packages/config-eslint/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  567. package/packages/config-eslint/node_modules/json-schema-traverse/.travis.yml +8 -0
  568. package/packages/config-eslint/node_modules/json-schema-traverse/LICENSE +21 -0
  569. package/packages/config-eslint/node_modules/json-schema-traverse/README.md +83 -0
  570. package/packages/config-eslint/node_modules/json-schema-traverse/index.js +89 -0
  571. package/packages/config-eslint/node_modules/json-schema-traverse/package.json +43 -0
  572. package/packages/config-eslint/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  573. package/packages/config-eslint/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  574. package/packages/config-eslint/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  575. package/packages/config-eslint/node_modules/minimatch/LICENSE.md +55 -0
  576. package/packages/config-eslint/node_modules/minimatch/README.md +528 -0
  577. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
  578. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
  579. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  580. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
  581. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/ast.d.ts +22 -0
  582. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
  583. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/ast.js +846 -0
  584. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
  585. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
  586. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
  587. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
  588. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
  589. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/escape.d.ts +15 -0
  590. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
  591. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/escape.js +30 -0
  592. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
  593. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/index.d.ts +174 -0
  594. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
  595. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/index.js +1121 -0
  596. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
  597. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/package.json +3 -0
  598. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/unescape.d.ts +22 -0
  599. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
  600. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
  601. package/packages/config-eslint/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
  602. package/packages/config-eslint/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
  603. package/packages/config-eslint/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
  604. package/packages/config-eslint/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  605. package/packages/config-eslint/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
  606. package/packages/config-eslint/node_modules/minimatch/dist/esm/ast.d.ts +22 -0
  607. package/packages/config-eslint/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
  608. package/packages/config-eslint/node_modules/minimatch/dist/esm/ast.js +842 -0
  609. package/packages/config-eslint/node_modules/minimatch/dist/esm/ast.js.map +1 -0
  610. package/packages/config-eslint/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
  611. package/packages/config-eslint/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
  612. package/packages/config-eslint/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
  613. package/packages/config-eslint/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
  614. package/packages/config-eslint/node_modules/minimatch/dist/esm/escape.d.ts +15 -0
  615. package/packages/config-eslint/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
  616. package/packages/config-eslint/node_modules/minimatch/dist/esm/escape.js +26 -0
  617. package/packages/config-eslint/node_modules/minimatch/dist/esm/escape.js.map +1 -0
  618. package/packages/config-eslint/node_modules/minimatch/dist/esm/index.d.ts +174 -0
  619. package/packages/config-eslint/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
  620. package/packages/config-eslint/node_modules/minimatch/dist/esm/index.js +1108 -0
  621. package/packages/config-eslint/node_modules/minimatch/dist/esm/index.js.map +1 -0
  622. package/packages/config-eslint/node_modules/minimatch/dist/esm/package.json +3 -0
  623. package/packages/config-eslint/node_modules/minimatch/dist/esm/unescape.d.ts +22 -0
  624. package/packages/config-eslint/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
  625. package/packages/config-eslint/node_modules/minimatch/dist/esm/unescape.js +34 -0
  626. package/packages/config-eslint/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
  627. package/packages/config-eslint/node_modules/minimatch/package.json +67 -0
  628. package/packages/config-eslint/package.json +9 -9
  629. package/packages/config-eslint/plugins/vue.js +5 -0
  630. package/packages/config-hooks/package.json +2 -2
  631. package/packages/config-prettier/package.json +2 -2
  632. package/packages/config-stylelint/package.json +2 -2
@@ -0,0 +1,842 @@
1
+ // parse a single path portion
2
+ var _a;
3
+ import { parseClass } from './brace-expressions.js';
4
+ import { unescape } from './unescape.js';
5
+ const types = new Set(['!', '?', '+', '*', '@']);
6
+ const isExtglobType = (c) => types.has(c);
7
+ const isExtglobAST = (c) => isExtglobType(c.type);
8
+ // Map of which extglob types can adopt the children of a nested extglob
9
+ //
10
+ // anything but ! can adopt a matching type:
11
+ // +(a|+(b|c)|d) => +(a|b|c|d)
12
+ // *(a|*(b|c)|d) => *(a|b|c|d)
13
+ // @(a|@(b|c)|d) => @(a|b|c|d)
14
+ // ?(a|?(b|c)|d) => ?(a|b|c|d)
15
+ //
16
+ // * can adopt anything, because 0 or repetition is allowed
17
+ // *(a|?(b|c)|d) => *(a|b|c|d)
18
+ // *(a|+(b|c)|d) => *(a|b|c|d)
19
+ // *(a|@(b|c)|d) => *(a|b|c|d)
20
+ //
21
+ // + can adopt @, because 1 or repetition is allowed
22
+ // +(a|@(b|c)|d) => +(a|b|c|d)
23
+ //
24
+ // + and @ CANNOT adopt *, because 0 would be allowed
25
+ // +(a|*(b|c)|d) => would match "", on *(b|c)
26
+ // @(a|*(b|c)|d) => would match "", on *(b|c)
27
+ //
28
+ // + and @ CANNOT adopt ?, because 0 would be allowed
29
+ // +(a|?(b|c)|d) => would match "", on ?(b|c)
30
+ // @(a|?(b|c)|d) => would match "", on ?(b|c)
31
+ //
32
+ // ? can adopt @, because 0 or 1 is allowed
33
+ // ?(a|@(b|c)|d) => ?(a|b|c|d)
34
+ //
35
+ // ? and @ CANNOT adopt * or +, because >1 would be allowed
36
+ // ?(a|*(b|c)|d) => would match bbb on *(b|c)
37
+ // @(a|*(b|c)|d) => would match bbb on *(b|c)
38
+ // ?(a|+(b|c)|d) => would match bbb on +(b|c)
39
+ // @(a|+(b|c)|d) => would match bbb on +(b|c)
40
+ //
41
+ // ! CANNOT adopt ! (nothing else can either)
42
+ // !(a|!(b|c)|d) => !(a|b|c|d) would fail to match on b (not not b|c)
43
+ //
44
+ // ! can adopt @
45
+ // !(a|@(b|c)|d) => !(a|b|c|d)
46
+ //
47
+ // ! CANNOT adopt *
48
+ // !(a|*(b|c)|d) => !(a|b|c|d) would match on bbb, not allowed
49
+ //
50
+ // ! CANNOT adopt +
51
+ // !(a|+(b|c)|d) => !(a|b|c|d) would match on bbb, not allowed
52
+ //
53
+ // ! CANNOT adopt ?
54
+ // x!(a|?(b|c)|d) => x!(a|b|c|d) would fail to match "x"
55
+ const adoptionMap = new Map([
56
+ ['!', ['@']],
57
+ ['?', ['?', '@']],
58
+ ['@', ['@']],
59
+ ['*', ['*', '+', '?', '@']],
60
+ ['+', ['+', '@']],
61
+ ]);
62
+ // nested extglobs that can be adopted in, but with the addition of
63
+ // a blank '' element.
64
+ const adoptionWithSpaceMap = new Map([
65
+ ['!', ['?']],
66
+ ['@', ['?']],
67
+ ['+', ['?', '*']],
68
+ ]);
69
+ // union of the previous two maps
70
+ const adoptionAnyMap = new Map([
71
+ ['!', ['?', '@']],
72
+ ['?', ['?', '@']],
73
+ ['@', ['?', '@']],
74
+ ['*', ['*', '+', '?', '@']],
75
+ ['+', ['+', '@', '?', '*']],
76
+ ]);
77
+ // Extglobs that can take over their parent if they are the only child
78
+ // the key is parent, value maps child to resulting extglob parent type
79
+ // '@' is omitted because it's a special case. An `@` extglob with a single
80
+ // member can always be usurped by that subpattern.
81
+ const usurpMap = new Map([
82
+ ['!', new Map([['!', '@']])],
83
+ [
84
+ '?',
85
+ new Map([
86
+ ['*', '*'],
87
+ ['+', '*'],
88
+ ]),
89
+ ],
90
+ [
91
+ '@',
92
+ new Map([
93
+ ['!', '!'],
94
+ ['?', '?'],
95
+ ['@', '@'],
96
+ ['*', '*'],
97
+ ['+', '+'],
98
+ ]),
99
+ ],
100
+ [
101
+ '+',
102
+ new Map([
103
+ ['?', '*'],
104
+ ['*', '*'],
105
+ ]),
106
+ ],
107
+ ]);
108
+ // Patterns that get prepended to bind to the start of either the
109
+ // entire string, or just a single path portion, to prevent dots
110
+ // and/or traversal patterns, when needed.
111
+ // Exts don't need the ^ or / bit, because the root binds that already.
112
+ const startNoTraversal = '(?!(?:^|/)\\.\\.?(?:$|/))';
113
+ const startNoDot = '(?!\\.)';
114
+ // characters that indicate a start of pattern needs the "no dots" bit,
115
+ // because a dot *might* be matched. ( is not in the list, because in
116
+ // the case of a child extglob, it will handle the prevention itself.
117
+ const addPatternStart = new Set(['[', '.']);
118
+ // cases where traversal is A-OK, no dot prevention needed
119
+ const justDots = new Set(['..', '.']);
120
+ const reSpecials = new Set('().*{}+?[]^$\\!');
121
+ const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
122
+ // any single thing other than /
123
+ const qmark = '[^/]';
124
+ // * => any number of characters
125
+ const star = qmark + '*?';
126
+ // use + when we need to ensure that *something* matches, because the * is
127
+ // the only thing in the path portion.
128
+ const starNoEmpty = qmark + '+?';
129
+ // remove the \ chars that we added if we end up doing a nonmagic compare
130
+ // const deslash = (s: string) => s.replace(/\\(.)/g, '$1')
131
+ let ID = 0;
132
+ export class AST {
133
+ type;
134
+ #root;
135
+ #hasMagic;
136
+ #uflag = false;
137
+ #parts = [];
138
+ #parent;
139
+ #parentIndex;
140
+ #negs;
141
+ #filledNegs = false;
142
+ #options;
143
+ #toString;
144
+ // set to true if it's an extglob with no children
145
+ // (which really means one child of '')
146
+ #emptyExt = false;
147
+ id = ++ID;
148
+ get depth() {
149
+ return (this.#parent?.depth ?? -1) + 1;
150
+ }
151
+ [Symbol.for('nodejs.util.inspect.custom')]() {
152
+ return {
153
+ '@@type': 'AST',
154
+ id: this.id,
155
+ type: this.type,
156
+ root: this.#root.id,
157
+ parent: this.#parent?.id,
158
+ depth: this.depth,
159
+ partsLength: this.#parts.length,
160
+ parts: this.#parts,
161
+ };
162
+ }
163
+ constructor(type, parent, options = {}) {
164
+ this.type = type;
165
+ // extglobs are inherently magical
166
+ if (type)
167
+ this.#hasMagic = true;
168
+ this.#parent = parent;
169
+ this.#root = this.#parent ? this.#parent.#root : this;
170
+ this.#options = this.#root === this ? options : this.#root.#options;
171
+ this.#negs = this.#root === this ? [] : this.#root.#negs;
172
+ if (type === '!' && !this.#root.#filledNegs)
173
+ this.#negs.push(this);
174
+ this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
175
+ }
176
+ get hasMagic() {
177
+ /* c8 ignore start */
178
+ if (this.#hasMagic !== undefined)
179
+ return this.#hasMagic;
180
+ /* c8 ignore stop */
181
+ for (const p of this.#parts) {
182
+ if (typeof p === 'string')
183
+ continue;
184
+ if (p.type || p.hasMagic)
185
+ return (this.#hasMagic = true);
186
+ }
187
+ // note: will be undefined until we generate the regexp src and find out
188
+ return this.#hasMagic;
189
+ }
190
+ // reconstructs the pattern
191
+ toString() {
192
+ if (this.#toString !== undefined)
193
+ return this.#toString;
194
+ if (!this.type) {
195
+ return (this.#toString = this.#parts.map(p => String(p)).join(''));
196
+ }
197
+ else {
198
+ return (this.#toString =
199
+ this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')');
200
+ }
201
+ }
202
+ #fillNegs() {
203
+ /* c8 ignore start */
204
+ if (this !== this.#root)
205
+ throw new Error('should only call on root');
206
+ if (this.#filledNegs)
207
+ return this;
208
+ /* c8 ignore stop */
209
+ // call toString() once to fill this out
210
+ this.toString();
211
+ this.#filledNegs = true;
212
+ let n;
213
+ while ((n = this.#negs.pop())) {
214
+ if (n.type !== '!')
215
+ continue;
216
+ // walk up the tree, appending everthing that comes AFTER parentIndex
217
+ let p = n;
218
+ let pp = p.#parent;
219
+ while (pp) {
220
+ for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
221
+ for (const part of n.#parts) {
222
+ /* c8 ignore start */
223
+ if (typeof part === 'string') {
224
+ throw new Error('string part in extglob AST??');
225
+ }
226
+ /* c8 ignore stop */
227
+ part.copyIn(pp.#parts[i]);
228
+ }
229
+ }
230
+ p = pp;
231
+ pp = p.#parent;
232
+ }
233
+ }
234
+ return this;
235
+ }
236
+ push(...parts) {
237
+ for (const p of parts) {
238
+ if (p === '')
239
+ continue;
240
+ /* c8 ignore start */
241
+ if (typeof p !== 'string' &&
242
+ !(p instanceof _a && p.#parent === this)) {
243
+ throw new Error('invalid part: ' + p);
244
+ }
245
+ /* c8 ignore stop */
246
+ this.#parts.push(p);
247
+ }
248
+ }
249
+ toJSON() {
250
+ const ret = this.type === null ?
251
+ this.#parts
252
+ .slice()
253
+ .map(p => (typeof p === 'string' ? p : p.toJSON()))
254
+ : [this.type, ...this.#parts.map(p => p.toJSON())];
255
+ if (this.isStart() && !this.type)
256
+ ret.unshift([]);
257
+ if (this.isEnd() &&
258
+ (this === this.#root ||
259
+ (this.#root.#filledNegs && this.#parent?.type === '!'))) {
260
+ ret.push({});
261
+ }
262
+ return ret;
263
+ }
264
+ isStart() {
265
+ if (this.#root === this)
266
+ return true;
267
+ // if (this.type) return !!this.#parent?.isStart()
268
+ if (!this.#parent?.isStart())
269
+ return false;
270
+ if (this.#parentIndex === 0)
271
+ return true;
272
+ // if everything AHEAD of this is a negation, then it's still the "start"
273
+ const p = this.#parent;
274
+ for (let i = 0; i < this.#parentIndex; i++) {
275
+ const pp = p.#parts[i];
276
+ if (!(pp instanceof _a && pp.type === '!')) {
277
+ return false;
278
+ }
279
+ }
280
+ return true;
281
+ }
282
+ isEnd() {
283
+ if (this.#root === this)
284
+ return true;
285
+ if (this.#parent?.type === '!')
286
+ return true;
287
+ if (!this.#parent?.isEnd())
288
+ return false;
289
+ if (!this.type)
290
+ return this.#parent?.isEnd();
291
+ // if not root, it'll always have a parent
292
+ /* c8 ignore start */
293
+ const pl = this.#parent ? this.#parent.#parts.length : 0;
294
+ /* c8 ignore stop */
295
+ return this.#parentIndex === pl - 1;
296
+ }
297
+ copyIn(part) {
298
+ if (typeof part === 'string')
299
+ this.push(part);
300
+ else
301
+ this.push(part.clone(this));
302
+ }
303
+ clone(parent) {
304
+ const c = new _a(this.type, parent);
305
+ for (const p of this.#parts) {
306
+ c.copyIn(p);
307
+ }
308
+ return c;
309
+ }
310
+ static #parseAST(str, ast, pos, opt, extDepth) {
311
+ const maxDepth = opt.maxExtglobRecursion ?? 2;
312
+ let escaping = false;
313
+ let inBrace = false;
314
+ let braceStart = -1;
315
+ let braceNeg = false;
316
+ if (ast.type === null) {
317
+ // outside of a extglob, append until we find a start
318
+ let i = pos;
319
+ let acc = '';
320
+ while (i < str.length) {
321
+ const c = str.charAt(i++);
322
+ // still accumulate escapes at this point, but we do ignore
323
+ // starts that are escaped
324
+ if (escaping || c === '\\') {
325
+ escaping = !escaping;
326
+ acc += c;
327
+ continue;
328
+ }
329
+ if (inBrace) {
330
+ if (i === braceStart + 1) {
331
+ if (c === '^' || c === '!') {
332
+ braceNeg = true;
333
+ }
334
+ }
335
+ else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
336
+ inBrace = false;
337
+ }
338
+ acc += c;
339
+ continue;
340
+ }
341
+ else if (c === '[') {
342
+ inBrace = true;
343
+ braceStart = i;
344
+ braceNeg = false;
345
+ acc += c;
346
+ continue;
347
+ }
348
+ // we don't have to check for adoption here, because that's
349
+ // done at the other recursion point.
350
+ const doRecurse = !opt.noext &&
351
+ isExtglobType(c) &&
352
+ str.charAt(i) === '(' &&
353
+ extDepth <= maxDepth;
354
+ if (doRecurse) {
355
+ ast.push(acc);
356
+ acc = '';
357
+ const ext = new _a(c, ast);
358
+ i = _a.#parseAST(str, ext, i, opt, extDepth + 1);
359
+ ast.push(ext);
360
+ continue;
361
+ }
362
+ acc += c;
363
+ }
364
+ ast.push(acc);
365
+ return i;
366
+ }
367
+ // some kind of extglob, pos is at the (
368
+ // find the next | or )
369
+ let i = pos + 1;
370
+ let part = new _a(null, ast);
371
+ const parts = [];
372
+ let acc = '';
373
+ while (i < str.length) {
374
+ const c = str.charAt(i++);
375
+ // still accumulate escapes at this point, but we do ignore
376
+ // starts that are escaped
377
+ if (escaping || c === '\\') {
378
+ escaping = !escaping;
379
+ acc += c;
380
+ continue;
381
+ }
382
+ if (inBrace) {
383
+ if (i === braceStart + 1) {
384
+ if (c === '^' || c === '!') {
385
+ braceNeg = true;
386
+ }
387
+ }
388
+ else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
389
+ inBrace = false;
390
+ }
391
+ acc += c;
392
+ continue;
393
+ }
394
+ else if (c === '[') {
395
+ inBrace = true;
396
+ braceStart = i;
397
+ braceNeg = false;
398
+ acc += c;
399
+ continue;
400
+ }
401
+ const doRecurse = !opt.noext &&
402
+ isExtglobType(c) &&
403
+ str.charAt(i) === '(' &&
404
+ /* c8 ignore start - the maxDepth is sufficient here */
405
+ (extDepth <= maxDepth || (ast && ast.#canAdoptType(c)));
406
+ /* c8 ignore stop */
407
+ if (doRecurse) {
408
+ const depthAdd = ast && ast.#canAdoptType(c) ? 0 : 1;
409
+ part.push(acc);
410
+ acc = '';
411
+ const ext = new _a(c, part);
412
+ part.push(ext);
413
+ i = _a.#parseAST(str, ext, i, opt, extDepth + depthAdd);
414
+ continue;
415
+ }
416
+ if (c === '|') {
417
+ part.push(acc);
418
+ acc = '';
419
+ parts.push(part);
420
+ part = new _a(null, ast);
421
+ continue;
422
+ }
423
+ if (c === ')') {
424
+ if (acc === '' && ast.#parts.length === 0) {
425
+ ast.#emptyExt = true;
426
+ }
427
+ part.push(acc);
428
+ acc = '';
429
+ ast.push(...parts, part);
430
+ return i;
431
+ }
432
+ acc += c;
433
+ }
434
+ // unfinished extglob
435
+ // if we got here, it was a malformed extglob! not an extglob, but
436
+ // maybe something else in there.
437
+ ast.type = null;
438
+ ast.#hasMagic = undefined;
439
+ ast.#parts = [str.substring(pos - 1)];
440
+ return i;
441
+ }
442
+ #canAdoptWithSpace(child) {
443
+ return this.#canAdopt(child, adoptionWithSpaceMap);
444
+ }
445
+ #canAdopt(child, map = adoptionMap) {
446
+ if (!child ||
447
+ typeof child !== 'object' ||
448
+ child.type !== null ||
449
+ child.#parts.length !== 1 ||
450
+ this.type === null) {
451
+ return false;
452
+ }
453
+ const gc = child.#parts[0];
454
+ if (!gc || typeof gc !== 'object' || gc.type === null) {
455
+ return false;
456
+ }
457
+ return this.#canAdoptType(gc.type, map);
458
+ }
459
+ #canAdoptType(c, map = adoptionAnyMap) {
460
+ return !!map.get(this.type)?.includes(c);
461
+ }
462
+ #adoptWithSpace(child, index) {
463
+ const gc = child.#parts[0];
464
+ const blank = new _a(null, gc, this.options);
465
+ blank.#parts.push('');
466
+ gc.push(blank);
467
+ this.#adopt(child, index);
468
+ }
469
+ #adopt(child, index) {
470
+ const gc = child.#parts[0];
471
+ this.#parts.splice(index, 1, ...gc.#parts);
472
+ for (const p of gc.#parts) {
473
+ if (typeof p === 'object')
474
+ p.#parent = this;
475
+ }
476
+ this.#toString = undefined;
477
+ }
478
+ #canUsurpType(c) {
479
+ const m = usurpMap.get(this.type);
480
+ return !!(m?.has(c));
481
+ }
482
+ #canUsurp(child) {
483
+ if (!child ||
484
+ typeof child !== 'object' ||
485
+ child.type !== null ||
486
+ child.#parts.length !== 1 ||
487
+ this.type === null ||
488
+ this.#parts.length !== 1) {
489
+ return false;
490
+ }
491
+ const gc = child.#parts[0];
492
+ if (!gc || typeof gc !== 'object' || gc.type === null) {
493
+ return false;
494
+ }
495
+ return this.#canUsurpType(gc.type);
496
+ }
497
+ #usurp(child) {
498
+ const m = usurpMap.get(this.type);
499
+ const gc = child.#parts[0];
500
+ const nt = m?.get(gc.type);
501
+ /* c8 ignore start - impossible */
502
+ if (!nt)
503
+ return false;
504
+ /* c8 ignore stop */
505
+ this.#parts = gc.#parts;
506
+ for (const p of this.#parts) {
507
+ if (typeof p === 'object') {
508
+ p.#parent = this;
509
+ }
510
+ }
511
+ this.type = nt;
512
+ this.#toString = undefined;
513
+ this.#emptyExt = false;
514
+ }
515
+ static fromGlob(pattern, options = {}) {
516
+ const ast = new _a(null, undefined, options);
517
+ _a.#parseAST(pattern, ast, 0, options, 0);
518
+ return ast;
519
+ }
520
+ // returns the regular expression if there's magic, or the unescaped
521
+ // string if not.
522
+ toMMPattern() {
523
+ // should only be called on root
524
+ /* c8 ignore start */
525
+ if (this !== this.#root)
526
+ return this.#root.toMMPattern();
527
+ /* c8 ignore stop */
528
+ const glob = this.toString();
529
+ const [re, body, hasMagic, uflag] = this.toRegExpSource();
530
+ // if we're in nocase mode, and not nocaseMagicOnly, then we do
531
+ // still need a regular expression if we have to case-insensitively
532
+ // match capital/lowercase characters.
533
+ const anyMagic = hasMagic ||
534
+ this.#hasMagic ||
535
+ (this.#options.nocase &&
536
+ !this.#options.nocaseMagicOnly &&
537
+ glob.toUpperCase() !== glob.toLowerCase());
538
+ if (!anyMagic) {
539
+ return body;
540
+ }
541
+ const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '');
542
+ return Object.assign(new RegExp(`^${re}$`, flags), {
543
+ _src: re,
544
+ _glob: glob,
545
+ });
546
+ }
547
+ get options() {
548
+ return this.#options;
549
+ }
550
+ // returns the string match, the regexp source, whether there's magic
551
+ // in the regexp (so a regular expression is required) and whether or
552
+ // not the uflag is needed for the regular expression (for posix classes)
553
+ // TODO: instead of injecting the start/end at this point, just return
554
+ // the BODY of the regexp, along with the start/end portions suitable
555
+ // for binding the start/end in either a joined full-path makeRe context
556
+ // (where we bind to (^|/), or a standalone matchPart context (where
557
+ // we bind to ^, and not /). Otherwise slashes get duped!
558
+ //
559
+ // In part-matching mode, the start is:
560
+ // - if not isStart: nothing
561
+ // - if traversal possible, but not allowed: ^(?!\.\.?$)
562
+ // - if dots allowed or not possible: ^
563
+ // - if dots possible and not allowed: ^(?!\.)
564
+ // end is:
565
+ // - if not isEnd(): nothing
566
+ // - else: $
567
+ //
568
+ // In full-path matching mode, we put the slash at the START of the
569
+ // pattern, so start is:
570
+ // - if first pattern: same as part-matching mode
571
+ // - if not isStart(): nothing
572
+ // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
573
+ // - if dots allowed or not possible: /
574
+ // - if dots possible and not allowed: /(?!\.)
575
+ // end is:
576
+ // - if last pattern, same as part-matching mode
577
+ // - else nothing
578
+ //
579
+ // Always put the (?:$|/) on negated tails, though, because that has to be
580
+ // there to bind the end of the negated pattern portion, and it's easier to
581
+ // just stick it in now rather than try to inject it later in the middle of
582
+ // the pattern.
583
+ //
584
+ // We can just always return the same end, and leave it up to the caller
585
+ // to know whether it's going to be used joined or in parts.
586
+ // And, if the start is adjusted slightly, can do the same there:
587
+ // - if not isStart: nothing
588
+ // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
589
+ // - if dots allowed or not possible: (?:/|^)
590
+ // - if dots possible and not allowed: (?:/|^)(?!\.)
591
+ //
592
+ // But it's better to have a simpler binding without a conditional, for
593
+ // performance, so probably better to return both start options.
594
+ //
595
+ // Then the caller just ignores the end if it's not the first pattern,
596
+ // and the start always gets applied.
597
+ //
598
+ // But that's always going to be $ if it's the ending pattern, or nothing,
599
+ // so the caller can just attach $ at the end of the pattern when building.
600
+ //
601
+ // So the todo is:
602
+ // - better detect what kind of start is needed
603
+ // - return both flavors of starting pattern
604
+ // - attach $ at the end of the pattern when creating the actual RegExp
605
+ //
606
+ // Ah, but wait, no, that all only applies to the root when the first pattern
607
+ // is not an extglob. If the first pattern IS an extglob, then we need all
608
+ // that dot prevention biz to live in the extglob portions, because eg
609
+ // +(*|.x*) can match .xy but not .yx.
610
+ //
611
+ // So, return the two flavors if it's #root and the first child is not an
612
+ // AST, otherwise leave it to the child AST to handle it, and there,
613
+ // use the (?:^|/) style of start binding.
614
+ //
615
+ // Even simplified further:
616
+ // - Since the start for a join is eg /(?!\.) and the start for a part
617
+ // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
618
+ // or start or whatever) and prepend ^ or / at the Regexp construction.
619
+ toRegExpSource(allowDot) {
620
+ const dot = allowDot ?? !!this.#options.dot;
621
+ if (this.#root === this) {
622
+ this.#flatten();
623
+ this.#fillNegs();
624
+ }
625
+ if (!isExtglobAST(this)) {
626
+ const noEmpty = this.isStart() &&
627
+ this.isEnd() &&
628
+ !this.#parts.some(s => typeof s !== 'string');
629
+ const src = this.#parts
630
+ .map(p => {
631
+ const [re, _, hasMagic, uflag] = typeof p === 'string' ?
632
+ _a.#parseGlob(p, this.#hasMagic, noEmpty)
633
+ : p.toRegExpSource(allowDot);
634
+ this.#hasMagic = this.#hasMagic || hasMagic;
635
+ this.#uflag = this.#uflag || uflag;
636
+ return re;
637
+ })
638
+ .join('');
639
+ let start = '';
640
+ if (this.isStart()) {
641
+ if (typeof this.#parts[0] === 'string') {
642
+ // this is the string that will match the start of the pattern,
643
+ // so we need to protect against dots and such.
644
+ // '.' and '..' cannot match unless the pattern is that exactly,
645
+ // even if it starts with . or dot:true is set.
646
+ const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);
647
+ if (!dotTravAllowed) {
648
+ const aps = addPatternStart;
649
+ // check if we have a possibility of matching . or ..,
650
+ // and prevent that.
651
+ const needNoTrav =
652
+ // dots are allowed, and the pattern starts with [ or .
653
+ (dot && aps.has(src.charAt(0))) ||
654
+ // the pattern starts with \., and then [ or .
655
+ (src.startsWith('\\.') && aps.has(src.charAt(2))) ||
656
+ // the pattern starts with \.\., and then [ or .
657
+ (src.startsWith('\\.\\.') && aps.has(src.charAt(4)));
658
+ // no need to prevent dots if it can't match a dot, or if a
659
+ // sub-pattern will be preventing it anyway.
660
+ const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
661
+ start =
662
+ needNoTrav ? startNoTraversal
663
+ : needNoDot ? startNoDot
664
+ : '';
665
+ }
666
+ }
667
+ }
668
+ // append the "end of path portion" pattern to negation tails
669
+ let end = '';
670
+ if (this.isEnd() &&
671
+ this.#root.#filledNegs &&
672
+ this.#parent?.type === '!') {
673
+ end = '(?:$|\\/)';
674
+ }
675
+ const final = start + src + end;
676
+ return [
677
+ final,
678
+ unescape(src),
679
+ (this.#hasMagic = !!this.#hasMagic),
680
+ this.#uflag,
681
+ ];
682
+ }
683
+ // We need to calculate the body *twice* if it's a repeat pattern
684
+ // at the start, once in nodot mode, then again in dot mode, so a
685
+ // pattern like *(?) can match 'x.y'
686
+ const repeated = this.type === '*' || this.type === '+';
687
+ // some kind of extglob
688
+ const start = this.type === '!' ? '(?:(?!(?:' : '(?:';
689
+ let body = this.#partsToRegExp(dot);
690
+ if (this.isStart() && this.isEnd() && !body && this.type !== '!') {
691
+ // invalid extglob, has to at least be *something* present, if it's
692
+ // the entire path portion.
693
+ const s = this.toString();
694
+ const me = this;
695
+ me.#parts = [s];
696
+ me.type = null;
697
+ me.#hasMagic = undefined;
698
+ return [s, unescape(this.toString()), false, false];
699
+ }
700
+ let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ?
701
+ ''
702
+ : this.#partsToRegExp(true);
703
+ if (bodyDotAllowed === body) {
704
+ bodyDotAllowed = '';
705
+ }
706
+ if (bodyDotAllowed) {
707
+ body = `(?:${body})(?:${bodyDotAllowed})*?`;
708
+ }
709
+ // an empty !() is exactly equivalent to a starNoEmpty
710
+ let final = '';
711
+ if (this.type === '!' && this.#emptyExt) {
712
+ final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty;
713
+ }
714
+ else {
715
+ const close = this.type === '!' ?
716
+ // !() must match something,but !(x) can match ''
717
+ '))' +
718
+ (this.isStart() && !dot && !allowDot ? startNoDot : '') +
719
+ star +
720
+ ')'
721
+ : this.type === '@' ? ')'
722
+ : this.type === '?' ? ')?'
723
+ : this.type === '+' && bodyDotAllowed ? ')'
724
+ : this.type === '*' && bodyDotAllowed ? `)?`
725
+ : `)${this.type}`;
726
+ final = start + body + close;
727
+ }
728
+ return [
729
+ final,
730
+ unescape(body),
731
+ (this.#hasMagic = !!this.#hasMagic),
732
+ this.#uflag,
733
+ ];
734
+ }
735
+ #flatten() {
736
+ if (!isExtglobAST(this)) {
737
+ for (const p of this.#parts) {
738
+ if (typeof p === 'object') {
739
+ p.#flatten();
740
+ }
741
+ }
742
+ }
743
+ else {
744
+ // do up to 10 passes to flatten as much as possible
745
+ let iterations = 0;
746
+ let done = false;
747
+ do {
748
+ done = true;
749
+ for (let i = 0; i < this.#parts.length; i++) {
750
+ const c = this.#parts[i];
751
+ if (typeof c === 'object') {
752
+ c.#flatten();
753
+ if (this.#canAdopt(c)) {
754
+ done = false;
755
+ this.#adopt(c, i);
756
+ }
757
+ else if (this.#canAdoptWithSpace(c)) {
758
+ done = false;
759
+ this.#adoptWithSpace(c, i);
760
+ }
761
+ else if (this.#canUsurp(c)) {
762
+ done = false;
763
+ this.#usurp(c);
764
+ }
765
+ }
766
+ }
767
+ } while (!done && ++iterations < 10);
768
+ }
769
+ this.#toString = undefined;
770
+ }
771
+ #partsToRegExp(dot) {
772
+ return this.#parts
773
+ .map(p => {
774
+ // extglob ASTs should only contain parent ASTs
775
+ /* c8 ignore start */
776
+ if (typeof p === 'string') {
777
+ throw new Error('string type in extglob ast??');
778
+ }
779
+ /* c8 ignore stop */
780
+ // can ignore hasMagic, because extglobs are already always magic
781
+ const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
782
+ this.#uflag = this.#uflag || uflag;
783
+ return re;
784
+ })
785
+ .filter(p => !(this.isStart() && this.isEnd()) || !!p)
786
+ .join('|');
787
+ }
788
+ static #parseGlob(glob, hasMagic, noEmpty = false) {
789
+ let escaping = false;
790
+ let re = '';
791
+ let uflag = false;
792
+ // multiple stars that aren't globstars coalesce into one *
793
+ let inStar = false;
794
+ for (let i = 0; i < glob.length; i++) {
795
+ const c = glob.charAt(i);
796
+ if (escaping) {
797
+ escaping = false;
798
+ re += (reSpecials.has(c) ? '\\' : '') + c;
799
+ continue;
800
+ }
801
+ if (c === '*') {
802
+ if (inStar)
803
+ continue;
804
+ inStar = true;
805
+ re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
806
+ hasMagic = true;
807
+ continue;
808
+ }
809
+ else {
810
+ inStar = false;
811
+ }
812
+ if (c === '\\') {
813
+ if (i === glob.length - 1) {
814
+ re += '\\\\';
815
+ }
816
+ else {
817
+ escaping = true;
818
+ }
819
+ continue;
820
+ }
821
+ if (c === '[') {
822
+ const [src, needUflag, consumed, magic] = parseClass(glob, i);
823
+ if (consumed) {
824
+ re += src;
825
+ uflag = uflag || needUflag;
826
+ i += consumed - 1;
827
+ hasMagic = hasMagic || magic;
828
+ continue;
829
+ }
830
+ }
831
+ if (c === '?') {
832
+ re += qmark;
833
+ hasMagic = true;
834
+ continue;
835
+ }
836
+ re += regExpEscape(c);
837
+ }
838
+ return [re, unescape(glob), !!hasMagic, uflag];
839
+ }
840
+ }
841
+ _a = AST;
842
+ //# sourceMappingURL=ast.js.map