create-packer 1.34.9 → 1.35.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 (1674) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
  3. package/template/web-app/react-rspack/.env +2 -0
  4. package/template/web-app/react-rspack/.env.development +2 -0
  5. package/template/web-app/react-rspack/.eslintrc +120 -0
  6. package/template/web-app/react-rspack/README.md +14 -0
  7. package/template/web-app/react-rspack/domain/router/router.tsx +28 -0
  8. package/template/web-app/react-rspack/env.d.ts +17 -0
  9. package/template/web-app/react-rspack/index.html +12 -0
  10. package/template/web-app/react-rspack/package.json +83 -0
  11. package/template/web-app/react-rspack/public/rsbuild-logo.svg +1 -0
  12. package/template/web-app/react-rspack/rsbuild.config.ts +78 -0
  13. package/template/web-app/react-rspack/shared/service/home.ts +8 -0
  14. package/template/web-app/react-rspack/shared/service/request.ts +5 -0
  15. package/template/web-app/react-rspack/tsconfig.node.json +14 -0
  16. package/template/web-app/react-vite/.editorconfig +14 -0
  17. package/template/web-app/react-vite/.eslintignore +4 -0
  18. package/template/web-app/react-vite/.gitignore +28 -0
  19. package/template/web-app/react-vite/.husky/commit-msg +4 -0
  20. package/template/web-app/react-vite/.husky/pre-commit +4 -0
  21. package/template/web-app/react-vite/.prettierignore +6 -0
  22. package/template/web-app/react-vite/.prettierrc +12 -0
  23. package/template/web-app/react-vite/.stylelintignore +4 -0
  24. package/template/web-app/react-vite/.stylelintrc +24 -0
  25. package/template/web-app/react-vite/.vscode/extensions.json +8 -0
  26. package/template/web-app/react-vite/.vscode/settings.json +18 -0
  27. package/template/web-app/react-vite/commitlint.config.cjs +1 -0
  28. package/template/web-app/react-vite/domain/app/app.model.ts +7 -0
  29. package/template/web-app/react-vite/domain/app/app.styled.ts +3 -0
  30. package/template/web-app/react-vite/domain/app/components/app-context.tsx +17 -0
  31. package/template/web-app/react-vite/domain/app/components/app.tsx +24 -0
  32. package/template/web-app/react-vite/domain/app/components/index.ts +1 -0
  33. package/template/web-app/react-vite/domain/app/index.ts +2 -0
  34. package/template/web-app/react-vite/domain/router/home/ids.ts +3 -0
  35. package/template/web-app/react-vite/domain/router/home/index.ts +2 -0
  36. package/template/web-app/react-vite/domain/router/home/routes.tsx +13 -0
  37. package/template/web-app/react-vite/domain/router/ids.ts +6 -0
  38. package/template/web-app/react-vite/domain/router/index.ts +3 -0
  39. package/template/web-app/react-vite/domain/router/router.types.ts +3 -0
  40. package/template/web-app/react-vite/main.tsx +4 -0
  41. package/template/web-app/react-vite/pages/home/home.styled.ts +7 -0
  42. package/template/web-app/react-vite/pages/home/home.tsx +10 -0
  43. package/template/web-app/react-vite/pages/home/index.ts +1 -0
  44. package/template/web-app/react-vite/pages/index.tsx +18 -0
  45. package/template/web-app/react-vite/pages/not-found.tsx +3 -0
  46. package/template/web-app/react-vite/postcss.config.cjs +7 -0
  47. package/template/web-app/react-vite/scripts/createChunks.ts +26 -0
  48. package/template/web-app/react-vite/scripts/index.ts +1 -0
  49. package/template/web-app/react-vite/shared/assets/react.svg +1 -0
  50. package/template/web-app/react-vite/shared/components/index.ts +0 -0
  51. package/template/web-app/react-vite/shared/constant/index.ts +0 -0
  52. package/template/web-app/react-vite/shared/hooks/defineRouter/defineRouter.types.ts +33 -0
  53. package/template/web-app/react-vite/shared/hooks/defineRouter/deineRouter.tsx +160 -0
  54. package/template/web-app/react-vite/shared/hooks/defineRouter/index.ts +2 -0
  55. package/template/web-app/react-vite/shared/hooks/index.ts +6 -0
  56. package/template/web-app/react-vite/shared/hooks/useInterval.ts +26 -0
  57. package/template/web-app/react-vite/shared/hooks/useLoadingAction.ts +27 -0
  58. package/template/web-app/react-vite/shared/hooks/useLowPriorityState.ts +26 -0
  59. package/template/web-app/react-vite/shared/hooks/useSyncState.ts +15 -0
  60. package/template/web-app/react-vite/shared/hooks/useVisible.ts +27 -0
  61. package/template/web-app/react-vite/shared/service/api.ts +1 -0
  62. package/template/web-app/react-vite/shared/service/index.ts +3 -0
  63. package/template/web-app/react-vite/shared/theme/index.ts +1 -0
  64. package/template/web-app/react-vite/shared/theme/theme.styled.ts +56 -0
  65. package/template/web-app/react-vite/shared/tools/componentInstance.tsx +80 -0
  66. package/template/web-app/react-vite/shared/tools/index.ts +1 -0
  67. package/template/web-app/react-vite/shared/types/index.ts +1 -0
  68. package/template/web-app/react-vite/shared/types/utils.ts +2 -0
  69. package/template/web-app/react-vite/tsconfig.json +44 -0
  70. package/template/web-app/react-webpack/webpack.config.mjs +4 -5
  71. package/template/lib/react/node_modules/.bin/acorn +0 -17
  72. package/template/lib/react/node_modules/.bin/acorn.CMD +0 -12
  73. package/template/lib/react/node_modules/.bin/acorn.ps1 +0 -41
  74. package/template/lib/react/node_modules/.bin/browserslist +0 -17
  75. package/template/lib/react/node_modules/.bin/browserslist.CMD +0 -12
  76. package/template/lib/react/node_modules/.bin/browserslist.ps1 +0 -41
  77. package/template/lib/react/node_modules/.bin/esbuild +0 -17
  78. package/template/lib/react/node_modules/.bin/esbuild.CMD +0 -12
  79. package/template/lib/react/node_modules/.bin/esbuild.ps1 +0 -41
  80. package/template/lib/react/node_modules/.bin/eslint +0 -17
  81. package/template/lib/react/node_modules/.bin/eslint.CMD +0 -12
  82. package/template/lib/react/node_modules/.bin/eslint.ps1 +0 -41
  83. package/template/lib/react/node_modules/.bin/prettier +0 -17
  84. package/template/lib/react/node_modules/.bin/prettier.CMD +0 -12
  85. package/template/lib/react/node_modules/.bin/prettier.ps1 +0 -41
  86. package/template/lib/react/node_modules/.bin/sb +0 -17
  87. package/template/lib/react/node_modules/.bin/sb.CMD +0 -12
  88. package/template/lib/react/node_modules/.bin/sb.ps1 +0 -41
  89. package/template/lib/react/node_modules/.bin/storybook +0 -17
  90. package/template/lib/react/node_modules/.bin/storybook.CMD +0 -12
  91. package/template/lib/react/node_modules/.bin/storybook.ps1 +0 -41
  92. package/template/lib/react/node_modules/.bin/stylelint +0 -17
  93. package/template/lib/react/node_modules/.bin/stylelint.CMD +0 -12
  94. package/template/lib/react/node_modules/.bin/stylelint.ps1 +0 -41
  95. package/template/lib/react/node_modules/.bin/tsc +0 -17
  96. package/template/lib/react/node_modules/.bin/tsc.CMD +0 -12
  97. package/template/lib/react/node_modules/.bin/tsc.ps1 +0 -41
  98. package/template/lib/react/node_modules/.bin/tsserver +0 -17
  99. package/template/lib/react/node_modules/.bin/tsserver.CMD +0 -12
  100. package/template/lib/react/node_modules/.bin/tsserver.ps1 +0 -41
  101. package/template/lib/react/node_modules/.bin/vite +0 -17
  102. package/template/lib/react/node_modules/.bin/vite.CMD +0 -12
  103. package/template/lib/react/node_modules/.bin/vite.ps1 +0 -41
  104. package/template/lib/react/node_modules/eslint/LICENSE +0 -19
  105. package/template/lib/react/node_modules/eslint/README.md +0 -304
  106. package/template/lib/react/node_modules/eslint/bin/eslint.js +0 -173
  107. package/template/lib/react/node_modules/eslint/conf/config-schema.js +0 -93
  108. package/template/lib/react/node_modules/eslint/conf/default-cli-options.js +0 -32
  109. package/template/lib/react/node_modules/eslint/conf/globals.js +0 -154
  110. package/template/lib/react/node_modules/eslint/conf/replacements.json +0 -22
  111. package/template/lib/react/node_modules/eslint/conf/rule-type-list.json +0 -28
  112. package/template/lib/react/node_modules/eslint/lib/api.js +0 -26
  113. package/template/lib/react/node_modules/eslint/lib/cli-engine/cli-engine.js +0 -1078
  114. package/template/lib/react/node_modules/eslint/lib/cli-engine/file-enumerator.js +0 -547
  115. package/template/lib/react/node_modules/eslint/lib/cli-engine/formatters/checkstyle.js +0 -60
  116. package/template/lib/react/node_modules/eslint/lib/cli-engine/formatters/compact.js +0 -60
  117. package/template/lib/react/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json +0 -46
  118. package/template/lib/react/node_modules/eslint/lib/cli-engine/formatters/html.js +0 -351
  119. package/template/lib/react/node_modules/eslint/lib/cli-engine/formatters/jslint-xml.js +0 -41
  120. package/template/lib/react/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js +0 -16
  121. package/template/lib/react/node_modules/eslint/lib/cli-engine/formatters/json.js +0 -13
  122. package/template/lib/react/node_modules/eslint/lib/cli-engine/formatters/junit.js +0 -82
  123. package/template/lib/react/node_modules/eslint/lib/cli-engine/formatters/stylish.js +0 -101
  124. package/template/lib/react/node_modules/eslint/lib/cli-engine/formatters/tap.js +0 -95
  125. package/template/lib/react/node_modules/eslint/lib/cli-engine/formatters/unix.js +0 -58
  126. package/template/lib/react/node_modules/eslint/lib/cli-engine/formatters/visualstudio.js +0 -63
  127. package/template/lib/react/node_modules/eslint/lib/cli-engine/hash.js +0 -35
  128. package/template/lib/react/node_modules/eslint/lib/cli-engine/index.js +0 -7
  129. package/template/lib/react/node_modules/eslint/lib/cli-engine/lint-result-cache.js +0 -203
  130. package/template/lib/react/node_modules/eslint/lib/cli-engine/load-rules.js +0 -46
  131. package/template/lib/react/node_modules/eslint/lib/cli-engine/xml-escape.js +0 -34
  132. package/template/lib/react/node_modules/eslint/lib/cli.js +0 -471
  133. package/template/lib/react/node_modules/eslint/lib/config/default-config.js +0 -67
  134. package/template/lib/react/node_modules/eslint/lib/config/flat-config-array.js +0 -274
  135. package/template/lib/react/node_modules/eslint/lib/config/flat-config-helpers.js +0 -111
  136. package/template/lib/react/node_modules/eslint/lib/config/flat-config-schema.js +0 -583
  137. package/template/lib/react/node_modules/eslint/lib/config/rule-validator.js +0 -158
  138. package/template/lib/react/node_modules/eslint/lib/eslint/eslint-helpers.js +0 -902
  139. package/template/lib/react/node_modules/eslint/lib/eslint/eslint.js +0 -700
  140. package/template/lib/react/node_modules/eslint/lib/eslint/flat-eslint.js +0 -1142
  141. package/template/lib/react/node_modules/eslint/lib/eslint/index.js +0 -9
  142. package/template/lib/react/node_modules/eslint/lib/linter/apply-disable-directives.js +0 -465
  143. package/template/lib/react/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +0 -852
  144. package/template/lib/react/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js +0 -263
  145. package/template/lib/react/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js +0 -2348
  146. package/template/lib/react/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +0 -342
  147. package/template/lib/react/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +0 -203
  148. package/template/lib/react/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +0 -349
  149. package/template/lib/react/node_modules/eslint/lib/linter/code-path-analysis/id-generator.js +0 -45
  150. package/template/lib/react/node_modules/eslint/lib/linter/config-comment-parser.js +0 -185
  151. package/template/lib/react/node_modules/eslint/lib/linter/index.js +0 -13
  152. package/template/lib/react/node_modules/eslint/lib/linter/interpolate.js +0 -28
  153. package/template/lib/react/node_modules/eslint/lib/linter/linter.js +0 -2119
  154. package/template/lib/react/node_modules/eslint/lib/linter/node-event-generator.js +0 -354
  155. package/template/lib/react/node_modules/eslint/lib/linter/report-translator.js +0 -369
  156. package/template/lib/react/node_modules/eslint/lib/linter/rule-fixer.js +0 -140
  157. package/template/lib/react/node_modules/eslint/lib/linter/rules.js +0 -80
  158. package/template/lib/react/node_modules/eslint/lib/linter/safe-emitter.js +0 -52
  159. package/template/lib/react/node_modules/eslint/lib/linter/source-code-fixer.js +0 -152
  160. package/template/lib/react/node_modules/eslint/lib/linter/timing.js +0 -161
  161. package/template/lib/react/node_modules/eslint/lib/options.js +0 -398
  162. package/template/lib/react/node_modules/eslint/lib/rule-tester/flat-rule-tester.js +0 -1122
  163. package/template/lib/react/node_modules/eslint/lib/rule-tester/index.js +0 -5
  164. package/template/lib/react/node_modules/eslint/lib/rule-tester/rule-tester.js +0 -1206
  165. package/template/lib/react/node_modules/eslint/lib/rules/accessor-pairs.js +0 -346
  166. package/template/lib/react/node_modules/eslint/lib/rules/array-bracket-newline.js +0 -261
  167. package/template/lib/react/node_modules/eslint/lib/rules/array-bracket-spacing.js +0 -244
  168. package/template/lib/react/node_modules/eslint/lib/rules/array-callback-return.js +0 -446
  169. package/template/lib/react/node_modules/eslint/lib/rules/array-element-newline.js +0 -311
  170. package/template/lib/react/node_modules/eslint/lib/rules/arrow-body-style.js +0 -296
  171. package/template/lib/react/node_modules/eslint/lib/rules/arrow-parens.js +0 -186
  172. package/template/lib/react/node_modules/eslint/lib/rules/arrow-spacing.js +0 -164
  173. package/template/lib/react/node_modules/eslint/lib/rules/block-scoped-var.js +0 -135
  174. package/template/lib/react/node_modules/eslint/lib/rules/block-spacing.js +0 -174
  175. package/template/lib/react/node_modules/eslint/lib/rules/brace-style.js +0 -197
  176. package/template/lib/react/node_modules/eslint/lib/rules/callback-return.js +0 -187
  177. package/template/lib/react/node_modules/eslint/lib/rules/camelcase.js +0 -399
  178. package/template/lib/react/node_modules/eslint/lib/rules/capitalized-comments.js +0 -300
  179. package/template/lib/react/node_modules/eslint/lib/rules/class-methods-use-this.js +0 -187
  180. package/template/lib/react/node_modules/eslint/lib/rules/comma-dangle.js +0 -373
  181. package/template/lib/react/node_modules/eslint/lib/rules/comma-spacing.js +0 -192
  182. package/template/lib/react/node_modules/eslint/lib/rules/comma-style.js +0 -314
  183. package/template/lib/react/node_modules/eslint/lib/rules/complexity.js +0 -165
  184. package/template/lib/react/node_modules/eslint/lib/rules/computed-property-spacing.js +0 -208
  185. package/template/lib/react/node_modules/eslint/lib/rules/consistent-return.js +0 -210
  186. package/template/lib/react/node_modules/eslint/lib/rules/consistent-this.js +0 -153
  187. package/template/lib/react/node_modules/eslint/lib/rules/constructor-super.js +0 -446
  188. package/template/lib/react/node_modules/eslint/lib/rules/curly.js +0 -486
  189. package/template/lib/react/node_modules/eslint/lib/rules/default-case-last.js +0 -44
  190. package/template/lib/react/node_modules/eslint/lib/rules/default-case.js +0 -97
  191. package/template/lib/react/node_modules/eslint/lib/rules/default-param-last.js +0 -62
  192. package/template/lib/react/node_modules/eslint/lib/rules/dot-location.js +0 -108
  193. package/template/lib/react/node_modules/eslint/lib/rules/dot-notation.js +0 -176
  194. package/template/lib/react/node_modules/eslint/lib/rules/eol-last.js +0 -115
  195. package/template/lib/react/node_modules/eslint/lib/rules/eqeqeq.js +0 -174
  196. package/template/lib/react/node_modules/eslint/lib/rules/for-direction.js +0 -140
  197. package/template/lib/react/node_modules/eslint/lib/rules/func-call-spacing.js +0 -233
  198. package/template/lib/react/node_modules/eslint/lib/rules/func-name-matching.js +0 -253
  199. package/template/lib/react/node_modules/eslint/lib/rules/func-names.js +0 -191
  200. package/template/lib/react/node_modules/eslint/lib/rules/func-style.js +0 -98
  201. package/template/lib/react/node_modules/eslint/lib/rules/function-call-argument-newline.js +0 -125
  202. package/template/lib/react/node_modules/eslint/lib/rules/function-paren-newline.js +0 -292
  203. package/template/lib/react/node_modules/eslint/lib/rules/generator-star-spacing.js +0 -209
  204. package/template/lib/react/node_modules/eslint/lib/rules/getter-return.js +0 -204
  205. package/template/lib/react/node_modules/eslint/lib/rules/global-require.js +0 -90
  206. package/template/lib/react/node_modules/eslint/lib/rules/grouped-accessor-pairs.js +0 -215
  207. package/template/lib/react/node_modules/eslint/lib/rules/guard-for-in.js +0 -76
  208. package/template/lib/react/node_modules/eslint/lib/rules/handle-callback-err.js +0 -101
  209. package/template/lib/react/node_modules/eslint/lib/rules/id-blacklist.js +0 -246
  210. package/template/lib/react/node_modules/eslint/lib/rules/id-denylist.js +0 -228
  211. package/template/lib/react/node_modules/eslint/lib/rules/id-length.js +0 -177
  212. package/template/lib/react/node_modules/eslint/lib/rules/id-match.js +0 -299
  213. package/template/lib/react/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js +0 -84
  214. package/template/lib/react/node_modules/eslint/lib/rules/indent-legacy.js +0 -1126
  215. package/template/lib/react/node_modules/eslint/lib/rules/indent.js +0 -1803
  216. package/template/lib/react/node_modules/eslint/lib/rules/index.js +0 -306
  217. package/template/lib/react/node_modules/eslint/lib/rules/init-declarations.js +0 -139
  218. package/template/lib/react/node_modules/eslint/lib/rules/jsx-quotes.js +0 -98
  219. package/template/lib/react/node_modules/eslint/lib/rules/key-spacing.js +0 -687
  220. package/template/lib/react/node_modules/eslint/lib/rules/keyword-spacing.js +0 -640
  221. package/template/lib/react/node_modules/eslint/lib/rules/line-comment-position.js +0 -122
  222. package/template/lib/react/node_modules/eslint/lib/rules/linebreak-style.js +0 -108
  223. package/template/lib/react/node_modules/eslint/lib/rules/lines-around-comment.js +0 -471
  224. package/template/lib/react/node_modules/eslint/lib/rules/lines-around-directive.js +0 -201
  225. package/template/lib/react/node_modules/eslint/lib/rules/lines-between-class-members.js +0 -269
  226. package/template/lib/react/node_modules/eslint/lib/rules/logical-assignment-operators.js +0 -504
  227. package/template/lib/react/node_modules/eslint/lib/rules/max-classes-per-file.js +0 -89
  228. package/template/lib/react/node_modules/eslint/lib/rules/max-depth.js +0 -156
  229. package/template/lib/react/node_modules/eslint/lib/rules/max-len.js +0 -440
  230. package/template/lib/react/node_modules/eslint/lib/rules/max-lines-per-function.js +0 -213
  231. package/template/lib/react/node_modules/eslint/lib/rules/max-lines.js +0 -193
  232. package/template/lib/react/node_modules/eslint/lib/rules/max-nested-callbacks.js +0 -117
  233. package/template/lib/react/node_modules/eslint/lib/rules/max-params.js +0 -102
  234. package/template/lib/react/node_modules/eslint/lib/rules/max-statements-per-line.js +0 -199
  235. package/template/lib/react/node_modules/eslint/lib/rules/max-statements.js +0 -184
  236. package/template/lib/react/node_modules/eslint/lib/rules/multiline-comment-style.js +0 -474
  237. package/template/lib/react/node_modules/eslint/lib/rules/multiline-ternary.js +0 -174
  238. package/template/lib/react/node_modules/eslint/lib/rules/new-cap.js +0 -276
  239. package/template/lib/react/node_modules/eslint/lib/rules/new-parens.js +0 -93
  240. package/template/lib/react/node_modules/eslint/lib/rules/newline-after-var.js +0 -253
  241. package/template/lib/react/node_modules/eslint/lib/rules/newline-before-return.js +0 -217
  242. package/template/lib/react/node_modules/eslint/lib/rules/newline-per-chained-call.js +0 -126
  243. package/template/lib/react/node_modules/eslint/lib/rules/no-alert.js +0 -138
  244. package/template/lib/react/node_modules/eslint/lib/rules/no-array-constructor.js +0 -133
  245. package/template/lib/react/node_modules/eslint/lib/rules/no-async-promise-executor.js +0 -39
  246. package/template/lib/react/node_modules/eslint/lib/rules/no-await-in-loop.js +0 -106
  247. package/template/lib/react/node_modules/eslint/lib/rules/no-bitwise.js +0 -119
  248. package/template/lib/react/node_modules/eslint/lib/rules/no-buffer-constructor.js +0 -50
  249. package/template/lib/react/node_modules/eslint/lib/rules/no-caller.js +0 -46
  250. package/template/lib/react/node_modules/eslint/lib/rules/no-case-declarations.js +0 -64
  251. package/template/lib/react/node_modules/eslint/lib/rules/no-catch-shadow.js +0 -82
  252. package/template/lib/react/node_modules/eslint/lib/rules/no-class-assign.js +0 -63
  253. package/template/lib/react/node_modules/eslint/lib/rules/no-compare-neg-zero.js +0 -60
  254. package/template/lib/react/node_modules/eslint/lib/rules/no-cond-assign.js +0 -159
  255. package/template/lib/react/node_modules/eslint/lib/rules/no-confusing-arrow.js +0 -92
  256. package/template/lib/react/node_modules/eslint/lib/rules/no-console.js +0 -207
  257. package/template/lib/react/node_modules/eslint/lib/rules/no-const-assign.js +0 -56
  258. package/template/lib/react/node_modules/eslint/lib/rules/no-constant-binary-expression.js +0 -509
  259. package/template/lib/react/node_modules/eslint/lib/rules/no-constant-condition.js +0 -150
  260. package/template/lib/react/node_modules/eslint/lib/rules/no-constructor-return.js +0 -62
  261. package/template/lib/react/node_modules/eslint/lib/rules/no-continue.js +0 -39
  262. package/template/lib/react/node_modules/eslint/lib/rules/no-control-regex.js +0 -138
  263. package/template/lib/react/node_modules/eslint/lib/rules/no-debugger.js +0 -43
  264. package/template/lib/react/node_modules/eslint/lib/rules/no-delete-var.js +0 -42
  265. package/template/lib/react/node_modules/eslint/lib/rules/no-div-regex.js +0 -53
  266. package/template/lib/react/node_modules/eslint/lib/rules/no-dupe-args.js +0 -82
  267. package/template/lib/react/node_modules/eslint/lib/rules/no-dupe-class-members.js +0 -104
  268. package/template/lib/react/node_modules/eslint/lib/rules/no-dupe-else-if.js +0 -122
  269. package/template/lib/react/node_modules/eslint/lib/rules/no-dupe-keys.js +0 -142
  270. package/template/lib/react/node_modules/eslint/lib/rules/no-duplicate-case.js +0 -71
  271. package/template/lib/react/node_modules/eslint/lib/rules/no-duplicate-imports.js +0 -290
  272. package/template/lib/react/node_modules/eslint/lib/rules/no-else-return.js +0 -405
  273. package/template/lib/react/node_modules/eslint/lib/rules/no-empty-character-class.js +0 -76
  274. package/template/lib/react/node_modules/eslint/lib/rules/no-empty-function.js +0 -167
  275. package/template/lib/react/node_modules/eslint/lib/rules/no-empty-pattern.js +0 -78
  276. package/template/lib/react/node_modules/eslint/lib/rules/no-empty-static-block.js +0 -47
  277. package/template/lib/react/node_modules/eslint/lib/rules/no-empty.js +0 -103
  278. package/template/lib/react/node_modules/eslint/lib/rules/no-eq-null.js +0 -46
  279. package/template/lib/react/node_modules/eslint/lib/rules/no-eval.js +0 -286
  280. package/template/lib/react/node_modules/eslint/lib/rules/no-ex-assign.js +0 -54
  281. package/template/lib/react/node_modules/eslint/lib/rules/no-extend-native.js +0 -179
  282. package/template/lib/react/node_modules/eslint/lib/rules/no-extra-bind.js +0 -213
  283. package/template/lib/react/node_modules/eslint/lib/rules/no-extra-boolean-cast.js +0 -317
  284. package/template/lib/react/node_modules/eslint/lib/rules/no-extra-label.js +0 -149
  285. package/template/lib/react/node_modules/eslint/lib/rules/no-extra-parens.js +0 -1322
  286. package/template/lib/react/node_modules/eslint/lib/rules/no-extra-semi.js +0 -147
  287. package/template/lib/react/node_modules/eslint/lib/rules/no-fallthrough.js +0 -196
  288. package/template/lib/react/node_modules/eslint/lib/rules/no-floating-decimal.js +0 -73
  289. package/template/lib/react/node_modules/eslint/lib/rules/no-func-assign.js +0 -78
  290. package/template/lib/react/node_modules/eslint/lib/rules/no-global-assign.js +0 -95
  291. package/template/lib/react/node_modules/eslint/lib/rules/no-implicit-coercion.js +0 -380
  292. package/template/lib/react/node_modules/eslint/lib/rules/no-implicit-globals.js +0 -146
  293. package/template/lib/react/node_modules/eslint/lib/rules/no-implied-eval.js +0 -132
  294. package/template/lib/react/node_modules/eslint/lib/rules/no-import-assign.js +0 -241
  295. package/template/lib/react/node_modules/eslint/lib/rules/no-inline-comments.js +0 -110
  296. package/template/lib/react/node_modules/eslint/lib/rules/no-inner-declarations.js +0 -110
  297. package/template/lib/react/node_modules/eslint/lib/rules/no-invalid-regexp.js +0 -194
  298. package/template/lib/react/node_modules/eslint/lib/rules/no-invalid-this.js +0 -150
  299. package/template/lib/react/node_modules/eslint/lib/rules/no-irregular-whitespace.js +0 -276
  300. package/template/lib/react/node_modules/eslint/lib/rules/no-iterator.js +0 -52
  301. package/template/lib/react/node_modules/eslint/lib/rules/no-label-var.js +0 -80
  302. package/template/lib/react/node_modules/eslint/lib/rules/no-labels.js +0 -149
  303. package/template/lib/react/node_modules/eslint/lib/rules/no-lone-blocks.js +0 -136
  304. package/template/lib/react/node_modules/eslint/lib/rules/no-lonely-if.js +0 -88
  305. package/template/lib/react/node_modules/eslint/lib/rules/no-loop-func.js +0 -206
  306. package/template/lib/react/node_modules/eslint/lib/rules/no-loss-of-precision.js +0 -214
  307. package/template/lib/react/node_modules/eslint/lib/rules/no-magic-numbers.js +0 -243
  308. package/template/lib/react/node_modules/eslint/lib/rules/no-misleading-character-class.js +0 -300
  309. package/template/lib/react/node_modules/eslint/lib/rules/no-mixed-operators.js +0 -229
  310. package/template/lib/react/node_modules/eslint/lib/rules/no-mixed-requires.js +0 -238
  311. package/template/lib/react/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +0 -116
  312. package/template/lib/react/node_modules/eslint/lib/rules/no-multi-assign.js +0 -67
  313. package/template/lib/react/node_modules/eslint/lib/rules/no-multi-spaces.js +0 -141
  314. package/template/lib/react/node_modules/eslint/lib/rules/no-multi-str.js +0 -65
  315. package/template/lib/react/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +0 -154
  316. package/template/lib/react/node_modules/eslint/lib/rules/no-native-reassign.js +0 -98
  317. package/template/lib/react/node_modules/eslint/lib/rules/no-negated-condition.js +0 -95
  318. package/template/lib/react/node_modules/eslint/lib/rules/no-negated-in-lhs.js +0 -46
  319. package/template/lib/react/node_modules/eslint/lib/rules/no-nested-ternary.js +0 -44
  320. package/template/lib/react/node_modules/eslint/lib/rules/no-new-func.js +0 -87
  321. package/template/lib/react/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js +0 -66
  322. package/template/lib/react/node_modules/eslint/lib/rules/no-new-object.js +0 -67
  323. package/template/lib/react/node_modules/eslint/lib/rules/no-new-require.js +0 -50
  324. package/template/lib/react/node_modules/eslint/lib/rules/no-new-symbol.js +0 -56
  325. package/template/lib/react/node_modules/eslint/lib/rules/no-new-wrappers.js +0 -60
  326. package/template/lib/react/node_modules/eslint/lib/rules/no-new.js +0 -43
  327. package/template/lib/react/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js +0 -148
  328. package/template/lib/react/node_modules/eslint/lib/rules/no-obj-calls.js +0 -86
  329. package/template/lib/react/node_modules/eslint/lib/rules/no-object-constructor.js +0 -117
  330. package/template/lib/react/node_modules/eslint/lib/rules/no-octal-escape.js +0 -56
  331. package/template/lib/react/node_modules/eslint/lib/rules/no-octal.js +0 -45
  332. package/template/lib/react/node_modules/eslint/lib/rules/no-param-reassign.js +0 -230
  333. package/template/lib/react/node_modules/eslint/lib/rules/no-path-concat.js +0 -64
  334. package/template/lib/react/node_modules/eslint/lib/rules/no-plusplus.js +0 -105
  335. package/template/lib/react/node_modules/eslint/lib/rules/no-process-env.js +0 -51
  336. package/template/lib/react/node_modules/eslint/lib/rules/no-process-exit.js +0 -47
  337. package/template/lib/react/node_modules/eslint/lib/rules/no-promise-executor-return.js +0 -263
  338. package/template/lib/react/node_modules/eslint/lib/rules/no-proto.js +0 -48
  339. package/template/lib/react/node_modules/eslint/lib/rules/no-prototype-builtins.js +0 -159
  340. package/template/lib/react/node_modules/eslint/lib/rules/no-redeclare.js +0 -174
  341. package/template/lib/react/node_modules/eslint/lib/rules/no-regex-spaces.js +0 -197
  342. package/template/lib/react/node_modules/eslint/lib/rules/no-restricted-exports.js +0 -193
  343. package/template/lib/react/node_modules/eslint/lib/rules/no-restricted-globals.js +0 -124
  344. package/template/lib/react/node_modules/eslint/lib/rules/no-restricted-imports.js +0 -410
  345. package/template/lib/react/node_modules/eslint/lib/rules/no-restricted-modules.js +0 -213
  346. package/template/lib/react/node_modules/eslint/lib/rules/no-restricted-properties.js +0 -168
  347. package/template/lib/react/node_modules/eslint/lib/rules/no-restricted-syntax.js +0 -70
  348. package/template/lib/react/node_modules/eslint/lib/rules/no-return-assign.js +0 -80
  349. package/template/lib/react/node_modules/eslint/lib/rules/no-return-await.js +0 -135
  350. package/template/lib/react/node_modules/eslint/lib/rules/no-script-url.js +0 -61
  351. package/template/lib/react/node_modules/eslint/lib/rules/no-self-assign.js +0 -183
  352. package/template/lib/react/node_modules/eslint/lib/rules/no-self-compare.js +0 -60
  353. package/template/lib/react/node_modules/eslint/lib/rules/no-sequences.js +0 -138
  354. package/template/lib/react/node_modules/eslint/lib/rules/no-setter-return.js +0 -226
  355. package/template/lib/react/node_modules/eslint/lib/rules/no-shadow-restricted-names.js +0 -65
  356. package/template/lib/react/node_modules/eslint/lib/rules/no-shadow.js +0 -336
  357. package/template/lib/react/node_modules/eslint/lib/rules/no-spaced-func.js +0 -83
  358. package/template/lib/react/node_modules/eslint/lib/rules/no-sparse-arrays.js +0 -50
  359. package/template/lib/react/node_modules/eslint/lib/rules/no-sync.js +0 -64
  360. package/template/lib/react/node_modules/eslint/lib/rules/no-tabs.js +0 -81
  361. package/template/lib/react/node_modules/eslint/lib/rules/no-template-curly-in-string.js +0 -44
  362. package/template/lib/react/node_modules/eslint/lib/rules/no-ternary.js +0 -41
  363. package/template/lib/react/node_modules/eslint/lib/rules/no-this-before-super.js +0 -331
  364. package/template/lib/react/node_modules/eslint/lib/rules/no-throw-literal.js +0 -51
  365. package/template/lib/react/node_modules/eslint/lib/rules/no-trailing-spaces.js +0 -193
  366. package/template/lib/react/node_modules/eslint/lib/rules/no-undef-init.js +0 -75
  367. package/template/lib/react/node_modules/eslint/lib/rules/no-undef.js +0 -79
  368. package/template/lib/react/node_modules/eslint/lib/rules/no-undefined.js +0 -86
  369. package/template/lib/react/node_modules/eslint/lib/rules/no-underscore-dangle.js +0 -335
  370. package/template/lib/react/node_modules/eslint/lib/rules/no-unexpected-multiline.js +0 -120
  371. package/template/lib/react/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js +0 -360
  372. package/template/lib/react/node_modules/eslint/lib/rules/no-unneeded-ternary.js +0 -166
  373. package/template/lib/react/node_modules/eslint/lib/rules/no-unreachable-loop.js +0 -185
  374. package/template/lib/react/node_modules/eslint/lib/rules/no-unreachable.js +0 -293
  375. package/template/lib/react/node_modules/eslint/lib/rules/no-unsafe-finally.js +0 -111
  376. package/template/lib/react/node_modules/eslint/lib/rules/no-unsafe-negation.js +0 -128
  377. package/template/lib/react/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +0 -205
  378. package/template/lib/react/node_modules/eslint/lib/rules/no-unused-expressions.js +0 -186
  379. package/template/lib/react/node_modules/eslint/lib/rules/no-unused-labels.js +0 -143
  380. package/template/lib/react/node_modules/eslint/lib/rules/no-unused-private-class-members.js +0 -195
  381. package/template/lib/react/node_modules/eslint/lib/rules/no-unused-vars.js +0 -718
  382. package/template/lib/react/node_modules/eslint/lib/rules/no-use-before-define.js +0 -348
  383. package/template/lib/react/node_modules/eslint/lib/rules/no-useless-backreference.js +0 -194
  384. package/template/lib/react/node_modules/eslint/lib/rules/no-useless-call.js +0 -90
  385. package/template/lib/react/node_modules/eslint/lib/rules/no-useless-catch.js +0 -57
  386. package/template/lib/react/node_modules/eslint/lib/rules/no-useless-computed-key.js +0 -168
  387. package/template/lib/react/node_modules/eslint/lib/rules/no-useless-concat.js +0 -115
  388. package/template/lib/react/node_modules/eslint/lib/rules/no-useless-constructor.js +0 -189
  389. package/template/lib/react/node_modules/eslint/lib/rules/no-useless-escape.js +0 -333
  390. package/template/lib/react/node_modules/eslint/lib/rules/no-useless-rename.js +0 -172
  391. package/template/lib/react/node_modules/eslint/lib/rules/no-useless-return.js +0 -364
  392. package/template/lib/react/node_modules/eslint/lib/rules/no-var.js +0 -334
  393. package/template/lib/react/node_modules/eslint/lib/rules/no-void.js +0 -64
  394. package/template/lib/react/node_modules/eslint/lib/rules/no-warning-comments.js +0 -201
  395. package/template/lib/react/node_modules/eslint/lib/rules/no-whitespace-before-property.js +0 -116
  396. package/template/lib/react/node_modules/eslint/lib/rules/no-with.js +0 -39
  397. package/template/lib/react/node_modules/eslint/lib/rules/nonblock-statement-body-position.js +0 -127
  398. package/template/lib/react/node_modules/eslint/lib/rules/object-curly-newline.js +0 -324
  399. package/template/lib/react/node_modules/eslint/lib/rules/object-curly-spacing.js +0 -311
  400. package/template/lib/react/node_modules/eslint/lib/rules/object-property-newline.js +0 -102
  401. package/template/lib/react/node_modules/eslint/lib/rules/object-shorthand.js +0 -520
  402. package/template/lib/react/node_modules/eslint/lib/rules/one-var-declaration-per-line.js +0 -95
  403. package/template/lib/react/node_modules/eslint/lib/rules/one-var.js +0 -567
  404. package/template/lib/react/node_modules/eslint/lib/rules/operator-assignment.js +0 -209
  405. package/template/lib/react/node_modules/eslint/lib/rules/operator-linebreak.js +0 -253
  406. package/template/lib/react/node_modules/eslint/lib/rules/padded-blocks.js +0 -310
  407. package/template/lib/react/node_modules/eslint/lib/rules/padding-line-between-statements.js +0 -590
  408. package/template/lib/react/node_modules/eslint/lib/rules/prefer-arrow-callback.js +0 -381
  409. package/template/lib/react/node_modules/eslint/lib/rules/prefer-const.js +0 -501
  410. package/template/lib/react/node_modules/eslint/lib/rules/prefer-destructuring.js +0 -301
  411. package/template/lib/react/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js +0 -191
  412. package/template/lib/react/node_modules/eslint/lib/rules/prefer-named-capture-group.js +0 -178
  413. package/template/lib/react/node_modules/eslint/lib/rules/prefer-numeric-literals.js +0 -148
  414. package/template/lib/react/node_modules/eslint/lib/rules/prefer-object-has-own.js +0 -114
  415. package/template/lib/react/node_modules/eslint/lib/rules/prefer-object-spread.js +0 -298
  416. package/template/lib/react/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js +0 -132
  417. package/template/lib/react/node_modules/eslint/lib/rules/prefer-reflect.js +0 -127
  418. package/template/lib/react/node_modules/eslint/lib/rules/prefer-regex-literals.js +0 -507
  419. package/template/lib/react/node_modules/eslint/lib/rules/prefer-rest-params.js +0 -118
  420. package/template/lib/react/node_modules/eslint/lib/rules/prefer-spread.js +0 -87
  421. package/template/lib/react/node_modules/eslint/lib/rules/prefer-template.js +0 -275
  422. package/template/lib/react/node_modules/eslint/lib/rules/quote-props.js +0 -310
  423. package/template/lib/react/node_modules/eslint/lib/rules/quotes.js +0 -350
  424. package/template/lib/react/node_modules/eslint/lib/rules/radix.js +0 -198
  425. package/template/lib/react/node_modules/eslint/lib/rules/require-atomic-updates.js +0 -331
  426. package/template/lib/react/node_modules/eslint/lib/rules/require-await.js +0 -113
  427. package/template/lib/react/node_modules/eslint/lib/rules/require-jsdoc.js +0 -122
  428. package/template/lib/react/node_modules/eslint/lib/rules/require-unicode-regexp.js +0 -129
  429. package/template/lib/react/node_modules/eslint/lib/rules/require-yield.js +0 -77
  430. package/template/lib/react/node_modules/eslint/lib/rules/rest-spread-spacing.js +0 -123
  431. package/template/lib/react/node_modules/eslint/lib/rules/semi-spacing.js +0 -248
  432. package/template/lib/react/node_modules/eslint/lib/rules/semi-style.js +0 -158
  433. package/template/lib/react/node_modules/eslint/lib/rules/semi.js +0 -438
  434. package/template/lib/react/node_modules/eslint/lib/rules/sort-imports.js +0 -241
  435. package/template/lib/react/node_modules/eslint/lib/rules/sort-keys.js +0 -230
  436. package/template/lib/react/node_modules/eslint/lib/rules/sort-vars.js +0 -104
  437. package/template/lib/react/node_modules/eslint/lib/rules/space-before-blocks.js +0 -204
  438. package/template/lib/react/node_modules/eslint/lib/rules/space-before-function-paren.js +0 -167
  439. package/template/lib/react/node_modules/eslint/lib/rules/space-in-parens.js +0 -285
  440. package/template/lib/react/node_modules/eslint/lib/rules/space-infix-ops.js +0 -198
  441. package/template/lib/react/node_modules/eslint/lib/rules/space-unary-ops.js +0 -324
  442. package/template/lib/react/node_modules/eslint/lib/rules/spaced-comment.js +0 -385
  443. package/template/lib/react/node_modules/eslint/lib/rules/strict.js +0 -277
  444. package/template/lib/react/node_modules/eslint/lib/rules/switch-colon-spacing.js +0 -132
  445. package/template/lib/react/node_modules/eslint/lib/rules/symbol-description.js +0 -73
  446. package/template/lib/react/node_modules/eslint/lib/rules/template-curly-spacing.js +0 -144
  447. package/template/lib/react/node_modules/eslint/lib/rules/template-tag-spacing.js +0 -93
  448. package/template/lib/react/node_modules/eslint/lib/rules/unicode-bom.js +0 -73
  449. package/template/lib/react/node_modules/eslint/lib/rules/use-isnan.js +0 -141
  450. package/template/lib/react/node_modules/eslint/lib/rules/utils/ast-utils.js +0 -2282
  451. package/template/lib/react/node_modules/eslint/lib/rules/utils/fix-tracker.js +0 -114
  452. package/template/lib/react/node_modules/eslint/lib/rules/utils/keywords.js +0 -67
  453. package/template/lib/react/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +0 -115
  454. package/template/lib/react/node_modules/eslint/lib/rules/utils/patterns/letters.js +0 -36
  455. package/template/lib/react/node_modules/eslint/lib/rules/utils/regular-expressions.js +0 -42
  456. package/template/lib/react/node_modules/eslint/lib/rules/utils/unicode/index.js +0 -11
  457. package/template/lib/react/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js +0 -13
  458. package/template/lib/react/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js +0 -13
  459. package/template/lib/react/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js +0 -13
  460. package/template/lib/react/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js +0 -14
  461. package/template/lib/react/node_modules/eslint/lib/rules/valid-jsdoc.js +0 -516
  462. package/template/lib/react/node_modules/eslint/lib/rules/valid-typeof.js +0 -127
  463. package/template/lib/react/node_modules/eslint/lib/rules/vars-on-top.js +0 -157
  464. package/template/lib/react/node_modules/eslint/lib/rules/wrap-iife.js +0 -207
  465. package/template/lib/react/node_modules/eslint/lib/rules/wrap-regex.js +0 -61
  466. package/template/lib/react/node_modules/eslint/lib/rules/yield-star-spacing.js +0 -130
  467. package/template/lib/react/node_modules/eslint/lib/rules/yoda.js +0 -353
  468. package/template/lib/react/node_modules/eslint/lib/shared/ajv.js +0 -34
  469. package/template/lib/react/node_modules/eslint/lib/shared/ast-utils.js +0 -29
  470. package/template/lib/react/node_modules/eslint/lib/shared/config-validator.js +0 -347
  471. package/template/lib/react/node_modules/eslint/lib/shared/deprecation-warnings.js +0 -58
  472. package/template/lib/react/node_modules/eslint/lib/shared/directives.js +0 -15
  473. package/template/lib/react/node_modules/eslint/lib/shared/logging.js +0 -30
  474. package/template/lib/react/node_modules/eslint/lib/shared/relative-module-resolver.js +0 -50
  475. package/template/lib/react/node_modules/eslint/lib/shared/runtime-info.js +0 -167
  476. package/template/lib/react/node_modules/eslint/lib/shared/severity.js +0 -49
  477. package/template/lib/react/node_modules/eslint/lib/shared/string-utils.js +0 -60
  478. package/template/lib/react/node_modules/eslint/lib/shared/traverser.js +0 -195
  479. package/template/lib/react/node_modules/eslint/lib/shared/types.js +0 -216
  480. package/template/lib/react/node_modules/eslint/lib/source-code/index.js +0 -5
  481. package/template/lib/react/node_modules/eslint/lib/source-code/source-code.js +0 -1055
  482. package/template/lib/react/node_modules/eslint/lib/source-code/token-store/backward-token-comment-cursor.js +0 -57
  483. package/template/lib/react/node_modules/eslint/lib/source-code/token-store/backward-token-cursor.js +0 -58
  484. package/template/lib/react/node_modules/eslint/lib/source-code/token-store/cursor.js +0 -76
  485. package/template/lib/react/node_modules/eslint/lib/source-code/token-store/cursors.js +0 -90
  486. package/template/lib/react/node_modules/eslint/lib/source-code/token-store/decorative-cursor.js +0 -39
  487. package/template/lib/react/node_modules/eslint/lib/source-code/token-store/filter-cursor.js +0 -43
  488. package/template/lib/react/node_modules/eslint/lib/source-code/token-store/forward-token-comment-cursor.js +0 -57
  489. package/template/lib/react/node_modules/eslint/lib/source-code/token-store/forward-token-cursor.js +0 -63
  490. package/template/lib/react/node_modules/eslint/lib/source-code/token-store/index.js +0 -627
  491. package/template/lib/react/node_modules/eslint/lib/source-code/token-store/limit-cursor.js +0 -40
  492. package/template/lib/react/node_modules/eslint/lib/source-code/token-store/padded-token-cursor.js +0 -38
  493. package/template/lib/react/node_modules/eslint/lib/source-code/token-store/skip-cursor.js +0 -42
  494. package/template/lib/react/node_modules/eslint/lib/source-code/token-store/utils.js +0 -107
  495. package/template/lib/react/node_modules/eslint/lib/unsupported-api.js +0 -30
  496. package/template/lib/react/node_modules/eslint/messages/all-files-ignored.js +0 -16
  497. package/template/lib/react/node_modules/eslint/messages/eslintrc-incompat.js +0 -98
  498. package/template/lib/react/node_modules/eslint/messages/eslintrc-plugins.js +0 -24
  499. package/template/lib/react/node_modules/eslint/messages/extend-config-missing.js +0 -13
  500. package/template/lib/react/node_modules/eslint/messages/failed-to-read-json.js +0 -11
  501. package/template/lib/react/node_modules/eslint/messages/file-not-found.js +0 -10
  502. package/template/lib/react/node_modules/eslint/messages/invalid-rule-options.js +0 -17
  503. package/template/lib/react/node_modules/eslint/messages/invalid-rule-severity.js +0 -13
  504. package/template/lib/react/node_modules/eslint/messages/no-config-found.js +0 -15
  505. package/template/lib/react/node_modules/eslint/messages/plugin-conflict.js +0 -22
  506. package/template/lib/react/node_modules/eslint/messages/plugin-invalid.js +0 -16
  507. package/template/lib/react/node_modules/eslint/messages/plugin-missing.js +0 -19
  508. package/template/lib/react/node_modules/eslint/messages/print-config-with-directory-path.js +0 -8
  509. package/template/lib/react/node_modules/eslint/messages/shared.js +0 -18
  510. package/template/lib/react/node_modules/eslint/messages/whitespace-found.js +0 -11
  511. package/template/lib/react/node_modules/eslint/node_modules/.bin/eslint +0 -17
  512. package/template/lib/react/node_modules/eslint/node_modules/.bin/eslint.CMD +0 -12
  513. package/template/lib/react/node_modules/eslint/node_modules/.bin/eslint.ps1 +0 -41
  514. package/template/lib/react/node_modules/eslint/node_modules/.bin/js-yaml +0 -17
  515. package/template/lib/react/node_modules/eslint/node_modules/.bin/js-yaml.CMD +0 -12
  516. package/template/lib/react/node_modules/eslint/node_modules/.bin/js-yaml.ps1 +0 -41
  517. package/template/lib/react/node_modules/eslint/package.json +0 -179
  518. package/template/lib/react/node_modules/eslint-import-resolver-typescript/LICENSE +0 -5
  519. package/template/lib/react/node_modules/eslint-import-resolver-typescript/README.md +0 -232
  520. package/template/lib/react/node_modules/eslint-import-resolver-typescript/lib/index.cjs +0 -278
  521. package/template/lib/react/node_modules/eslint-import-resolver-typescript/lib/index.d.ts +0 -20
  522. package/template/lib/react/node_modules/eslint-import-resolver-typescript/lib/index.es2020.mjs +0 -251
  523. package/template/lib/react/node_modules/eslint-import-resolver-typescript/lib/index.js +0 -252
  524. package/template/lib/react/node_modules/eslint-import-resolver-typescript/lib/index.js.map +0 -1
  525. package/template/lib/react/node_modules/eslint-import-resolver-typescript/node_modules/.bin/eslint +0 -17
  526. package/template/lib/react/node_modules/eslint-import-resolver-typescript/node_modules/.bin/eslint.CMD +0 -12
  527. package/template/lib/react/node_modules/eslint-import-resolver-typescript/node_modules/.bin/eslint.ps1 +0 -41
  528. package/template/lib/react/node_modules/eslint-import-resolver-typescript/package.json +0 -108
  529. package/template/lib/react/node_modules/eslint-import-resolver-typescript/shim.d.ts +0 -4
  530. package/template/lib/react/node_modules/eslint-plugin-import/CHANGELOG.md +0 -1925
  531. package/template/lib/react/node_modules/eslint-plugin-import/CONTRIBUTING.md +0 -84
  532. package/template/lib/react/node_modules/eslint-plugin-import/LICENSE +0 -22
  533. package/template/lib/react/node_modules/eslint-plugin-import/README.md +0 -500
  534. package/template/lib/react/node_modules/eslint-plugin-import/RELEASE.md +0 -54
  535. package/template/lib/react/node_modules/eslint-plugin-import/SECURITY.md +0 -11
  536. package/template/lib/react/node_modules/eslint-plugin-import/config/electron.js +0 -8
  537. package/template/lib/react/node_modules/eslint-plugin-import/config/errors.js +0 -14
  538. package/template/lib/react/node_modules/eslint-plugin-import/config/react-native.js +0 -13
  539. package/template/lib/react/node_modules/eslint-plugin-import/config/react.js +0 -18
  540. package/template/lib/react/node_modules/eslint-plugin-import/config/recommended.js +0 -28
  541. package/template/lib/react/node_modules/eslint-plugin-import/config/stage-0.js +0 -12
  542. package/template/lib/react/node_modules/eslint-plugin-import/config/typescript.js +0 -34
  543. package/template/lib/react/node_modules/eslint-plugin-import/config/warnings.js +0 -12
  544. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/consistent-type-specifier-style.md +0 -91
  545. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/default.md +0 -72
  546. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/dynamic-import-chunkname.md +0 -92
  547. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/export.md +0 -37
  548. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/exports-last.md +0 -51
  549. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/extensions.md +0 -174
  550. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/first.md +0 -75
  551. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/group-exports.md +0 -118
  552. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/imports-first.md +0 -9
  553. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/max-dependencies.md +0 -70
  554. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/named.md +0 -102
  555. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/namespace.md +0 -106
  556. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/newline-after-import.md +0 -167
  557. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-absolute-path.md +0 -54
  558. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-amd.md +0 -37
  559. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-anonymous-default-export.md +0 -83
  560. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-commonjs.md +0 -96
  561. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-cycle.md +0 -111
  562. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-default-export.md +0 -65
  563. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-deprecated.md +0 -62
  564. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-duplicates.md +0 -109
  565. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-dynamic-require.md +0 -25
  566. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-empty-named-blocks.md +0 -49
  567. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-extraneous-dependencies.md +0 -139
  568. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-import-module-exports.md +0 -81
  569. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-internal-modules.md +0 -136
  570. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-mutable-exports.md +0 -54
  571. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-named-as-default-member.md +0 -52
  572. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-named-as-default.md +0 -53
  573. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-named-default.md +0 -36
  574. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-named-export.md +0 -79
  575. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-namespace.md +0 -44
  576. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-nodejs-modules.md +0 -42
  577. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-relative-packages.md +0 -70
  578. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-relative-parent-imports.md +0 -123
  579. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-restricted-paths.md +0 -198
  580. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-self-import.md +0 -32
  581. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-unassigned-import.md +0 -60
  582. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-unresolved.md +0 -110
  583. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-unused-modules.md +0 -125
  584. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-useless-path-segments.md +0 -85
  585. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/no-webpack-loader-syntax.md +0 -39
  586. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/order.md +0 -365
  587. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/prefer-default-export.md +0 -185
  588. package/template/lib/react/node_modules/eslint-plugin-import/docs/rules/unambiguous.md +0 -57
  589. package/template/lib/react/node_modules/eslint-plugin-import/lib/ExportMap.js +0 -856
  590. package/template/lib/react/node_modules/eslint-plugin-import/lib/core/importType.js +0 -129
  591. package/template/lib/react/node_modules/eslint-plugin-import/lib/core/packagePath.js +0 -22
  592. package/template/lib/react/node_modules/eslint-plugin-import/lib/core/staticRequire.js +0 -11
  593. package/template/lib/react/node_modules/eslint-plugin-import/lib/docsUrl.js +0 -8
  594. package/template/lib/react/node_modules/eslint-plugin-import/lib/importDeclaration.js +0 -5
  595. package/template/lib/react/node_modules/eslint-plugin-import/lib/index.js +0 -71
  596. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/consistent-type-specifier-style.js +0 -221
  597. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/default.js +0 -40
  598. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/dynamic-import-chunkname.js +0 -120
  599. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/export.js +0 -250
  600. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/exports-last.js +0 -40
  601. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/extensions.js +0 -193
  602. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/first.js +0 -144
  603. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/group-exports.js +0 -155
  604. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/imports-first.js +0 -16
  605. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/max-dependencies.js +0 -60
  606. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/named.js +0 -143
  607. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/namespace.js +0 -218
  608. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/newline-after-import.js +0 -237
  609. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-absolute-path.js +0 -40
  610. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-amd.js +0 -47
  611. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-anonymous-default-export.js +0 -103
  612. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-commonjs.js +0 -141
  613. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-cycle.js +0 -158
  614. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-default-export.js +0 -43
  615. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-deprecated.js +0 -138
  616. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-duplicates.js +0 -354
  617. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-dynamic-require.js +0 -77
  618. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-empty-named-blocks.js +0 -105
  619. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-extraneous-dependencies.js +0 -301
  620. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-import-module-exports.js +0 -85
  621. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-internal-modules.js +0 -144
  622. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-mutable-exports.js +0 -59
  623. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-named-as-default-member.js +0 -96
  624. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-named-as-default.js +0 -45
  625. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-named-default.js +0 -31
  626. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-named-export.js +0 -39
  627. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-namespace.js +0 -175
  628. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-nodejs-modules.js +0 -44
  629. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-relative-packages.js +0 -71
  630. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-relative-parent-imports.js +0 -48
  631. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-restricted-paths.js +0 -245
  632. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-self-import.js +0 -39
  633. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-unassigned-import.js +0 -79
  634. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-unresolved.js +0 -60
  635. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js +0 -945
  636. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-useless-path-segments.js +0 -147
  637. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js +0 -26
  638. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/order.js +0 -785
  639. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/prefer-default-export.js +0 -116
  640. package/template/lib/react/node_modules/eslint-plugin-import/lib/rules/unambiguous.js +0 -38
  641. package/template/lib/react/node_modules/eslint-plugin-import/memo-parser/LICENSE +0 -22
  642. package/template/lib/react/node_modules/eslint-plugin-import/memo-parser/README.md +0 -21
  643. package/template/lib/react/node_modules/eslint-plugin-import/memo-parser/index.js +0 -41
  644. package/template/lib/react/node_modules/eslint-plugin-import/node_modules/.bin/eslint +0 -17
  645. package/template/lib/react/node_modules/eslint-plugin-import/node_modules/.bin/eslint.CMD +0 -12
  646. package/template/lib/react/node_modules/eslint-plugin-import/node_modules/.bin/eslint.ps1 +0 -41
  647. package/template/lib/react/node_modules/eslint-plugin-import/node_modules/.bin/semver +0 -17
  648. package/template/lib/react/node_modules/eslint-plugin-import/node_modules/.bin/semver.CMD +0 -12
  649. package/template/lib/react/node_modules/eslint-plugin-import/node_modules/.bin/semver.ps1 +0 -41
  650. package/template/lib/react/node_modules/eslint-plugin-import/package.json +0 -124
  651. package/template/lib/react/node_modules/eslint-plugin-prettier/LICENSE.md +0 -24
  652. package/template/lib/react/node_modules/eslint-plugin-prettier/README.md +0 -202
  653. package/template/lib/react/node_modules/eslint-plugin-prettier/eslint-plugin-prettier.d.ts +0 -5
  654. package/template/lib/react/node_modules/eslint-plugin-prettier/eslint-plugin-prettier.js +0 -254
  655. package/template/lib/react/node_modules/eslint-plugin-prettier/node_modules/.bin/eslint +0 -17
  656. package/template/lib/react/node_modules/eslint-plugin-prettier/node_modules/.bin/eslint-config-prettier +0 -17
  657. package/template/lib/react/node_modules/eslint-plugin-prettier/node_modules/.bin/eslint-config-prettier.CMD +0 -12
  658. package/template/lib/react/node_modules/eslint-plugin-prettier/node_modules/.bin/eslint-config-prettier.ps1 +0 -41
  659. package/template/lib/react/node_modules/eslint-plugin-prettier/node_modules/.bin/eslint.CMD +0 -12
  660. package/template/lib/react/node_modules/eslint-plugin-prettier/node_modules/.bin/eslint.ps1 +0 -41
  661. package/template/lib/react/node_modules/eslint-plugin-prettier/node_modules/.bin/prettier +0 -17
  662. package/template/lib/react/node_modules/eslint-plugin-prettier/node_modules/.bin/prettier.CMD +0 -12
  663. package/template/lib/react/node_modules/eslint-plugin-prettier/node_modules/.bin/prettier.ps1 +0 -41
  664. package/template/lib/react/node_modules/eslint-plugin-prettier/package.json +0 -101
  665. package/template/lib/react/node_modules/eslint-plugin-prettier/recommended.d.ts +0 -5
  666. package/template/lib/react/node_modules/eslint-plugin-prettier/recommended.js +0 -17
  667. package/template/lib/react/node_modules/eslint-plugin-prettier/worker.js +0 -181
  668. package/template/lib/react/node_modules/eslint-plugin-react/LICENSE +0 -22
  669. package/template/lib/react/node_modules/eslint-plugin-react/README.md +0 -420
  670. package/template/lib/react/node_modules/eslint-plugin-react/configs/all.js +0 -39
  671. package/template/lib/react/node_modules/eslint-plugin-react/configs/jsx-runtime.js +0 -18
  672. package/template/lib/react/node_modules/eslint-plugin-react/configs/recommended.js +0 -34
  673. package/template/lib/react/node_modules/eslint-plugin-react/index.js +0 -31
  674. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/boolean-prop-naming.js +0 -400
  675. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/button-has-type.js +0 -163
  676. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/default-props-match-prop-types.js +0 -108
  677. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/destructuring-assignment.js +0 -280
  678. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/display-name.js +0 -283
  679. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/forbid-component-props.js +0 -134
  680. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/forbid-dom-props.js +0 -121
  681. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/forbid-elements.js +0 -114
  682. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/forbid-foreign-prop-types.js +0 -134
  683. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/forbid-prop-types.js +0 -293
  684. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/function-component-definition.js +0 -284
  685. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/hook-use-state.js +0 -203
  686. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/iframe-missing-sandbox.js +0 -142
  687. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/index.js +0 -106
  688. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-boolean-value.js +0 -159
  689. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-child-element-spacing.js +0 -116
  690. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-closing-bracket-location.js +0 -308
  691. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-closing-tag-location.js +0 -73
  692. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-curly-brace-presence.js +0 -414
  693. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-curly-newline.js +0 -184
  694. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-curly-spacing.js +0 -430
  695. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-equals-spacing.js +0 -110
  696. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-filename-extension.js +0 -110
  697. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-first-prop-new-line.js +0 -80
  698. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-fragments.js +0 -209
  699. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-handler-names.js +0 -171
  700. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-indent-props.js +0 -213
  701. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-indent.js +0 -441
  702. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-key.js +0 -293
  703. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-max-depth.js +0 -162
  704. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-max-props-per-line.js +0 -154
  705. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-newline.js +0 -168
  706. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-no-bind.js +0 -208
  707. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-no-comment-textnodes.js +0 -64
  708. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-no-constructed-context-values.js +0 -225
  709. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-no-duplicate-props.js +0 -76
  710. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-no-leaked-render.js +0 -186
  711. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-no-literals.js +0 -195
  712. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-no-script-url.js +0 -97
  713. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-no-target-blank.js +0 -283
  714. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-no-undef.js +0 -115
  715. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-no-useless-fragment.js +0 -257
  716. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-one-expression-per-line.js +0 -233
  717. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-pascal-case.js +0 -163
  718. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-props-no-multi-spaces.js +0 -134
  719. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-props-no-spreading.js +0 -141
  720. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-sort-default-props.js +0 -188
  721. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-sort-props.js +0 -530
  722. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-space-before-closing.js +0 -96
  723. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-tag-spacing.js +0 -323
  724. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-uses-react.js +0 -46
  725. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-uses-vars.js +0 -60
  726. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/jsx-wrap-multilines.js +0 -260
  727. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-access-state-in-setstate.js +0 -187
  728. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-adjacent-inline-elements.js +0 -125
  729. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-array-index-key.js +0 -288
  730. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-arrow-function-lifecycle.js +0 -144
  731. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-children-prop.js +0 -119
  732. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-danger-with-children.js +0 -155
  733. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-danger.js +0 -74
  734. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-deprecated.js +0 -258
  735. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-did-mount-set-state.js +0 -10
  736. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-did-update-set-state.js +0 -10
  737. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-direct-mutation-state.js +0 -154
  738. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-find-dom-node.js +0 -50
  739. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-invalid-html-attribute.js +0 -639
  740. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-is-mounted.js +0 -55
  741. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-multi-comp.js +0 -80
  742. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-namespace.js +0 -61
  743. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-object-type-as-default-prop.js +0 -103
  744. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-redundant-should-component-update.js +0 -87
  745. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-render-return-value.js +0 -81
  746. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-set-state.js +0 -88
  747. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-string-refs.js +0 -119
  748. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-this-in-sfc.js +0 -46
  749. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-typos.js +0 -257
  750. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-unescaped-entities.js +0 -133
  751. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-unknown-property.js +0 -609
  752. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-unsafe.js +0 -153
  753. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-unstable-nested-components.js +0 -491
  754. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-unused-class-component-methods.js +0 -257
  755. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-unused-prop-types.js +0 -173
  756. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-unused-state.js +0 -522
  757. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/no-will-update-set-state.js +0 -14
  758. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/prefer-es6-class.js +0 -57
  759. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/prefer-exact-props.js +0 -161
  760. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/prefer-read-only-props.js +0 -116
  761. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/prefer-stateless-function.js +0 -390
  762. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/prop-types.js +0 -201
  763. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/react-in-jsx-scope.js +0 -56
  764. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/require-default-props.js +0 -193
  765. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/require-optimization.js +0 -239
  766. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/require-render-return.js +0 -104
  767. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/self-closing-comp.js +0 -103
  768. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/sort-comp.js +0 -446
  769. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/sort-default-props.js +0 -174
  770. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/sort-prop-types.js +0 -266
  771. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/state-in-constructor.js +0 -67
  772. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/static-property-placement.js +0 -187
  773. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/style-prop-object.js +0 -137
  774. package/template/lib/react/node_modules/eslint-plugin-react/lib/rules/void-dom-elements-no-children.js +0 -165
  775. package/template/lib/react/node_modules/eslint-plugin-react/lib/types.d.ts +0 -28
  776. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/Components.js +0 -946
  777. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/annotations.js +0 -32
  778. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/ast.js +0 -461
  779. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/componentUtil.js +0 -182
  780. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/defaultProps.js +0 -268
  781. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/docsUrl.js +0 -7
  782. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/error.js +0 -14
  783. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/getTokenBeforeClosingBracket.js +0 -16
  784. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/isCreateContext.js +0 -53
  785. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/isCreateElement.js +0 -33
  786. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/isDestructuredFromPragmaImport.js +0 -79
  787. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/isFirstLetterCapitalized.js +0 -16
  788. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/jsx.js +0 -196
  789. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/lifecycleMethods.js +0 -30
  790. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/linkComponents.js +0 -49
  791. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/log.js +0 -14
  792. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/makeNoMethodSetStateRule.js +0 -119
  793. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/message.js +0 -8
  794. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/pragma.js +0 -72
  795. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/propTypes.js +0 -1248
  796. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/propTypesSort.js +0 -211
  797. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/propWrapper.js +0 -61
  798. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/props.js +0 -103
  799. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/report.js +0 -12
  800. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/usedPropTypes.js +0 -569
  801. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/variable.js +0 -94
  802. package/template/lib/react/node_modules/eslint-plugin-react/lib/util/version.js +0 -161
  803. package/template/lib/react/node_modules/eslint-plugin-react/node_modules/.bin/eslint +0 -17
  804. package/template/lib/react/node_modules/eslint-plugin-react/node_modules/.bin/eslint.CMD +0 -12
  805. package/template/lib/react/node_modules/eslint-plugin-react/node_modules/.bin/eslint.ps1 +0 -41
  806. package/template/lib/react/node_modules/eslint-plugin-react/node_modules/.bin/resolve +0 -17
  807. package/template/lib/react/node_modules/eslint-plugin-react/node_modules/.bin/resolve.CMD +0 -12
  808. package/template/lib/react/node_modules/eslint-plugin-react/node_modules/.bin/resolve.ps1 +0 -41
  809. package/template/lib/react/node_modules/eslint-plugin-react/node_modules/.bin/semver +0 -17
  810. package/template/lib/react/node_modules/eslint-plugin-react/node_modules/.bin/semver.CMD +0 -12
  811. package/template/lib/react/node_modules/eslint-plugin-react/node_modules/.bin/semver.ps1 +0 -41
  812. package/template/lib/react/node_modules/eslint-plugin-react/package.json +0 -106
  813. package/template/lib/react/node_modules/eslint-plugin-react-hooks/LICENSE +0 -21
  814. package/template/lib/react/node_modules/eslint-plugin-react-hooks/README.md +0 -75
  815. package/template/lib/react/node_modules/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js +0 -2458
  816. package/template/lib/react/node_modules/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.production.min.js +0 -63
  817. package/template/lib/react/node_modules/eslint-plugin-react-hooks/index.js +0 -9
  818. package/template/lib/react/node_modules/eslint-plugin-react-hooks/node_modules/.bin/eslint +0 -17
  819. package/template/lib/react/node_modules/eslint-plugin-react-hooks/node_modules/.bin/eslint.CMD +0 -12
  820. package/template/lib/react/node_modules/eslint-plugin-react-hooks/node_modules/.bin/eslint.ps1 +0 -41
  821. package/template/lib/react/node_modules/eslint-plugin-react-hooks/package.json +0 -39
  822. package/template/lib/react/node_modules/prettier/LICENSE +0 -4857
  823. package/template/lib/react/node_modules/prettier/README.md +0 -109
  824. package/template/lib/react/node_modules/prettier/bin/prettier.cjs +0 -68
  825. package/template/lib/react/node_modules/prettier/doc.d.ts +0 -243
  826. package/template/lib/react/node_modules/prettier/doc.js +0 -1328
  827. package/template/lib/react/node_modules/prettier/doc.mjs +0 -1300
  828. package/template/lib/react/node_modules/prettier/index.cjs +0 -648
  829. package/template/lib/react/node_modules/prettier/index.d.ts +0 -940
  830. package/template/lib/react/node_modules/prettier/index.mjs +0 -24255
  831. package/template/lib/react/node_modules/prettier/internal/cli.mjs +0 -7089
  832. package/template/lib/react/node_modules/prettier/node_modules/.bin/prettier +0 -17
  833. package/template/lib/react/node_modules/prettier/node_modules/.bin/prettier.CMD +0 -12
  834. package/template/lib/react/node_modules/prettier/node_modules/.bin/prettier.ps1 +0 -41
  835. package/template/lib/react/node_modules/prettier/package.json +0 -198
  836. package/template/lib/react/node_modules/prettier/plugins/acorn.d.ts +0 -6
  837. package/template/lib/react/node_modules/prettier/plugins/acorn.js +0 -13
  838. package/template/lib/react/node_modules/prettier/plugins/acorn.mjs +0 -13
  839. package/template/lib/react/node_modules/prettier/plugins/angular.d.ts +0 -8
  840. package/template/lib/react/node_modules/prettier/plugins/angular.js +0 -1
  841. package/template/lib/react/node_modules/prettier/plugins/angular.mjs +0 -1
  842. package/template/lib/react/node_modules/prettier/plugins/babel.d.ts +0 -18
  843. package/template/lib/react/node_modules/prettier/plugins/babel.js +0 -16
  844. package/template/lib/react/node_modules/prettier/plugins/babel.mjs +0 -16
  845. package/template/lib/react/node_modules/prettier/plugins/estree.d.ts +0 -1
  846. package/template/lib/react/node_modules/prettier/plugins/estree.js +0 -36
  847. package/template/lib/react/node_modules/prettier/plugins/estree.mjs +0 -36
  848. package/template/lib/react/node_modules/prettier/plugins/flow.d.ts +0 -5
  849. package/template/lib/react/node_modules/prettier/plugins/flow.js +0 -21
  850. package/template/lib/react/node_modules/prettier/plugins/flow.mjs +0 -21
  851. package/template/lib/react/node_modules/prettier/plugins/glimmer.d.ts +0 -5
  852. package/template/lib/react/node_modules/prettier/plugins/glimmer.js +0 -30
  853. package/template/lib/react/node_modules/prettier/plugins/glimmer.mjs +0 -30
  854. package/template/lib/react/node_modules/prettier/plugins/graphql.d.ts +0 -5
  855. package/template/lib/react/node_modules/prettier/plugins/graphql.js +0 -29
  856. package/template/lib/react/node_modules/prettier/plugins/graphql.mjs +0 -29
  857. package/template/lib/react/node_modules/prettier/plugins/html.d.ts +0 -8
  858. package/template/lib/react/node_modules/prettier/plugins/html.js +0 -19
  859. package/template/lib/react/node_modules/prettier/plugins/html.mjs +0 -19
  860. package/template/lib/react/node_modules/prettier/plugins/markdown.d.ts +0 -7
  861. package/template/lib/react/node_modules/prettier/plugins/markdown.js +0 -59
  862. package/template/lib/react/node_modules/prettier/plugins/markdown.mjs +0 -59
  863. package/template/lib/react/node_modules/prettier/plugins/meriyah.d.ts +0 -5
  864. package/template/lib/react/node_modules/prettier/plugins/meriyah.js +0 -5
  865. package/template/lib/react/node_modules/prettier/plugins/meriyah.mjs +0 -5
  866. package/template/lib/react/node_modules/prettier/plugins/postcss.d.ts +0 -7
  867. package/template/lib/react/node_modules/prettier/plugins/postcss.js +0 -49
  868. package/template/lib/react/node_modules/prettier/plugins/postcss.mjs +0 -49
  869. package/template/lib/react/node_modules/prettier/plugins/typescript.d.ts +0 -5
  870. package/template/lib/react/node_modules/prettier/plugins/typescript.js +0 -25
  871. package/template/lib/react/node_modules/prettier/plugins/typescript.mjs +0 -25
  872. package/template/lib/react/node_modules/prettier/plugins/yaml.d.ts +0 -5
  873. package/template/lib/react/node_modules/prettier/plugins/yaml.js +0 -161
  874. package/template/lib/react/node_modules/prettier/plugins/yaml.mjs +0 -161
  875. package/template/lib/react/node_modules/prettier/standalone.d.ts +0 -33
  876. package/template/lib/react/node_modules/prettier/standalone.js +0 -34
  877. package/template/lib/react/node_modules/prettier/standalone.mjs +0 -34
  878. package/template/lib/react/node_modules/prop-types/LICENSE +0 -21
  879. package/template/lib/react/node_modules/prop-types/README.md +0 -302
  880. package/template/lib/react/node_modules/prop-types/checkPropTypes.js +0 -103
  881. package/template/lib/react/node_modules/prop-types/factory.js +0 -19
  882. package/template/lib/react/node_modules/prop-types/factoryWithThrowingShims.js +0 -65
  883. package/template/lib/react/node_modules/prop-types/factoryWithTypeCheckers.js +0 -610
  884. package/template/lib/react/node_modules/prop-types/index.js +0 -19
  885. package/template/lib/react/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
  886. package/template/lib/react/node_modules/prop-types/lib/has.js +0 -1
  887. package/template/lib/react/node_modules/prop-types/node_modules/.bin/loose-envify +0 -17
  888. package/template/lib/react/node_modules/prop-types/node_modules/.bin/loose-envify.CMD +0 -12
  889. package/template/lib/react/node_modules/prop-types/node_modules/.bin/loose-envify.ps1 +0 -41
  890. package/template/lib/react/node_modules/prop-types/package.json +0 -60
  891. package/template/lib/react/node_modules/prop-types/prop-types.js +0 -1315
  892. package/template/lib/react/node_modules/prop-types/prop-types.min.js +0 -1
  893. package/template/lib/react/node_modules/react/LICENSE +0 -21
  894. package/template/lib/react/node_modules/react/README.md +0 -37
  895. package/template/lib/react/node_modules/react/cjs/react-jsx-dev-runtime.development.js +0 -1296
  896. package/template/lib/react/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +0 -10
  897. package/template/lib/react/node_modules/react/cjs/react-jsx-dev-runtime.profiling.min.js +0 -10
  898. package/template/lib/react/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1314
  899. package/template/lib/react/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -11
  900. package/template/lib/react/node_modules/react/cjs/react-jsx-runtime.profiling.min.js +0 -11
  901. package/template/lib/react/node_modules/react/cjs/react.development.js +0 -2739
  902. package/template/lib/react/node_modules/react/cjs/react.production.min.js +0 -26
  903. package/template/lib/react/node_modules/react/cjs/react.shared-subset.development.js +0 -20
  904. package/template/lib/react/node_modules/react/cjs/react.shared-subset.production.min.js +0 -10
  905. package/template/lib/react/node_modules/react/index.js +0 -7
  906. package/template/lib/react/node_modules/react/jsx-dev-runtime.js +0 -7
  907. package/template/lib/react/node_modules/react/jsx-runtime.js +0 -7
  908. package/template/lib/react/node_modules/react/node_modules/.bin/loose-envify +0 -17
  909. package/template/lib/react/node_modules/react/node_modules/.bin/loose-envify.CMD +0 -12
  910. package/template/lib/react/node_modules/react/node_modules/.bin/loose-envify.ps1 +0 -41
  911. package/template/lib/react/node_modules/react/package.json +0 -47
  912. package/template/lib/react/node_modules/react/react.shared-subset.js +0 -7
  913. package/template/lib/react/node_modules/react/umd/react.development.js +0 -3342
  914. package/template/lib/react/node_modules/react/umd/react.production.min.js +0 -31
  915. package/template/lib/react/node_modules/react/umd/react.profiling.min.js +0 -31
  916. package/template/lib/react/node_modules/react-dom/LICENSE +0 -21
  917. package/template/lib/react/node_modules/react-dom/README.md +0 -60
  918. package/template/lib/react/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +0 -7018
  919. package/template/lib/react/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js +0 -93
  920. package/template/lib/react/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js +0 -7078
  921. package/template/lib/react/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js +0 -101
  922. package/template/lib/react/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -7003
  923. package/template/lib/react/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +0 -96
  924. package/template/lib/react/node_modules/react-dom/cjs/react-dom-server.node.development.js +0 -7059
  925. package/template/lib/react/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +0 -102
  926. package/template/lib/react/node_modules/react-dom/cjs/react-dom-test-utils.development.js +0 -1741
  927. package/template/lib/react/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +0 -40
  928. package/template/lib/react/node_modules/react-dom/cjs/react-dom.development.js +0 -29868
  929. package/template/lib/react/node_modules/react-dom/cjs/react-dom.production.min.js +0 -323
  930. package/template/lib/react/node_modules/react-dom/cjs/react-dom.profiling.min.js +0 -367
  931. package/template/lib/react/node_modules/react-dom/client.js +0 -25
  932. package/template/lib/react/node_modules/react-dom/index.js +0 -38
  933. package/template/lib/react/node_modules/react-dom/node_modules/.bin/loose-envify +0 -17
  934. package/template/lib/react/node_modules/react-dom/node_modules/.bin/loose-envify.CMD +0 -12
  935. package/template/lib/react/node_modules/react-dom/node_modules/.bin/loose-envify.ps1 +0 -41
  936. package/template/lib/react/node_modules/react-dom/package.json +0 -62
  937. package/template/lib/react/node_modules/react-dom/profiling.js +0 -38
  938. package/template/lib/react/node_modules/react-dom/server.browser.js +0 -17
  939. package/template/lib/react/node_modules/react-dom/server.js +0 -3
  940. package/template/lib/react/node_modules/react-dom/server.node.js +0 -17
  941. package/template/lib/react/node_modules/react-dom/test-utils.js +0 -7
  942. package/template/lib/react/node_modules/react-dom/umd/react-dom-server-legacy.browser.development.js +0 -7015
  943. package/template/lib/react/node_modules/react-dom/umd/react-dom-server-legacy.browser.production.min.js +0 -75
  944. package/template/lib/react/node_modules/react-dom/umd/react-dom-server.browser.development.js +0 -7000
  945. package/template/lib/react/node_modules/react-dom/umd/react-dom-server.browser.production.min.js +0 -76
  946. package/template/lib/react/node_modules/react-dom/umd/react-dom-test-utils.development.js +0 -1737
  947. package/template/lib/react/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +0 -33
  948. package/template/lib/react/node_modules/react-dom/umd/react-dom.development.js +0 -29869
  949. package/template/lib/react/node_modules/react-dom/umd/react-dom.production.min.js +0 -267
  950. package/template/lib/react/node_modules/react-dom/umd/react-dom.profiling.min.js +0 -285
  951. package/template/lib/react/node_modules/stylelint-config-standard-scss/LICENSE +0 -21
  952. package/template/lib/react/node_modules/stylelint-config-standard-scss/README.md +0 -50
  953. package/template/lib/react/node_modules/stylelint-config-standard-scss/index.js +0 -67
  954. package/template/lib/react/node_modules/stylelint-config-standard-scss/node_modules/.bin/stylelint +0 -17
  955. package/template/lib/react/node_modules/stylelint-config-standard-scss/node_modules/.bin/stylelint.CMD +0 -12
  956. package/template/lib/react/node_modules/stylelint-config-standard-scss/node_modules/.bin/stylelint.ps1 +0 -41
  957. package/template/lib/react/node_modules/stylelint-config-standard-scss/package.json +0 -58
  958. package/template/lib/ts/node_modules/.bin/acorn +0 -17
  959. package/template/lib/ts/node_modules/.bin/acorn.CMD +0 -12
  960. package/template/lib/ts/node_modules/.bin/acorn.ps1 +0 -41
  961. package/template/lib/ts/node_modules/.bin/eslint +0 -17
  962. package/template/lib/ts/node_modules/.bin/eslint.CMD +0 -12
  963. package/template/lib/ts/node_modules/.bin/eslint.ps1 +0 -41
  964. package/template/lib/ts/node_modules/.bin/prettier +0 -17
  965. package/template/lib/ts/node_modules/.bin/prettier.CMD +0 -12
  966. package/template/lib/ts/node_modules/.bin/prettier.ps1 +0 -41
  967. package/template/lib/ts/node_modules/.bin/stylelint +0 -17
  968. package/template/lib/ts/node_modules/.bin/stylelint.CMD +0 -12
  969. package/template/lib/ts/node_modules/.bin/stylelint.ps1 +0 -41
  970. package/template/lib/ts/node_modules/.bin/tsc +0 -17
  971. package/template/lib/ts/node_modules/.bin/tsc.CMD +0 -12
  972. package/template/lib/ts/node_modules/.bin/tsc.ps1 +0 -41
  973. package/template/lib/ts/node_modules/.bin/tsserver +0 -17
  974. package/template/lib/ts/node_modules/.bin/tsserver.CMD +0 -12
  975. package/template/lib/ts/node_modules/.bin/tsserver.ps1 +0 -41
  976. package/template/lib/ts/node_modules/.bin/vitest +0 -17
  977. package/template/lib/ts/node_modules/.bin/vitest.CMD +0 -12
  978. package/template/lib/ts/node_modules/.bin/vitest.ps1 +0 -41
  979. package/template/lib/ts/node_modules/eslint/LICENSE +0 -19
  980. package/template/lib/ts/node_modules/eslint/README.md +0 -304
  981. package/template/lib/ts/node_modules/eslint/bin/eslint.js +0 -173
  982. package/template/lib/ts/node_modules/eslint/conf/config-schema.js +0 -93
  983. package/template/lib/ts/node_modules/eslint/conf/default-cli-options.js +0 -32
  984. package/template/lib/ts/node_modules/eslint/conf/globals.js +0 -154
  985. package/template/lib/ts/node_modules/eslint/conf/replacements.json +0 -22
  986. package/template/lib/ts/node_modules/eslint/conf/rule-type-list.json +0 -28
  987. package/template/lib/ts/node_modules/eslint/lib/api.js +0 -26
  988. package/template/lib/ts/node_modules/eslint/lib/cli-engine/cli-engine.js +0 -1078
  989. package/template/lib/ts/node_modules/eslint/lib/cli-engine/file-enumerator.js +0 -547
  990. package/template/lib/ts/node_modules/eslint/lib/cli-engine/formatters/checkstyle.js +0 -60
  991. package/template/lib/ts/node_modules/eslint/lib/cli-engine/formatters/compact.js +0 -60
  992. package/template/lib/ts/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json +0 -46
  993. package/template/lib/ts/node_modules/eslint/lib/cli-engine/formatters/html.js +0 -351
  994. package/template/lib/ts/node_modules/eslint/lib/cli-engine/formatters/jslint-xml.js +0 -41
  995. package/template/lib/ts/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js +0 -16
  996. package/template/lib/ts/node_modules/eslint/lib/cli-engine/formatters/json.js +0 -13
  997. package/template/lib/ts/node_modules/eslint/lib/cli-engine/formatters/junit.js +0 -82
  998. package/template/lib/ts/node_modules/eslint/lib/cli-engine/formatters/stylish.js +0 -101
  999. package/template/lib/ts/node_modules/eslint/lib/cli-engine/formatters/tap.js +0 -95
  1000. package/template/lib/ts/node_modules/eslint/lib/cli-engine/formatters/unix.js +0 -58
  1001. package/template/lib/ts/node_modules/eslint/lib/cli-engine/formatters/visualstudio.js +0 -63
  1002. package/template/lib/ts/node_modules/eslint/lib/cli-engine/hash.js +0 -35
  1003. package/template/lib/ts/node_modules/eslint/lib/cli-engine/index.js +0 -7
  1004. package/template/lib/ts/node_modules/eslint/lib/cli-engine/lint-result-cache.js +0 -203
  1005. package/template/lib/ts/node_modules/eslint/lib/cli-engine/load-rules.js +0 -46
  1006. package/template/lib/ts/node_modules/eslint/lib/cli-engine/xml-escape.js +0 -34
  1007. package/template/lib/ts/node_modules/eslint/lib/cli.js +0 -471
  1008. package/template/lib/ts/node_modules/eslint/lib/config/default-config.js +0 -67
  1009. package/template/lib/ts/node_modules/eslint/lib/config/flat-config-array.js +0 -274
  1010. package/template/lib/ts/node_modules/eslint/lib/config/flat-config-helpers.js +0 -111
  1011. package/template/lib/ts/node_modules/eslint/lib/config/flat-config-schema.js +0 -583
  1012. package/template/lib/ts/node_modules/eslint/lib/config/rule-validator.js +0 -158
  1013. package/template/lib/ts/node_modules/eslint/lib/eslint/eslint-helpers.js +0 -902
  1014. package/template/lib/ts/node_modules/eslint/lib/eslint/eslint.js +0 -700
  1015. package/template/lib/ts/node_modules/eslint/lib/eslint/flat-eslint.js +0 -1142
  1016. package/template/lib/ts/node_modules/eslint/lib/eslint/index.js +0 -9
  1017. package/template/lib/ts/node_modules/eslint/lib/linter/apply-disable-directives.js +0 -465
  1018. package/template/lib/ts/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +0 -852
  1019. package/template/lib/ts/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js +0 -263
  1020. package/template/lib/ts/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js +0 -2348
  1021. package/template/lib/ts/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +0 -342
  1022. package/template/lib/ts/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +0 -203
  1023. package/template/lib/ts/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +0 -349
  1024. package/template/lib/ts/node_modules/eslint/lib/linter/code-path-analysis/id-generator.js +0 -45
  1025. package/template/lib/ts/node_modules/eslint/lib/linter/config-comment-parser.js +0 -185
  1026. package/template/lib/ts/node_modules/eslint/lib/linter/index.js +0 -13
  1027. package/template/lib/ts/node_modules/eslint/lib/linter/interpolate.js +0 -28
  1028. package/template/lib/ts/node_modules/eslint/lib/linter/linter.js +0 -2119
  1029. package/template/lib/ts/node_modules/eslint/lib/linter/node-event-generator.js +0 -354
  1030. package/template/lib/ts/node_modules/eslint/lib/linter/report-translator.js +0 -369
  1031. package/template/lib/ts/node_modules/eslint/lib/linter/rule-fixer.js +0 -140
  1032. package/template/lib/ts/node_modules/eslint/lib/linter/rules.js +0 -80
  1033. package/template/lib/ts/node_modules/eslint/lib/linter/safe-emitter.js +0 -52
  1034. package/template/lib/ts/node_modules/eslint/lib/linter/source-code-fixer.js +0 -152
  1035. package/template/lib/ts/node_modules/eslint/lib/linter/timing.js +0 -161
  1036. package/template/lib/ts/node_modules/eslint/lib/options.js +0 -398
  1037. package/template/lib/ts/node_modules/eslint/lib/rule-tester/flat-rule-tester.js +0 -1122
  1038. package/template/lib/ts/node_modules/eslint/lib/rule-tester/index.js +0 -5
  1039. package/template/lib/ts/node_modules/eslint/lib/rule-tester/rule-tester.js +0 -1206
  1040. package/template/lib/ts/node_modules/eslint/lib/rules/accessor-pairs.js +0 -346
  1041. package/template/lib/ts/node_modules/eslint/lib/rules/array-bracket-newline.js +0 -261
  1042. package/template/lib/ts/node_modules/eslint/lib/rules/array-bracket-spacing.js +0 -244
  1043. package/template/lib/ts/node_modules/eslint/lib/rules/array-callback-return.js +0 -446
  1044. package/template/lib/ts/node_modules/eslint/lib/rules/array-element-newline.js +0 -311
  1045. package/template/lib/ts/node_modules/eslint/lib/rules/arrow-body-style.js +0 -296
  1046. package/template/lib/ts/node_modules/eslint/lib/rules/arrow-parens.js +0 -186
  1047. package/template/lib/ts/node_modules/eslint/lib/rules/arrow-spacing.js +0 -164
  1048. package/template/lib/ts/node_modules/eslint/lib/rules/block-scoped-var.js +0 -135
  1049. package/template/lib/ts/node_modules/eslint/lib/rules/block-spacing.js +0 -174
  1050. package/template/lib/ts/node_modules/eslint/lib/rules/brace-style.js +0 -197
  1051. package/template/lib/ts/node_modules/eslint/lib/rules/callback-return.js +0 -187
  1052. package/template/lib/ts/node_modules/eslint/lib/rules/camelcase.js +0 -399
  1053. package/template/lib/ts/node_modules/eslint/lib/rules/capitalized-comments.js +0 -300
  1054. package/template/lib/ts/node_modules/eslint/lib/rules/class-methods-use-this.js +0 -187
  1055. package/template/lib/ts/node_modules/eslint/lib/rules/comma-dangle.js +0 -373
  1056. package/template/lib/ts/node_modules/eslint/lib/rules/comma-spacing.js +0 -192
  1057. package/template/lib/ts/node_modules/eslint/lib/rules/comma-style.js +0 -314
  1058. package/template/lib/ts/node_modules/eslint/lib/rules/complexity.js +0 -165
  1059. package/template/lib/ts/node_modules/eslint/lib/rules/computed-property-spacing.js +0 -208
  1060. package/template/lib/ts/node_modules/eslint/lib/rules/consistent-return.js +0 -210
  1061. package/template/lib/ts/node_modules/eslint/lib/rules/consistent-this.js +0 -153
  1062. package/template/lib/ts/node_modules/eslint/lib/rules/constructor-super.js +0 -446
  1063. package/template/lib/ts/node_modules/eslint/lib/rules/curly.js +0 -486
  1064. package/template/lib/ts/node_modules/eslint/lib/rules/default-case-last.js +0 -44
  1065. package/template/lib/ts/node_modules/eslint/lib/rules/default-case.js +0 -97
  1066. package/template/lib/ts/node_modules/eslint/lib/rules/default-param-last.js +0 -62
  1067. package/template/lib/ts/node_modules/eslint/lib/rules/dot-location.js +0 -108
  1068. package/template/lib/ts/node_modules/eslint/lib/rules/dot-notation.js +0 -176
  1069. package/template/lib/ts/node_modules/eslint/lib/rules/eol-last.js +0 -115
  1070. package/template/lib/ts/node_modules/eslint/lib/rules/eqeqeq.js +0 -174
  1071. package/template/lib/ts/node_modules/eslint/lib/rules/for-direction.js +0 -140
  1072. package/template/lib/ts/node_modules/eslint/lib/rules/func-call-spacing.js +0 -233
  1073. package/template/lib/ts/node_modules/eslint/lib/rules/func-name-matching.js +0 -253
  1074. package/template/lib/ts/node_modules/eslint/lib/rules/func-names.js +0 -191
  1075. package/template/lib/ts/node_modules/eslint/lib/rules/func-style.js +0 -98
  1076. package/template/lib/ts/node_modules/eslint/lib/rules/function-call-argument-newline.js +0 -125
  1077. package/template/lib/ts/node_modules/eslint/lib/rules/function-paren-newline.js +0 -292
  1078. package/template/lib/ts/node_modules/eslint/lib/rules/generator-star-spacing.js +0 -209
  1079. package/template/lib/ts/node_modules/eslint/lib/rules/getter-return.js +0 -204
  1080. package/template/lib/ts/node_modules/eslint/lib/rules/global-require.js +0 -90
  1081. package/template/lib/ts/node_modules/eslint/lib/rules/grouped-accessor-pairs.js +0 -215
  1082. package/template/lib/ts/node_modules/eslint/lib/rules/guard-for-in.js +0 -76
  1083. package/template/lib/ts/node_modules/eslint/lib/rules/handle-callback-err.js +0 -101
  1084. package/template/lib/ts/node_modules/eslint/lib/rules/id-blacklist.js +0 -246
  1085. package/template/lib/ts/node_modules/eslint/lib/rules/id-denylist.js +0 -228
  1086. package/template/lib/ts/node_modules/eslint/lib/rules/id-length.js +0 -177
  1087. package/template/lib/ts/node_modules/eslint/lib/rules/id-match.js +0 -299
  1088. package/template/lib/ts/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js +0 -84
  1089. package/template/lib/ts/node_modules/eslint/lib/rules/indent-legacy.js +0 -1126
  1090. package/template/lib/ts/node_modules/eslint/lib/rules/indent.js +0 -1803
  1091. package/template/lib/ts/node_modules/eslint/lib/rules/index.js +0 -306
  1092. package/template/lib/ts/node_modules/eslint/lib/rules/init-declarations.js +0 -139
  1093. package/template/lib/ts/node_modules/eslint/lib/rules/jsx-quotes.js +0 -98
  1094. package/template/lib/ts/node_modules/eslint/lib/rules/key-spacing.js +0 -687
  1095. package/template/lib/ts/node_modules/eslint/lib/rules/keyword-spacing.js +0 -640
  1096. package/template/lib/ts/node_modules/eslint/lib/rules/line-comment-position.js +0 -122
  1097. package/template/lib/ts/node_modules/eslint/lib/rules/linebreak-style.js +0 -108
  1098. package/template/lib/ts/node_modules/eslint/lib/rules/lines-around-comment.js +0 -471
  1099. package/template/lib/ts/node_modules/eslint/lib/rules/lines-around-directive.js +0 -201
  1100. package/template/lib/ts/node_modules/eslint/lib/rules/lines-between-class-members.js +0 -269
  1101. package/template/lib/ts/node_modules/eslint/lib/rules/logical-assignment-operators.js +0 -504
  1102. package/template/lib/ts/node_modules/eslint/lib/rules/max-classes-per-file.js +0 -89
  1103. package/template/lib/ts/node_modules/eslint/lib/rules/max-depth.js +0 -156
  1104. package/template/lib/ts/node_modules/eslint/lib/rules/max-len.js +0 -440
  1105. package/template/lib/ts/node_modules/eslint/lib/rules/max-lines-per-function.js +0 -213
  1106. package/template/lib/ts/node_modules/eslint/lib/rules/max-lines.js +0 -193
  1107. package/template/lib/ts/node_modules/eslint/lib/rules/max-nested-callbacks.js +0 -117
  1108. package/template/lib/ts/node_modules/eslint/lib/rules/max-params.js +0 -102
  1109. package/template/lib/ts/node_modules/eslint/lib/rules/max-statements-per-line.js +0 -199
  1110. package/template/lib/ts/node_modules/eslint/lib/rules/max-statements.js +0 -184
  1111. package/template/lib/ts/node_modules/eslint/lib/rules/multiline-comment-style.js +0 -474
  1112. package/template/lib/ts/node_modules/eslint/lib/rules/multiline-ternary.js +0 -174
  1113. package/template/lib/ts/node_modules/eslint/lib/rules/new-cap.js +0 -276
  1114. package/template/lib/ts/node_modules/eslint/lib/rules/new-parens.js +0 -93
  1115. package/template/lib/ts/node_modules/eslint/lib/rules/newline-after-var.js +0 -253
  1116. package/template/lib/ts/node_modules/eslint/lib/rules/newline-before-return.js +0 -217
  1117. package/template/lib/ts/node_modules/eslint/lib/rules/newline-per-chained-call.js +0 -126
  1118. package/template/lib/ts/node_modules/eslint/lib/rules/no-alert.js +0 -138
  1119. package/template/lib/ts/node_modules/eslint/lib/rules/no-array-constructor.js +0 -133
  1120. package/template/lib/ts/node_modules/eslint/lib/rules/no-async-promise-executor.js +0 -39
  1121. package/template/lib/ts/node_modules/eslint/lib/rules/no-await-in-loop.js +0 -106
  1122. package/template/lib/ts/node_modules/eslint/lib/rules/no-bitwise.js +0 -119
  1123. package/template/lib/ts/node_modules/eslint/lib/rules/no-buffer-constructor.js +0 -50
  1124. package/template/lib/ts/node_modules/eslint/lib/rules/no-caller.js +0 -46
  1125. package/template/lib/ts/node_modules/eslint/lib/rules/no-case-declarations.js +0 -64
  1126. package/template/lib/ts/node_modules/eslint/lib/rules/no-catch-shadow.js +0 -82
  1127. package/template/lib/ts/node_modules/eslint/lib/rules/no-class-assign.js +0 -63
  1128. package/template/lib/ts/node_modules/eslint/lib/rules/no-compare-neg-zero.js +0 -60
  1129. package/template/lib/ts/node_modules/eslint/lib/rules/no-cond-assign.js +0 -159
  1130. package/template/lib/ts/node_modules/eslint/lib/rules/no-confusing-arrow.js +0 -92
  1131. package/template/lib/ts/node_modules/eslint/lib/rules/no-console.js +0 -207
  1132. package/template/lib/ts/node_modules/eslint/lib/rules/no-const-assign.js +0 -56
  1133. package/template/lib/ts/node_modules/eslint/lib/rules/no-constant-binary-expression.js +0 -509
  1134. package/template/lib/ts/node_modules/eslint/lib/rules/no-constant-condition.js +0 -150
  1135. package/template/lib/ts/node_modules/eslint/lib/rules/no-constructor-return.js +0 -62
  1136. package/template/lib/ts/node_modules/eslint/lib/rules/no-continue.js +0 -39
  1137. package/template/lib/ts/node_modules/eslint/lib/rules/no-control-regex.js +0 -138
  1138. package/template/lib/ts/node_modules/eslint/lib/rules/no-debugger.js +0 -43
  1139. package/template/lib/ts/node_modules/eslint/lib/rules/no-delete-var.js +0 -42
  1140. package/template/lib/ts/node_modules/eslint/lib/rules/no-div-regex.js +0 -53
  1141. package/template/lib/ts/node_modules/eslint/lib/rules/no-dupe-args.js +0 -82
  1142. package/template/lib/ts/node_modules/eslint/lib/rules/no-dupe-class-members.js +0 -104
  1143. package/template/lib/ts/node_modules/eslint/lib/rules/no-dupe-else-if.js +0 -122
  1144. package/template/lib/ts/node_modules/eslint/lib/rules/no-dupe-keys.js +0 -142
  1145. package/template/lib/ts/node_modules/eslint/lib/rules/no-duplicate-case.js +0 -71
  1146. package/template/lib/ts/node_modules/eslint/lib/rules/no-duplicate-imports.js +0 -290
  1147. package/template/lib/ts/node_modules/eslint/lib/rules/no-else-return.js +0 -405
  1148. package/template/lib/ts/node_modules/eslint/lib/rules/no-empty-character-class.js +0 -76
  1149. package/template/lib/ts/node_modules/eslint/lib/rules/no-empty-function.js +0 -167
  1150. package/template/lib/ts/node_modules/eslint/lib/rules/no-empty-pattern.js +0 -78
  1151. package/template/lib/ts/node_modules/eslint/lib/rules/no-empty-static-block.js +0 -47
  1152. package/template/lib/ts/node_modules/eslint/lib/rules/no-empty.js +0 -103
  1153. package/template/lib/ts/node_modules/eslint/lib/rules/no-eq-null.js +0 -46
  1154. package/template/lib/ts/node_modules/eslint/lib/rules/no-eval.js +0 -286
  1155. package/template/lib/ts/node_modules/eslint/lib/rules/no-ex-assign.js +0 -54
  1156. package/template/lib/ts/node_modules/eslint/lib/rules/no-extend-native.js +0 -179
  1157. package/template/lib/ts/node_modules/eslint/lib/rules/no-extra-bind.js +0 -213
  1158. package/template/lib/ts/node_modules/eslint/lib/rules/no-extra-boolean-cast.js +0 -317
  1159. package/template/lib/ts/node_modules/eslint/lib/rules/no-extra-label.js +0 -149
  1160. package/template/lib/ts/node_modules/eslint/lib/rules/no-extra-parens.js +0 -1322
  1161. package/template/lib/ts/node_modules/eslint/lib/rules/no-extra-semi.js +0 -147
  1162. package/template/lib/ts/node_modules/eslint/lib/rules/no-fallthrough.js +0 -196
  1163. package/template/lib/ts/node_modules/eslint/lib/rules/no-floating-decimal.js +0 -73
  1164. package/template/lib/ts/node_modules/eslint/lib/rules/no-func-assign.js +0 -78
  1165. package/template/lib/ts/node_modules/eslint/lib/rules/no-global-assign.js +0 -95
  1166. package/template/lib/ts/node_modules/eslint/lib/rules/no-implicit-coercion.js +0 -380
  1167. package/template/lib/ts/node_modules/eslint/lib/rules/no-implicit-globals.js +0 -146
  1168. package/template/lib/ts/node_modules/eslint/lib/rules/no-implied-eval.js +0 -132
  1169. package/template/lib/ts/node_modules/eslint/lib/rules/no-import-assign.js +0 -241
  1170. package/template/lib/ts/node_modules/eslint/lib/rules/no-inline-comments.js +0 -110
  1171. package/template/lib/ts/node_modules/eslint/lib/rules/no-inner-declarations.js +0 -110
  1172. package/template/lib/ts/node_modules/eslint/lib/rules/no-invalid-regexp.js +0 -194
  1173. package/template/lib/ts/node_modules/eslint/lib/rules/no-invalid-this.js +0 -150
  1174. package/template/lib/ts/node_modules/eslint/lib/rules/no-irregular-whitespace.js +0 -276
  1175. package/template/lib/ts/node_modules/eslint/lib/rules/no-iterator.js +0 -52
  1176. package/template/lib/ts/node_modules/eslint/lib/rules/no-label-var.js +0 -80
  1177. package/template/lib/ts/node_modules/eslint/lib/rules/no-labels.js +0 -149
  1178. package/template/lib/ts/node_modules/eslint/lib/rules/no-lone-blocks.js +0 -136
  1179. package/template/lib/ts/node_modules/eslint/lib/rules/no-lonely-if.js +0 -88
  1180. package/template/lib/ts/node_modules/eslint/lib/rules/no-loop-func.js +0 -206
  1181. package/template/lib/ts/node_modules/eslint/lib/rules/no-loss-of-precision.js +0 -214
  1182. package/template/lib/ts/node_modules/eslint/lib/rules/no-magic-numbers.js +0 -243
  1183. package/template/lib/ts/node_modules/eslint/lib/rules/no-misleading-character-class.js +0 -300
  1184. package/template/lib/ts/node_modules/eslint/lib/rules/no-mixed-operators.js +0 -229
  1185. package/template/lib/ts/node_modules/eslint/lib/rules/no-mixed-requires.js +0 -238
  1186. package/template/lib/ts/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +0 -116
  1187. package/template/lib/ts/node_modules/eslint/lib/rules/no-multi-assign.js +0 -67
  1188. package/template/lib/ts/node_modules/eslint/lib/rules/no-multi-spaces.js +0 -141
  1189. package/template/lib/ts/node_modules/eslint/lib/rules/no-multi-str.js +0 -65
  1190. package/template/lib/ts/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +0 -154
  1191. package/template/lib/ts/node_modules/eslint/lib/rules/no-native-reassign.js +0 -98
  1192. package/template/lib/ts/node_modules/eslint/lib/rules/no-negated-condition.js +0 -95
  1193. package/template/lib/ts/node_modules/eslint/lib/rules/no-negated-in-lhs.js +0 -46
  1194. package/template/lib/ts/node_modules/eslint/lib/rules/no-nested-ternary.js +0 -44
  1195. package/template/lib/ts/node_modules/eslint/lib/rules/no-new-func.js +0 -87
  1196. package/template/lib/ts/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js +0 -66
  1197. package/template/lib/ts/node_modules/eslint/lib/rules/no-new-object.js +0 -67
  1198. package/template/lib/ts/node_modules/eslint/lib/rules/no-new-require.js +0 -50
  1199. package/template/lib/ts/node_modules/eslint/lib/rules/no-new-symbol.js +0 -56
  1200. package/template/lib/ts/node_modules/eslint/lib/rules/no-new-wrappers.js +0 -60
  1201. package/template/lib/ts/node_modules/eslint/lib/rules/no-new.js +0 -43
  1202. package/template/lib/ts/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js +0 -148
  1203. package/template/lib/ts/node_modules/eslint/lib/rules/no-obj-calls.js +0 -86
  1204. package/template/lib/ts/node_modules/eslint/lib/rules/no-object-constructor.js +0 -117
  1205. package/template/lib/ts/node_modules/eslint/lib/rules/no-octal-escape.js +0 -56
  1206. package/template/lib/ts/node_modules/eslint/lib/rules/no-octal.js +0 -45
  1207. package/template/lib/ts/node_modules/eslint/lib/rules/no-param-reassign.js +0 -230
  1208. package/template/lib/ts/node_modules/eslint/lib/rules/no-path-concat.js +0 -64
  1209. package/template/lib/ts/node_modules/eslint/lib/rules/no-plusplus.js +0 -105
  1210. package/template/lib/ts/node_modules/eslint/lib/rules/no-process-env.js +0 -51
  1211. package/template/lib/ts/node_modules/eslint/lib/rules/no-process-exit.js +0 -47
  1212. package/template/lib/ts/node_modules/eslint/lib/rules/no-promise-executor-return.js +0 -263
  1213. package/template/lib/ts/node_modules/eslint/lib/rules/no-proto.js +0 -48
  1214. package/template/lib/ts/node_modules/eslint/lib/rules/no-prototype-builtins.js +0 -159
  1215. package/template/lib/ts/node_modules/eslint/lib/rules/no-redeclare.js +0 -174
  1216. package/template/lib/ts/node_modules/eslint/lib/rules/no-regex-spaces.js +0 -197
  1217. package/template/lib/ts/node_modules/eslint/lib/rules/no-restricted-exports.js +0 -193
  1218. package/template/lib/ts/node_modules/eslint/lib/rules/no-restricted-globals.js +0 -124
  1219. package/template/lib/ts/node_modules/eslint/lib/rules/no-restricted-imports.js +0 -410
  1220. package/template/lib/ts/node_modules/eslint/lib/rules/no-restricted-modules.js +0 -213
  1221. package/template/lib/ts/node_modules/eslint/lib/rules/no-restricted-properties.js +0 -168
  1222. package/template/lib/ts/node_modules/eslint/lib/rules/no-restricted-syntax.js +0 -70
  1223. package/template/lib/ts/node_modules/eslint/lib/rules/no-return-assign.js +0 -80
  1224. package/template/lib/ts/node_modules/eslint/lib/rules/no-return-await.js +0 -135
  1225. package/template/lib/ts/node_modules/eslint/lib/rules/no-script-url.js +0 -61
  1226. package/template/lib/ts/node_modules/eslint/lib/rules/no-self-assign.js +0 -183
  1227. package/template/lib/ts/node_modules/eslint/lib/rules/no-self-compare.js +0 -60
  1228. package/template/lib/ts/node_modules/eslint/lib/rules/no-sequences.js +0 -138
  1229. package/template/lib/ts/node_modules/eslint/lib/rules/no-setter-return.js +0 -226
  1230. package/template/lib/ts/node_modules/eslint/lib/rules/no-shadow-restricted-names.js +0 -65
  1231. package/template/lib/ts/node_modules/eslint/lib/rules/no-shadow.js +0 -336
  1232. package/template/lib/ts/node_modules/eslint/lib/rules/no-spaced-func.js +0 -83
  1233. package/template/lib/ts/node_modules/eslint/lib/rules/no-sparse-arrays.js +0 -50
  1234. package/template/lib/ts/node_modules/eslint/lib/rules/no-sync.js +0 -64
  1235. package/template/lib/ts/node_modules/eslint/lib/rules/no-tabs.js +0 -81
  1236. package/template/lib/ts/node_modules/eslint/lib/rules/no-template-curly-in-string.js +0 -44
  1237. package/template/lib/ts/node_modules/eslint/lib/rules/no-ternary.js +0 -41
  1238. package/template/lib/ts/node_modules/eslint/lib/rules/no-this-before-super.js +0 -331
  1239. package/template/lib/ts/node_modules/eslint/lib/rules/no-throw-literal.js +0 -51
  1240. package/template/lib/ts/node_modules/eslint/lib/rules/no-trailing-spaces.js +0 -193
  1241. package/template/lib/ts/node_modules/eslint/lib/rules/no-undef-init.js +0 -75
  1242. package/template/lib/ts/node_modules/eslint/lib/rules/no-undef.js +0 -79
  1243. package/template/lib/ts/node_modules/eslint/lib/rules/no-undefined.js +0 -86
  1244. package/template/lib/ts/node_modules/eslint/lib/rules/no-underscore-dangle.js +0 -335
  1245. package/template/lib/ts/node_modules/eslint/lib/rules/no-unexpected-multiline.js +0 -120
  1246. package/template/lib/ts/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js +0 -360
  1247. package/template/lib/ts/node_modules/eslint/lib/rules/no-unneeded-ternary.js +0 -166
  1248. package/template/lib/ts/node_modules/eslint/lib/rules/no-unreachable-loop.js +0 -185
  1249. package/template/lib/ts/node_modules/eslint/lib/rules/no-unreachable.js +0 -293
  1250. package/template/lib/ts/node_modules/eslint/lib/rules/no-unsafe-finally.js +0 -111
  1251. package/template/lib/ts/node_modules/eslint/lib/rules/no-unsafe-negation.js +0 -128
  1252. package/template/lib/ts/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +0 -205
  1253. package/template/lib/ts/node_modules/eslint/lib/rules/no-unused-expressions.js +0 -186
  1254. package/template/lib/ts/node_modules/eslint/lib/rules/no-unused-labels.js +0 -143
  1255. package/template/lib/ts/node_modules/eslint/lib/rules/no-unused-private-class-members.js +0 -195
  1256. package/template/lib/ts/node_modules/eslint/lib/rules/no-unused-vars.js +0 -718
  1257. package/template/lib/ts/node_modules/eslint/lib/rules/no-use-before-define.js +0 -348
  1258. package/template/lib/ts/node_modules/eslint/lib/rules/no-useless-backreference.js +0 -194
  1259. package/template/lib/ts/node_modules/eslint/lib/rules/no-useless-call.js +0 -90
  1260. package/template/lib/ts/node_modules/eslint/lib/rules/no-useless-catch.js +0 -57
  1261. package/template/lib/ts/node_modules/eslint/lib/rules/no-useless-computed-key.js +0 -168
  1262. package/template/lib/ts/node_modules/eslint/lib/rules/no-useless-concat.js +0 -115
  1263. package/template/lib/ts/node_modules/eslint/lib/rules/no-useless-constructor.js +0 -189
  1264. package/template/lib/ts/node_modules/eslint/lib/rules/no-useless-escape.js +0 -333
  1265. package/template/lib/ts/node_modules/eslint/lib/rules/no-useless-rename.js +0 -172
  1266. package/template/lib/ts/node_modules/eslint/lib/rules/no-useless-return.js +0 -364
  1267. package/template/lib/ts/node_modules/eslint/lib/rules/no-var.js +0 -334
  1268. package/template/lib/ts/node_modules/eslint/lib/rules/no-void.js +0 -64
  1269. package/template/lib/ts/node_modules/eslint/lib/rules/no-warning-comments.js +0 -201
  1270. package/template/lib/ts/node_modules/eslint/lib/rules/no-whitespace-before-property.js +0 -116
  1271. package/template/lib/ts/node_modules/eslint/lib/rules/no-with.js +0 -39
  1272. package/template/lib/ts/node_modules/eslint/lib/rules/nonblock-statement-body-position.js +0 -127
  1273. package/template/lib/ts/node_modules/eslint/lib/rules/object-curly-newline.js +0 -324
  1274. package/template/lib/ts/node_modules/eslint/lib/rules/object-curly-spacing.js +0 -311
  1275. package/template/lib/ts/node_modules/eslint/lib/rules/object-property-newline.js +0 -102
  1276. package/template/lib/ts/node_modules/eslint/lib/rules/object-shorthand.js +0 -520
  1277. package/template/lib/ts/node_modules/eslint/lib/rules/one-var-declaration-per-line.js +0 -95
  1278. package/template/lib/ts/node_modules/eslint/lib/rules/one-var.js +0 -567
  1279. package/template/lib/ts/node_modules/eslint/lib/rules/operator-assignment.js +0 -209
  1280. package/template/lib/ts/node_modules/eslint/lib/rules/operator-linebreak.js +0 -253
  1281. package/template/lib/ts/node_modules/eslint/lib/rules/padded-blocks.js +0 -310
  1282. package/template/lib/ts/node_modules/eslint/lib/rules/padding-line-between-statements.js +0 -590
  1283. package/template/lib/ts/node_modules/eslint/lib/rules/prefer-arrow-callback.js +0 -381
  1284. package/template/lib/ts/node_modules/eslint/lib/rules/prefer-const.js +0 -501
  1285. package/template/lib/ts/node_modules/eslint/lib/rules/prefer-destructuring.js +0 -301
  1286. package/template/lib/ts/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js +0 -191
  1287. package/template/lib/ts/node_modules/eslint/lib/rules/prefer-named-capture-group.js +0 -178
  1288. package/template/lib/ts/node_modules/eslint/lib/rules/prefer-numeric-literals.js +0 -148
  1289. package/template/lib/ts/node_modules/eslint/lib/rules/prefer-object-has-own.js +0 -114
  1290. package/template/lib/ts/node_modules/eslint/lib/rules/prefer-object-spread.js +0 -298
  1291. package/template/lib/ts/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js +0 -132
  1292. package/template/lib/ts/node_modules/eslint/lib/rules/prefer-reflect.js +0 -127
  1293. package/template/lib/ts/node_modules/eslint/lib/rules/prefer-regex-literals.js +0 -507
  1294. package/template/lib/ts/node_modules/eslint/lib/rules/prefer-rest-params.js +0 -118
  1295. package/template/lib/ts/node_modules/eslint/lib/rules/prefer-spread.js +0 -87
  1296. package/template/lib/ts/node_modules/eslint/lib/rules/prefer-template.js +0 -275
  1297. package/template/lib/ts/node_modules/eslint/lib/rules/quote-props.js +0 -310
  1298. package/template/lib/ts/node_modules/eslint/lib/rules/quotes.js +0 -350
  1299. package/template/lib/ts/node_modules/eslint/lib/rules/radix.js +0 -198
  1300. package/template/lib/ts/node_modules/eslint/lib/rules/require-atomic-updates.js +0 -331
  1301. package/template/lib/ts/node_modules/eslint/lib/rules/require-await.js +0 -113
  1302. package/template/lib/ts/node_modules/eslint/lib/rules/require-jsdoc.js +0 -122
  1303. package/template/lib/ts/node_modules/eslint/lib/rules/require-unicode-regexp.js +0 -129
  1304. package/template/lib/ts/node_modules/eslint/lib/rules/require-yield.js +0 -77
  1305. package/template/lib/ts/node_modules/eslint/lib/rules/rest-spread-spacing.js +0 -123
  1306. package/template/lib/ts/node_modules/eslint/lib/rules/semi-spacing.js +0 -248
  1307. package/template/lib/ts/node_modules/eslint/lib/rules/semi-style.js +0 -158
  1308. package/template/lib/ts/node_modules/eslint/lib/rules/semi.js +0 -438
  1309. package/template/lib/ts/node_modules/eslint/lib/rules/sort-imports.js +0 -241
  1310. package/template/lib/ts/node_modules/eslint/lib/rules/sort-keys.js +0 -230
  1311. package/template/lib/ts/node_modules/eslint/lib/rules/sort-vars.js +0 -104
  1312. package/template/lib/ts/node_modules/eslint/lib/rules/space-before-blocks.js +0 -204
  1313. package/template/lib/ts/node_modules/eslint/lib/rules/space-before-function-paren.js +0 -167
  1314. package/template/lib/ts/node_modules/eslint/lib/rules/space-in-parens.js +0 -285
  1315. package/template/lib/ts/node_modules/eslint/lib/rules/space-infix-ops.js +0 -198
  1316. package/template/lib/ts/node_modules/eslint/lib/rules/space-unary-ops.js +0 -324
  1317. package/template/lib/ts/node_modules/eslint/lib/rules/spaced-comment.js +0 -385
  1318. package/template/lib/ts/node_modules/eslint/lib/rules/strict.js +0 -277
  1319. package/template/lib/ts/node_modules/eslint/lib/rules/switch-colon-spacing.js +0 -132
  1320. package/template/lib/ts/node_modules/eslint/lib/rules/symbol-description.js +0 -73
  1321. package/template/lib/ts/node_modules/eslint/lib/rules/template-curly-spacing.js +0 -144
  1322. package/template/lib/ts/node_modules/eslint/lib/rules/template-tag-spacing.js +0 -93
  1323. package/template/lib/ts/node_modules/eslint/lib/rules/unicode-bom.js +0 -73
  1324. package/template/lib/ts/node_modules/eslint/lib/rules/use-isnan.js +0 -141
  1325. package/template/lib/ts/node_modules/eslint/lib/rules/utils/ast-utils.js +0 -2282
  1326. package/template/lib/ts/node_modules/eslint/lib/rules/utils/fix-tracker.js +0 -114
  1327. package/template/lib/ts/node_modules/eslint/lib/rules/utils/keywords.js +0 -67
  1328. package/template/lib/ts/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +0 -115
  1329. package/template/lib/ts/node_modules/eslint/lib/rules/utils/patterns/letters.js +0 -36
  1330. package/template/lib/ts/node_modules/eslint/lib/rules/utils/regular-expressions.js +0 -42
  1331. package/template/lib/ts/node_modules/eslint/lib/rules/utils/unicode/index.js +0 -11
  1332. package/template/lib/ts/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js +0 -13
  1333. package/template/lib/ts/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js +0 -13
  1334. package/template/lib/ts/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js +0 -13
  1335. package/template/lib/ts/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js +0 -14
  1336. package/template/lib/ts/node_modules/eslint/lib/rules/valid-jsdoc.js +0 -516
  1337. package/template/lib/ts/node_modules/eslint/lib/rules/valid-typeof.js +0 -127
  1338. package/template/lib/ts/node_modules/eslint/lib/rules/vars-on-top.js +0 -157
  1339. package/template/lib/ts/node_modules/eslint/lib/rules/wrap-iife.js +0 -207
  1340. package/template/lib/ts/node_modules/eslint/lib/rules/wrap-regex.js +0 -61
  1341. package/template/lib/ts/node_modules/eslint/lib/rules/yield-star-spacing.js +0 -130
  1342. package/template/lib/ts/node_modules/eslint/lib/rules/yoda.js +0 -353
  1343. package/template/lib/ts/node_modules/eslint/lib/shared/ajv.js +0 -34
  1344. package/template/lib/ts/node_modules/eslint/lib/shared/ast-utils.js +0 -29
  1345. package/template/lib/ts/node_modules/eslint/lib/shared/config-validator.js +0 -347
  1346. package/template/lib/ts/node_modules/eslint/lib/shared/deprecation-warnings.js +0 -58
  1347. package/template/lib/ts/node_modules/eslint/lib/shared/directives.js +0 -15
  1348. package/template/lib/ts/node_modules/eslint/lib/shared/logging.js +0 -30
  1349. package/template/lib/ts/node_modules/eslint/lib/shared/relative-module-resolver.js +0 -50
  1350. package/template/lib/ts/node_modules/eslint/lib/shared/runtime-info.js +0 -167
  1351. package/template/lib/ts/node_modules/eslint/lib/shared/severity.js +0 -49
  1352. package/template/lib/ts/node_modules/eslint/lib/shared/string-utils.js +0 -60
  1353. package/template/lib/ts/node_modules/eslint/lib/shared/traverser.js +0 -195
  1354. package/template/lib/ts/node_modules/eslint/lib/shared/types.js +0 -216
  1355. package/template/lib/ts/node_modules/eslint/lib/source-code/index.js +0 -5
  1356. package/template/lib/ts/node_modules/eslint/lib/source-code/source-code.js +0 -1055
  1357. package/template/lib/ts/node_modules/eslint/lib/source-code/token-store/backward-token-comment-cursor.js +0 -57
  1358. package/template/lib/ts/node_modules/eslint/lib/source-code/token-store/backward-token-cursor.js +0 -58
  1359. package/template/lib/ts/node_modules/eslint/lib/source-code/token-store/cursor.js +0 -76
  1360. package/template/lib/ts/node_modules/eslint/lib/source-code/token-store/cursors.js +0 -90
  1361. package/template/lib/ts/node_modules/eslint/lib/source-code/token-store/decorative-cursor.js +0 -39
  1362. package/template/lib/ts/node_modules/eslint/lib/source-code/token-store/filter-cursor.js +0 -43
  1363. package/template/lib/ts/node_modules/eslint/lib/source-code/token-store/forward-token-comment-cursor.js +0 -57
  1364. package/template/lib/ts/node_modules/eslint/lib/source-code/token-store/forward-token-cursor.js +0 -63
  1365. package/template/lib/ts/node_modules/eslint/lib/source-code/token-store/index.js +0 -627
  1366. package/template/lib/ts/node_modules/eslint/lib/source-code/token-store/limit-cursor.js +0 -40
  1367. package/template/lib/ts/node_modules/eslint/lib/source-code/token-store/padded-token-cursor.js +0 -38
  1368. package/template/lib/ts/node_modules/eslint/lib/source-code/token-store/skip-cursor.js +0 -42
  1369. package/template/lib/ts/node_modules/eslint/lib/source-code/token-store/utils.js +0 -107
  1370. package/template/lib/ts/node_modules/eslint/lib/unsupported-api.js +0 -30
  1371. package/template/lib/ts/node_modules/eslint/messages/all-files-ignored.js +0 -16
  1372. package/template/lib/ts/node_modules/eslint/messages/eslintrc-incompat.js +0 -98
  1373. package/template/lib/ts/node_modules/eslint/messages/eslintrc-plugins.js +0 -24
  1374. package/template/lib/ts/node_modules/eslint/messages/extend-config-missing.js +0 -13
  1375. package/template/lib/ts/node_modules/eslint/messages/failed-to-read-json.js +0 -11
  1376. package/template/lib/ts/node_modules/eslint/messages/file-not-found.js +0 -10
  1377. package/template/lib/ts/node_modules/eslint/messages/invalid-rule-options.js +0 -17
  1378. package/template/lib/ts/node_modules/eslint/messages/invalid-rule-severity.js +0 -13
  1379. package/template/lib/ts/node_modules/eslint/messages/no-config-found.js +0 -15
  1380. package/template/lib/ts/node_modules/eslint/messages/plugin-conflict.js +0 -22
  1381. package/template/lib/ts/node_modules/eslint/messages/plugin-invalid.js +0 -16
  1382. package/template/lib/ts/node_modules/eslint/messages/plugin-missing.js +0 -19
  1383. package/template/lib/ts/node_modules/eslint/messages/print-config-with-directory-path.js +0 -8
  1384. package/template/lib/ts/node_modules/eslint/messages/shared.js +0 -18
  1385. package/template/lib/ts/node_modules/eslint/messages/whitespace-found.js +0 -11
  1386. package/template/lib/ts/node_modules/eslint/node_modules/.bin/eslint +0 -17
  1387. package/template/lib/ts/node_modules/eslint/node_modules/.bin/eslint.CMD +0 -12
  1388. package/template/lib/ts/node_modules/eslint/node_modules/.bin/eslint.ps1 +0 -41
  1389. package/template/lib/ts/node_modules/eslint/node_modules/.bin/js-yaml +0 -17
  1390. package/template/lib/ts/node_modules/eslint/node_modules/.bin/js-yaml.CMD +0 -12
  1391. package/template/lib/ts/node_modules/eslint/node_modules/.bin/js-yaml.ps1 +0 -41
  1392. package/template/lib/ts/node_modules/eslint/package.json +0 -179
  1393. package/template/lib/ts/node_modules/eslint-import-resolver-typescript/LICENSE +0 -5
  1394. package/template/lib/ts/node_modules/eslint-import-resolver-typescript/README.md +0 -232
  1395. package/template/lib/ts/node_modules/eslint-import-resolver-typescript/lib/index.cjs +0 -278
  1396. package/template/lib/ts/node_modules/eslint-import-resolver-typescript/lib/index.d.ts +0 -20
  1397. package/template/lib/ts/node_modules/eslint-import-resolver-typescript/lib/index.es2020.mjs +0 -251
  1398. package/template/lib/ts/node_modules/eslint-import-resolver-typescript/lib/index.js +0 -252
  1399. package/template/lib/ts/node_modules/eslint-import-resolver-typescript/lib/index.js.map +0 -1
  1400. package/template/lib/ts/node_modules/eslint-import-resolver-typescript/node_modules/.bin/eslint +0 -17
  1401. package/template/lib/ts/node_modules/eslint-import-resolver-typescript/node_modules/.bin/eslint.CMD +0 -12
  1402. package/template/lib/ts/node_modules/eslint-import-resolver-typescript/node_modules/.bin/eslint.ps1 +0 -41
  1403. package/template/lib/ts/node_modules/eslint-import-resolver-typescript/package.json +0 -108
  1404. package/template/lib/ts/node_modules/eslint-import-resolver-typescript/shim.d.ts +0 -4
  1405. package/template/lib/ts/node_modules/eslint-plugin-import/CHANGELOG.md +0 -1925
  1406. package/template/lib/ts/node_modules/eslint-plugin-import/CONTRIBUTING.md +0 -84
  1407. package/template/lib/ts/node_modules/eslint-plugin-import/LICENSE +0 -22
  1408. package/template/lib/ts/node_modules/eslint-plugin-import/README.md +0 -500
  1409. package/template/lib/ts/node_modules/eslint-plugin-import/RELEASE.md +0 -54
  1410. package/template/lib/ts/node_modules/eslint-plugin-import/SECURITY.md +0 -11
  1411. package/template/lib/ts/node_modules/eslint-plugin-import/config/electron.js +0 -8
  1412. package/template/lib/ts/node_modules/eslint-plugin-import/config/errors.js +0 -14
  1413. package/template/lib/ts/node_modules/eslint-plugin-import/config/react-native.js +0 -13
  1414. package/template/lib/ts/node_modules/eslint-plugin-import/config/react.js +0 -18
  1415. package/template/lib/ts/node_modules/eslint-plugin-import/config/recommended.js +0 -28
  1416. package/template/lib/ts/node_modules/eslint-plugin-import/config/stage-0.js +0 -12
  1417. package/template/lib/ts/node_modules/eslint-plugin-import/config/typescript.js +0 -34
  1418. package/template/lib/ts/node_modules/eslint-plugin-import/config/warnings.js +0 -12
  1419. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/consistent-type-specifier-style.md +0 -91
  1420. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/default.md +0 -72
  1421. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/dynamic-import-chunkname.md +0 -92
  1422. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/export.md +0 -37
  1423. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/exports-last.md +0 -51
  1424. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/extensions.md +0 -174
  1425. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/first.md +0 -75
  1426. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/group-exports.md +0 -118
  1427. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/imports-first.md +0 -9
  1428. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/max-dependencies.md +0 -70
  1429. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/named.md +0 -102
  1430. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/namespace.md +0 -106
  1431. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/newline-after-import.md +0 -167
  1432. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-absolute-path.md +0 -54
  1433. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-amd.md +0 -37
  1434. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-anonymous-default-export.md +0 -83
  1435. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-commonjs.md +0 -96
  1436. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-cycle.md +0 -111
  1437. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-default-export.md +0 -65
  1438. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-deprecated.md +0 -62
  1439. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-duplicates.md +0 -109
  1440. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-dynamic-require.md +0 -25
  1441. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-empty-named-blocks.md +0 -49
  1442. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-extraneous-dependencies.md +0 -139
  1443. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-import-module-exports.md +0 -81
  1444. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-internal-modules.md +0 -136
  1445. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-mutable-exports.md +0 -54
  1446. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-named-as-default-member.md +0 -52
  1447. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-named-as-default.md +0 -53
  1448. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-named-default.md +0 -36
  1449. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-named-export.md +0 -79
  1450. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-namespace.md +0 -44
  1451. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-nodejs-modules.md +0 -42
  1452. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-relative-packages.md +0 -70
  1453. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-relative-parent-imports.md +0 -123
  1454. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-restricted-paths.md +0 -198
  1455. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-self-import.md +0 -32
  1456. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-unassigned-import.md +0 -60
  1457. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-unresolved.md +0 -110
  1458. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-unused-modules.md +0 -125
  1459. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-useless-path-segments.md +0 -85
  1460. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/no-webpack-loader-syntax.md +0 -39
  1461. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/order.md +0 -365
  1462. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/prefer-default-export.md +0 -185
  1463. package/template/lib/ts/node_modules/eslint-plugin-import/docs/rules/unambiguous.md +0 -57
  1464. package/template/lib/ts/node_modules/eslint-plugin-import/lib/ExportMap.js +0 -856
  1465. package/template/lib/ts/node_modules/eslint-plugin-import/lib/core/importType.js +0 -129
  1466. package/template/lib/ts/node_modules/eslint-plugin-import/lib/core/packagePath.js +0 -22
  1467. package/template/lib/ts/node_modules/eslint-plugin-import/lib/core/staticRequire.js +0 -11
  1468. package/template/lib/ts/node_modules/eslint-plugin-import/lib/docsUrl.js +0 -8
  1469. package/template/lib/ts/node_modules/eslint-plugin-import/lib/importDeclaration.js +0 -5
  1470. package/template/lib/ts/node_modules/eslint-plugin-import/lib/index.js +0 -71
  1471. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/consistent-type-specifier-style.js +0 -221
  1472. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/default.js +0 -40
  1473. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/dynamic-import-chunkname.js +0 -120
  1474. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/export.js +0 -250
  1475. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/exports-last.js +0 -40
  1476. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/extensions.js +0 -193
  1477. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/first.js +0 -144
  1478. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/group-exports.js +0 -155
  1479. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/imports-first.js +0 -16
  1480. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/max-dependencies.js +0 -60
  1481. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/named.js +0 -143
  1482. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/namespace.js +0 -218
  1483. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/newline-after-import.js +0 -237
  1484. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-absolute-path.js +0 -40
  1485. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-amd.js +0 -47
  1486. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-anonymous-default-export.js +0 -103
  1487. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-commonjs.js +0 -141
  1488. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-cycle.js +0 -158
  1489. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-default-export.js +0 -43
  1490. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-deprecated.js +0 -138
  1491. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-duplicates.js +0 -354
  1492. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-dynamic-require.js +0 -77
  1493. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-empty-named-blocks.js +0 -105
  1494. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-extraneous-dependencies.js +0 -301
  1495. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-import-module-exports.js +0 -85
  1496. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-internal-modules.js +0 -144
  1497. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-mutable-exports.js +0 -59
  1498. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-named-as-default-member.js +0 -96
  1499. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-named-as-default.js +0 -45
  1500. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-named-default.js +0 -31
  1501. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-named-export.js +0 -39
  1502. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-namespace.js +0 -175
  1503. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-nodejs-modules.js +0 -44
  1504. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-relative-packages.js +0 -71
  1505. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-relative-parent-imports.js +0 -48
  1506. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-restricted-paths.js +0 -245
  1507. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-self-import.js +0 -39
  1508. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-unassigned-import.js +0 -79
  1509. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-unresolved.js +0 -60
  1510. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js +0 -945
  1511. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-useless-path-segments.js +0 -147
  1512. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js +0 -26
  1513. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/order.js +0 -785
  1514. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/prefer-default-export.js +0 -116
  1515. package/template/lib/ts/node_modules/eslint-plugin-import/lib/rules/unambiguous.js +0 -38
  1516. package/template/lib/ts/node_modules/eslint-plugin-import/memo-parser/LICENSE +0 -22
  1517. package/template/lib/ts/node_modules/eslint-plugin-import/memo-parser/README.md +0 -21
  1518. package/template/lib/ts/node_modules/eslint-plugin-import/memo-parser/index.js +0 -41
  1519. package/template/lib/ts/node_modules/eslint-plugin-import/node_modules/.bin/eslint +0 -17
  1520. package/template/lib/ts/node_modules/eslint-plugin-import/node_modules/.bin/eslint.CMD +0 -12
  1521. package/template/lib/ts/node_modules/eslint-plugin-import/node_modules/.bin/eslint.ps1 +0 -41
  1522. package/template/lib/ts/node_modules/eslint-plugin-import/node_modules/.bin/semver +0 -17
  1523. package/template/lib/ts/node_modules/eslint-plugin-import/node_modules/.bin/semver.CMD +0 -12
  1524. package/template/lib/ts/node_modules/eslint-plugin-import/node_modules/.bin/semver.ps1 +0 -41
  1525. package/template/lib/ts/node_modules/eslint-plugin-import/package.json +0 -124
  1526. package/template/lib/ts/node_modules/eslint-plugin-prettier/LICENSE.md +0 -24
  1527. package/template/lib/ts/node_modules/eslint-plugin-prettier/README.md +0 -202
  1528. package/template/lib/ts/node_modules/eslint-plugin-prettier/eslint-plugin-prettier.d.ts +0 -5
  1529. package/template/lib/ts/node_modules/eslint-plugin-prettier/eslint-plugin-prettier.js +0 -254
  1530. package/template/lib/ts/node_modules/eslint-plugin-prettier/node_modules/.bin/eslint +0 -17
  1531. package/template/lib/ts/node_modules/eslint-plugin-prettier/node_modules/.bin/eslint-config-prettier +0 -17
  1532. package/template/lib/ts/node_modules/eslint-plugin-prettier/node_modules/.bin/eslint-config-prettier.CMD +0 -12
  1533. package/template/lib/ts/node_modules/eslint-plugin-prettier/node_modules/.bin/eslint-config-prettier.ps1 +0 -41
  1534. package/template/lib/ts/node_modules/eslint-plugin-prettier/node_modules/.bin/eslint.CMD +0 -12
  1535. package/template/lib/ts/node_modules/eslint-plugin-prettier/node_modules/.bin/eslint.ps1 +0 -41
  1536. package/template/lib/ts/node_modules/eslint-plugin-prettier/node_modules/.bin/prettier +0 -17
  1537. package/template/lib/ts/node_modules/eslint-plugin-prettier/node_modules/.bin/prettier.CMD +0 -12
  1538. package/template/lib/ts/node_modules/eslint-plugin-prettier/node_modules/.bin/prettier.ps1 +0 -41
  1539. package/template/lib/ts/node_modules/eslint-plugin-prettier/package.json +0 -101
  1540. package/template/lib/ts/node_modules/eslint-plugin-prettier/recommended.d.ts +0 -5
  1541. package/template/lib/ts/node_modules/eslint-plugin-prettier/recommended.js +0 -17
  1542. package/template/lib/ts/node_modules/eslint-plugin-prettier/worker.js +0 -181
  1543. package/template/lib/ts/node_modules/prettier/LICENSE +0 -4857
  1544. package/template/lib/ts/node_modules/prettier/README.md +0 -109
  1545. package/template/lib/ts/node_modules/prettier/bin/prettier.cjs +0 -68
  1546. package/template/lib/ts/node_modules/prettier/doc.d.ts +0 -243
  1547. package/template/lib/ts/node_modules/prettier/doc.js +0 -1328
  1548. package/template/lib/ts/node_modules/prettier/doc.mjs +0 -1300
  1549. package/template/lib/ts/node_modules/prettier/index.cjs +0 -648
  1550. package/template/lib/ts/node_modules/prettier/index.d.ts +0 -940
  1551. package/template/lib/ts/node_modules/prettier/index.mjs +0 -24255
  1552. package/template/lib/ts/node_modules/prettier/internal/cli.mjs +0 -7089
  1553. package/template/lib/ts/node_modules/prettier/node_modules/.bin/prettier +0 -17
  1554. package/template/lib/ts/node_modules/prettier/node_modules/.bin/prettier.CMD +0 -12
  1555. package/template/lib/ts/node_modules/prettier/node_modules/.bin/prettier.ps1 +0 -41
  1556. package/template/lib/ts/node_modules/prettier/package.json +0 -198
  1557. package/template/lib/ts/node_modules/prettier/plugins/acorn.d.ts +0 -6
  1558. package/template/lib/ts/node_modules/prettier/plugins/acorn.js +0 -13
  1559. package/template/lib/ts/node_modules/prettier/plugins/acorn.mjs +0 -13
  1560. package/template/lib/ts/node_modules/prettier/plugins/angular.d.ts +0 -8
  1561. package/template/lib/ts/node_modules/prettier/plugins/angular.js +0 -1
  1562. package/template/lib/ts/node_modules/prettier/plugins/angular.mjs +0 -1
  1563. package/template/lib/ts/node_modules/prettier/plugins/babel.d.ts +0 -18
  1564. package/template/lib/ts/node_modules/prettier/plugins/babel.js +0 -16
  1565. package/template/lib/ts/node_modules/prettier/plugins/babel.mjs +0 -16
  1566. package/template/lib/ts/node_modules/prettier/plugins/estree.d.ts +0 -1
  1567. package/template/lib/ts/node_modules/prettier/plugins/estree.js +0 -36
  1568. package/template/lib/ts/node_modules/prettier/plugins/estree.mjs +0 -36
  1569. package/template/lib/ts/node_modules/prettier/plugins/flow.d.ts +0 -5
  1570. package/template/lib/ts/node_modules/prettier/plugins/flow.js +0 -21
  1571. package/template/lib/ts/node_modules/prettier/plugins/flow.mjs +0 -21
  1572. package/template/lib/ts/node_modules/prettier/plugins/glimmer.d.ts +0 -5
  1573. package/template/lib/ts/node_modules/prettier/plugins/glimmer.js +0 -30
  1574. package/template/lib/ts/node_modules/prettier/plugins/glimmer.mjs +0 -30
  1575. package/template/lib/ts/node_modules/prettier/plugins/graphql.d.ts +0 -5
  1576. package/template/lib/ts/node_modules/prettier/plugins/graphql.js +0 -29
  1577. package/template/lib/ts/node_modules/prettier/plugins/graphql.mjs +0 -29
  1578. package/template/lib/ts/node_modules/prettier/plugins/html.d.ts +0 -8
  1579. package/template/lib/ts/node_modules/prettier/plugins/html.js +0 -19
  1580. package/template/lib/ts/node_modules/prettier/plugins/html.mjs +0 -19
  1581. package/template/lib/ts/node_modules/prettier/plugins/markdown.d.ts +0 -7
  1582. package/template/lib/ts/node_modules/prettier/plugins/markdown.js +0 -59
  1583. package/template/lib/ts/node_modules/prettier/plugins/markdown.mjs +0 -59
  1584. package/template/lib/ts/node_modules/prettier/plugins/meriyah.d.ts +0 -5
  1585. package/template/lib/ts/node_modules/prettier/plugins/meriyah.js +0 -5
  1586. package/template/lib/ts/node_modules/prettier/plugins/meriyah.mjs +0 -5
  1587. package/template/lib/ts/node_modules/prettier/plugins/postcss.d.ts +0 -7
  1588. package/template/lib/ts/node_modules/prettier/plugins/postcss.js +0 -49
  1589. package/template/lib/ts/node_modules/prettier/plugins/postcss.mjs +0 -49
  1590. package/template/lib/ts/node_modules/prettier/plugins/typescript.d.ts +0 -5
  1591. package/template/lib/ts/node_modules/prettier/plugins/typescript.js +0 -25
  1592. package/template/lib/ts/node_modules/prettier/plugins/typescript.mjs +0 -25
  1593. package/template/lib/ts/node_modules/prettier/plugins/yaml.d.ts +0 -5
  1594. package/template/lib/ts/node_modules/prettier/plugins/yaml.js +0 -161
  1595. package/template/lib/ts/node_modules/prettier/plugins/yaml.mjs +0 -161
  1596. package/template/lib/ts/node_modules/prettier/standalone.d.ts +0 -33
  1597. package/template/lib/ts/node_modules/prettier/standalone.js +0 -34
  1598. package/template/lib/ts/node_modules/prettier/standalone.mjs +0 -34
  1599. package/template/lib/ts/node_modules/stylelint-config-standard-scss/LICENSE +0 -21
  1600. package/template/lib/ts/node_modules/stylelint-config-standard-scss/README.md +0 -50
  1601. package/template/lib/ts/node_modules/stylelint-config-standard-scss/index.js +0 -67
  1602. package/template/lib/ts/node_modules/stylelint-config-standard-scss/node_modules/.bin/stylelint +0 -17
  1603. package/template/lib/ts/node_modules/stylelint-config-standard-scss/node_modules/.bin/stylelint.CMD +0 -12
  1604. package/template/lib/ts/node_modules/stylelint-config-standard-scss/node_modules/.bin/stylelint.ps1 +0 -41
  1605. package/template/lib/ts/node_modules/stylelint-config-standard-scss/package.json +0 -58
  1606. /package/template/web-app/{react → react-rspack}/.editorconfig +0 -0
  1607. /package/template/web-app/{react → react-rspack}/.eslintignore +0 -0
  1608. /package/template/web-app/{react → react-rspack}/.gitignore +0 -0
  1609. /package/template/web-app/{react → react-rspack}/.husky/commit-msg +0 -0
  1610. /package/template/web-app/{react → react-rspack}/.husky/pre-commit +0 -0
  1611. /package/template/web-app/{react → react-rspack}/.prettierignore +0 -0
  1612. /package/template/web-app/{react → react-rspack}/.prettierrc +0 -0
  1613. /package/template/web-app/{react → react-rspack}/.stylelintignore +0 -0
  1614. /package/template/web-app/{react → react-rspack}/.stylelintrc +0 -0
  1615. /package/template/web-app/{react → react-rspack}/.vscode/extensions.json +0 -0
  1616. /package/template/web-app/{react → react-rspack}/.vscode/settings.json +0 -0
  1617. /package/template/web-app/{react → react-rspack}/commitlint.config.cjs +0 -0
  1618. /package/template/web-app/{react → react-rspack}/domain/app/app.model.ts +0 -0
  1619. /package/template/web-app/{react → react-rspack}/domain/app/app.styled.ts +0 -0
  1620. /package/template/web-app/{react → react-rspack}/domain/app/components/app-context.tsx +0 -0
  1621. /package/template/web-app/{react → react-rspack}/domain/app/components/app.tsx +0 -0
  1622. /package/template/web-app/{react → react-rspack}/domain/app/components/index.ts +0 -0
  1623. /package/template/web-app/{react → react-rspack}/domain/app/index.ts +0 -0
  1624. /package/template/web-app/{react → react-rspack}/domain/router/home/ids.ts +0 -0
  1625. /package/template/web-app/{react → react-rspack}/domain/router/home/index.ts +0 -0
  1626. /package/template/web-app/{react → react-rspack}/domain/router/home/routes.tsx +0 -0
  1627. /package/template/web-app/{react → react-rspack}/domain/router/ids.ts +0 -0
  1628. /package/template/web-app/{react → react-rspack}/domain/router/index.ts +0 -0
  1629. /package/template/web-app/{react → react-rspack}/domain/router/router.types.ts +0 -0
  1630. /package/template/web-app/{react → react-rspack}/main.tsx +0 -0
  1631. /package/template/web-app/{react → react-rspack}/pages/home/home.styled.ts +0 -0
  1632. /package/template/web-app/{react → react-rspack}/pages/home/home.tsx +0 -0
  1633. /package/template/web-app/{react → react-rspack}/pages/home/index.ts +0 -0
  1634. /package/template/web-app/{react → react-rspack}/pages/index.tsx +0 -0
  1635. /package/template/web-app/{react → react-rspack}/pages/not-found.tsx +0 -0
  1636. /package/template/web-app/{react → react-rspack}/postcss.config.cjs +0 -0
  1637. /package/template/web-app/{react → react-rspack}/scripts/createChunks.ts +0 -0
  1638. /package/template/web-app/{react → react-rspack}/scripts/index.ts +0 -0
  1639. /package/template/web-app/{react → react-rspack}/shared/assets/react.svg +0 -0
  1640. /package/template/web-app/{react → react-rspack}/shared/components/index.ts +0 -0
  1641. /package/template/web-app/{react → react-rspack}/shared/constant/index.ts +0 -0
  1642. /package/template/web-app/{react → react-rspack}/shared/hooks/defineRouter/defineRouter.types.ts +0 -0
  1643. /package/template/web-app/{react → react-rspack}/shared/hooks/defineRouter/deineRouter.tsx +0 -0
  1644. /package/template/web-app/{react → react-rspack}/shared/hooks/defineRouter/index.ts +0 -0
  1645. /package/template/web-app/{react → react-rspack}/shared/hooks/index.ts +0 -0
  1646. /package/template/web-app/{react → react-rspack}/shared/hooks/useInterval.ts +0 -0
  1647. /package/template/web-app/{react → react-rspack}/shared/hooks/useLoadingAction.ts +0 -0
  1648. /package/template/web-app/{react → react-rspack}/shared/hooks/useLowPriorityState.ts +0 -0
  1649. /package/template/web-app/{react → react-rspack}/shared/hooks/useSyncState.ts +0 -0
  1650. /package/template/web-app/{react → react-rspack}/shared/hooks/useVisible.ts +0 -0
  1651. /package/template/web-app/{react → react-rspack}/shared/service/api.ts +0 -0
  1652. /package/template/web-app/{react → react-rspack}/shared/service/index.ts +0 -0
  1653. /package/template/web-app/{react → react-rspack}/shared/theme/index.ts +0 -0
  1654. /package/template/web-app/{react → react-rspack}/shared/theme/theme.styled.ts +0 -0
  1655. /package/template/web-app/{react → react-rspack}/shared/tools/componentInstance.tsx +0 -0
  1656. /package/template/web-app/{react → react-rspack}/shared/tools/index.ts +0 -0
  1657. /package/template/web-app/{react → react-rspack}/shared/types/index.ts +0 -0
  1658. /package/template/web-app/{react → react-rspack}/shared/types/utils.ts +0 -0
  1659. /package/template/web-app/{react → react-rspack}/tsconfig.json +0 -0
  1660. /package/template/web-app/{react → react-vite}/.env +0 -0
  1661. /package/template/web-app/{react → react-vite}/.env.development +0 -0
  1662. /package/template/web-app/{react → react-vite}/.eslintrc +0 -0
  1663. /package/template/web-app/{react → react-vite}/README.md +0 -0
  1664. /package/template/web-app/{react → react-vite}/domain/router/router.tsx +0 -0
  1665. /package/template/web-app/{react → react-vite}/index.html +0 -0
  1666. /package/template/web-app/{react → react-vite}/mockUtils.ts +0 -0
  1667. /package/template/web-app/{react → react-vite}/package.json +0 -0
  1668. /package/template/web-app/{react → react-vite}/pages/home/home.mock.ts +0 -0
  1669. /package/template/web-app/{react → react-vite}/public/vite.svg +0 -0
  1670. /package/template/web-app/{react → react-vite}/shared/service/home.ts +0 -0
  1671. /package/template/web-app/{react → react-vite}/shared/service/request.ts +0 -0
  1672. /package/template/web-app/{react → react-vite}/tsconfig.node.json +0 -0
  1673. /package/template/web-app/{react → react-vite}/vite-env.d.ts +0 -0
  1674. /package/template/web-app/{react → react-vite}/vite.config.ts +0 -0
