xo 0.53.0 → 0.54.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 (531) hide show
  1. package/config/plugins.cjs +27 -4
  2. package/index.js +6 -11
  3. package/lib/options-manager.js +11 -58
  4. package/node_modules/@eslint-community/eslint-utils/README.md +37 -0
  5. package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/index.js +124 -12
  6. package/node_modules/@eslint-community/eslint-utils/index.js.map +1 -0
  7. package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/index.mjs +124 -11
  8. package/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -0
  9. package/node_modules/@eslint-community/eslint-utils/package.json +73 -0
  10. package/node_modules/{regexpp → @eslint-community/regexpp}/README.md +9 -10
  11. package/node_modules/@eslint-community/regexpp/index.d.ts +781 -0
  12. package/node_modules/{regexpp → @eslint-community/regexpp}/index.js +297 -262
  13. package/node_modules/@eslint-community/regexpp/index.js.map +1 -0
  14. package/node_modules/{regexpp → @eslint-community/regexpp}/index.mjs +297 -262
  15. package/node_modules/@eslint-community/regexpp/index.mjs.map +1 -0
  16. package/node_modules/{regexpp → @eslint-community/regexpp}/package.json +60 -64
  17. package/node_modules/@typescript-eslint/eslint-plugin/LICENSE +1 -1
  18. package/node_modules/@typescript-eslint/eslint-plugin/README.md +6 -92
  19. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js +10 -2
  20. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map +1 -1
  21. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js +2 -1
  22. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map +1 -1
  23. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +4 -2
  24. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map +1 -1
  25. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +1 -1
  26. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map +1 -1
  27. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +2 -1
  28. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map +1 -1
  29. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js +3 -3
  30. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map +1 -1
  31. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js +158 -0
  32. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js.map +1 -0
  33. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js +3 -1
  34. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js.map +1 -1
  35. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js +1 -1
  36. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map +1 -1
  37. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +17 -7
  38. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map +1 -1
  39. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +47 -0
  40. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map +1 -1
  41. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +5 -11
  42. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map +1 -1
  43. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +22 -3
  44. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map +1 -1
  45. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +12 -0
  46. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map +1 -1
  47. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js +351 -0
  48. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map +1 -0
  49. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js +53 -2
  50. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js.map +1 -1
  51. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js +384 -0
  52. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js.map +1 -0
  53. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +205 -39
  54. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map +1 -1
  55. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +14 -13
  56. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map +1 -1
  57. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +5 -0
  58. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map +1 -1
  59. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js +6 -6
  60. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map +1 -1
  61. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +231 -198
  62. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map +1 -1
  63. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +5 -0
  64. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map +1 -1
  65. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +158 -0
  66. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map +1 -0
  67. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +19 -16
  68. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map +1 -1
  69. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +2 -2
  70. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map +1 -1
  71. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +45 -4
  72. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map +1 -1
  73. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +1 -1
  74. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map +1 -1
  75. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +79 -0
  76. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map +1 -0
  77. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +1 -1
  78. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map +1 -1
  79. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +1 -1
  80. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map +1 -1
  81. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +15 -15
  82. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map +1 -1
  83. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +196 -0
  84. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map +1 -0
  85. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +1 -1
  86. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map +1 -1
  87. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +3 -3
  88. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map +1 -1
  89. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +6 -1
  90. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map +1 -1
  91. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +21 -31
  92. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map +1 -1
  93. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +22 -7
  94. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map +1 -1
  95. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +4 -5
  96. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map +1 -1
  97. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +9 -9
  98. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map +1 -1
  99. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +1 -2
  100. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map +1 -1
  101. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +2 -2
  102. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map +1 -1
  103. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js +1 -0
  104. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js.map +1 -1
  105. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js +1 -0
  106. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js.map +1 -1
  107. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +3 -5
  108. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map +1 -1
  109. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +4 -5
  110. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map +1 -1
  111. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +2 -2
  112. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map +1 -1
  113. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +19 -1
  114. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map +1 -1
  115. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +47 -11
  116. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map +1 -1
  117. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +2 -1
  118. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map +1 -1
  119. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +1 -1
  120. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map +1 -1
  121. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -2
  122. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map +1 -1
  123. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +3 -1
  124. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map +1 -1
  125. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +1 -1
  126. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map +1 -1
  127. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +7 -0
  128. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map +1 -1
  129. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +5 -5
  130. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map +1 -1
  131. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js +5 -5
  132. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js.map +1 -1
  133. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js +1 -2
  134. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js.map +1 -1
  135. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js +2 -1
  136. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map +1 -1
  137. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +46 -2
  138. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map +1 -1
  139. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +1 -1
  140. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map +1 -1
  141. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +1 -1
  142. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map +1 -1
  143. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +1 -1
  144. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map +1 -1
  145. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map +1 -1
  146. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map +1 -1
  147. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +20 -0
  148. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map +1 -0
  149. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +2 -1
  150. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map +1 -1
  151. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +1 -0
  152. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map +1 -1
  153. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js +1 -1
  154. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map +1 -1
  155. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +27 -1
  156. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map +1 -1
  157. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md +3 -3
  158. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.md +1 -1
  159. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md +3 -8
  160. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md +12 -0
  161. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.md +1 -1
  162. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.md +2 -0
  163. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md +9 -1
  164. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md +52 -0
  165. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md +12 -0
  166. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md +37 -0
  167. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md +181 -20
  168. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md +7 -6
  169. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.md +61 -0
  170. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.md +1 -1
  171. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.md +75 -0
  172. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.md +88 -0
  173. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md +2 -2
  174. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md +21 -0
  175. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md +5 -0
  176. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.md +18 -1
  177. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md +9 -0
  178. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md +6 -0
  179. package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.md +7 -10
  180. package/node_modules/@typescript-eslint/eslint-plugin/package.json +13 -9
  181. package/node_modules/@typescript-eslint/parser/LICENSE +5 -5
  182. package/node_modules/@typescript-eslint/parser/README.md +6 -300
  183. package/node_modules/@typescript-eslint/parser/_ts3.4/dist/index.d.ts +4 -0
  184. package/node_modules/@typescript-eslint/parser/dist/index.d.ts +4 -0
  185. package/node_modules/@typescript-eslint/parser/dist/index.d.ts.map +1 -1
  186. package/node_modules/@typescript-eslint/parser/dist/index.js +5 -1
  187. package/node_modules/@typescript-eslint/parser/dist/index.js.map +1 -1
  188. package/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map +1 -1
  189. package/node_modules/@typescript-eslint/parser/dist/parser.js +15 -17
  190. package/node_modules/@typescript-eslint/parser/dist/parser.js.map +1 -1
  191. package/node_modules/@typescript-eslint/parser/package.json +6 -6
  192. package/node_modules/@typescript-eslint/scope-manager/LICENSE +1 -1
  193. package/node_modules/@typescript-eslint/scope-manager/README.md +5 -117
  194. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +10 -10
  195. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +1 -1
  196. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts +1 -1
  197. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map +1 -1
  198. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts +3 -0
  199. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map +1 -0
  200. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +21 -0
  201. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map +1 -0
  202. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts +3 -0
  203. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map +1 -0
  204. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +15 -0
  205. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map +1 -0
  206. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +1 -1
  207. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +1 -1
  208. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +5 -0
  209. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +1 -1
  210. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +44 -10
  211. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +1 -1
  212. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map +1 -1
  213. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +1 -1
  214. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map +1 -1
  215. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map +1 -1
  216. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts +3 -0
  217. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map +1 -0
  218. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +12 -0
  219. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map +1 -0
  220. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +2 -1
  221. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map +1 -1
  222. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +1 -1
  223. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +2 -1
  224. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +1 -1
  225. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts +3 -0
  226. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map +1 -0
  227. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +15 -0
  228. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map +1 -0
  229. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts +3 -0
  230. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map +1 -0
  231. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +24 -0
  232. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map +1 -0
  233. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts +3 -0
  234. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map +1 -0
  235. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts +3 -0
  236. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map +1 -0
  237. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +14 -0
  238. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map +1 -0
  239. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +11 -0
  240. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map +1 -0
  241. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map +1 -1
  242. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +3 -105
  243. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +1 -1
  244. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +2 -2
  245. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +7 -0
  246. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map +1 -1
  247. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +14 -0
  248. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +1 -1
  249. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map +1 -1
  250. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map +1 -1
  251. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +2 -0
  252. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map +1 -1
  253. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +43 -1
  254. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +1 -1
  255. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +4 -2
  256. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +1 -1
  257. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +14 -6
  258. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +1 -1
  259. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts +1 -1
  260. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map +1 -1
  261. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map +1 -1
  262. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map +1 -1
  263. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts +2 -2
  264. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +1 -1
  265. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +10 -12
  266. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +1 -1
  267. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +17 -17
  268. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +1 -1
  269. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +2 -1
  270. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +1 -1
  271. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +5 -2
  272. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +1 -1
  273. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map +1 -1
  274. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map +1 -1
  275. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map +1 -1
  276. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +1 -1
  277. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map +1 -1
  278. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts +1 -1
  279. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map +1 -1
  280. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +1 -1
  281. package/node_modules/@typescript-eslint/scope-manager/package.json +12 -12
  282. package/node_modules/@typescript-eslint/type-utils/LICENSE +1 -1
  283. package/node_modules/@typescript-eslint/type-utils/README.md +7 -10
  284. package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/containsAllTypesByName.d.ts +4 -2
  285. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts +4 -2
  286. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map +1 -1
  287. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +12 -6
  288. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map +1 -1
  289. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map +1 -1
  290. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +2 -4
  291. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +1 -1
  292. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map +1 -1
  293. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +1 -0
  294. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map +1 -1
  295. package/node_modules/@typescript-eslint/type-utils/package.json +6 -6
  296. package/node_modules/@typescript-eslint/types/LICENSE +1 -1
  297. package/node_modules/@typescript-eslint/types/README.md +6 -11
  298. package/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts +90 -16
  299. package/node_modules/@typescript-eslint/types/_ts3.4/dist/lib.d.ts +1 -1
  300. package/node_modules/@typescript-eslint/types/_ts3.4/dist/parser-options.d.ts +9 -5
  301. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +90 -16
  302. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +1 -1
  303. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +3 -0
  304. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -1
  305. package/node_modules/@typescript-eslint/types/dist/lib.d.ts +1 -1
  306. package/node_modules/@typescript-eslint/types/dist/lib.d.ts.map +1 -1
  307. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +9 -5
  308. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +1 -1
  309. package/node_modules/@typescript-eslint/types/package.json +6 -6
  310. package/node_modules/@typescript-eslint/typescript-estree/LICENSE +5 -5
  311. package/node_modules/@typescript-eslint/typescript-estree/README.md +6 -379
  312. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/clear-caches.d.ts +10 -0
  313. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/describeFilePath.d.ts +2 -0
  314. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/{createWatchProgram.d.ts → getWatchProgramsForProjects.d.ts} +3 -4
  315. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts +8 -2
  316. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/index.d.ts +2 -2
  317. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/ExpiringCache.d.ts +17 -0
  318. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/createParseSettings.d.ts +1 -0
  319. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
  320. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/index.d.ts +8 -3
  321. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/resolveProjectList.d.ts +19 -0
  322. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts +23 -4
  323. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser.d.ts +1 -1
  324. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/simple-traverse.d.ts +1 -1
  325. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/estree-to-ts-node-types.d.ts +4 -1
  326. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/ts-nodes.d.ts +4 -2
  327. package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/version-check.d.ts +1 -1
  328. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts +10 -0
  329. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map +1 -0
  330. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +24 -0
  331. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map +1 -0
  332. package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +1 -1
  333. package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map +1 -1
  334. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map +1 -1
  335. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +62 -16
  336. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +1 -1
  337. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts.map +1 -1
  338. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js +1 -0
  339. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js.map +1 -1
  340. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map +1 -1
  341. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +7 -12
  342. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +1 -1
  343. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts +2 -0
  344. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map +1 -0
  345. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +32 -0
  346. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map +1 -0
  347. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/{createWatchProgram.d.ts → getWatchProgramsForProjects.d.ts} +3 -4
  348. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map +1 -0
  349. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/{createWatchProgram.js → getWatchProgramsForProjects.js} +16 -20
  350. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map +1 -0
  351. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +8 -2
  352. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map +1 -1
  353. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +15 -1
  354. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -1
  355. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map +1 -1
  356. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +3 -3
  357. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map +1 -1
  358. package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts +2 -2
  359. package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map +1 -1
  360. package/node_modules/@typescript-eslint/typescript-estree/dist/index.js +2 -4
  361. package/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map +1 -1
  362. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map +1 -1
  363. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +18 -5
  364. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map +1 -1
  365. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts +17 -0
  366. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map +1 -0
  367. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +62 -0
  368. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map +1 -0
  369. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts +1 -0
  370. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map +1 -1
  371. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +22 -48
  372. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +1 -1
  373. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
  374. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map +1 -0
  375. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +70 -0
  376. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map +1 -0
  377. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts +8 -3
  378. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map +1 -1
  379. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts +19 -0
  380. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map +1 -0
  381. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +103 -0
  382. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map +1 -0
  383. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +4 -4
  384. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +1 -1
  385. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +23 -4
  386. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map +1 -1
  387. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts +1 -1
  388. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map +1 -1
  389. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +1 -1
  390. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -1
  391. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts +1 -1
  392. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map +1 -1
  393. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +1 -1
  394. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map +1 -1
  395. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts +4 -1
  396. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map +1 -1
  397. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts +4 -2
  398. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map +1 -1
  399. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts +1 -1
  400. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map +1 -1
  401. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +2 -0
  402. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map +1 -1
  403. package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -6
  404. package/node_modules/@typescript-eslint/utils/LICENSE +1 -1
  405. package/node_modules/@typescript-eslint/utils/README.md +6 -23
  406. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +4 -4
  407. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +4 -4
  408. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts +6 -6
  409. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts +5 -5
  410. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +2 -2
  411. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/helpers.d.ts +60 -6
  412. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/predicates.d.ts +13 -1
  413. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts +2 -2
  414. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts +2 -2
  415. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts +1 -1
  416. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/RuleTester.d.ts +3 -3
  417. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +2 -2
  418. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Rule.d.ts +6 -6
  419. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts +1 -1
  420. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts +5 -1
  421. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts +1 -1
  422. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts +1 -1
  423. package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts +1 -1
  424. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +4 -4
  425. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +2 -2
  426. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map +1 -1
  427. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +4 -4
  428. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js +2 -2
  429. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map +1 -1
  430. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts +6 -6
  431. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +7 -7
  432. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map +1 -1
  433. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts +5 -5
  434. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map +1 -1
  435. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +1 -1
  436. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map +1 -1
  437. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +2 -2
  438. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js +3 -3
  439. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map +1 -1
  440. package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts +60 -6
  441. package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map +1 -1
  442. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts +13 -1
  443. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map +1 -1
  444. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js +15 -1
  445. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map +1 -1
  446. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts +2 -2
  447. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map +1 -1
  448. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts +2 -2
  449. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map +1 -1
  450. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +1 -1
  451. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map +1 -1
  452. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts +1 -1
  453. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map +1 -1
  454. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js +1 -1
  455. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map +1 -1
  456. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts +3 -3
  457. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts.map +1 -1
  458. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js +40 -27
  459. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js.map +1 -1
  460. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +2 -2
  461. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts.map +1 -1
  462. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +6 -6
  463. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map +1 -1
  464. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts +1 -1
  465. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map +1 -1
  466. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts +5 -1
  467. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map +1 -1
  468. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map +1 -1
  469. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts +1 -1
  470. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts.map +1 -1
  471. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts +1 -1
  472. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts.map +1 -1
  473. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts +1 -1
  474. package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts.map +1 -1
  475. package/node_modules/@typescript-eslint/utils/package.json +8 -8
  476. package/node_modules/@typescript-eslint/visitor-keys/LICENSE +1 -1
  477. package/node_modules/@typescript-eslint/visitor-keys/README.md +6 -9
  478. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map +1 -1
  479. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +63 -48
  480. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +1 -1
  481. package/node_modules/@typescript-eslint/visitor-keys/package.json +4 -4
  482. package/node_modules/eslint-config-xo-typescript/index.js +8 -11
  483. package/node_modules/eslint-config-xo-typescript/package.json +5 -5
  484. package/node_modules/eslint-visitor-keys/README.md +1 -2
  485. package/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +38 -36
  486. package/node_modules/eslint-visitor-keys/lib/visitor-keys.js +38 -35
  487. package/node_modules/eslint-visitor-keys/package.json +16 -6
  488. package/node_modules/fastq/README.md +1 -1
  489. package/node_modules/fastq/index.d.ts +1 -1
  490. package/node_modules/fastq/package.json +1 -1
  491. package/node_modules/fastq/queue.js +6 -0
  492. package/node_modules/fastq/test/promise.js +27 -0
  493. package/node_modules/grapheme-splitter/LICENSE +22 -0
  494. package/node_modules/grapheme-splitter/README.md +111 -0
  495. package/node_modules/grapheme-splitter/index.d.ts +24 -0
  496. package/node_modules/grapheme-splitter/index.js +1743 -0
  497. package/node_modules/grapheme-splitter/package.json +34 -0
  498. package/node_modules/grapheme-splitter/tests/GraphemeBreakTest.txt +850 -0
  499. package/node_modules/grapheme-splitter/tests/grapheme_splitter_tests.js +83 -0
  500. package/node_modules/ignore/README.md +3 -3
  501. package/node_modules/ignore/index.js +24 -9
  502. package/node_modules/ignore/legacy.js +176 -135
  503. package/node_modules/ignore/package.json +13 -11
  504. package/package.json +19 -19
  505. package/readme.md +1 -2
  506. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.d.ts.map +0 -1
  507. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js.map +0 -1
  508. package/node_modules/braces/CHANGELOG.md +0 -184
  509. package/node_modules/eslint-scope/CHANGELOG.md +0 -70
  510. package/node_modules/eslint-utils/README.md +0 -38
  511. package/node_modules/eslint-utils/index.js.map +0 -1
  512. package/node_modules/eslint-utils/index.mjs.map +0 -1
  513. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/CHANGELOG.md +0 -36
  514. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/LICENSE +0 -201
  515. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/README.md +0 -98
  516. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js +0 -81
  517. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.json +0 -289
  518. package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/package.json +0 -39
  519. package/node_modules/eslint-utils/package.json +0 -78
  520. package/node_modules/glob-parent/CHANGELOG.md +0 -110
  521. package/node_modules/picomatch/CHANGELOG.md +0 -136
  522. package/node_modules/regexpp/index.d.ts +0 -248
  523. package/node_modules/regexpp/index.js.map +0 -1
  524. package/node_modules/regexpp/index.mjs.map +0 -1
  525. /package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/LICENSE +0 -0
  526. /package/node_modules/{regexpp → @eslint-community/regexpp}/LICENSE +0 -0
  527. /package/node_modules/{yallist → semver/node_modules/yallist}/LICENSE +0 -0
  528. /package/node_modules/{yallist → semver/node_modules/yallist}/README.md +0 -0
  529. /package/node_modules/{yallist → semver/node_modules/yallist}/iterator.js +0 -0
  530. /package/node_modules/{yallist → semver/node_modules/yallist}/package.json +0 -0
  531. /package/node_modules/{yallist → semver/node_modules/yallist}/yallist.js +0 -0
@@ -1,61 +1,66 @@
1
1
  "use strict";
2
2
 
3
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
4
-
5
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6
-
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
5
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
8
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8
-
9
9
  // A simple implementation of make-array
10
10
  function makeArray(subject) {
11
11
  return Array.isArray(subject) ? subject : [subject];
12
12
  }
13
-
14
13
  var EMPTY = '';
15
14
  var SPACE = ' ';
16
15
  var ESCAPE = '\\';
17
16
  var REGEX_TEST_BLANK_LINE = /^\s+$/;
17
+ var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/;
18
18
  var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
19
19
  var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
20
- var REGEX_SPLITALL_CRLF = /\r?\n/g; // /foo,
20
+ var REGEX_SPLITALL_CRLF = /\r?\n/g;
21
+ // /foo,
21
22
  // ./foo,
22
23
  // ../foo,
23
24
  // .
24
25
  // ..
25
-
26
26
  var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/;
27
27
  var SLASH = '/';
28
- var KEY_IGNORE = typeof Symbol !== 'undefined' ? Symbol["for"]('node-ignore')
29
- /* istanbul ignore next */
30
- : 'node-ignore';
31
28
 
29
+ // Do not use ternary expression here, since "istanbul ignore next" is buggy
30
+ var TMP_KEY_IGNORE = 'node-ignore';
31
+ /* istanbul ignore else */
32
+ if (typeof Symbol !== 'undefined') {
33
+ TMP_KEY_IGNORE = Symbol["for"]('node-ignore');
34
+ }
35
+ var KEY_IGNORE = TMP_KEY_IGNORE;
32
36
  var define = function define(object, key, value) {
33
37
  return Object.defineProperty(object, key, {
34
38
  value: value
35
39
  });
36
40
  };