@@ -1,2282 +0,0 @@
1
- /**
2
- * @fileoverview Common utils for AST.
3
- * @author Gyandeep Singh
4
- */
5
-
6
- "use strict";
7
-
8
- //------------------------------------------------------------------------------
9
- // Requirements
10
- //------------------------------------------------------------------------------
11
-
12
- const { KEYS: eslintVisitorKeys } = require("eslint-visitor-keys");
13
- const esutils = require("esutils");
14
- const espree = require("espree");
15
- const escapeRegExp = require("escape-string-regexp");
16
- const {
17
- breakableTypePattern,
18
- createGlobalLinebreakMatcher,
19
- lineBreakPattern,
20
- shebangPattern
21
- } = require("../../shared/ast-utils");
22
-
23
- //------------------------------------------------------------------------------
24
- // Helpers
25
- //------------------------------------------------------------------------------
26
-
27
- const anyFunctionPattern = /^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u;
28
- const anyLoopPattern = /^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u;
29
- const arrayMethodWithThisArgPattern = /^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|some)$/u;
30
- const arrayOrTypedArrayPattern = /Array$/u;
31
- const bindOrCallOrApplyPattern = /^(?:bind|call|apply)$/u;
32
- const thisTagPattern = /^[\s*]*@this/mu;
33
-
34
-
35
- const COMMENTS_IGNORE_PATTERN = /^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u;
36
- const ESLINT_DIRECTIVE_PATTERN = /^(?:eslint[- ]|(?:globals?|exported) )/u;
37
- const LINEBREAKS = new Set(["\r\n", "\r", "\n", "\u2028", "\u2029"]);
38
-
39
- // A set of node types that can contain a list of statements
40
- const STATEMENT_LIST_PARENTS = new Set(["Program", "BlockStatement", "StaticBlock", "SwitchCase"]);
41
-
42
- const DECIMAL_INTEGER_PATTERN = /^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u;
43
-
44
- // Tests the presence of at least one LegacyOctalEscapeSequence or NonOctalDecimalEscapeSequence in a raw string
45
- const OCTAL_OR_NON_OCTAL_DECIMAL_ESCAPE_PATTERN = /^(?:[^\\]|\\.)*\\(?:[1-9]|0[0-9])/su;
46
-
47
- const LOGICAL_ASSIGNMENT_OPERATORS = new Set(["&&=", "||=", "??="]);
48
-
49
- /**
50
- * Checks reference if is non initializer and writable.
51
- * @param {Reference} reference A reference to check.
52
- * @param {int} index The index of the reference in the references.
53
- * @param {Reference[]} references The array that the reference belongs to.
54
- * @returns {boolean} Success/Failure
55
- * @private
56
- */
57
- function isModifyingReference(reference, index, references) {
58
- const identifier = reference.identifier;
59
-
60
- /*
61
- * Destructuring assignments can have multiple default value, so
62
- * possibly there are multiple writeable references for the same
63
- * identifier.
64
- */
65
- const modifyingDifferentIdentifier = index === 0 ||
66
- references[index - 1].identifier !== identifier;
67
-
68
- return (identifier &&
69
- reference.init === false &&
70
- reference.isWrite() &&
71
- modifyingDifferentIdentifier
72
- );
73
- }
74
-
75
- /**
76
- * Checks whether the given string starts with uppercase or not.
77
- * @param {string} s The string to check.
78
- * @returns {boolean} `true` if the string starts with uppercase.
79
- */
80
- function startsWithUpperCase(s) {
81
- return s[0] !== s[0].toLocaleLowerCase();
82
- }
83
-
84
- /**
85
- * Checks whether or not a node is a constructor.
86
- * @param {ASTNode} node A function node to check.
87
- * @returns {boolean} Whether or not a node is a constructor.
88
- */
89
- function isES5Constructor(node) {
90
- return (node.id && startsWithUpperCase(node.id.name));
91
- }
92
-
93
- /**
94
- * Finds a function node from ancestors of a node.
95
- * @param {ASTNode} node A start node to find.
96
- * @returns {Node|null} A found function node.
97
- */
98
- function getUpperFunction(node) {
99
- for (let currentNode = node; currentNode; currentNode = currentNode.parent) {
100
- if (anyFunctionPattern.test(currentNode.type)) {
101
- return currentNode;
102
- }
103
- }
104
- return null;
105
- }
106
-
107
- /**
108
- * Checks whether a given node is a function node or not.
109
- * The following types are function nodes:
110
- *
111
- * - ArrowFunctionExpression
112
- * - FunctionDeclaration
113
- * - FunctionExpression
114
- * @param {ASTNode|null} node A node to check.
115
- * @returns {boolean} `true` if the node is a function node.
116
- */
117
- function isFunction(node) {
118
- return Boolean(node && anyFunctionPattern.test(node.type));
119
- }
120
-
121
- /**
122
- * Checks whether a given node is a loop node or not.
123
- * The following types are loop nodes:
124
- *
125
- * - DoWhileStatement
126
- * - ForInStatement
127
- * - ForOfStatement
128
- * - ForStatement
129
- * - WhileStatement
130
- * @param {ASTNode|null} node A node to check.
131
- * @returns {boolean} `true` if the node is a loop node.
132
- */
133
- function isLoop(node) {
134
- return Boolean(node && anyLoopPattern.test(node.type));
135
- }
136
-
137
- /**
138
- * Checks whether the given node is in a loop or not.
139
- * @param {ASTNode} node The node to check.
140
- * @returns {boolean} `true` if the node is in a loop.
141
- */
142
- function isInLoop(node) {
143
- for (let currentNode = node; currentNode && !isFunction(currentNode); currentNode = currentNode.parent) {
144
- if (isLoop(currentNode)) {
145
- return true;
146
- }
147
- }
148
-
149
- return false;
150
- }
151
-
152
- /**
153
- * Determines whether the given node is a `null` literal.
154
- * @param {ASTNode} node The node to check
155
- * @returns {boolean} `true` if the node is a `null` literal
156
- */
157
- function isNullLiteral(node) {
158
-
159
- /*
160
- * Checking `node.value === null` does not guarantee that a literal is a null literal.
161
- * When parsing values that cannot be represented in the current environment (e.g. unicode
162
- * regexes in Node 4), `node.value` is set to `null` because it wouldn't be possible to
163
- * set `node.value` to a unicode regex. To make sure a literal is actually `null`, check
164
- * `node.regex` instead. Also see: https://github.com/eslint/eslint/issues/8020
165
- */
166
- return node.type === "Literal" && node.value === null && !node.regex && !node.bigint;
167
- }
168
-
169
- /**
170
- * Checks whether or not a node is `null` or `undefined`.
171
- * @param {ASTNode} node A node to check.
172
- * @returns {boolean} Whether or not the node is a `null` or `undefined`.
173
- * @public
174
- */
175
- function isNullOrUndefined(node) {
176
- return (
177
- isNullLiteral(node) ||
178
- (node.type === "Identifier" && node.name === "undefined") ||
179
- (node.type === "UnaryExpression" && node.operator === "void")
180
- );
181
- }
182
-
183
- /**
184
- * Checks whether or not a node is callee.
185
- * @param {ASTNode} node A node to check.
186
- * @returns {boolean} Whether or not the node is callee.
187
- */
188
- function isCallee(node) {
189
- return node.parent.type === "CallExpression" && node.parent.callee === node;
190
- }
191
-
192
- /**
193
- * Returns the result of the string conversion applied to the evaluated value of the given expression node,
194
- * if it can be determined statically.
195
- *
196
- * This function returns a `string` value for all `Literal` nodes and simple `TemplateLiteral` nodes only.
197
- * In all other cases, this function returns `null`.
198
- * @param {ASTNode} node Expression node.
199
- * @returns {string|null} String value if it can be determined. Otherwise, `null`.
200
- */
201
- function getStaticStringValue(node) {
202
- switch (node.type) {
203
- case "Literal":
204
- if (node.value === null) {
205
- if (isNullLiteral(node)) {
206
- return String(node.value); // "null"
207
- }
208
- if (node.regex) {
209
- return `/${node.regex.pattern}/${node.regex.flags}`;
210
- }
211
- if (node.bigint) {
212
- return node.bigint;
213
- }
214
-
215
- // Otherwise, this is an unknown literal. The function will return null.
216
-
217
- } else {
218
- return String(node.value);
219
- }
220
- break;
221
- case "TemplateLiteral":
222
- if (node.expressions.length === 0 && node.quasis.length === 1) {
223
- return node.quasis[0].value.cooked;
224
- }
225
- break;
226
-
227
- // no default
228
- }
229
-
230
- return null;
231
- }
232
-
233
- /**
234
- * Gets the property name of a given node.
235
- * The node can be a MemberExpression, a Property, or a MethodDefinition.
236
- *
237
- * If the name is dynamic, this returns `null`.
238
- *
239
- * For examples:
240
- *
241
- * a.b // => "b"
242
- * a["b"] // => "b"
243
- * a['b'] // => "b"
244
- * a[`b`] // => "b"
245
- * a[100] // => "100"
246
- * a[b] // => null
247
- * a["a" + "b"] // => null
248
- * a[tag`b`] // => null
249
- * a[`${b}`] // => null
250
- *
251
- * let a = {b: 1} // => "b"
252
- * let a = {["b"]: 1} // => "b"
253
- * let a = {['b']: 1} // => "b"
254
- * let a = {[`b`]: 1} // => "b"
255
- * let a = {[100]: 1} // => "100"
256
- * let a = {[b]: 1} // => null
257
- * let a = {["a" + "b"]: 1} // => null
258
- * let a = {[tag`b`]: 1} // => null
259
- * let a = {[`${b}`]: 1} // => null
260
- * @param {ASTNode} node The node to get.
261
- * @returns {string|null} The property name if static. Otherwise, null.
262
- */
263
- function getStaticPropertyName(node) {
264
- let prop;
265
-
266
- switch (node && node.type) {
267
- case "ChainExpression":
268
- return getStaticPropertyName(node.expression);
269
-
270
- case "Property":
271
- case "PropertyDefinition":
272
- case "MethodDefinition":
273
- prop = node.key;
274
- break;
275
-
276
- case "MemberExpression":
277
- prop = node.property;
278
- break;
279
-
280
- // no default
281
- }
282
-
283
- if (prop) {
284
- if (prop.type === "Identifier" && !node.computed) {
285
- return prop.name;
286
- }
287
-
288
- return getStaticStringValue(prop);
289
- }
290
-
291
- return null;
292
- }
293
-
294
- /**
295
- * Retrieve `ChainExpression#expression` value if the given node a `ChainExpression` node. Otherwise, pass through it.
296
- * @param {ASTNode} node The node to address.
297
- * @returns {ASTNode} The `ChainExpression#expression` value if the node is a `ChainExpression` node. Otherwise, the node.
298
- */
299
- function skipChainExpression(node) {
300
- return node && node.type === "ChainExpression" ? node.expression : node;
301
- }
302
-
303
- /**
304
- * Check if the `actual` is an expected value.
305
- * @param {string} actual The string value to check.
306
- * @param {string | RegExp} expected The expected string value or pattern.
307
- * @returns {boolean} `true` if the `actual` is an expected value.
308
- */
309
- function checkText(actual, expected) {
310
- return typeof expected === "string"
311
- ? actual === expected
312
- : expected.test(actual);
313
- }
314
-
315
- /**
316
- * Check if a given node is an Identifier node with a given name.
317
- * @param {ASTNode} node The node to check.
318
- * @param {string | RegExp} name The expected name or the expected pattern of the object name.
319
- * @returns {boolean} `true` if the node is an Identifier node with the name.
320
- */
321
- function isSpecificId(node, name) {
322
- return node.type === "Identifier" && checkText(node.name, name);
323
- }
324
-
325
- /**
326
- * Check if a given node is member access with a given object name and property name pair.
327
- * This is regardless of optional or not.
328
- * @param {ASTNode} node The node to check.
329
- * @param {string | RegExp | null} objectName The expected name or the expected pattern of the object name. If this is nullish, this method doesn't check object.
330
- * @param {string | RegExp | null} propertyName The expected name or the expected pattern of the property name. If this is nullish, this method doesn't check property.
331
- * @returns {boolean} `true` if the node is member access with the object name and property name pair.
332
- * The node is a `MemberExpression` or `ChainExpression`.
333
- */
334
- function isSpecificMemberAccess(node, objectName, propertyName) {
335
- const checkNode = skipChainExpression(node);
336
-
337
- if (checkNode.type !== "MemberExpression") {
338
- return false;
339
- }
340
-
341
- if (objectName && !isSpecificId(checkNode.object, objectName)) {
342
- return false;
343
- }
344
-
345
- if (propertyName) {
346
- const actualPropertyName = getStaticPropertyName(checkNode);
347
-
348
- if (typeof actualPropertyName !== "string" || !checkText(actualPropertyName, propertyName)) {
349
- return false;
350
- }
351
- }
352
-
353
- return true;
354
- }
355
-
356
- /**
357
- * Check if two literal nodes are the same value.
358
- * @param {ASTNode} left The Literal node to compare.
359
- * @param {ASTNode} right The other Literal node to compare.
360
- * @returns {boolean} `true` if the two literal nodes are the same value.
361
- */
362
- function equalLiteralValue(left, right) {
363
-
364
- // RegExp literal.
365
- if (left.regex || right.regex) {
366
- return Boolean(
367
- left.regex &&
368
- right.regex &&
369
- left.regex.pattern === right.regex.pattern &&
370
- left.regex.flags === right.regex.flags
371
- );
372
- }
373
-
374
- // BigInt literal.
375
- if (left.bigint || right.bigint) {
376
- return left.bigint === right.bigint;
377
- }
378
-
379
- return left.value === right.value;
380
- }
381
-
382
- /**
383
- * Check if two expressions reference the same value. For example:
384
- * a = a
385
- * a.b = a.b
386
- * a[0] = a[0]
387
- * a['b'] = a['b']
388
- * @param {ASTNode} left The left side of the comparison.
389
- * @param {ASTNode} right The right side of the comparison.
390
- * @param {boolean} [disableStaticComputedKey] Don't address `a.b` and `a["b"]` are the same if `true`. For backward compatibility.
391
- * @returns {boolean} `true` if both sides match and reference the same value.
392
- */
393
- function isSameReference(left, right, disableStaticComputedKey = false) {
394
- if (left.type !== right.type) {
395
-
396
- // Handle `a.b` and `a?.b` are samely.
397
- if (left.type === "ChainExpression") {
398
- return isSameReference(left.expression, right, disableStaticComputedKey);
399
- }
400
- if (right.type === "ChainExpression") {
401
- return isSameReference(left, right.expression, disableStaticComputedKey);
402
- }
403
-
404
- return false;
405
- }
406
-
407
- switch (left.type) {
408
- case "Super":
409
- case "ThisExpression":
410
- return true;
411
-
412
- case "Identifier":
413
- case "PrivateIdentifier":
414
- return left.name === right.name;
415
- case "Literal":
416
- return equalLiteralValue(left, right);
417
-
418
- case "ChainExpression":
419
- return isSameReference(left.expression, right.expression, disableStaticComputedKey);
420
-
421
- case "MemberExpression": {
422
- if (!disableStaticComputedKey) {
423
- const nameA = getStaticPropertyName(left);
424
-
425
- // x.y = x["y"]
426
- if (nameA !== null) {
427
- return (
428
- isSameReference(left.object, right.object, disableStaticComputedKey) &&
429
- nameA === getStaticPropertyName(right)
430
- );
431
- }
432
- }
433
-
434
- /*
435
- * x[0] = x[0]
436
- * x[y] = x[y]
437
- * x.y = x.y
438
- */
439
- return (
440
- left.computed === right.computed &&
441
- isSameReference(left.object, right.object, disableStaticComputedKey) &&
442
- isSameReference(left.property, right.property, disableStaticComputedKey)
443
- );
444
- }
445
-
446
- default:
447
- return false;
448
- }
449
- }
450
-
451
- /**
452
- * Checks whether or not a node is `Reflect.apply`.
453
- * @param {ASTNode} node A node to check.
454
- * @returns {boolean} Whether or not the node is a `Reflect.apply`.
455
- */
456
- function isReflectApply(node) {
457
- return isSpecificMemberAccess(node, "Reflect", "apply");
458
- }
459
-
460
- /**
461
- * Checks whether or not a node is `Array.from`.
462
- * @param {ASTNode} node A node to check.
463
- * @returns {boolean} Whether or not the node is a `Array.from`.
464
- */
465
- function isArrayFromMethod(node) {
466
- return isSpecificMemberAccess(node, arrayOrTypedArrayPattern, "from");
467
- }
468
-
469
- /**
470
- * Checks whether or not a node is a method which expects a function as a first argument, and `thisArg` as a second argument.
471
- * @param {ASTNode} node A node to check.
472
- * @returns {boolean} Whether or not the node is a method which expects a function as a first argument, and `thisArg` as a second argument.
473
- */
474
- function isMethodWhichHasThisArg(node) {
475
- return isSpecificMemberAccess(node, null, arrayMethodWithThisArgPattern);
476
- }
477
-
478
- /**
479
- * Creates the negate function of the given function.
480
- * @param {Function} f The function to negate.
481
- * @returns {Function} Negated function.
482
- */
483
- function negate(f) {
484
- return token => !f(token);
485
- }
486
-
487
- /**
488
- * Checks whether or not a node has a `@this` tag in its comments.
489
- * @param {ASTNode} node A node to check.
490
- * @param {SourceCode} sourceCode A SourceCode instance to get comments.
491
- * @returns {boolean} Whether or not the node has a `@this` tag in its comments.
492
- */
493
- function hasJSDocThisTag(node, sourceCode) {
494
- const jsdocComment = sourceCode.getJSDocComment(node);
495
-
496
- if (jsdocComment && thisTagPattern.test(jsdocComment.value)) {
497
- return true;
498
- }
499
-
500
- // Checks `@this` in its leading comments for callbacks,
501
- // because callbacks don't have its JSDoc comment.
502
- // e.g.
503
- // sinon.test(/* @this sinon.Sandbox */function() { this.spy(); });
504
- return sourceCode.getCommentsBefore(node).some(comment => thisTagPattern.test(comment.value));
505
- }
506
-
507
- /**
508
- * Determines if a node is surrounded by parentheses.
509
- * @param {SourceCode} sourceCode The ESLint source code object
510
- * @param {ASTNode} node The node to be checked.
511
- * @returns {boolean} True if the node is parenthesised.
512
- * @private
513
- */
514
- function isParenthesised(sourceCode, node) {
515
- const previousToken = sourceCode.getTokenBefore(node),
516
- nextToken = sourceCode.getTokenAfter(node);
517
-
518
- return Boolean(previousToken && nextToken) &&
519
- previousToken.value === "(" && previousToken.range[1] <= node.range[0] &&
520
- nextToken.value === ")" && nextToken.range[0] >= node.range[1];
521
- }
522
-
523
- /**
524
- * Checks if the given token is a `=` token or not.
525
- * @param {Token} token The token to check.
526
- * @returns {boolean} `true` if the token is a `=` token.
527
- */
528
- function isEqToken(token) {
529
- return token.value === "=" && token.type === "Punctuator";
530
- }
531
-
532
- /**
533
- * Checks if the given token is an arrow token or not.
534
- * @param {Token} token The token to check.
535
- * @returns {boolean} `true` if the token is an arrow token.
536
- */
537
- function isArrowToken(token) {
538
- return token.value === "=>" && token.type === "Punctuator";
539
- }
540
-
541
- /**
542
- * Checks if the given token is a comma token or not.
543
- * @param {Token} token The token to check.
544
- * @returns {boolean} `true` if the token is a comma token.
545
- */
546
- function isCommaToken(token) {
547
- return token.value === "," && token.type === "Punctuator";
548
- }
549
-
550
- /**
551
- * Checks if the given token is a dot token or not.
552
- * @param {Token} token The token to check.
553
- * @returns {boolean} `true` if the token is a dot token.
554
- */
555
- function isDotToken(token) {
556
- return token.value === "." && token.type === "Punctuator";
557
- }
558
-
559
- /**
560
- * Checks if the given token is a `?.` token or not.
561
- * @param {Token} token The token to check.
562
- * @returns {boolean} `true` if the token is a `?.` token.
563
- */
564
- function isQuestionDotToken(token) {
565
- return token.value === "?." && token.type === "Punctuator";
566
- }
567
-
568
- /**
569
- * Checks if the given token is a semicolon token or not.
570
- * @param {Token} token The token to check.
571
- * @returns {boolean} `true` if the token is a semicolon token.
572
- */
573
- function isSemicolonToken(token) {
574
- return token.value === ";" && token.type === "Punctuator";
575
- }
576
-
577
- /**
578
- * Checks if the given token is a colon token or not.
579
- * @param {Token} token The token to check.
580
- * @returns {boolean} `true` if the token is a colon token.
581
- */
582
- function isColonToken(token) {
583
- return token.value === ":" && token.type === "Punctuator";
584
- }
585
-
586
- /**
587
- * Checks if the given token is an opening parenthesis token or not.
588
- * @param {Token} token The token to check.
589
- * @returns {boolean} `true` if the token is an opening parenthesis token.
590
- */
591
- function isOpeningParenToken(token) {
592
- return token.value === "(" && token.type === "Punctuator";
593
- }
594
-
595
- /**
596
- * Checks if the given token is a closing parenthesis token or not.
597
- * @param {Token} token The token to check.
598
- * @returns {boolean} `true` if the token is a closing parenthesis token.
599
- */
600
- function isClosingParenToken(token) {
601
- return token.value === ")" && token.type === "Punctuator";
602
- }
603
-
604
- /**
605
- * Checks if the given token is an opening square bracket token or not.
606
- * @param {Token} token The token to check.
607
- * @returns {boolean} `true` if the token is an opening square bracket token.
608
- */
609
- function isOpeningBracketToken(token) {
610
- return token.value === "[" && token.type === "Punctuator";
611
- }
612
-
613
- /**
614
- * Checks if the given token is a closing square bracket token or not.
615
- * @param {Token} token The token to check.
616
- * @returns {boolean} `true` if the token is a closing square bracket token.
617
- */
618
- function isClosingBracketToken(token) {
619
- return token.value === "]" && token.type === "Punctuator";
620
- }
621
-
622
- /**
623
- * Checks if the given token is an opening brace token or not.
624
- * @param {Token} token The token to check.
625
- * @returns {boolean} `true` if the token is an opening brace token.
626
- */
627
- function isOpeningBraceToken(token) {
628
- return token.value === "{" && token.type === "Punctuator";
629
- }
630
-
631
- /**
632
- * Checks if the given token is a closing brace token or not.
633
- * @param {Token} token The token to check.
634
- * @returns {boolean} `true` if the token is a closing brace token.
635
- */
636
- function isClosingBraceToken(token) {
637
- return token.value === "}" && token.type === "Punctuator";
638
- }
639
-
640
- /**
641
- * Checks if the given token is a comment token or not.
642
- * @param {Token} token The token to check.
643
- * @returns {boolean} `true` if the token is a comment token.
644
- */
645
- function isCommentToken(token) {
646
- return token.type === "Line" || token.type === "Block" || token.type === "Shebang";
647
- }
648
-
649
- /**
650
- * Checks if the given token is a keyword token or not.
651
- * @param {Token} token The token to check.
652
- * @returns {boolean} `true` if the token is a keyword token.
653
- */
654
- function isKeywordToken(token) {
655
- return token.type === "Keyword";
656
- }
657
-
658
- /**
659
- * Gets the `(` token of the given function node.
660
- * @param {ASTNode} node The function node to get.
661
- * @param {SourceCode} sourceCode The source code object to get tokens.
662
- * @returns {Token} `(` token.
663
- */
664
- function getOpeningParenOfParams(node, sourceCode) {
665
-
666
- // If the node is an arrow function and doesn't have parens, this returns the identifier of the first param.
667
- if (node.type === "ArrowFunctionExpression" && node.params.length === 1) {
668
- const argToken = sourceCode.getFirstToken(node.params[0]);
669
- const maybeParenToken = sourceCode.getTokenBefore(argToken);
670
-
671
- return isOpeningParenToken(maybeParenToken) ? maybeParenToken : argToken;
672
- }
673
-
674
- // Otherwise, returns paren.
675
- return node.id
676
- ? sourceCode.getTokenAfter(node.id, isOpeningParenToken)
677
- : sourceCode.getFirstToken(node, isOpeningParenToken);
678
- }
679
-
680
- /**
681
- * Checks whether or not the tokens of two given nodes are same.
682
- * @param {ASTNode} left A node 1 to compare.
683
- * @param {ASTNode} right A node 2 to compare.
684
- * @param {SourceCode} sourceCode The ESLint source code object.
685
- * @returns {boolean} the source code for the given node.
686
- */
687
- function equalTokens(left, right, sourceCode) {
688
- const tokensL = sourceCode.getTokens(left);
689
- const tokensR = sourceCode.getTokens(right);
690
-
691
- if (tokensL.length !== tokensR.length) {
692
- return false;
693
- }
694
- for (let i = 0; i < tokensL.length; ++i) {
695
- if (tokensL[i].type !== tokensR[i].type ||
696
- tokensL[i].value !== tokensR[i].value
697
- ) {
698
- return false;
699
- }
700
- }
701
-
702
- return true;
703
- }
704
-
705
- /**
706
- * Check if the given node is a true logical expression or not.
707
- *
708
- * The three binary expressions logical-or (`||`), logical-and (`&&`), and
709
- * coalesce (`??`) are known as `ShortCircuitExpression`.
710
- * But ESTree represents those by `LogicalExpression` node.
711
- *
712
- * This function rejects coalesce expressions of `LogicalExpression` node.
713
- * @param {ASTNode} node The node to check.
714
- * @returns {boolean} `true` if the node is `&&` or `||`.
715
- * @see https://tc39.es/ecma262/#prod-ShortCircuitExpression
716
- */
717
- function isLogicalExpression(node) {
718
- return (
719
- node.type === "LogicalExpression" &&
720
- (node.operator === "&&" || node.operator === "||")
721
- );
722
- }
723
-
724
- /**
725
- * Check if the given node is a nullish coalescing expression or not.
726
- *
727
- * The three binary expressions logical-or (`||`), logical-and (`&&`), and
728
- * coalesce (`??`) are known as `ShortCircuitExpression`.
729
- * But ESTree represents those by `LogicalExpression` node.
730
- *
731
- * This function finds only coalesce expressions of `LogicalExpression` node.
732
- * @param {ASTNode} node The node to check.
733
- * @returns {boolean} `true` if the node is `??`.
734
- */
735
- function isCoalesceExpression(node) {
736
- return node.type === "LogicalExpression" && node.operator === "??";
737
- }
738
-
739
- /**
740
- * Check if given two nodes are the pair of a logical expression and a coalesce expression.
741
- * @param {ASTNode} left A node to check.
742
- * @param {ASTNode} right Another node to check.
743
- * @returns {boolean} `true` if the two nodes are the pair of a logical expression and a coalesce expression.
744
- */
745
- function isMixedLogicalAndCoalesceExpressions(left, right) {
746
- return (
747
- (isLogicalExpression(left) && isCoalesceExpression(right)) ||
748
- (isCoalesceExpression(left) && isLogicalExpression(right))
749
- );
750
- }
751
-
752
- /**
753
- * Checks if the given operator is a logical assignment operator.
754
- * @param {string} operator The operator to check.
755
- * @returns {boolean} `true` if the operator is a logical assignment operator.
756
- */
757
- function isLogicalAssignmentOperator(operator) {
758
- return LOGICAL_ASSIGNMENT_OPERATORS.has(operator);
759
- }
760
-
761
- /**
762
- * Get the colon token of the given SwitchCase node.
763
- * @param {ASTNode} node The SwitchCase node to get.
764
- * @param {SourceCode} sourceCode The source code object to get tokens.
765
- * @returns {Token} The colon token of the node.
766
- */
767
- function getSwitchCaseColonToken(node, sourceCode) {
768
- if (node.test) {
769
- return sourceCode.getTokenAfter(node.test, isColonToken);
770
- }
771
- return sourceCode.getFirstToken(node, 1);
772
- }
773
-
774
- /**
775
- * Gets ESM module export name represented by the given node.
776
- * @param {ASTNode} node `Identifier` or string `Literal` node in a position
777
- * that represents a module export name:
778
- * - `ImportSpecifier#imported`
779
- * - `ExportSpecifier#local` (if it is a re-export from another module)
780
- * - `ExportSpecifier#exported`
781
- * - `ExportAllDeclaration#exported`
782
- * @returns {string} The module export name.
783
- */
784
- function getModuleExportName(node) {
785
- if (node.type === "Identifier") {
786
- return node.name;
787
- }
788
-
789
- // string literal
790
- return node.value;
791
- }
792
-
793
- /**
794
- * Returns literal's value converted to the Boolean type
795
- * @param {ASTNode} node any `Literal` node
796
- * @returns {boolean | null} `true` when node is truthy, `false` when node is falsy,
797
- * `null` when it cannot be determined.
798
- */
799
- function getBooleanValue(node) {
800
- if (node.value === null) {
801
-
802
- /*
803
- * it might be a null literal or bigint/regex literal in unsupported environments .
804
- * https://github.com/estree/estree/blob/14df8a024956ea289bd55b9c2226a1d5b8a473ee/es5.md#regexpliteral
805
- * https://github.com/estree/estree/blob/14df8a024956ea289bd55b9c2226a1d5b8a473ee/es2020.md#bigintliteral
806
- */
807
-
808
- if (node.raw === "null") {
809
- return false;
810
- }
811
-
812
- // regex is always truthy
813
- if (typeof node.regex === "object") {
814
- return true;
815
- }
816
-
817
- return null;
818
- }
819
-
820
- return !!node.value;
821
- }
822
-
823
- /**
824
- * Checks if a branch node of LogicalExpression short circuits the whole condition
825
- * @param {ASTNode} node The branch of main condition which needs to be checked
826
- * @param {string} operator The operator of the main LogicalExpression.
827
- * @returns {boolean} true when condition short circuits whole condition
828
- */
829
- function isLogicalIdentity(node, operator) {
830
- switch (node.type) {
831
- case "Literal":
832
- return (operator === "||" && getBooleanValue(node) === true) ||
833
- (operator === "&&" && getBooleanValue(node) === false);
834
-
835
- case "UnaryExpression":
836
- return (operator === "&&" && node.operator === "void");
837
-
838
- case "LogicalExpression":
839
-
840
- /*
841
- * handles `a && false || b`
842
- * `false` is an identity element of `&&` but not `||`
843
- */
844
- return operator === node.operator &&
845
- (
846
- isLogicalIdentity(node.left, operator) ||
847
- isLogicalIdentity(node.right, operator)
848
- );
849
-
850
- case "AssignmentExpression":
851
- return ["||=", "&&="].includes(node.operator) &&
852
- operator === node.operator.slice(0, -1) &&
853
- isLogicalIdentity(node.right, operator);
854
-
855
- // no default
856
- }
857
- return false;
858
- }
859
-
860
- /**
861
- * Checks if an identifier is a reference to a global variable.
862
- * @param {Scope} scope The scope in which the identifier is referenced.
863
- * @param {ASTNode} node An identifier node to check.
864
- * @returns {boolean} `true` if the identifier is a reference to a global variable.
865
- */
866
- function isReferenceToGlobalVariable(scope, node) {
867
- const reference = scope.references.find(ref => ref.identifier === node);
868
-
869
- return Boolean(
870
- reference &&
871
- reference.resolved &&
872
- reference.resolved.scope.type === "global" &&
873
- reference.resolved.defs.length === 0
874
- );
875
- }
876
-
877
-
878
- /**
879
- * Checks if a node has a constant truthiness value.
880
- * @param {Scope} scope Scope in which the node appears.
881
- * @param {ASTNode} node The AST node to check.
882
- * @param {boolean} inBooleanPosition `true` if checking the test of a
883
- * condition. `false` in all other cases. When `false`, checks if -- for
884
- * both string and number -- if coerced to that type, the value will
885
- * be constant.
886
- * @returns {boolean} true when node's truthiness is constant
887
- * @private
888
- */
889
- function isConstant(scope, node, inBooleanPosition) {
890
-
891
- // node.elements can return null values in the case of sparse arrays ex. [,]
892
- if (!node) {
893
- return true;
894
- }
895
- switch (node.type) {
896
- case "Literal":
897
- case "ArrowFunctionExpression":
898
- case "FunctionExpression":
899
- return true;
900
- case "ClassExpression":
901
- case "ObjectExpression":
902
-
903
- /**
904
- * In theory objects like:
905
- *
906
- * `{toString: () => a}`
907
- * `{valueOf: () => a}`
908
- *
909
- * Or a classes like:
910
- *
911
- * `class { static toString() { return a } }`
912
- * `class { static valueOf() { return a } }`
913
- *
914
- * Are not constant verifiably when `inBooleanPosition` is
915
- * false, but it's an edge case we've opted not to handle.
916
- */
917
- return true;
918
- case "TemplateLiteral":
919
- return (inBooleanPosition && node.quasis.some(quasi => quasi.value.cooked.length)) ||
920
- node.expressions.every(exp => isConstant(scope, exp, false));
921
-
922
- case "ArrayExpression": {
923
- if (!inBooleanPosition) {
924
- return node.elements.every(element => isConstant(scope, element, false));
925
- }
926
- return true;
927
- }
928
-
929
- case "UnaryExpression":
930
- if (
931
- node.operator === "void" ||
932
- node.operator === "typeof" && inBooleanPosition
933
- ) {
934
- return true;
935
- }
936
-
937
- if (node.operator === "!") {
938
- return isConstant(scope, node.argument, true);
939
- }
940
-
941
- return isConstant(scope, node.argument, false);
942
-
943
- case "BinaryExpression":
944
- return isConstant(scope, node.left, false) &&
945
- isConstant(scope, node.right, false) &&
946
- node.operator !== "in";
947
-
948
- case "LogicalExpression": {
949
- const isLeftConstant = isConstant(scope, node.left, inBooleanPosition);
950
- const isRightConstant = isConstant(scope, node.right, inBooleanPosition);
951
- const isLeftShortCircuit = (isLeftConstant && isLogicalIdentity(node.left, node.operator));
952
- const isRightShortCircuit = (inBooleanPosition && isRightConstant && isLogicalIdentity(node.right, node.operator));
953
-
954
- return (isLeftConstant && isRightConstant) ||
955
- isLeftShortCircuit ||
956
- isRightShortCircuit;
957
- }
958
- case "NewExpression":
959
- return inBooleanPosition;
960
- case "AssignmentExpression":
961
- if (node.operator === "=") {
962
- return isConstant(scope, node.right, inBooleanPosition);
963
- }
964
-
965
- if (["||=", "&&="].includes(node.operator) && inBooleanPosition) {
966
- return isLogicalIdentity(node.right, node.operator.slice(0, -1));
967
- }
968
-
969
- return false;
970
-
971
- case "SequenceExpression":
972
- return isConstant(scope, node.expressions[node.expressions.length - 1], inBooleanPosition);
973
- case "SpreadElement":
974
- return isConstant(scope, node.argument, inBooleanPosition);
975
- case "CallExpression":
976
- if (node.callee.type === "Identifier" && node.callee.name === "Boolean") {
977
- if (node.arguments.length === 0 || isConstant(scope, node.arguments[0], true)) {
978
- return isReferenceToGlobalVariable(scope, node.callee);
979
- }
980
- }
981
- return false;
982
- case "Identifier":
983
- return node.name === "undefined" && isReferenceToGlobalVariable(scope, node);
984
-
985
- // no default
986
- }
987
- return false;
988
- }
989
-
990
- /**
991
- * Checks whether a node is an ExpressionStatement at the top level of a file or function body.
992
- * A top-level ExpressionStatement node is a directive if it contains a single unparenthesized
993
- * string literal and if it occurs either as the first sibling or immediately after another
994
- * directive.
995
- * @param {ASTNode} node The node to check.
996
- * @returns {boolean} Whether or not the node is an ExpressionStatement at the top level of a
997
- * file or function body.
998
- */
999
- function isTopLevelExpressionStatement(node) {
1000
- if (node.type !== "ExpressionStatement") {
1001
- return false;
1002
- }
1003
- const parent = node.parent;
1004
-
1005
- return parent.type === "Program" || (parent.type === "BlockStatement" && isFunction(parent.parent));
1006
-
1007
- }
1008
-
1009
- /**
1010
- * Check whether the given node is a part of a directive prologue or not.
1011
- * @param {ASTNode} node The node to check.
1012
- * @returns {boolean} `true` if the node is a part of directive prologue.
1013
- */
1014
- function isDirective(node) {
1015
- return node.type === "ExpressionStatement" && typeof node.directive === "string";
1016
- }
1017
-
1018
- /**
1019
- * Tests if a node appears at the beginning of an ancestor ExpressionStatement node.
1020
- * @param {ASTNode} node The node to check.
1021
- * @returns {boolean} Whether the node appears at the beginning of an ancestor ExpressionStatement node.
1022
- */
1023
- function isStartOfExpressionStatement(node) {
1024
- const start = node.range[0];
1025
- let ancestor = node;
1026
-
1027
- while ((ancestor = ancestor.parent) && ancestor.range[0] === start) {
1028
- if (ancestor.type === "ExpressionStatement") {
1029
- return true;
1030
- }
1031
- }
1032
- return false;
1033
- }
1034
-
1035
- /**
1036
- * Determines whether an opening parenthesis `(`, bracket `[` or backtick ``` ` ``` needs to be preceded by a semicolon.
1037
- * This opening parenthesis or bracket should be at the start of an `ExpressionStatement` or at the start of the body of an `ArrowFunctionExpression`.
1038
- * @type {(sourceCode: SourceCode, node: ASTNode) => boolean}
1039
- * @param {SourceCode} sourceCode The source code object.
1040
- * @param {ASTNode} node A node at the position where an opening parenthesis or bracket will be inserted.
1041
- * @returns {boolean} Whether a semicolon is required before the opening parenthesis or braket.
1042
- */
1043
- let needsPrecedingSemicolon;
1044
-
1045
- {
1046
- const BREAK_OR_CONTINUE = new Set(["BreakStatement", "ContinueStatement"]);
1047
-
1048
- // Declaration types that must contain a string Literal node at the end.
1049
- const DECLARATIONS = new Set(["ExportAllDeclaration", "ExportNamedDeclaration", "ImportDeclaration"]);
1050
-
1051
- const IDENTIFIER_OR_KEYWORD = new Set(["Identifier", "Keyword"]);
1052
-
1053
- // Keywords that can immediately precede an ExpressionStatement node, mapped to the their node types.
1054
- const NODE_TYPES_BY_KEYWORD = {
1055
- __proto__: null,
1056
- break: "BreakStatement",
1057
- continue: "ContinueStatement",
1058
- debugger: "DebuggerStatement",
1059
- do: "DoWhileStatement",
1060
- else: "IfStatement",
1061
- return: "ReturnStatement",
1062
- yield: "YieldExpression"
1063
- };
1064
-
1065
- /*
1066
- * Before an opening parenthesis, postfix `++` and `--` always trigger ASI;
1067
- * the tokens `:`, `;`, `{` and `=>` don't expect a semicolon, as that would count as an empty statement.
1068
- */
1069
- const PUNCTUATORS = new Set([":", ";", "{", "=>", "++", "--"]);
1070
-
1071
- /*
1072
- * Statements that can contain an `ExpressionStatement` after a closing parenthesis.
1073
- * DoWhileStatement is an exception in that it always triggers ASI after the closing parenthesis.
1074
- */
1075
- const STATEMENTS = new Set([
1076
- "DoWhileStatement",
1077
- "ForInStatement",
1078
- "ForOfStatement",
1079
- "ForStatement",
1080
- "IfStatement",
1081
- "WhileStatement",
1082
- "WithStatement"
1083
- ]);
1084
-
1085
- needsPrecedingSemicolon =
1086
- function(sourceCode, node) {
1087
- const prevToken = sourceCode.getTokenBefore(node);
1088
-
1089
- if (!prevToken || prevToken.type === "Punctuator" && PUNCTUATORS.has(prevToken.value)) {
1090
- return false;
1091
- }
1092
-
1093
- const prevNode = sourceCode.getNodeByRangeIndex(prevToken.range[0]);
1094
-
1095
- if (isClosingParenToken(prevToken)) {
1096
- return !STATEMENTS.has(prevNode.type);
1097
- }
1098
-
1099
- if (isClosingBraceToken(prevToken)) {
1100
- return (
1101
- prevNode.type === "BlockStatement" && prevNode.parent.type === "FunctionExpression" ||
1102
- prevNode.type === "ClassBody" && prevNode.parent.type === "ClassExpression" ||
1103
- prevNode.type === "ObjectExpression"
1104
- );
1105
- }
1106
-
1107
- if (IDENTIFIER_OR_KEYWORD.has(prevToken.type)) {
1108
- if (BREAK_OR_CONTINUE.has(prevNode.parent.type)) {
1109
- return false;
1110
- }
1111
-
1112
- const keyword = prevToken.value;
1113
- const nodeType = NODE_TYPES_BY_KEYWORD[keyword];
1114
-
1115
- return prevNode.type !== nodeType;
1116
- }
1117
-
1118
- if (prevToken.type === "String") {
1119
- return !DECLARATIONS.has(prevNode.parent.type);
1120
- }
1121
-
1122
- return true;
1123
- };
1124
- }
1125
-
1126
- //------------------------------------------------------------------------------
1127
- // Public Interface
1128
- //------------------------------------------------------------------------------
1129
-
1130
- module.exports = {
1131
- COMMENTS_IGNORE_PATTERN,
1132
- LINEBREAKS,
1133
- LINEBREAK_MATCHER: lineBreakPattern,
1134
- SHEBANG_MATCHER: shebangPattern,
1135
- STATEMENT_LIST_PARENTS,
1136
-
1137
- /**
1138
- * Determines whether two adjacent tokens are on the same line.
1139
- * @param {Object} left The left token object.
1140
- * @param {Object} right The right token object.
1141
- * @returns {boolean} Whether or not the tokens are on the same line.
1142
- * @public
1143
- */
1144
- isTokenOnSameLine(left, right) {
1145
- return left.loc.end.line === right.loc.start.line;
1146
- },
1147
-
1148
- isNullOrUndefined,
1149
- isCallee,
1150
- isES5Constructor,
1151
- getUpperFunction,
1152
- isFunction,
1153
- isLoop,
1154
- isInLoop,
1155
- isArrayFromMethod,
1156
- isParenthesised,
1157
- createGlobalLinebreakMatcher,
1158
- equalTokens,
1159
-
1160
- isArrowToken,
1161
- isClosingBraceToken,
1162
- isClosingBracketToken,
1163
- isClosingParenToken,
1164
- isColonToken,
1165
- isCommaToken,
1166
- isCommentToken,
1167
- isDotToken,
1168
- isQuestionDotToken,
1169
- isKeywordToken,
1170
- isNotClosingBraceToken: negate(isClosingBraceToken),
1171
- isNotClosingBracketToken: negate(isClosingBracketToken),
1172
- isNotClosingParenToken: negate(isClosingParenToken),
1173
- isNotColonToken: negate(isColonToken),
1174
- isNotCommaToken: negate(isCommaToken),
1175
- isNotDotToken: negate(isDotToken),
1176
- isNotQuestionDotToken: negate(isQuestionDotToken),
1177
- isNotOpeningBraceToken: negate(isOpeningBraceToken),
1178
- isNotOpeningBracketToken: negate(isOpeningBracketToken),
1179
- isNotOpeningParenToken: negate(isOpeningParenToken),
1180
- isNotSemicolonToken: negate(isSemicolonToken),
1181
- isOpeningBraceToken,
1182
- isOpeningBracketToken,
1183
- isOpeningParenToken,
1184
- isSemicolonToken,
1185
- isEqToken,
1186
-
1187
- /**
1188
- * Checks whether or not a given node is a string literal.
1189
- * @param {ASTNode} node A node to check.
1190
- * @returns {boolean} `true` if the node is a string literal.
1191
- */
1192
- isStringLiteral(node) {
1193
- return (
1194
- (node.type === "Literal" && typeof node.value === "string") ||
1195
- node.type === "TemplateLiteral"
1196
- );
1197
- },
1198
-
1199
- /**
1200
- * Checks whether a given node is a breakable statement or not.
1201
- * The node is breakable if the node is one of the following type:
1202
- *
1203
- * - DoWhileStatement
1204
- * - ForInStatement
1205
- * - ForOfStatement
1206
- * - ForStatement
1207
- * - SwitchStatement
1208
- * - WhileStatement
1209
- * @param {ASTNode} node A node to check.
1210
- * @returns {boolean} `true` if the node is breakable.
1211
- */
1212
- isBreakableStatement(node) {
1213
- return breakableTypePattern.test(node.type);
1214
- },
1215
-
1216
- /**
1217
- * Gets references which are non initializer and writable.
1218
- * @param {Reference[]} references An array of references.
1219
- * @returns {Reference[]} An array of only references which are non initializer and writable.
1220
- * @public
1221
- */
1222
- getModifyingReferences(references) {
1223
- return references.filter(isModifyingReference);
1224
- },
1225
-
1226
- /**
1227
- * Validate that a string passed in is surrounded by the specified character
1228
- * @param {string} val The text to check.
1229
- * @param {string} character The character to see if it's surrounded by.
1230
- * @returns {boolean} True if the text is surrounded by the character, false if not.
1231
- * @private
1232
- */
1233
- isSurroundedBy(val, character) {
1234
- return val[0] === character && val[val.length - 1] === character;
1235
- },
1236
-
1237
- /**
1238
- * Returns whether the provided node is an ESLint directive comment or not
1239
- * @param {Line|Block} node The comment token to be checked
1240
- * @returns {boolean} `true` if the node is an ESLint directive comment
1241
- */
1242
- isDirectiveComment(node) {
1243
- const comment = node.value.trim();
1244
-
1245
- return (
1246
- node.type === "Line" && comment.startsWith("eslint-") ||
1247
- node.type === "Block" && ESLINT_DIRECTIVE_PATTERN.test(comment)
1248
- );
1249
- },
1250
-
1251
- /**
1252
- * Gets the trailing statement of a given node.
1253
- *
1254
- * if (code)
1255
- * consequent;
1256
- *
1257
- * When taking this `IfStatement`, returns `consequent;` statement.
1258
- * @param {ASTNode} A node to get.
1259
- * @returns {ASTNode|null} The trailing statement's node.
1260
- */
1261
- getTrailingStatement: esutils.ast.trailingStatement,
1262
-
1263
- /**
1264
- * Finds the variable by a given name in a given scope and its upper scopes.
1265
- * @param {eslint-scope.Scope} initScope A scope to start find.
1266
- * @param {string} name A variable name to find.
1267
- * @returns {eslint-scope.Variable|null} A found variable or `null`.
1268
- */
1269
- getVariableByName(initScope, name) {
1270
- let scope = initScope;
1271
-
1272
- while (scope) {
1273
- const variable = scope.set.get(name);
1274
-
1275
- if (variable) {
1276
- return variable;
1277
- }
1278
-
1279
- scope = scope.upper;
1280
- }
1281
-
1282
- return null;
1283
- },
1284
-
1285
- /**
1286
- * Checks whether or not a given function node is the default `this` binding.
1287
- *
1288
- * First, this checks the node:
1289
- *
1290
- * - The given node is not in `PropertyDefinition#value` position.
1291
- * - The given node is not `StaticBlock`.
1292
- * - The function name does not start with uppercase. It's a convention to capitalize the names
1293
- * of constructor functions. This check is not performed if `capIsConstructor` is set to `false`.
1294
- * - The function does not have a JSDoc comment that has a @this tag.
1295
- *
1296
- * Next, this checks the location of the node.
1297
- * If the location is below, this judges `this` is valid.
1298
- *
1299
- * - The location is not on an object literal.
1300
- * - The location is not assigned to a variable which starts with an uppercase letter. Applies to anonymous
1301
- * functions only, as the name of the variable is considered to be the name of the function in this case.
1302
- * This check is not performed if `capIsConstructor` is set to `false`.
1303
- * - The location is not on an ES2015 class.
1304
- * - Its `bind`/`call`/`apply` method is not called directly.
1305
- * - The function is not a callback of array methods (such as `.forEach()`) if `thisArg` is given.
1306
- * @param {ASTNode} node A function node to check. It also can be an implicit function, like `StaticBlock`
1307
- * or any expression that is `PropertyDefinition#value` node.
1308
- * @param {SourceCode} sourceCode A SourceCode instance to get comments.
1309
- * @param {boolean} [capIsConstructor = true] `false` disables the assumption that functions which name starts
1310
- * with an uppercase or are assigned to a variable which name starts with an uppercase are constructors.
1311
- * @returns {boolean} The function node is the default `this` binding.
1312
- */
1313
- isDefaultThisBinding(node, sourceCode, { capIsConstructor = true } = {}) {
1314
-
1315
- /*
1316
- * Class field initializers are implicit functions, but ESTree doesn't have the AST node of field initializers.
1317
- * Therefore, A expression node at `PropertyDefinition#value` is a function.
1318
- * In this case, `this` is always not default binding.
1319
- */
1320
- if (node.parent.type === "PropertyDefinition" && node.parent.value === node) {
1321
- return false;
1322
- }
1323
-
1324
- // Class static blocks are implicit functions. In this case, `this` is always not default binding.
1325
- if (node.type === "StaticBlock") {
1326
- return false;
1327
- }
1328
-
1329
- if (
1330
- (capIsConstructor && isES5Constructor(node)) ||
1331
- hasJSDocThisTag(node, sourceCode)
1332
- ) {
1333
- return false;
1334
- }
1335
- const isAnonymous = node.id === null;
1336
- let currentNode = node;
1337
-
1338
- while (currentNode) {
1339
- const parent = currentNode.parent;
1340
-
1341
- switch (parent.type) {
1342
-
1343
- /*
1344
- * Looks up the destination.
1345
- * e.g., obj.foo = nativeFoo || function foo() { ... };
1346
- */
1347
- case "LogicalExpression":
1348
- case "ConditionalExpression":
1349
- case "ChainExpression":
1350
- currentNode = parent;
1351
- break;
1352
-
1353
- /*
1354
- * If the upper function is IIFE, checks the destination of the return value.
1355
- * e.g.
1356
- * obj.foo = (function() {
1357
- * // setup...
1358
- * return function foo() { ... };
1359
- * })();
1360
- * obj.foo = (() =>
1361
- * function foo() { ... }
1362
- * )();
1363
- */
1364
- case "ReturnStatement": {
1365
- const func = getUpperFunction(parent);
1366
-
1367
- if (func === null || !isCallee(func)) {
1368
- return true;
1369
- }
1370
- currentNode = func.parent;
1371
- break;
1372
- }
1373
- case "ArrowFunctionExpression":
1374
- if (currentNode !== parent.body || !isCallee(parent)) {
1375
- return true;
1376
- }
1377
- currentNode = parent.parent;
1378
- break;
1379
-
1380
- /*
1381
- * e.g.
1382
- * var obj = { foo() { ... } };
1383
- * var obj = { foo: function() { ... } };
1384
- * class A { constructor() { ... } }
1385
- * class A { foo() { ... } }
1386
- * class A { get foo() { ... } }
1387
- * class A { set foo() { ... } }
1388
- * class A { static foo() { ... } }
1389
- * class A { foo = function() { ... } }
1390
- */
1391
- case "Property":
1392
- case "PropertyDefinition":
1393
- case "MethodDefinition":
1394
- return parent.value !== currentNode;
1395
-
1396
- /*
1397
- * e.g.
1398
- * obj.foo = function foo() { ... };
1399
- * Foo = function() { ... };
1400
- * [obj.foo = function foo() { ... }] = a;
1401
- * [Foo = function() { ... }] = a;
1402
- */
1403
- case "AssignmentExpression":
1404
- case "AssignmentPattern":
1405
- if (parent.left.type === "MemberExpression") {
1406
- return false;
1407
- }
1408
- if (
1409
- capIsConstructor &&
1410
- isAnonymous &&
1411
- parent.left.type === "Identifier" &&
1412
- startsWithUpperCase(parent.left.name)
1413
- ) {
1414
- return false;
1415
- }
1416
- return true;
1417
-
1418
- /*
1419
- * e.g.
1420
- * var Foo = function() { ... };
1421
- */
1422
- case "VariableDeclarator":
1423
- return !(
1424
- capIsConstructor &&
1425
- isAnonymous &&
1426
- parent.init === currentNode &&
1427
- parent.id.type === "Identifier" &&
1428
- startsWithUpperCase(parent.id.name)
1429
- );
1430
-
1431
- /*
1432
- * e.g.
1433
- * var foo = function foo() { ... }.bind(obj);
1434
- * (function foo() { ... }).call(obj);
1435
- * (function foo() { ... }).apply(obj, []);
1436
- */
1437
- case "MemberExpression":
1438
- if (
1439
- parent.object === currentNode &&
1440
- isSpecificMemberAccess(parent, null, bindOrCallOrApplyPattern)
1441
- ) {
1442
- const maybeCalleeNode = parent.parent.type === "ChainExpression"
1443
- ? parent.parent
1444
- : parent;
1445
-
1446
- return !(
1447
- isCallee(maybeCalleeNode) &&
1448
- maybeCalleeNode.parent.arguments.length >= 1 &&
1449
- !isNullOrUndefined(maybeCalleeNode.parent.arguments[0])
1450
- );
1451
- }
1452
- return true;
1453
-
1454
- /*
1455
- * e.g.
1456
- * Reflect.apply(function() {}, obj, []);
1457
- * Array.from([], function() {}, obj);
1458
- * list.forEach(function() {}, obj);
1459
- */
1460
- case "CallExpression":
1461
- if (isReflectApply(parent.callee)) {
1462
- return (
1463
- parent.arguments.length !== 3 ||
1464
- parent.arguments[0] !== currentNode ||
1465
- isNullOrUndefined(parent.arguments[1])
1466
- );
1467
- }
1468
- if (isArrayFromMethod(parent.callee)) {
1469
- return (
1470
- parent.arguments.length !== 3 ||
1471
- parent.arguments[1] !== currentNode ||
1472
- isNullOrUndefined(parent.arguments[2])
1473
- );
1474
- }
1475
- if (isMethodWhichHasThisArg(parent.callee)) {
1476
- return (
1477
- parent.arguments.length !== 2 ||
1478
- parent.arguments[0] !== currentNode ||
1479
- isNullOrUndefined(parent.arguments[1])
1480
- );
1481
- }
1482
- return true;
1483
-
1484
- // Otherwise `this` is default.
1485
- default:
1486
- return true;
1487
- }
1488
- }
1489
-
1490
- /* c8 ignore next */
1491
- return true;
1492
- },
1493
-
1494
- /**
1495
- * Get the precedence level based on the node type
1496
- * @param {ASTNode} node node to evaluate
1497
- * @returns {int} precedence level
1498
- * @private
1499
- */
1500
- getPrecedence(node) {
1501
- switch (node.type) {
1502
- case "SequenceExpression":
1503
- return 0;
1504
-
1505
- case "AssignmentExpression":
1506
- case "ArrowFunctionExpression":
1507
- case "YieldExpression":
1508
- return 1;
1509
-
1510
- case "ConditionalExpression":
1511
- return 3;
1512
-
1513
- case "LogicalExpression":
1514
- switch (node.operator) {
1515
- case "||":
1516
- case "??":
1517
- return 4;
1518
- case "&&":
1519
- return 5;
1520
-
1521
- // no default
1522
- }
1523
-
1524
- /* falls through */
1525
-
1526
- case "BinaryExpression":
1527
-
1528
- switch (node.operator) {
1529
- case "|":
1530
- return 6;
1531
- case "^":
1532
- return 7;
1533
- case "&":
1534
- return 8;
1535
- case "==":
1536
- case "!=":
1537
- case "===":
1538
- case "!==":
1539
- return 9;
1540
- case "<":
1541
- case "<=":
1542
- case ">":
1543
- case ">=":
1544
- case "in":
1545
- case "instanceof":
1546
- return 10;
1547
- case "<<":
1548
- case ">>":
1549
- case ">>>":
1550
- return 11;
1551
- case "+":
1552
- case "-":
1553
- return 12;
1554
- case "*":
1555
- case "/":
1556
- case "%":
1557
- return 13;
1558
- case "**":
1559
- return 15;
1560
-
1561
- // no default
1562
- }
1563
-
1564
- /* falls through */
1565
-
1566
- case "UnaryExpression":
1567
- case "AwaitExpression":
1568
- return 16;
1569
-
1570
- case "UpdateExpression":
1571
- return 17;
1572
-
1573
- case "CallExpression":
1574
- case "ChainExpression":
1575
- case "ImportExpression":
1576
- return 18;
1577
-
1578
- case "NewExpression":
1579
- return 19;
1580
-
1581
- default:
1582
- if (node.type in eslintVisitorKeys) {
1583
- return 20;
1584
- }
1585
-
1586
- /*
1587
- * if the node is not a standard node that we know about, then assume it has the lowest precedence
1588
- * this will mean that rules will wrap unknown nodes in parentheses where applicable instead of
1589
- * unwrapping them and potentially changing the meaning of the code or introducing a syntax error.
1590
- */
1591
- return -1;
1592
- }
1593
- },
1594
-
1595
- /**
1596
- * Checks whether the given node is an empty block node or not.
1597
- * @param {ASTNode|null} node The node to check.
1598
- * @returns {boolean} `true` if the node is an empty block.
1599
- */
1600
- isEmptyBlock(node) {
1601
- return Boolean(node && node.type === "BlockStatement" && node.body.length === 0);
1602
- },
1603
-
1604
- /**
1605
- * Checks whether the given node is an empty function node or not.
1606
- * @param {ASTNode|null} node The node to check.
1607
- * @returns {boolean} `true` if the node is an empty function.
1608
- */
1609
- isEmptyFunction(node) {
1610
- return isFunction(node) && module.exports.isEmptyBlock(node.body);
1611
- },
1612
-
1613
- /**
1614
- * Get directives from directive prologue of a Program or Function node.
1615
- * @param {ASTNode} node The node to check.
1616
- * @returns {ASTNode[]} The directives found in the directive prologue.
1617
- */
1618
- getDirectivePrologue(node) {
1619
- const directives = [];
1620
-
1621
- // Directive prologues only occur at the top of files or functions.
1622
- if (
1623
- node.type === "Program" ||
1624
- node.type === "FunctionDeclaration" ||
1625
- node.type === "FunctionExpression" ||
1626
-
1627
- /*
1628
- * Do not check arrow functions with implicit return.
1629
- * `() => "use strict";` returns the string `"use strict"`.
1630
- */
1631
- (node.type === "ArrowFunctionExpression" && node.body.type === "BlockStatement")
1632
- ) {
1633
- const statements = node.type === "Program" ? node.body : node.body.body;
1634
-
1635
- for (const statement of statements) {
1636
- if (
1637
- statement.type === "ExpressionStatement" &&
1638
- statement.expression.type === "Literal"
1639
- ) {
1640
- directives.push(statement);
1641
- } else {
1642
- break;
1643
- }
1644
- }
1645
- }
1646
-
1647
- return directives;
1648
- },
1649
-
1650
- /**
1651
- * Determines whether this node is a decimal integer literal. If a node is a decimal integer literal, a dot added
1652
- * after the node will be parsed as a decimal point, rather than a property-access dot.
1653
- * @param {ASTNode} node The node to check.
1654
- * @returns {boolean} `true` if this node is a decimal integer.
1655
- * @example
1656
- *
1657
- * 0 // true
1658
- * 5 // true
1659
- * 50 // true
1660
- * 5_000 // true
1661
- * 1_234_56 // true
1662
- * 08 // true
1663
- * 0192 // true
1664
- * 5. // false
1665
- * .5 // false
1666
- * 5.0 // false
1667
- * 5.00_00 // false
1668
- * 05 // false
1669
- * 0x5 // false
1670
- * 0b101 // false
1671
- * 0b11_01 // false
1672
- * 0o5 // false
1673
- * 5e0 // false
1674
- * 5e1_000 // false
1675
- * 5n // false
1676
- * 1_000n // false
1677
- * "5" // false
1678
- *
1679
- */
1680
- isDecimalInteger(node) {
1681
- return node.type === "Literal" && typeof node.value === "number" &&
1682
- DECIMAL_INTEGER_PATTERN.test(node.raw);
1683
- },
1684
-
1685
- /**
1686
- * Determines whether this token is a decimal integer numeric token.
1687
- * This is similar to isDecimalInteger(), but for tokens.
1688
- * @param {Token} token The token to check.
1689
- * @returns {boolean} `true` if this token is a decimal integer.
1690
- */
1691
- isDecimalIntegerNumericToken(token) {
1692
- return token.type === "Numeric" && DECIMAL_INTEGER_PATTERN.test(token.value);
1693
- },
1694
-
1695
- /**
1696
- * Gets the name and kind of the given function node.
1697
- *
1698
- * - `function foo() {}` .................... `function 'foo'`
1699
- * - `(function foo() {})` .................. `function 'foo'`
1700
- * - `(function() {})` ...................... `function`
1701
- * - `function* foo() {}` ................... `generator function 'foo'`
1702
- * - `(function* foo() {})` ................. `generator function 'foo'`
1703
- * - `(function*() {})` ..................... `generator function`
1704
- * - `() => {}` ............................. `arrow function`
1705
- * - `async () => {}` ....................... `async arrow function`
1706
- * - `({ foo: function foo() {} })` ......... `method 'foo'`
1707
- * - `({ foo: function() {} })` ............. `method 'foo'`
1708
- * - `({ ['foo']: function() {} })` ......... `method 'foo'`
1709
- * - `({ [foo]: function() {} })` ........... `method`
1710
- * - `({ foo() {} })` ....................... `method 'foo'`
1711
- * - `({ foo: function* foo() {} })` ........ `generator method 'foo'`
1712
- * - `({ foo: function*() {} })` ............ `generator method 'foo'`
1713
- * - `({ ['foo']: function*() {} })` ........ `generator method 'foo'`
1714
- * - `({ [foo]: function*() {} })` .......... `generator method`
1715
- * - `({ *foo() {} })` ...................... `generator method 'foo'`
1716
- * - `({ foo: async function foo() {} })` ... `async method 'foo'`
1717
- * - `({ foo: async function() {} })` ....... `async method 'foo'`
1718
- * - `({ ['foo']: async function() {} })` ... `async method 'foo'`
1719
- * - `({ [foo]: async function() {} })` ..... `async method`
1720
- * - `({ async foo() {} })` ................. `async method 'foo'`
1721
- * - `({ get foo() {} })` ................... `getter 'foo'`
1722
- * - `({ set foo(a) {} })` .................. `setter 'foo'`
1723
- * - `class A { constructor() {} }` ......... `constructor`
1724
- * - `class A { foo() {} }` ................. `method 'foo'`
1725
- * - `class A { *foo() {} }` ................ `generator method 'foo'`
1726
- * - `class A { async foo() {} }` ........... `async method 'foo'`
1727
- * - `class A { ['foo']() {} }` ............. `method 'foo'`
1728
- * - `class A { *['foo']() {} }` ............ `generator method 'foo'`
1729
- * - `class A { async ['foo']() {} }` ....... `async method 'foo'`
1730
- * - `class A { [foo]() {} }` ............... `method`
1731
- * - `class A { *[foo]() {} }` .............. `generator method`
1732
- * - `class A { async [foo]() {} }` ......... `async method`
1733
- * - `class A { get foo() {} }` ............. `getter 'foo'`
1734
- * - `class A { set foo(a) {} }` ............ `setter 'foo'`
1735
- * - `class A { static foo() {} }` .......... `static method 'foo'`
1736
- * - `class A { static *foo() {} }` ......... `static generator method 'foo'`
1737
- * - `class A { static async foo() {} }` .... `static async method 'foo'`
1738
- * - `class A { static get foo() {} }` ...... `static getter 'foo'`
1739
- * - `class A { static set foo(a) {} }` ..... `static setter 'foo'`
1740
- * - `class A { foo = () => {}; }` .......... `method 'foo'`
1741
- * - `class A { foo = function() {}; }` ..... `method 'foo'`
1742
- * - `class A { foo = function bar() {}; }` . `method 'foo'`
1743
- * - `class A { static foo = () => {}; }` ... `static method 'foo'`
1744
- * - `class A { '#foo' = () => {}; }` ....... `method '#foo'`
1745
- * - `class A { #foo = () => {}; }` ......... `private method #foo`
1746
- * - `class A { static #foo = () => {}; }` .. `static private method #foo`
1747
- * - `class A { '#foo'() {} }` .............. `method '#foo'`
1748
- * - `class A { #foo() {} }` ................ `private method #foo`
1749
- * - `class A { static #foo() {} }` ......... `static private method #foo`
1750
- * @param {ASTNode} node The function node to get.
1751
- * @returns {string} The name and kind of the function node.
1752
- */
1753
- getFunctionNameWithKind(node) {
1754
- const parent = node.parent;
1755
- const tokens = [];
1756
-
1757
- if (parent.type === "MethodDefinition" || parent.type === "PropertyDefinition") {
1758
-
1759
- // The proposal uses `static` word consistently before visibility words: https://github.com/tc39/proposal-static-class-features
1760
- if (parent.static) {
1761
- tokens.push("static");
1762
- }
1763
- if (!parent.computed && parent.key.type === "PrivateIdentifier") {
1764
- tokens.push("private");
1765
- }
1766
- }
1767
- if (node.async) {
1768
- tokens.push("async");
1769
- }
1770
- if (node.generator) {
1771
- tokens.push("generator");
1772
- }
1773
-
1774
- if (parent.type === "Property" || parent.type === "MethodDefinition") {
1775
- if (parent.kind === "constructor") {
1776
- return "constructor";
1777
- }
1778
- if (parent.kind === "get") {
1779
- tokens.push("getter");
1780
- } else if (parent.kind === "set") {
1781
- tokens.push("setter");
1782
- } else {
1783
- tokens.push("method");
1784
- }
1785
- } else if (parent.type === "PropertyDefinition") {
1786
- tokens.push("method");
1787
- } else {
1788
- if (node.type === "ArrowFunctionExpression") {
1789
- tokens.push("arrow");
1790
- }
1791
- tokens.push("function");
1792
- }
1793
-
1794
- if (parent.type === "Property" || parent.type === "MethodDefinition" || parent.type === "PropertyDefinition") {
1795
- if (!parent.computed && parent.key.type === "PrivateIdentifier") {
1796
- tokens.push(`#${parent.key.name}`);
1797
- } else {
1798
- const name = getStaticPropertyName(parent);
1799
-
1800
- if (name !== null) {
1801
- tokens.push(`'${name}'`);
1802
- } else if (node.id) {
1803
- tokens.push(`'${node.id.name}'`);
1804
- }
1805
- }
1806
- } else if (node.id) {
1807
- tokens.push(`'${node.id.name}'`);
1808
- }
1809
-
1810
- return tokens.join(" ");
1811
- },
1812
-
1813
- /**
1814
- * Gets the location of the given function node for reporting.
1815
- *
1816
- * - `function foo() {}`
1817
- * ^^^^^^^^^^^^
1818
- * - `(function foo() {})`
1819
- * ^^^^^^^^^^^^
1820
- * - `(function() {})`
1821
- * ^^^^^^^^
1822
- * - `function* foo() {}`
1823
- * ^^^^^^^^^^^^^
1824
- * - `(function* foo() {})`
1825
- * ^^^^^^^^^^^^^
1826
- * - `(function*() {})`
1827
- * ^^^^^^^^^
1828
- * - `() => {}`
1829
- * ^^
1830
- * - `async () => {}`
1831
- * ^^
1832
- * - `({ foo: function foo() {} })`
1833
- * ^^^^^^^^^^^^^^^^^
1834
- * - `({ foo: function() {} })`
1835
- * ^^^^^^^^^^^^^
1836
- * - `({ ['foo']: function() {} })`
1837
- * ^^^^^^^^^^^^^^^^^
1838
- * - `({ [foo]: function() {} })`
1839
- * ^^^^^^^^^^^^^^^
1840
- * - `({ foo() {} })`
1841
- * ^^^
1842
- * - `({ foo: function* foo() {} })`
1843
- * ^^^^^^^^^^^^^^^^^^
1844
- * - `({ foo: function*() {} })`
1845
- * ^^^^^^^^^^^^^^
1846
- * - `({ ['foo']: function*() {} })`
1847
- * ^^^^^^^^^^^^^^^^^^
1848
- * - `({ [foo]: function*() {} })`
1849
- * ^^^^^^^^^^^^^^^^
1850
- * - `({ *foo() {} })`
1851
- * ^^^^
1852
- * - `({ foo: async function foo() {} })`
1853
- * ^^^^^^^^^^^^^^^^^^^^^^^
1854
- * - `({ foo: async function() {} })`
1855
- * ^^^^^^^^^^^^^^^^^^^
1856
- * - `({ ['foo']: async function() {} })`
1857
- * ^^^^^^^^^^^^^^^^^^^^^^^
1858
- * - `({ [foo]: async function() {} })`
1859
- * ^^^^^^^^^^^^^^^^^^^^^
1860
- * - `({ async foo() {} })`
1861
- * ^^^^^^^^^
1862
- * - `({ get foo() {} })`
1863
- * ^^^^^^^
1864
- * - `({ set foo(a) {} })`
1865
- * ^^^^^^^
1866
- * - `class A { constructor() {} }`
1867
- * ^^^^^^^^^^^
1868
- * - `class A { foo() {} }`
1869
- * ^^^
1870
- * - `class A { *foo() {} }`
1871
- * ^^^^
1872
- * - `class A { async foo() {} }`
1873
- * ^^^^^^^^^
1874
- * - `class A { ['foo']() {} }`
1875
- * ^^^^^^^
1876
- * - `class A { *['foo']() {} }`
1877
- * ^^^^^^^^
1878
- * - `class A { async ['foo']() {} }`
1879
- * ^^^^^^^^^^^^^
1880
- * - `class A { [foo]() {} }`
1881
- * ^^^^^
1882
- * - `class A { *[foo]() {} }`
1883
- * ^^^^^^
1884
- * - `class A { async [foo]() {} }`
1885
- * ^^^^^^^^^^^
1886
- * - `class A { get foo() {} }`
1887
- * ^^^^^^^
1888
- * - `class A { set foo(a) {} }`
1889
- * ^^^^^^^
1890
- * - `class A { static foo() {} }`
1891
- * ^^^^^^^^^^
1892
- * - `class A { static *foo() {} }`
1893
- * ^^^^^^^^^^^
1894
- * - `class A { static async foo() {} }`
1895
- * ^^^^^^^^^^^^^^^^
1896
- * - `class A { static get foo() {} }`
1897
- * ^^^^^^^^^^^^^^
1898
- * - `class A { static set foo(a) {} }`
1899
- * ^^^^^^^^^^^^^^
1900
- * - `class A { foo = function() {} }`
1901
- * ^^^^^^^^^^^^^^
1902
- * - `class A { static foo = function() {} }`
1903
- * ^^^^^^^^^^^^^^^^^^^^^
1904
- * - `class A { foo = (a, b) => {} }`
1905
- * ^^^^^^
1906
- * @param {ASTNode} node The function node to get.
1907
- * @param {SourceCode} sourceCode The source code object to get tokens.
1908
- * @returns {string} The location of the function node for reporting.
1909
- */
1910
- getFunctionHeadLoc(node, sourceCode) {
1911
- const parent = node.parent;
1912
- let start = null;
1913
- let end = null;
1914
-
1915
- if (parent.type === "Property" || parent.type === "MethodDefinition" || parent.type === "PropertyDefinition") {
1916
- start = parent.loc.start;
1917
- end = getOpeningParenOfParams(node, sourceCode).loc.start;
1918
- } else if (node.type === "ArrowFunctionExpression") {
1919
- const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken);
1920
-
1921
- start = arrowToken.loc.start;
1922
- end = arrowToken.loc.end;
1923
- } else {
1924
- start = node.loc.start;
1925
- end = getOpeningParenOfParams(node, sourceCode).loc.start;
1926
- }
1927
-
1928
- return {
1929
- start: Object.assign({}, start),
1930
- end: Object.assign({}, end)
1931
- };
1932
- },
1933
-
1934
- /**
1935
- * Gets next location when the result is not out of bound, otherwise returns null.
1936
- *
1937
- * Assumptions:
1938
- *
1939
- * - The given location represents a valid location in the given source code.
1940
- * - Columns are 0-based.
1941
- * - Lines are 1-based.
1942
- * - Column immediately after the last character in a line (not incl. linebreaks) is considered to be a valid location.
1943
- * - If the source code ends with a linebreak, `sourceCode.lines` array will have an extra element (empty string) at the end.
1944
- * The start (column 0) of that extra line is considered to be a valid location.
1945
- *
1946
- * Examples of successive locations (line, column):
1947
- *
1948
- * code: foo
1949
- * locations: (1, 0) -> (1, 1) -> (1, 2) -> (1, 3) -> null
1950
- *
1951
- * code: foo<LF>
1952
- * locations: (1, 0) -> (1, 1) -> (1, 2) -> (1, 3) -> (2, 0) -> null
1953
- *
1954
- * code: foo<CR><LF>
1955
- * locations: (1, 0) -> (1, 1) -> (1, 2) -> (1, 3) -> (2, 0) -> null
1956
- *
1957
- * code: a<LF>b
1958
- * locations: (1, 0) -> (1, 1) -> (2, 0) -> (2, 1) -> null
1959
- *
1960
- * code: a<LF>b<LF>
1961
- * locations: (1, 0) -> (1, 1) -> (2, 0) -> (2, 1) -> (3, 0) -> null
1962
- *
1963
- * code: a<CR><LF>b<CR><LF>
1964
- * locations: (1, 0) -> (1, 1) -> (2, 0) -> (2, 1) -> (3, 0) -> null
1965
- *
1966
- * code: a<LF><LF>
1967
- * locations: (1, 0) -> (1, 1) -> (2, 0) -> (3, 0) -> null
1968
- *
1969
- * code: <LF>
1970
- * locations: (1, 0) -> (2, 0) -> null
1971
- *
1972
- * code:
1973
- * locations: (1, 0) -> null
1974
- * @param {SourceCode} sourceCode The sourceCode
1975
- * @param {{line: number, column: number}} location The location
1976
- * @returns {{line: number, column: number} | null} Next location
1977
- */
1978
- getNextLocation(sourceCode, { line, column }) {
1979
- if (column < sourceCode.lines[line - 1].length) {
1980
- return {
1981
- line,
1982
- column: column + 1
1983
- };
1984
- }
1985
-
1986
- if (line < sourceCode.lines.length) {
1987
- return {
1988
- line: line + 1,
1989
- column: 0
1990
- };
1991
- }
1992
-
1993
- return null;
1994
- },
1995
-
1996
- /**
1997
- * Gets the parenthesized text of a node. This is similar to sourceCode.getText(node), but it also includes any parentheses
1998
- * surrounding the node.
1999
- * @param {SourceCode} sourceCode The source code object
2000
- * @param {ASTNode} node An expression node
2001
- * @returns {string} The text representing the node, with all surrounding parentheses included
2002
- */
2003
- getParenthesisedText(sourceCode, node) {
2004
- let leftToken = sourceCode.getFirstToken(node);
2005
- let rightToken = sourceCode.getLastToken(node);
2006
-
2007
- while (
2008
- sourceCode.getTokenBefore(leftToken) &&
2009
- sourceCode.getTokenBefore(leftToken).type === "Punctuator" &&
2010
- sourceCode.getTokenBefore(leftToken).value === "(" &&
2011
- sourceCode.getTokenAfter(rightToken) &&
2012
- sourceCode.getTokenAfter(rightToken).type === "Punctuator" &&
2013
- sourceCode.getTokenAfter(rightToken).value === ")"
2014
- ) {
2015
- leftToken = sourceCode.getTokenBefore(leftToken);
2016
- rightToken = sourceCode.getTokenAfter(rightToken);
2017
- }
2018
-
2019
- return sourceCode.getText().slice(leftToken.range[0], rightToken.range[1]);
2020
- },
2021
-
2022
- /**
2023
- * Determine if a node has a possibility to be an Error object
2024
- * @param {ASTNode} node ASTNode to check
2025
- * @returns {boolean} True if there is a chance it contains an Error obj
2026
- */
2027
- couldBeError(node) {
2028
- switch (node.type) {
2029
- case "Identifier":
2030
- case "CallExpression":
2031
- case "NewExpression":
2032
- case "MemberExpression":
2033
- case "TaggedTemplateExpression":
2034
- case "YieldExpression":
2035
- case "AwaitExpression":
2036
- case "ChainExpression":
2037
- return true; // possibly an error object.
2038
-
2039
- case "AssignmentExpression":
2040
- if (["=", "&&="].includes(node.operator)) {
2041
- return module.exports.couldBeError(node.right);
2042
- }
2043
-
2044
- if (["||=", "??="].includes(node.operator)) {
2045
- return module.exports.couldBeError(node.left) || module.exports.couldBeError(node.right);
2046
- }
2047
-
2048
- /**
2049
- * All other assignment operators are mathematical assignment operators (arithmetic or bitwise).
2050
- * An assignment expression with a mathematical operator can either evaluate to a primitive value,
2051
- * or throw, depending on the operands. Thus, it cannot evaluate to an `Error` object.
2052
- */
2053
- return false;
2054
-
2055
- case "SequenceExpression": {
2056
- const exprs = node.expressions;
2057
-
2058
- return exprs.length !== 0 && module.exports.couldBeError(exprs[exprs.length - 1]);
2059
- }
2060
-
2061
- case "LogicalExpression":
2062
-
2063
- /*
2064
- * If the && operator short-circuits, the left side was falsy and therefore not an error, and if it
2065
- * doesn't short-circuit, it takes the value from the right side, so the right side must always be
2066
- * a plausible error. A future improvement could verify that the left side could be truthy by
2067
- * excluding falsy literals.
2068
- */
2069
- if (node.operator === "&&") {
2070
- return module.exports.couldBeError(node.right);
2071
- }
2072
-
2073
- return module.exports.couldBeError(node.left) || module.exports.couldBeError(node.right);
2074
-
2075
- case "ConditionalExpression":
2076
- return module.exports.couldBeError(node.consequent) || module.exports.couldBeError(node.alternate);
2077
-
2078
- default:
2079
- return false;
2080
- }
2081
- },
2082
-
2083
- /**
2084
- * Check if a given node is a numeric literal or not.
2085
- * @param {ASTNode} node The node to check.
2086
- * @returns {boolean} `true` if the node is a number or bigint literal.
2087
- */
2088
- isNumericLiteral(node) {
2089
- return (
2090
- node.type === "Literal" &&
2091
- (typeof node.value === "number" || Boolean(node.bigint))
2092
- );
2093
- },
2094
-
2095
- /**
2096
- * Determines whether two tokens can safely be placed next to each other without merging into a single token
2097
- * @param {Token|string} leftValue The left token. If this is a string, it will be tokenized and the last token will be used.
2098
- * @param {Token|string} rightValue The right token. If this is a string, it will be tokenized and the first token will be used.
2099
- * @returns {boolean} If the tokens cannot be safely placed next to each other, returns `false`. If the tokens can be placed
2100
- * next to each other, behavior is undefined (although it should return `true` in most cases).
2101
- */
2102
- canTokensBeAdjacent(leftValue, rightValue) {
2103
- const espreeOptions = {
2104
- ecmaVersion: espree.latestEcmaVersion,
2105
- comment: true,
2106
- range: true
2107
- };
2108
-
2109
- let leftToken;
2110
-
2111
- if (typeof leftValue === "string") {
2112
- let tokens;
2113
-
2114
- try {
2115
- tokens = espree.tokenize(leftValue, espreeOptions);
2116
- } catch {
2117
- return false;
2118
- }
2119
-
2120
- const comments = tokens.comments;
2121
-
2122
- leftToken = tokens[tokens.length - 1];
2123
- if (comments.length) {
2124
- const lastComment = comments[comments.length - 1];
2125
-
2126
- if (!leftToken || lastComment.range[0] > leftToken.range[0]) {
2127
- leftToken = lastComment;
2128
- }
2129
- }
2130
- } else {
2131
- leftToken = leftValue;
2132
- }
2133
-
2134
- /*
2135
- * If a hashbang comment was passed as a token object from SourceCode,
2136
- * its type will be "Shebang" because of the way ESLint itself handles hashbangs.
2137
- * If a hashbang comment was passed in a string and then tokenized in this function,
2138
- * its type will be "Hashbang" because of the way Espree tokenizes hashbangs.
2139
- */
2140
- if (leftToken.type === "Shebang" || leftToken.type === "Hashbang") {
2141
- return false;
2142
- }
2143
-
2144
- let rightToken;
2145
-
2146
- if (typeof rightValue === "string") {
2147
- let tokens;
2148
-
2149
- try {
2150
- tokens = espree.tokenize(rightValue, espreeOptions);
2151
- } catch {
2152
- return false;
2153
- }
2154
-
2155
- const comments = tokens.comments;
2156
-
2157
- rightToken = tokens[0];
2158
- if (comments.length) {
2159
- const firstComment = comments[0];
2160
-
2161
- if (!rightToken || firstComment.range[0] < rightToken.range[0]) {
2162
- rightToken = firstComment;
2163
- }
2164
- }
2165
- } else {
2166
- rightToken = rightValue;
2167
- }
2168
-
2169
- if (leftToken.type === "Punctuator" || rightToken.type === "Punctuator") {
2170
- if (leftToken.type === "Punctuator" && rightToken.type === "Punctuator") {
2171
- const PLUS_TOKENS = new Set(["+", "++"]);
2172
- const MINUS_TOKENS = new Set(["-", "--"]);
2173
-
2174
- return !(
2175
- PLUS_TOKENS.has(leftToken.value) && PLUS_TOKENS.has(rightToken.value) ||
2176
- MINUS_TOKENS.has(leftToken.value) && MINUS_TOKENS.has(rightToken.value)
2177
- );
2178
- }
2179
- if (leftToken.type === "Punctuator" && leftToken.value === "/") {
2180
- return !["Block", "Line", "RegularExpression"].includes(rightToken.type);
2181
- }
2182
- return true;
2183
- }
2184
-
2185
- if (
2186
- leftToken.type === "String" || rightToken.type === "String" ||
2187
- leftToken.type === "Template" || rightToken.type === "Template"
2188
- ) {
2189
- return true;
2190
- }
2191
-
2192
- if (leftToken.type !== "Numeric" && rightToken.type === "Numeric" && rightToken.value.startsWith(".")) {
2193
- return true;
2194
- }
2195
-
2196
- if (leftToken.type === "Block" || rightToken.type === "Block" || rightToken.type === "Line") {
2197
- return true;
2198
- }
2199
-
2200
- if (rightToken.type === "PrivateIdentifier") {
2201
- return true;
2202
- }
2203
-
2204
- return false;
2205
- },
2206
-
2207
- /**
2208
- * Get the `loc` object of a given name in a `/*globals` directive comment.
2209
- * @param {SourceCode} sourceCode The source code to convert index to loc.
2210
- * @param {Comment} comment The `/*globals` directive comment which include the name.
2211
- * @param {string} name The name to find.
2212
- * @returns {SourceLocation} The `loc` object.
2213
- */
2214
- getNameLocationInGlobalDirectiveComment(sourceCode, comment, name) {
2215
- const namePattern = new RegExp(`[\\s,]${escapeRegExp(name)}(?:$|[\\s,:])`, "gu");
2216
-
2217
- // To ignore the first text "global".
2218
- namePattern.lastIndex = comment.value.indexOf("global") + 6;
2219
-
2220
- // Search a given variable name.
2221
- const match = namePattern.exec(comment.value);
2222
-
2223
- // Convert the index to loc.
2224
- const start = sourceCode.getLocFromIndex(
2225
- comment.range[0] +
2226
- "/*".length +
2227
- (match ? match.index + 1 : 0)
2228
- );
2229
- const end = {
2230
- line: start.line,
2231
- column: start.column + (match ? name.length : 1)
2232
- };
2233
-
2234
- return { start, end };
2235
- },
2236
-
2237
- /**
2238
- * Determines whether the given raw string contains an octal escape sequence
2239
- * or a non-octal decimal escape sequence ("\8", "\9").
2240
- *
2241
- * "\1", "\2" ... "\7", "\8", "\9"
2242
- * "\00", "\01" ... "\07", "\08", "\09"
2243
- *
2244
- * "\0", when not followed by a digit, is not an octal escape sequence.
2245
- * @param {string} rawString A string in its raw representation.
2246
- * @returns {boolean} `true` if the string contains at least one octal escape sequence
2247
- * or at least one non-octal decimal escape sequence.
2248
- */
2249
- hasOctalOrNonOctalDecimalEscapeSequence(rawString) {
2250
- return OCTAL_OR_NON_OCTAL_DECIMAL_ESCAPE_PATTERN.test(rawString);
2251
- },
2252
-
2253
- /**
2254
- * Determines whether the given node is a template literal without expressions.
2255
- * @param {ASTNode} node Node to check.
2256
- * @returns {boolean} True if the node is a template literal without expressions.
2257
- */
2258
- isStaticTemplateLiteral(node) {
2259
- return node.type === "TemplateLiteral" && node.expressions.length === 0;
2260
- },
2261
-
2262
- isReferenceToGlobalVariable,
2263
- isLogicalExpression,
2264
- isCoalesceExpression,
2265
- isMixedLogicalAndCoalesceExpressions,
2266
- isNullLiteral,
2267
- getStaticStringValue,
2268
- getStaticPropertyName,
2269
- skipChainExpression,
2270
- isSpecificId,
2271
- isSpecificMemberAccess,
2272
- equalLiteralValue,
2273
- isSameReference,
2274
- isLogicalAssignmentOperator,
2275
- getSwitchCaseColonToken,
2276
- getModuleExportName,
2277
- isConstant,
2278
- isTopLevelExpressionStatement,
2279
- isDirective,
2280
- isStartOfExpressionStatement,
2281
- needsPrecedingSemicolon
2282
- };