37
-
38
41
  var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
39
-
40
42
  var RETURN_FALSE = function RETURN_FALSE() {
41
43
  return false;
42
- }; // Sanitize the range of a regular expression
43
- // The cases are complicated, see test cases for details
44
-
44
+ };
45
45
 
46
+ // Sanitize the range of a regular expression
47
+ // The cases are complicated, see test cases for details
46
48
  var sanitizeRange = function sanitizeRange(range) {
47
49
  return range.replace(REGEX_REGEXP_RANGE, function (match, from, to) {
48
- return from.charCodeAt(0) <= to.charCodeAt(0) ? match // Invalid range (out of order) which is ok for gitignore rules but
50
+ return from.charCodeAt(0) <= to.charCodeAt(0) ? match
51
+ // Invalid range (out of order) which is ok for gitignore rules but
49
52
  // fatal for JavaScript regular expression, so eliminate it.
50
53
  : EMPTY;
51
54
  });
52
- }; // See fixtures #59
53
-
55
+ };
54
56
 
57
+ // See fixtures #59
55
58
  var cleanRangeBackSlash = function cleanRangeBackSlash(slashes) {
56
59
  var length = slashes.length;
57
60
  return slashes.slice(0, length - length % 2);
58
- }; // > If the pattern ends with a slash,
61
+ };
62
+
63
+ // > If the pattern ends with a slash,
59
64
  // > it is removed for the purpose of the following description,
60
65
  // > but it would only find a match with a directory.
61
66
  // > In other words, foo/ will match a directory foo and paths underneath it,
@@ -64,20 +69,24 @@ var cleanRangeBackSlash = function cleanRangeBackSlash(slashes) {
64
69
  // '`foo/`' will not match regular file '`foo`' or symbolic link '`foo`'
65
70
  // -> ignore-rules will not deal with it, because it costs extra `fs.stat` call
66
71
  // you could use option `mark: true` with `glob`
67
- // '`foo/`' should not continue with the '`..`'
68
-
69
72
 
70
- var REPLACERS = [// > Trailing spaces are ignored unless they are quoted with backslash ("\")
71
- [// (a\ ) -> (a )
73
+ // '`foo/`' should not continue with the '`..`'
74
+ var REPLACERS = [
75
+ // > Trailing spaces are ignored unless they are quoted with backslash ("\")
76
+ [
77
+ // (a\ ) -> (a )
72
78
  // (a ) -> (a)
73
79
  // (a \ ) -> (a )
74
80
  /\\?\s+$/, function (match) {
75
81
  return match.indexOf('\\') === 0 ? SPACE : EMPTY;
76
- }], // replace (\ ) with ' '
82
+ }],
83
+ // replace (\ ) with ' '
77
84
  [/\\\s/g, function () {
78
85
  return SPACE;
79
- }], // Escape metacharacters
86
+ }],
87
+ // Escape metacharacters
80
88
  // which is written down by users but means special for regular expressions.
89
+
81
90
  // > There are 12 characters with special meanings:
82
91
  // > - the backslash \,
83
92
  // > - the caret ^,
@@ -94,229 +103,264 @@ var REPLACERS = [// > Trailing spaces are ignored unless they are quoted with ba
94
103
  // > These special characters are often called "metacharacters".
95
104
  [/[\\$.|*+(){^]/g, function (match) {
96
105
  return "\\".concat(match);
97
- }], [// > a question mark (?) matches a single character
106
+ }], [
107
+ // > a question mark (?) matches a single character
98
108
  /(?!\\)\?/g, function () {
99
109
  return '[^/]';
100
- }], // leading slash
101
- [// > A leading slash matches the beginning of the pathname.
110
+ }],
111
+ // leading slash
112
+ [
113
+ // > A leading slash matches the beginning of the pathname.
102
114
  // > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
103
115
  // A leading slash matches the beginning of the pathname
104
116
  /^\//, function () {
105
117
  return '^';
106
- }], // replace special metacharacter slash after the leading slash
118
+ }],
119
+ // replace special metacharacter slash after the leading slash
107
120
  [/\//g, function () {
108
121
  return '\\/';
109
- }], [// > A leading "**" followed by a slash means match in all directories.
122
+ }], [
123
+ // > A leading "**" followed by a slash means match in all directories.
110
124
  // > For example, "**/foo" matches file or directory "foo" anywhere,
111
125
  // > the same as pattern "foo".
112
126
  // > "**/foo/bar" matches file or directory "bar" anywhere that is directly
113
127
  // > under directory "foo".
114
128
  // Notice that the '*'s have been replaced as '\\*'
115
- /^\^*\\\*\\\*\\\//, // '**/foo' <-> 'foo'
129
+ /^\^*\\\*\\\*\\\//,
130
+ // '**/foo' <-> 'foo'
116
131
  function () {
117
132
  return '^(?:.*\\/)?';
118
- }], // starting
119
- [// there will be no leading '/'
133
+ }],
134
+ // starting
135
+ [
136
+ // there will be no leading '/'
120
137
  // (which has been replaced by section "leading slash")
121
138
  // If starts with '**', adding a '^' to the regular expression also works
122
139
  /^(?=[^^])/, function startingReplacer() {
123
140
  // If has a slash `/` at the beginning or middle
124
- return !/\/(?!$)/.test(this) // > Prior to 2.22.1
141
+ return !/\/(?!$)/.test(this)
142
+ // > Prior to 2.22.1
125
143
  // > If the pattern does not contain a slash /,
126
144
  // > Git treats it as a shell glob pattern
127
145
  // Actually, if there is only a trailing slash,
128
146
  // git also treats it as a shell glob pattern
147
+
129
148
  // After 2.22.1 (compatible but clearer)
130
149
  // > If there is a separator at the beginning or middle (or both)
131
150
  // > of the pattern, then the pattern is relative to the directory
132
151
  // > level of the particular .gitignore file itself.
133
152
  // > Otherwise the pattern may also match at any level below
134
153
  // > the .gitignore level.
135
- ? '(?:^|\\/)' // > Otherwise, Git treats the pattern as a shell glob suitable for
154
+ ? '(?:^|\\/)'
155
+
156
+ // > Otherwise, Git treats the pattern as a shell glob suitable for
136
157
  // > consumption by fnmatch(3)
137
158
  : '^';
138
- }], // two globstars
139
- [// Use lookahead assertions so that we could match more than one `'/**'`
140
- /\\\/\\\*\\\*(?=\\\/|$)/g, // Zero, one or several directories
159
+ }],
160
+ // two globstars
161
+ [
162
+ // Use lookahead assertions so that we could match more than one `'/**'`
163
+ /\\\/\\\*\\\*(?=\\\/|$)/g,
164
+ // Zero, one or several directories
141
165
  // should not use '*', or it will be replaced by the next replacer
166
+
142
167
  // Check if it is not the last `'/**'`
143
168
  function (_, index, str) {
144
- return index + 6 < str.length // case: /**/
169
+ return index + 6 < str.length
170
+
171
+ // case: /**/
145
172
  // > A slash followed by two consecutive asterisks then a slash matches
146
173
  // > zero or more directories.
147
174
  // > For example, "a/**/b" matches "a/b", "a/x/b", "a/x/y/b" and so on.
148
175
  // '/**/'
149
- ? '(?:\\/[^\\/]+)*' // case: /**
176
+ ? '(?:\\/[^\\/]+)*'
177
+
178
+ // case: /**
150
179
  // > A trailing `"/**"` matches everything inside.
180
+
151
181
  // #21: everything inside but it should not include the current folder
152
182
  : '\\/.+';
153
- }], // intermediate wildcards
154
- [// Never replace escaped '*'
183
+ }],
184
+ // normal intermediate wildcards
185
+ [
186
+ // Never replace escaped '*'
155
187
  // ignore rule '\*' will match the path '*'
188
+
156
189
  // 'abc.*/' -> go
157
- // 'abc.*' -> skip this rule
158
- /(^|[^\\]+)\\\*(?=.+)/g, // '*.js' matches '.js'
190
+ // 'abc.*' -> skip this rule,
191
+ // coz trailing single wildcard will be handed by [trailing wildcard]
192
+ /(^|[^\\]+)(\\\*)+(?=.+)/g,
193
+ // '*.js' matches '.js'
159
194
  // '*.js' doesn't match 'abc'
160
- function (_, p1) {
161
- return "".concat(p1, "[^\\/]*");
162
- }], [// unescape, revert step 3 except for back slash
195
+ function (_, p1, p2) {
196
+ // 1.
197
+ // > An asterisk "*" matches anything except a slash.
198
+ // 2.
199
+ // > Other consecutive asterisks are considered regular asterisks
200
+ // > and will match according to the previous rules.
201
+ var unescaped = p2.replace(/\\\*/g, '[^\\/]*');
202
+ return p1 + unescaped;
203
+ }], [
204
+ // unescape, revert step 3 except for back slash
163
205
  // For example, if a user escape a '\\*',
164
206
  // after step 3, the result will be '\\\\\\*'
165
207
  /\\\\\\(?=[$.|*+(){^])/g, function () {
166
208
  return ESCAPE;
167
- }], [// '\\\\' -> '\\'
209
+ }], [
210
+ // '\\\\' -> '\\'
168
211
  /\\\\/g, function () {
169
212
  return ESCAPE;
170
- }], [// > The range notation, e.g. [a-zA-Z],
213
+ }], [
214
+ // > The range notation, e.g. [a-zA-Z],
171
215
  // > can be used to match one of the characters in a range.
216
+
172
217
  // `\` is escaped by step 3
173
218
  /(\\)?\[([^\]/]*?)(\\*)($|\])/g, function (match, leadEscape, range, endEscape, close) {
174
- return leadEscape === ESCAPE // '\\[bar]' -> '\\\\[bar\\]'
175
- ? "\\[".concat(range).concat(cleanRangeBackSlash(endEscape)).concat(close) : close === ']' ? endEscape.length % 2 === 0 // A normal case, and it is a range notation
219
+ return leadEscape === ESCAPE
220
+ // '\\[bar]' -> '\\\\[bar\\]'
221
+ ? "\\[".concat(range).concat(cleanRangeBackSlash(endEscape)).concat(close) : close === ']' ? endEscape.length % 2 === 0
222
+ // A normal case, and it is a range notation
176
223
  // '[bar]'
177
224
  // '[bar\\\\]'
178
225
  ? "[".concat(sanitizeRange(range)).concat(endEscape, "]") // Invalid range notaton
179
226
  // '[bar\\]' -> '[bar\\\\]'
180
227
  : '[]' : '[]';
181
- }], // ending
182
- [// 'js' will not match 'js.'
228
+ }],
229
+ // ending
230
+ [
231
+ // 'js' will not match 'js.'
183
232
  // 'ab' will not match 'abc'
184
- /(?:[^*])$/, // WTF!
233
+ /(?:[^*])$/,
234
+ // WTF!
185
235
  // https://git-scm.com/docs/gitignore
186
236
  // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
187
237
  // which re-fixes #24, #38
238
+
188
239
  // > If there is a separator at the end of the pattern then the pattern
189
240
  // > will only match directories, otherwise the pattern can match both
190
241
  // > files and directories.
242
+
191
243
  // 'js*' will not match 'a.js'
192
244
  // 'js/' will not match 'a.js'
193
245
  // 'js' will match 'a.js' and 'a.js/'
194
246
  function (match) {
195
- return /\/$/.test(match) // foo/ will not match 'foo'
247
+ return /\/$/.test(match)
248
+ // foo/ will not match 'foo'
196
249
  ? "".concat(match, "$") // foo matches 'foo' and 'foo/'
197
250
  : "".concat(match, "(?=$|\\/$)");
198
- }], // trailing wildcard
251
+ }],
252
+ // trailing wildcard
199
253
  [/(\^|\\\/)?\\\*$/, function (_, p1) {
200
- var prefix = p1 // '\^':
254
+ var prefix = p1
255
+ // '\^':
201
256
  // '/*' does not match EMPTY
202
257
  // '/*' does not match everything
258
+
203
259
  // '\\\/':
204
260
  // 'abc/*' does not match 'abc/'
205
261
  ? "".concat(p1, "[^/]+") // 'a*' matches 'a'
206
262
  // 'a*' matches 'aa'
207
263
  : '[^/]*';
208
264
  return "".concat(prefix, "(?=$|\\/$)");
209
- }]]; // A simple cache, because an ignore rule only has only one certain meaning
265
+ }]];
210
266
 
211
- var regexCache = Object.create(null); // @param {pattern}
267
+ // A simple cache, because an ignore rule only has only one certain meaning
268
+ var regexCache = Object.create(null);
212
269
 
270
+ // @param {pattern}
213
271
  var makeRegex = function makeRegex(pattern, ignoreCase) {
214
272
  var source = regexCache[pattern];
215
-
216
273
  if (!source) {
217
274
  source = REPLACERS.reduce(function (prev, current) {
218
275
  return prev.replace(current[0], current[1].bind(pattern));
219
276
  }, pattern);
220
277
  regexCache[pattern] = source;
221
278
  }
222
-
223
279
  return ignoreCase ? new RegExp(source, 'i') : new RegExp(source);
224
280
  };
225
-
226
281
  var isString = function isString(subject) {
227
282
  return typeof subject === 'string';
228
- }; // > A blank line matches no files, so it can serve as a separator for readability.
229
-
283
+ };
230
284
 
285
+ // > A blank line matches no files, so it can serve as a separator for readability.
231
286
  var checkPattern = function checkPattern(pattern) {
232
- return pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) // > A line starting with # serves as a comment.
287
+ return pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern)
288
+
289
+ // > A line starting with # serves as a comment.
233
290
  && pattern.indexOf('#') !== 0;
234
291
  };
235
-
236
292
  var splitPattern = function splitPattern(pattern) {
237
293
  return pattern.split(REGEX_SPLITALL_CRLF);
238
294
  };
239
-
240
- var IgnoreRule = function IgnoreRule(origin, pattern, negative, regex) {
295
+ var IgnoreRule = /*#__PURE__*/_createClass(function IgnoreRule(origin, pattern, negative, regex) {
241
296
  _classCallCheck(this, IgnoreRule);
242
-
243
297
  this.origin = origin;
244
298
  this.pattern = pattern;
245
299
  this.negative = negative;
246
300
  this.regex = regex;
247
- };
248
-
301
+ });
249
302
  var createRule = function createRule(pattern, ignoreCase) {
250
303
  var origin = pattern;
251
- var negative = false; // > An optional prefix "!" which negates the pattern;
304
+ var negative = false;
252
305
 
306
+ // > An optional prefix "!" which negates the pattern;
253
307
  if (pattern.indexOf('!') === 0) {
254
308
  negative = true;
255
309
  pattern = pattern.substr(1);
256
310
  }
257
-
258
- pattern = pattern // > Put a backslash ("\") in front of the first "!" for patterns that
311
+ pattern = pattern
312
+ // > Put a backslash ("\") in front of the first "!" for patterns that
259
313
  // > begin with a literal "!", for example, `"\!important!.txt"`.
260
- .replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, '!') // > Put a backslash ("\") in front of the first hash for patterns that
314
+ .replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, '!')
315
+ // > Put a backslash ("\") in front of the first hash for patterns that
261
316
  // > begin with a hash.
262
317
  .replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, '#');
263
318
  var regex = makeRegex(pattern, ignoreCase);
264
319
  return new IgnoreRule(origin, pattern, negative, regex);
265
320
  };
266
-
267
321
  var throwError = function throwError(message, Ctor) {
268
322
  throw new Ctor(message);
269
323
  };
270
-
271
324
  var checkPath = function checkPath(path, originalPath, doThrow) {
272
325
  if (!isString(path)) {
273
326
  return doThrow("path must be a string, but got `".concat(originalPath, "`"), TypeError);
274
- } // We don't know if we should ignore EMPTY, so throw
275
-
327
+ }
276
328
 
329
+ // We don't know if we should ignore EMPTY, so throw
277
330
  if (!path) {
278
331
  return doThrow("path must not be empty", TypeError);
279
- } // Check if it is a relative path
280
-
332
+ }
281
333
 
334
+ // Check if it is a relative path
282
335
  if (checkPath.isNotRelative(path)) {
283
336
  var r = '`path.relative()`d';
284
337
  return doThrow("path should be a ".concat(r, " string, but got \"").concat(originalPath, "\""), RangeError);
285
338
  }
286
-
287
339
  return true;
288
340
  };
289
-
290
341
  var isNotRelative = function isNotRelative(path) {
291
342
  return REGEX_TEST_INVALID_PATH.test(path);
292
343
  };
293
-
294
344
  checkPath.isNotRelative = isNotRelative;
295
-
296
345
  checkPath.convert = function (p) {
297
346
  return p;
298
347
  };
299
-
300
348
  var Ignore = /*#__PURE__*/function () {
301
349
  function Ignore() {
302
350
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
303
- _ref$ignorecase = _ref.ignorecase,
304
- ignorecase = _ref$ignorecase === void 0 ? true : _ref$ignorecase,
305
- _ref$ignoreCase = _ref.ignoreCase,
306
- ignoreCase = _ref$ignoreCase === void 0 ? ignorecase : _ref$ignoreCase,
307
- _ref$allowRelativePat = _ref.allowRelativePaths,
308
- allowRelativePaths = _ref$allowRelativePat === void 0 ? false : _ref$allowRelativePat;
309
-
351
+ _ref$ignorecase = _ref.ignorecase,
352
+ ignorecase = _ref$ignorecase === void 0 ? true : _ref$ignorecase,
353
+ _ref$ignoreCase = _ref.ignoreCase,
354
+ ignoreCase = _ref$ignoreCase === void 0 ? ignorecase : _ref$ignoreCase,
355
+ _ref$allowRelativePat = _ref.allowRelativePaths,
356
+ allowRelativePaths = _ref$allowRelativePat === void 0 ? false : _ref$allowRelativePat;
310
357
  _classCallCheck(this, Ignore);
311
-
312
358
  define(this, KEY_IGNORE, true);
313
359
  this._rules = [];
314
360
  this._ignoreCase = ignoreCase;
315
361
  this._allowRelativePaths = allowRelativePaths;
316
-
317
362
  this._initCache();
318
363
  }
319
-
320
364
  _createClass(Ignore, [{
321
365
  key: "_initCache",
322
366
  value: function _initCache() {
@@ -332,78 +376,79 @@ var Ignore = /*#__PURE__*/function () {
332
376
  this._added = true;
333
377
  return;
334
378
  }
335
-
336
379
  if (checkPattern(pattern)) {
337
380
  var rule = createRule(pattern, this._ignoreCase);
338
381
  this._added = true;
339
-
340
382
  this._rules.push(rule);
341
383
  }
342
- } // @param {Array<string> | string | Ignore} pattern
384
+ }
343
385
 
386
+ // @param {Array<string> | string | Ignore} pattern
344
387
  }, {
345
388
  key: "add",
346
389
  value: function add(pattern) {
347
390
  this._added = false;
348
- makeArray(isString(pattern) ? splitPattern(pattern) : pattern).forEach(this._addPattern, this); // Some rules have just added to the ignore,
349
- // making the behavior changed.
391
+ makeArray(isString(pattern) ? splitPattern(pattern) : pattern).forEach(this._addPattern, this);
350
392
 
393
+ // Some rules have just added to the ignore,
394
+ // making the behavior changed.
351
395
  if (this._added) {
352
396
  this._initCache();
353
397
  }
354
-
355
398
  return this;
356
- } // legacy
399
+ }
357
400
 
401
+ // legacy
358
402
  }, {
359
403
  key: "addPattern",
360
404
  value: function addPattern(pattern) {
361
405
  return this.add(pattern);
362
- } // | ignored : unignored
406
+ }
407
+
408
+ // | ignored : unignored
363
409
  // negative | 0:0 | 0:1 | 1:0 | 1:1
364
410
  // -------- | ------- | ------- | ------- | --------
365
411
  // 0 | TEST | TEST | SKIP | X
366
412
  // 1 | TESTIF | SKIP | TEST | X
413
+
367
414
  // - SKIP: always skip
368
415
  // - TEST: always test
369
416
  // - TESTIF: only test if checkUnignored
370
417
  // - X: that never happen
418
+
371
419
  // @param {boolean} whether should check if the path is unignored,
372
420
  // setting `checkUnignored` to `false` could reduce additional
373
421
  // path matching.
374
- // @returns {TestResult} true if a file is ignored
375
422
 
423
+ // @returns {TestResult} true if a file is ignored
376
424
  }, {
377
425
  key: "_testOne",
378
426
  value: function _testOne(path, checkUnignored) {
379
427
  var ignored = false;
380
428
  var unignored = false;
381
-
382
429
  this._rules.forEach(function (rule) {
383
430
  var negative = rule.negative;
384
-
385
431
  if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
386
432
  return;
387
433
  }
388
-
389
434
  var matched = rule.regex.test(path);
390
-
391
435
  if (matched) {
392
436
  ignored = !negative;
393
437
  unignored = negative;
394
438
  }
395
439
  });
396
-
397
440
  return {
398
441
  ignored: ignored,
399
442
  unignored: unignored
400
443
  };
401
- } // @returns {TestResult}
444
+ }
402
445
 
446
+ // @returns {TestResult}
403
447
  }, {
404
448
  key: "_test",
405
449
  value: function _test(originalPath, cache, checkUnignored, slices) {
406
- var path = originalPath // Supports nullable path
450
+ var path = originalPath
451
+ // Supports nullable path
407
452
  && checkPath.convert(originalPath);
408
453
  checkPath(path, originalPath, this._allowRelativePaths ? RETURN_FALSE : throwError);
409
454
  return this._t(path, cache, checkUnignored, slices);
@@ -414,23 +459,22 @@ var Ignore = /*#__PURE__*/function () {
414
459
  if (path in cache) {
415
460
  return cache[path];
416
461
  }
417
-
418
462
  if (!slices) {
419
463
  // path/to/a.js
420
464
  // ['path', 'to', 'a.js']
421
465
  slices = path.split(SLASH);
422
466
  }
467
+ slices.pop();
423
468
 
424
- slices.pop(); // If the path has no parent directory, just test it
425
-
469
+ // If the path has no parent directory, just test it
426
470
  if (!slices.length) {
427
471
  return cache[path] = this._testOne(path, checkUnignored);
428
472
  }
473
+ var parent = this._t(slices.join(SLASH) + SLASH, cache, checkUnignored, slices);
429
474
 
430
- var parent = this._t(slices.join(SLASH) + SLASH, cache, checkUnignored, slices); // If the path contains a parent directory, check the parent first
431
-
432
-
433
- return cache[path] = parent.ignored // > It is not possible to re-include a file if a parent directory of
475
+ // If the path contains a parent directory, check the parent first
476
+ return cache[path] = parent.ignored
477
+ // > It is not possible to re-include a file if a parent directory of
434
478
  // > that file is excluded.
435
479
  ? parent : this._testOne(path, checkUnignored);
436
480
  }
@@ -443,7 +487,6 @@ var Ignore = /*#__PURE__*/function () {
443
487
  key: "createFilter",
444
488
  value: function createFilter() {
445
489
  var _this = this;
446
-
447
490
  return function (path) {
448
491
  return !_this.ignores(path);
449
492
  };
@@ -452,46 +495,44 @@ var Ignore = /*#__PURE__*/function () {
452
495
  key: "filter",
453
496
  value: function filter(paths) {
454
497
  return makeArray(paths).filter(this.createFilter());
455
- } // @returns {TestResult}
498
+ }
456
499
 
500
+ // @returns {TestResult}
457
501
  }, {
458
502
  key: "test",
459
503
  value: function test(path) {
460
504
  return this._test(path, this._testCache, true);
461
505
  }
462
506
  }]);
463
-
464
507
  return Ignore;
465
508
  }();
466
-
467
509
  var factory = function factory(options) {
468
510
  return new Ignore(options);
469
511
  };
470
-
471
512
  var isPathValid = function isPathValid(path) {
472
513
  return checkPath(path && checkPath.convert(path), path, RETURN_FALSE);
473
514
  };
515
+ factory.isPathValid = isPathValid;
474
516
 
475
- factory.isPathValid = isPathValid; // Fixes typescript
476
-
517
+ // Fixes typescript
477
518
  factory["default"] = factory;
478
- module.exports = factory; // Windows
479
- // --------------------------------------------------------------
480
-
481
- /* istanbul ignore if */
519
+ module.exports = factory;
482
520
 
483
- if ( // Detect `process` so that it can run in browsers.
521
+ // Windows
522
+ // --------------------------------------------------------------
523
+ /* istanbul ignore if */
524
+ if (
525
+ // Detect `process` so that it can run in browsers.
484
526
  typeof process !== 'undefined' && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === 'win32')) {
485
527
  /* eslint no-control-regex: "off" */
486
528
  var makePosix = function makePosix(str) {
487
529
  return /^\\\\\?\\/.test(str) || /[\0-\x1F"<>\|]+/.test(str) ? str : str.replace(/\\/g, '/');
488
530
  };
531
+ checkPath.convert = makePosix;
489
532
 
490
- checkPath.convert = makePosix; // 'C:\\foo' <- 'C:\\foo' has been converted to 'C:/'
533
+ // 'C:\\foo' <- 'C:\\foo' has been converted to 'C:/'
491
534
  // 'd:\\foo'
492
-
493
535
  var REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
494
-
495
536
  checkPath.isNotRelative = function (path) {
496
537
  return REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path) || isNotRelative(path);
497
538
  };