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,2119 +0,0 @@
1
- /**
2
- * @fileoverview Main Linter Class
3
- * @author Gyandeep Singh
4
- * @author aladdin-add
5
- */
6
-
7
- "use strict";
8
-
9
- //------------------------------------------------------------------------------
10
- // Requirements
11
- //------------------------------------------------------------------------------
12
-
13
- const
14
- path = require("path"),
15
- eslintScope = require("eslint-scope"),
16
- evk = require("eslint-visitor-keys"),
17
- espree = require("espree"),
18
- merge = require("lodash.merge"),
19
- pkg = require("../../package.json"),
20
- astUtils = require("../shared/ast-utils"),
21
- {
22
- directivesPattern
23
- } = require("../shared/directives"),
24
- {
25
- Legacy: {
26
- ConfigOps,
27
- ConfigValidator,
28
- environments: BuiltInEnvironments
29
- }
30
- } = require("@eslint/eslintrc/universal"),
31
- Traverser = require("../shared/traverser"),
32
- { SourceCode } = require("../source-code"),
33
- CodePathAnalyzer = require("./code-path-analysis/code-path-analyzer"),
34
- applyDisableDirectives = require("./apply-disable-directives"),
35
- ConfigCommentParser = require("./config-comment-parser"),
36
- NodeEventGenerator = require("./node-event-generator"),
37
- createReportTranslator = require("./report-translator"),
38
- Rules = require("./rules"),
39
- createEmitter = require("./safe-emitter"),
40
- SourceCodeFixer = require("./source-code-fixer"),
41
- timing = require("./timing"),
42
- ruleReplacements = require("../../conf/replacements.json");
43
- const { getRuleFromConfig } = require("../config/flat-config-helpers");
44
- const { FlatConfigArray } = require("../config/flat-config-array");
45
- const { RuleValidator } = require("../config/rule-validator");
46
- const { assertIsRuleOptions, assertIsRuleSeverity } = require("../config/flat-config-schema");
47
- const { normalizeSeverityToString } = require("../shared/severity");
48
- const debug = require("debug")("eslint:linter");
49
- const MAX_AUTOFIX_PASSES = 10;
50
- const DEFAULT_PARSER_NAME = "espree";
51
- const DEFAULT_ECMA_VERSION = 5;
52
- const commentParser = new ConfigCommentParser();
53
- const DEFAULT_ERROR_LOC = { start: { line: 1, column: 0 }, end: { line: 1, column: 1 } };
54
- const parserSymbol = Symbol.for("eslint.RuleTester.parser");
55
-
56
- //------------------------------------------------------------------------------
57
- // Typedefs
58
- //------------------------------------------------------------------------------
59
-
60
- /** @typedef {InstanceType<import("../cli-engine/config-array").ConfigArray>} ConfigArray */
61
- /** @typedef {InstanceType<import("../cli-engine/config-array").ExtractedConfig>} ExtractedConfig */
62
- /** @typedef {import("../shared/types").ConfigData} ConfigData */
63
- /** @typedef {import("../shared/types").Environment} Environment */
64
- /** @typedef {import("../shared/types").GlobalConf} GlobalConf */
65
- /** @typedef {import("../shared/types").LintMessage} LintMessage */
66
- /** @typedef {import("../shared/types").SuppressedLintMessage} SuppressedLintMessage */
67
- /** @typedef {import("../shared/types").ParserOptions} ParserOptions */
68
- /** @typedef {import("../shared/types").LanguageOptions} LanguageOptions */
69
- /** @typedef {import("../shared/types").Processor} Processor */
70
- /** @typedef {import("../shared/types").Rule} Rule */
71
-
72
- /* eslint-disable jsdoc/valid-types -- https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/4#issuecomment-778805577 */
73
- /**
74
- * @template T
75
- * @typedef {{ [P in keyof T]-?: T[P] }} Required
76
- */
77
- /* eslint-enable jsdoc/valid-types -- https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/4#issuecomment-778805577 */
78
-
79
- /**
80
- * @typedef {Object} DisableDirective
81
- * @property {("disable"|"enable"|"disable-line"|"disable-next-line")} type Type of directive
82
- * @property {number} line The line number
83
- * @property {number} column The column number
84
- * @property {(string|null)} ruleId The rule ID
85
- * @property {string} justification The justification of directive
86
- */
87
-
88
- /**
89
- * The private data for `Linter` instance.
90
- * @typedef {Object} LinterInternalSlots
91
- * @property {ConfigArray|null} lastConfigArray The `ConfigArray` instance that the last `verify()` call used.
92
- * @property {SourceCode|null} lastSourceCode The `SourceCode` instance that the last `verify()` call used.
93
- * @property {SuppressedLintMessage[]} lastSuppressedMessages The `SuppressedLintMessage[]` instance that the last `verify()` call produced.
94
- * @property {Map<string, Parser>} parserMap The loaded parsers.
95
- * @property {Rules} ruleMap The loaded rules.
96
- */
97
-
98
- /**
99
- * @typedef {Object} VerifyOptions
100
- * @property {boolean} [allowInlineConfig] Allow/disallow inline comments' ability
101
- * to change config once it is set. Defaults to true if not supplied.
102
- * Useful if you want to validate JS without comments overriding rules.
103
- * @property {boolean} [disableFixes] if `true` then the linter doesn't make `fix`
104
- * properties into the lint result.
105
- * @property {string} [filename] the filename of the source code.
106
- * @property {boolean | "off" | "warn" | "error"} [reportUnusedDisableDirectives] Adds reported errors for
107
- * unused `eslint-disable` directives.
108
- */
109
-
110
- /**
111
- * @typedef {Object} ProcessorOptions
112
- * @property {(filename:string, text:string) => boolean} [filterCodeBlock] the
113
- * predicate function that selects adopt code blocks.
114
- * @property {Processor.postprocess} [postprocess] postprocessor for report
115
- * messages. If provided, this should accept an array of the message lists
116
- * for each code block returned from the preprocessor, apply a mapping to
117
- * the messages as appropriate, and return a one-dimensional array of
118
- * messages.
119
- * @property {Processor.preprocess} [preprocess] preprocessor for source text.
120
- * If provided, this should accept a string of source text, and return an
121
- * array of code blocks to lint.
122
- */
123
-
124
- /**
125
- * @typedef {Object} FixOptions
126
- * @property {boolean | ((message: LintMessage) => boolean)} [fix] Determines
127
- * whether fixes should be applied.
128
- */
129
-
130
- /**
131
- * @typedef {Object} InternalOptions
132
- * @property {string | null} warnInlineConfig The config name what `noInlineConfig` setting came from. If `noInlineConfig` setting didn't exist, this is null. If this is a config name, then the linter warns directive comments.
133
- * @property {"off" | "warn" | "error"} reportUnusedDisableDirectives (boolean values were normalized)
134
- */
135
-
136
- //------------------------------------------------------------------------------
137
- // Helpers
138
- //------------------------------------------------------------------------------
139
-
140
- /**
141
- * Determines if a given object is Espree.
142
- * @param {Object} parser The parser to check.
143
- * @returns {boolean} True if the parser is Espree or false if not.
144
- */
145
- function isEspree(parser) {
146
- return !!(parser === espree || parser[parserSymbol] === espree);
147
- }
148
-
149
- /**
150
- * Ensures that variables representing built-in properties of the Global Object,
151
- * and any globals declared by special block comments, are present in the global
152
- * scope.
153
- * @param {Scope} globalScope The global scope.
154
- * @param {Object} configGlobals The globals declared in configuration
155
- * @param {{exportedVariables: Object, enabledGlobals: Object}} commentDirectives Directives from comment configuration
156
- * @returns {void}
157
- */
158
- function addDeclaredGlobals(globalScope, configGlobals, { exportedVariables, enabledGlobals }) {
159
-
160
- // Define configured global variables.
161
- for (const id of new Set([...Object.keys(configGlobals), ...Object.keys(enabledGlobals)])) {
162
-
163
- /*
164
- * `ConfigOps.normalizeConfigGlobal` will throw an error if a configured global value is invalid. However, these errors would
165
- * typically be caught when validating a config anyway (validity for inline global comments is checked separately).
166
- */
167
- const configValue = configGlobals[id] === void 0 ? void 0 : ConfigOps.normalizeConfigGlobal(configGlobals[id]);
168
- const commentValue = enabledGlobals[id] && enabledGlobals[id].value;
169
- const value = commentValue || configValue;
170
- const sourceComments = enabledGlobals[id] && enabledGlobals[id].comments;
171
-
172
- if (value === "off") {
173
- continue;
174
- }
175
-
176
- let variable = globalScope.set.get(id);
177
-
178
- if (!variable) {
179
- variable = new eslintScope.Variable(id, globalScope);
180
-
181
- globalScope.variables.push(variable);
182
- globalScope.set.set(id, variable);
183
- }
184
-
185
- variable.eslintImplicitGlobalSetting = configValue;
186
- variable.eslintExplicitGlobal = sourceComments !== void 0;
187
- variable.eslintExplicitGlobalComments = sourceComments;
188
- variable.writeable = (value === "writable");
189
- }
190
-
191
- // mark all exported variables as such
192
- Object.keys(exportedVariables).forEach(name => {
193
- const variable = globalScope.set.get(name);
194
-
195
- if (variable) {
196
- variable.eslintUsed = true;
197
- variable.eslintExported = true;
198
- }
199
- });
200
-
201
- /*
202
- * "through" contains all references which definitions cannot be found.
203
- * Since we augment the global scope using configuration, we need to update
204
- * references and remove the ones that were added by configuration.
205
- */
206
- globalScope.through = globalScope.through.filter(reference => {
207
- const name = reference.identifier.name;
208
- const variable = globalScope.set.get(name);
209
-
210
- if (variable) {
211
-
212
- /*
213
- * Links the variable and the reference.
214
- * And this reference is removed from `Scope#through`.
215
- */
216
- reference.resolved = variable;
217
- variable.references.push(reference);
218
-
219
- return false;
220
- }
221
-
222
- return true;
223
- });
224
- }
225
-
226
- /**
227
- * creates a missing-rule message.
228
- * @param {string} ruleId the ruleId to create
229
- * @returns {string} created error message
230
- * @private
231
- */
232
- function createMissingRuleMessage(ruleId) {
233
- return Object.prototype.hasOwnProperty.call(ruleReplacements.rules, ruleId)
234
- ? `Rule '${ruleId}' was removed and replaced by: ${ruleReplacements.rules[ruleId].join(", ")}`
235
- : `Definition for rule '${ruleId}' was not found.`;
236
- }
237
-
238
- /**
239
- * creates a linting problem
240
- * @param {Object} options to create linting error
241
- * @param {string} [options.ruleId] the ruleId to report
242
- * @param {Object} [options.loc] the loc to report
243
- * @param {string} [options.message] the error message to report
244
- * @param {string} [options.severity] the error message to report
245
- * @returns {LintMessage} created problem, returns a missing-rule problem if only provided ruleId.
246
- * @private
247
- */
248
- function createLintingProblem(options) {
249
- const {
250
- ruleId = null,
251
- loc = DEFAULT_ERROR_LOC,
252
- message = createMissingRuleMessage(options.ruleId),
253
- severity = 2
254
- } = options;
255
-
256
- return {
257
- ruleId,
258
- message,
259
- line: loc.start.line,
260
- column: loc.start.column + 1,
261
- endLine: loc.end.line,
262
- endColumn: loc.end.column + 1,
263
- severity,
264
- nodeType: null
265
- };
266
- }
267
-
268
- /**
269
- * Creates a collection of disable directives from a comment
270
- * @param {Object} options to create disable directives
271
- * @param {("disable"|"enable"|"disable-line"|"disable-next-line")} options.type The type of directive comment
272
- * @param {token} options.commentToken The Comment token
273
- * @param {string} options.value The value after the directive in the comment
274
- * comment specified no specific rules, so it applies to all rules (e.g. `eslint-disable`)
275
- * @param {string} options.justification The justification of the directive
276
- * @param {function(string): {create: Function}} options.ruleMapper A map from rule IDs to defined rules
277
- * @returns {Object} Directives and problems from the comment
278
- */
279
- function createDisableDirectives(options) {
280
- const { commentToken, type, value, justification, ruleMapper } = options;
281
- const ruleIds = Object.keys(commentParser.parseListConfig(value));
282
- const directiveRules = ruleIds.length ? ruleIds : [null];
283
- const result = {
284
- directives: [], // valid disable directives
285
- directiveProblems: [] // problems in directives
286
- };
287
-
288
- const parentComment = { commentToken, ruleIds };
289
-
290
- for (const ruleId of directiveRules) {
291
-
292
- // push to directives, if the rule is defined(including null, e.g. /*eslint enable*/)
293
- if (ruleId === null || !!ruleMapper(ruleId)) {
294
- if (type === "disable-next-line") {
295
- result.directives.push({
296
- parentComment,
297
- type,
298
- line: commentToken.loc.end.line,
299
- column: commentToken.loc.end.column + 1,
300
- ruleId,
301
- justification
302
- });
303
- } else {
304
- result.directives.push({
305
- parentComment,
306
- type,
307
- line: commentToken.loc.start.line,
308
- column: commentToken.loc.start.column + 1,
309
- ruleId,
310
- justification
311
- });
312
- }
313
- } else {
314
- result.directiveProblems.push(createLintingProblem({ ruleId, loc: commentToken.loc }));
315
- }
316
- }
317
- return result;
318
- }
319
-
320
- /**
321
- * Parses comments in file to extract file-specific config of rules, globals
322
- * and environments and merges them with global config; also code blocks
323
- * where reporting is disabled or enabled and merges them with reporting config.
324
- * @param {SourceCode} sourceCode The SourceCode object to get comments from.
325
- * @param {function(string): {create: Function}} ruleMapper A map from rule IDs to defined rules
326
- * @param {string|null} warnInlineConfig If a string then it should warn directive comments as disabled. The string value is the config name what the setting came from.
327
- * @returns {{configuredRules: Object, enabledGlobals: {value:string,comment:Token}[], exportedVariables: Object, problems: LintMessage[], disableDirectives: DisableDirective[]}}
328
- * A collection of the directive comments that were found, along with any problems that occurred when parsing
329
- */
330
- function getDirectiveComments(sourceCode, ruleMapper, warnInlineConfig) {
331
- const configuredRules = {};
332
- const enabledGlobals = Object.create(null);
333
- const exportedVariables = {};
334
- const problems = [];
335
- const disableDirectives = [];
336
- const validator = new ConfigValidator({
337
- builtInRules: Rules
338
- });
339
-
340
- sourceCode.getInlineConfigNodes().filter(token => token.type !== "Shebang").forEach(comment => {
341
- const { directivePart, justificationPart } = commentParser.extractDirectiveComment(comment.value);
342
-
343
- const match = directivesPattern.exec(directivePart);
344
-
345
- if (!match) {
346
- return;
347
- }
348
- const directiveText = match[1];
349
- const lineCommentSupported = /^eslint-disable-(next-)?line$/u.test(directiveText);
350
-
351
- if (comment.type === "Line" && !lineCommentSupported) {
352
- return;
353
- }
354
-
355
- if (warnInlineConfig) {
356
- const kind = comment.type === "Block" ? `/*${directiveText}*/` : `//${directiveText}`;
357
-
358
- problems.push(createLintingProblem({
359
- ruleId: null,
360
- message: `'${kind}' has no effect because you have 'noInlineConfig' setting in ${warnInlineConfig}.`,
361
- loc: comment.loc,
362
- severity: 1
363
- }));
364
- return;
365
- }
366
-
367
- if (directiveText === "eslint-disable-line" && comment.loc.start.line !== comment.loc.end.line) {
368
- const message = `${directiveText} comment should not span multiple lines.`;
369
-
370
- problems.push(createLintingProblem({
371
- ruleId: null,
372
- message,
373
- loc: comment.loc
374
- }));
375
- return;
376
- }
377
-
378
- const directiveValue = directivePart.slice(match.index + directiveText.length);
379
-
380
- switch (directiveText) {
381
- case "eslint-disable":
382
- case "eslint-enable":
383
- case "eslint-disable-next-line":
384
- case "eslint-disable-line": {
385
- const directiveType = directiveText.slice("eslint-".length);
386
- const options = { commentToken: comment, type: directiveType, value: directiveValue, justification: justificationPart, ruleMapper };
387
- const { directives, directiveProblems } = createDisableDirectives(options);
388
-
389
- disableDirectives.push(...directives);
390
- problems.push(...directiveProblems);
391
- break;
392
- }
393
-
394
- case "exported":
395
- Object.assign(exportedVariables, commentParser.parseStringConfig(directiveValue, comment));
396
- break;
397
-
398
- case "globals":
399
- case "global":
400
- for (const [id, { value }] of Object.entries(commentParser.parseStringConfig(directiveValue, comment))) {
401
- let normalizedValue;
402
-
403
- try {
404
- normalizedValue = ConfigOps.normalizeConfigGlobal(value);
405
- } catch (err) {
406
- problems.push(createLintingProblem({
407
- ruleId: null,
408
- loc: comment.loc,
409
- message: err.message
410
- }));
411
- continue;
412
- }
413
-
414
- if (enabledGlobals[id]) {
415
- enabledGlobals[id].comments.push(comment);
416
- enabledGlobals[id].value = normalizedValue;
417
- } else {
418
- enabledGlobals[id] = {
419
- comments: [comment],
420
- value: normalizedValue
421
- };
422
- }
423
- }
424
- break;
425
-
426
- case "eslint": {
427
- const parseResult = commentParser.parseJsonConfig(directiveValue, comment.loc);
428
-
429
- if (parseResult.success) {
430
- Object.keys(parseResult.config).forEach(name => {
431
- const rule = ruleMapper(name);
432
- const ruleValue = parseResult.config[name];
433
-
434
- if (!rule) {
435
- problems.push(createLintingProblem({ ruleId: name, loc: comment.loc }));
436
- return;
437
- }
438
-
439
- try {
440
- validator.validateRuleOptions(rule, name, ruleValue);
441
- } catch (err) {
442
- problems.push(createLintingProblem({
443
- ruleId: name,
444
- message: err.message,
445
- loc: comment.loc
446
- }));
447
-
448
- // do not apply the config, if found invalid options.
449
- return;
450
- }
451
-
452
- configuredRules[name] = ruleValue;
453
- });
454
- } else {
455
- problems.push(parseResult.error);
456
- }
457
-
458
- break;
459
- }
460
-
461
- // no default
462
- }
463
- });
464
-
465
- return {
466
- configuredRules,
467
- enabledGlobals,
468
- exportedVariables,
469
- problems,
470
- disableDirectives
471
- };
472
- }
473
-
474
- /**
475
- * Parses comments in file to extract disable directives.
476
- * @param {SourceCode} sourceCode The SourceCode object to get comments from.
477
- * @param {function(string): {create: Function}} ruleMapper A map from rule IDs to defined rules
478
- * @returns {{problems: LintMessage[], disableDirectives: DisableDirective[]}}
479
- * A collection of the directive comments that were found, along with any problems that occurred when parsing
480
- */
481
- function getDirectiveCommentsForFlatConfig(sourceCode, ruleMapper) {
482
- const problems = [];
483
- const disableDirectives = [];
484
-
485
- sourceCode.getInlineConfigNodes().filter(token => token.type !== "Shebang").forEach(comment => {
486
- const { directivePart, justificationPart } = commentParser.extractDirectiveComment(comment.value);
487
-
488
- const match = directivesPattern.exec(directivePart);
489
-
490
- if (!match) {
491
- return;
492
- }
493
- const directiveText = match[1];
494
- const lineCommentSupported = /^eslint-disable-(next-)?line$/u.test(directiveText);
495
-
496
- if (comment.type === "Line" && !lineCommentSupported) {
497
- return;
498
- }
499
-
500
- if (directiveText === "eslint-disable-line" && comment.loc.start.line !== comment.loc.end.line) {
501
- const message = `${directiveText} comment should not span multiple lines.`;
502
-
503
- problems.push(createLintingProblem({
504
- ruleId: null,
505
- message,
506
- loc: comment.loc
507
- }));
508
- return;
509
- }
510
-
511
- const directiveValue = directivePart.slice(match.index + directiveText.length);
512
-
513
- switch (directiveText) {
514
- case "eslint-disable":
515
- case "eslint-enable":
516
- case "eslint-disable-next-line":
517
- case "eslint-disable-line": {
518
- const directiveType = directiveText.slice("eslint-".length);
519
- const options = { commentToken: comment, type: directiveType, value: directiveValue, justification: justificationPart, ruleMapper };
520
- const { directives, directiveProblems } = createDisableDirectives(options);
521
-
522
- disableDirectives.push(...directives);
523
- problems.push(...directiveProblems);
524
- break;
525
- }
526
-
527
- // no default
528
- }
529
- });
530
-
531
- return {
532
- problems,
533
- disableDirectives
534
- };
535
- }
536
-
537
- /**
538
- * Normalize ECMAScript version from the initial config
539
- * @param {Parser} parser The parser which uses this options.
540
- * @param {number} ecmaVersion ECMAScript version from the initial config
541
- * @returns {number} normalized ECMAScript version
542
- */
543
- function normalizeEcmaVersion(parser, ecmaVersion) {
544
-
545
- if (isEspree(parser)) {
546
- if (ecmaVersion === "latest") {
547
- return espree.latestEcmaVersion;
548
- }
549
- }
550
-
551
- /*
552
- * Calculate ECMAScript edition number from official year version starting with
553
- * ES2015, which corresponds with ES6 (or a difference of 2009).
554
- */
555
- return ecmaVersion >= 2015 ? ecmaVersion - 2009 : ecmaVersion;
556
- }
557
-
558
- /**
559
- * Normalize ECMAScript version from the initial config into languageOptions (year)
560
- * format.
561
- * @param {any} [ecmaVersion] ECMAScript version from the initial config
562
- * @returns {number} normalized ECMAScript version
563
- */
564
- function normalizeEcmaVersionForLanguageOptions(ecmaVersion) {
565
-
566
- switch (ecmaVersion) {
567
- case 3:
568
- return 3;
569
-
570
- // void 0 = no ecmaVersion specified so use the default
571
- case 5:
572
- case void 0:
573
- return 5;
574
-
575
- default:
576
- if (typeof ecmaVersion === "number") {
577
- return ecmaVersion >= 2015 ? ecmaVersion : ecmaVersion + 2009;
578
- }
579
- }
580
-
581
- /*
582
- * We default to the latest supported ecmaVersion for everything else.
583
- * Remember, this is for languageOptions.ecmaVersion, which sets the version
584
- * that is used for a number of processes inside of ESLint. It's normally
585
- * safe to assume people want the latest unless otherwise specified.
586
- */
587
- return espree.latestEcmaVersion + 2009;
588
- }
589
-
590
- const eslintEnvPattern = /\/\*\s*eslint-env\s(.+?)(?:\*\/|$)/gsu;
591
-
592
- /**
593
- * Checks whether or not there is a comment which has "eslint-env *" in a given text.
594
- * @param {string} text A source code text to check.
595
- * @returns {Object|null} A result of parseListConfig() with "eslint-env *" comment.
596
- */
597
- function findEslintEnv(text) {
598
- let match, retv;
599
-
600
- eslintEnvPattern.lastIndex = 0;
601
-
602
- while ((match = eslintEnvPattern.exec(text)) !== null) {
603
- if (match[0].endsWith("*/")) {
604
- retv = Object.assign(
605
- retv || {},
606
- commentParser.parseListConfig(commentParser.extractDirectiveComment(match[1]).directivePart)
607
- );
608
- }
609
- }
610
-
611
- return retv;
612
- }
613
-
614
- /**
615
- * Convert "/path/to/<text>" to "<text>".
616
- * `CLIEngine#executeOnText()` method gives "/path/to/<text>" if the filename
617
- * was omitted because `configArray.extractConfig()` requires an absolute path.
618
- * But the linter should pass `<text>` to `RuleContext#filename` in that
619
- * case.
620
- * Also, code blocks can have their virtual filename. If the parent filename was
621
- * `<text>`, the virtual filename is `<text>/0_foo.js` or something like (i.e.,
622
- * it's not an absolute path).
623
- * @param {string} filename The filename to normalize.
624
- * @returns {string} The normalized filename.
625
- */
626
- function normalizeFilename(filename) {
627
- const parts = filename.split(path.sep);
628
- const index = parts.lastIndexOf("<text>");
629
-
630
- return index === -1 ? filename : parts.slice(index).join(path.sep);
631
- }
632
-
633
- /**
634
- * Normalizes the possible options for `linter.verify` and `linter.verifyAndFix` to a
635
- * consistent shape.
636
- * @param {VerifyOptions} providedOptions Options
637
- * @param {ConfigData} config Config.
638
- * @returns {Required<VerifyOptions> & InternalOptions} Normalized options
639
- */
640
- function normalizeVerifyOptions(providedOptions, config) {
641
-
642
- const linterOptions = config.linterOptions || config;
643
-
644
- // .noInlineConfig for eslintrc, .linterOptions.noInlineConfig for flat
645
- const disableInlineConfig = linterOptions.noInlineConfig === true;
646
- const ignoreInlineConfig = providedOptions.allowInlineConfig === false;
647
- const configNameOfNoInlineConfig = config.configNameOfNoInlineConfig
648
- ? ` (${config.configNameOfNoInlineConfig})`
649
- : "";
650
-
651
- let reportUnusedDisableDirectives = providedOptions.reportUnusedDisableDirectives;
652
-
653
- if (typeof reportUnusedDisableDirectives === "boolean") {
654
- reportUnusedDisableDirectives = reportUnusedDisableDirectives ? "error" : "off";
655
- }
656
- if (typeof reportUnusedDisableDirectives !== "string") {
657
- if (typeof linterOptions.reportUnusedDisableDirectives === "boolean") {
658
- reportUnusedDisableDirectives = linterOptions.reportUnusedDisableDirectives ? "warn" : "off";
659
- } else {
660
- reportUnusedDisableDirectives = linterOptions.reportUnusedDisableDirectives === void 0 ? "off" : normalizeSeverityToString(linterOptions.reportUnusedDisableDirectives);
661
- }
662
- }
663
-
664
- return {
665
- filename: normalizeFilename(providedOptions.filename || "<input>"),
666
- allowInlineConfig: !ignoreInlineConfig,
667
- warnInlineConfig: disableInlineConfig && !ignoreInlineConfig
668
- ? `your config${configNameOfNoInlineConfig}`
669
- : null,
670
- reportUnusedDisableDirectives,
671
- disableFixes: Boolean(providedOptions.disableFixes)
672
- };
673
- }
674
-
675
- /**
676
- * Combines the provided parserOptions with the options from environments
677
- * @param {Parser} parser The parser which uses this options.
678
- * @param {ParserOptions} providedOptions The provided 'parserOptions' key in a config
679
- * @param {Environment[]} enabledEnvironments The environments enabled in configuration and with inline comments
680
- * @returns {ParserOptions} Resulting parser options after merge
681
- */
682
- function resolveParserOptions(parser, providedOptions, enabledEnvironments) {
683
-
684
- const parserOptionsFromEnv = enabledEnvironments
685
- .filter(env => env.parserOptions)
686
- .reduce((parserOptions, env) => merge(parserOptions, env.parserOptions), {});
687
- const mergedParserOptions = merge(parserOptionsFromEnv, providedOptions || {});
688
- const isModule = mergedParserOptions.sourceType === "module";
689
-
690
- if (isModule) {
691
-
692
- /*
693
- * can't have global return inside of modules
694
- * TODO: espree validate parserOptions.globalReturn when sourceType is setting to module.(@aladdin-add)
695
- */
696
- mergedParserOptions.ecmaFeatures = Object.assign({}, mergedParserOptions.ecmaFeatures, { globalReturn: false });
697
- }
698
-
699
- mergedParserOptions.ecmaVersion = normalizeEcmaVersion(parser, mergedParserOptions.ecmaVersion);
700
-
701
- return mergedParserOptions;
702
- }
703
-
704
- /**
705
- * Converts parserOptions to languageOptions for backwards compatibility with eslintrc.
706
- * @param {ConfigData} config Config object.
707
- * @param {Object} config.globals Global variable definitions.
708
- * @param {Parser} config.parser The parser to use.
709
- * @param {ParserOptions} config.parserOptions The parserOptions to use.
710
- * @returns {LanguageOptions} The languageOptions equivalent.
711
- */
712
- function createLanguageOptions({ globals: configuredGlobals, parser, parserOptions }) {
713
-
714
- const {
715
- ecmaVersion,
716
- sourceType
717
- } = parserOptions;
718
-
719
- return {
720
- globals: configuredGlobals,
721
- ecmaVersion: normalizeEcmaVersionForLanguageOptions(ecmaVersion),
722
- sourceType,
723
- parser,
724
- parserOptions
725
- };
726
- }
727
-
728
- /**
729
- * Combines the provided globals object with the globals from environments
730
- * @param {Record<string, GlobalConf>} providedGlobals The 'globals' key in a config
731
- * @param {Environment[]} enabledEnvironments The environments enabled in configuration and with inline comments
732
- * @returns {Record<string, GlobalConf>} The resolved globals object
733
- */
734
- function resolveGlobals(providedGlobals, enabledEnvironments) {
735
- return Object.assign(
736
- {},
737
- ...enabledEnvironments.filter(env => env.globals).map(env => env.globals),
738
- providedGlobals
739
- );
740
- }
741
-
742
- /**
743
- * Strips Unicode BOM from a given text.
744
- * @param {string} text A text to strip.
745
- * @returns {string} The stripped text.
746
- */
747
- function stripUnicodeBOM(text) {
748
-
749
- /*
750
- * Check Unicode BOM.
751
- * In JavaScript, string data is stored as UTF-16, so BOM is 0xFEFF.
752
- * http://www.ecma-international.org/ecma-262/6.0/#sec-unicode-format-control-characters
753
- */
754
- if (text.charCodeAt(0) === 0xFEFF) {
755
- return text.slice(1);
756
- }
757
- return text;
758
- }
759
-
760
- /**
761
- * Get the options for a rule (not including severity), if any
762
- * @param {Array|number} ruleConfig rule configuration
763
- * @returns {Array} of rule options, empty Array if none
764
- */
765
- function getRuleOptions(ruleConfig) {
766
- if (Array.isArray(ruleConfig)) {
767
- return ruleConfig.slice(1);
768
- }
769
- return [];
770
-
771
- }
772
-
773
- /**
774
- * Analyze scope of the given AST.
775
- * @param {ASTNode} ast The `Program` node to analyze.
776
- * @param {LanguageOptions} languageOptions The parser options.
777
- * @param {Record<string, string[]>} visitorKeys The visitor keys.
778
- * @returns {ScopeManager} The analysis result.
779
- */
780
- function analyzeScope(ast, languageOptions, visitorKeys) {
781
- const parserOptions = languageOptions.parserOptions;
782
- const ecmaFeatures = parserOptions.ecmaFeatures || {};
783
- const ecmaVersion = languageOptions.ecmaVersion || DEFAULT_ECMA_VERSION;
784
-
785
- return eslintScope.analyze(ast, {
786
- ignoreEval: true,
787
- nodejsScope: ecmaFeatures.globalReturn,
788
- impliedStrict: ecmaFeatures.impliedStrict,
789
- ecmaVersion: typeof ecmaVersion === "number" ? ecmaVersion : 6,
790
- sourceType: languageOptions.sourceType || "script",
791
- childVisitorKeys: visitorKeys || evk.KEYS,
792
- fallback: Traverser.getKeys
793
- });
794
- }
795
-
796
- /**
797
- * Parses text into an AST. Moved out here because the try-catch prevents
798
- * optimization of functions, so it's best to keep the try-catch as isolated
799
- * as possible
800
- * @param {string} text The text to parse.
801
- * @param {LanguageOptions} languageOptions Options to pass to the parser
802
- * @param {string} filePath The path to the file being parsed.
803
- * @returns {{success: false, error: LintMessage}|{success: true, sourceCode: SourceCode}}
804
- * An object containing the AST and parser services if parsing was successful, or the error if parsing failed
805
- * @private
806
- */
807
- function parse(text, languageOptions, filePath) {
808
- const textToParse = stripUnicodeBOM(text).replace(astUtils.shebangPattern, (match, captured) => `//${captured}`);
809
- const { ecmaVersion, sourceType, parser } = languageOptions;
810
- const parserOptions = Object.assign(
811
- { ecmaVersion, sourceType },
812
- languageOptions.parserOptions,
813
- {
814
- loc: true,
815
- range: true,
816
- raw: true,
817
- tokens: true,
818
- comment: true,
819
- eslintVisitorKeys: true,
820
- eslintScopeManager: true,
821
- filePath
822
- }
823
- );
824
-
825
- /*
826
- * Check for parsing errors first. If there's a parsing error, nothing
827
- * else can happen. However, a parsing error does not throw an error
828
- * from this method - it's just considered a fatal error message, a
829
- * problem that ESLint identified just like any other.
830
- */
831
- try {
832
- debug("Parsing:", filePath);
833
- const parseResult = (typeof parser.parseForESLint === "function")
834
- ? parser.parseForESLint(textToParse, parserOptions)
835
- : { ast: parser.parse(textToParse, parserOptions) };
836
-
837
- debug("Parsing successful:", filePath);
838
- const ast = parseResult.ast;
839
- const parserServices = parseResult.services || {};
840
- const visitorKeys = parseResult.visitorKeys || evk.KEYS;
841
-
842
- debug("Scope analysis:", filePath);
843
- const scopeManager = parseResult.scopeManager || analyzeScope(ast, languageOptions, visitorKeys);
844
-
845
- debug("Scope analysis successful:", filePath);
846
-
847
- return {
848
- success: true,
849
-
850
- /*
851
- * Save all values that `parseForESLint()` returned.
852
- * If a `SourceCode` object is given as the first parameter instead of source code text,
853
- * linter skips the parsing process and reuses the source code object.
854
- * In that case, linter needs all the values that `parseForESLint()` returned.
855
- */
856
- sourceCode: new SourceCode({
857
- text,
858
- ast,
859
- parserServices,
860
- scopeManager,
861
- visitorKeys
862
- })
863
- };
864
- } catch (ex) {
865
-
866
- // If the message includes a leading line number, strip it:
867
- const message = `Parsing error: ${ex.message.replace(/^line \d+:/iu, "").trim()}`;
868
-
869
- debug("%s\n%s", message, ex.stack);
870
-
871
- return {
872
- success: false,
873
- error: {
874
- ruleId: null,
875
- fatal: true,
876
- severity: 2,
877
- message,
878
- line: ex.lineNumber,
879
- column: ex.column,
880
- nodeType: null
881
- }
882
- };
883
- }
884
- }
885
-
886
- /**
887
- * Runs a rule, and gets its listeners
888
- * @param {Rule} rule A normalized rule with a `create` method
889
- * @param {Context} ruleContext The context that should be passed to the rule
890
- * @throws {any} Any error during the rule's `create`
891
- * @returns {Object} A map of selector listeners provided by the rule
892
- */
893
- function createRuleListeners(rule, ruleContext) {
894
- try {
895
- return rule.create(ruleContext);
896
- } catch (ex) {
897
- ex.message = `Error while loading rule '${ruleContext.id}': ${ex.message}`;
898
- throw ex;
899
- }
900
- }
901
-
902
- // methods that exist on SourceCode object
903
- const DEPRECATED_SOURCECODE_PASSTHROUGHS = {
904
- getSource: "getText",
905
- getSourceLines: "getLines",
906
- getAllComments: "getAllComments",
907
- getNodeByRangeIndex: "getNodeByRangeIndex",
908
- getComments: "getComments",
909
- getCommentsBefore: "getCommentsBefore",
910
- getCommentsAfter: "getCommentsAfter",
911
- getCommentsInside: "getCommentsInside",
912
- getJSDocComment: "getJSDocComment",
913
- getFirstToken: "getFirstToken",
914
- getFirstTokens: "getFirstTokens",
915
- getLastToken: "getLastToken",
916
- getLastTokens: "getLastTokens",
917
- getTokenAfter: "getTokenAfter",
918
- getTokenBefore: "getTokenBefore",
919
- getTokenByRangeStart: "getTokenByRangeStart",
920
- getTokens: "getTokens",
921
- getTokensAfter: "getTokensAfter",
922
- getTokensBefore: "getTokensBefore",
923
- getTokensBetween: "getTokensBetween"
924
- };
925
-
926
-
927
- const BASE_TRAVERSAL_CONTEXT = Object.freeze(
928
- Object.keys(DEPRECATED_SOURCECODE_PASSTHROUGHS).reduce(
929
- (contextInfo, methodName) =>
930
- Object.assign(contextInfo, {
931
- [methodName](...args) {
932
- return this.sourceCode[DEPRECATED_SOURCECODE_PASSTHROUGHS[methodName]](...args);
933
- }
934
- }),
935
- {}
936
- )
937
- );
938
-
939
- /**
940
- * Runs the given rules on the given SourceCode object
941
- * @param {SourceCode} sourceCode A SourceCode object for the given text
942
- * @param {Object} configuredRules The rules configuration
943
- * @param {function(string): Rule} ruleMapper A mapper function from rule names to rules
944
- * @param {string | undefined} parserName The name of the parser in the config
945
- * @param {LanguageOptions} languageOptions The options for parsing the code.
946
- * @param {Object} settings The settings that were enabled in the config
947
- * @param {string} filename The reported filename of the code
948
- * @param {boolean} disableFixes If true, it doesn't make `fix` properties.
949
- * @param {string | undefined} cwd cwd of the cli
950
- * @param {string} physicalFilename The full path of the file on disk without any code block information
951
- * @returns {LintMessage[]} An array of reported problems
952
- */
953
- function runRules(sourceCode, configuredRules, ruleMapper, parserName, languageOptions, settings, filename, disableFixes, cwd, physicalFilename) {
954
- const emitter = createEmitter();
955
- const nodeQueue = [];
956
- let currentNode = sourceCode.ast;
957
-
958
- Traverser.traverse(sourceCode.ast, {
959
- enter(node, parent) {
960
- node.parent = parent;
961
- nodeQueue.push({ isEntering: true, node });
962
- },
963
- leave(node) {
964
- nodeQueue.push({ isEntering: false, node });
965
- },
966
- visitorKeys: sourceCode.visitorKeys
967
- });
968
-
969
- /*
970
- * Create a frozen object with the ruleContext properties and methods that are shared by all rules.
971
- * All rule contexts will inherit from this object. This avoids the performance penalty of copying all the
972
- * properties once for each rule.
973
- */
974
- const sharedTraversalContext = Object.freeze(
975
- Object.assign(
976
- Object.create(BASE_TRAVERSAL_CONTEXT),
977
- {
978
- getAncestors: () => sourceCode.getAncestors(currentNode),
979
- getDeclaredVariables: node => sourceCode.getDeclaredVariables(node),
980
- getCwd: () => cwd,
981
- cwd,
982
- getFilename: () => filename,
983
- filename,
984
- getPhysicalFilename: () => physicalFilename || filename,
985
- physicalFilename: physicalFilename || filename,
986
- getScope: () => sourceCode.getScope(currentNode),
987
- getSourceCode: () => sourceCode,
988
- sourceCode,
989
- markVariableAsUsed: name => sourceCode.markVariableAsUsed(name, currentNode),
990
- parserOptions: {
991
- ...languageOptions.parserOptions
992
- },
993
- parserPath: parserName,
994
- languageOptions,
995
- parserServices: sourceCode.parserServices,
996
- settings
997
- }
998
- )
999
- );
1000
-
1001
- const lintingProblems = [];
1002
-
1003
- Object.keys(configuredRules).forEach(ruleId => {
1004
- const severity = ConfigOps.getRuleSeverity(configuredRules[ruleId]);
1005
-
1006
- // not load disabled rules
1007
- if (severity === 0) {
1008
- return;
1009
- }
1010
-
1011
- const rule = ruleMapper(ruleId);
1012
-
1013
- if (!rule) {
1014
- lintingProblems.push(createLintingProblem({ ruleId }));
1015
- return;
1016
- }
1017
-
1018
- const messageIds = rule.meta && rule.meta.messages;
1019
- let reportTranslator = null;
1020
- const ruleContext = Object.freeze(
1021
- Object.assign(
1022
- Object.create(sharedTraversalContext),
1023
- {
1024
- id: ruleId,
1025
- options: getRuleOptions(configuredRules[ruleId]),
1026
- report(...args) {
1027
-
1028
- /*
1029
- * Create a report translator lazily.
1030
- * In a vast majority of cases, any given rule reports zero errors on a given
1031
- * piece of code. Creating a translator lazily avoids the performance cost of
1032
- * creating a new translator function for each rule that usually doesn't get
1033
- * called.
1034
- *
1035
- * Using lazy report translators improves end-to-end performance by about 3%
1036
- * with Node 8.4.0.
1037
- */
1038
- if (reportTranslator === null) {
1039
- reportTranslator = createReportTranslator({
1040
- ruleId,
1041
- severity,
1042
- sourceCode,
1043
- messageIds,
1044
- disableFixes
1045
- });
1046
- }
1047
- const problem = reportTranslator(...args);
1048
-
1049
- if (problem.fix && !(rule.meta && rule.meta.fixable)) {
1050
- throw new Error("Fixable rules must set the `meta.fixable` property to \"code\" or \"whitespace\".");
1051
- }
1052
- if (problem.suggestions && !(rule.meta && rule.meta.hasSuggestions === true)) {
1053
- if (rule.meta && rule.meta.docs && typeof rule.meta.docs.suggestion !== "undefined") {
1054
-
1055
- // Encourage migration from the former property name.
1056
- throw new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint.");
1057
- }
1058
- throw new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`.");
1059
- }
1060
- lintingProblems.push(problem);
1061
- }
1062
- }
1063
- )
1064
- );
1065
-
1066
- const ruleListeners = timing.enabled ? timing.time(ruleId, createRuleListeners)(rule, ruleContext) : createRuleListeners(rule, ruleContext);
1067
-
1068
- /**
1069
- * Include `ruleId` in error logs
1070
- * @param {Function} ruleListener A rule method that listens for a node.
1071
- * @returns {Function} ruleListener wrapped in error handler
1072
- */
1073
- function addRuleErrorHandler(ruleListener) {
1074
- return function ruleErrorHandler(...listenerArgs) {
1075
- try {
1076
- return ruleListener(...listenerArgs);
1077
- } catch (e) {
1078
- e.ruleId = ruleId;
1079
- throw e;
1080
- }
1081
- };
1082
- }
1083
-
1084
- if (typeof ruleListeners === "undefined" || ruleListeners === null) {
1085
- throw new Error(`The create() function for rule '${ruleId}' did not return an object.`);
1086
- }
1087
-
1088
- // add all the selectors from the rule as listeners
1089
- Object.keys(ruleListeners).forEach(selector => {
1090
- const ruleListener = timing.enabled
1091
- ? timing.time(ruleId, ruleListeners[selector])
1092
- : ruleListeners[selector];
1093
-
1094
- emitter.on(
1095
- selector,
1096
- addRuleErrorHandler(ruleListener)
1097
- );
1098
- });
1099
- });
1100
-
1101
- // only run code path analyzer if the top level node is "Program", skip otherwise
1102
- const eventGenerator = nodeQueue[0].node.type === "Program"
1103
- ? new CodePathAnalyzer(new NodeEventGenerator(emitter, { visitorKeys: sourceCode.visitorKeys, fallback: Traverser.getKeys }))
1104
- : new NodeEventGenerator(emitter, { visitorKeys: sourceCode.visitorKeys, fallback: Traverser.getKeys });
1105
-
1106
- nodeQueue.forEach(traversalInfo => {
1107
- currentNode = traversalInfo.node;
1108
-
1109
- try {
1110
- if (traversalInfo.isEntering) {
1111
- eventGenerator.enterNode(currentNode);
1112
- } else {
1113
- eventGenerator.leaveNode(currentNode);
1114
- }
1115
- } catch (err) {
1116
- err.currentNode = currentNode;
1117
- throw err;
1118
- }
1119
- });
1120
-
1121
- return lintingProblems;
1122
- }
1123
-
1124
- /**
1125
- * Ensure the source code to be a string.
1126
- * @param {string|SourceCode} textOrSourceCode The text or source code object.
1127
- * @returns {string} The source code text.
1128
- */
1129
- function ensureText(textOrSourceCode) {
1130
- if (typeof textOrSourceCode === "object") {
1131
- const { hasBOM, text } = textOrSourceCode;
1132
- const bom = hasBOM ? "\uFEFF" : "";
1133
-
1134
- return bom + text;
1135
- }
1136
-
1137
- return String(textOrSourceCode);
1138
- }
1139
-
1140
- /**
1141
- * Get an environment.
1142
- * @param {LinterInternalSlots} slots The internal slots of Linter.
1143
- * @param {string} envId The environment ID to get.
1144
- * @returns {Environment|null} The environment.
1145
- */
1146
- function getEnv(slots, envId) {
1147
- return (
1148
- (slots.lastConfigArray && slots.lastConfigArray.pluginEnvironments.get(envId)) ||
1149
- BuiltInEnvironments.get(envId) ||
1150
- null
1151
- );
1152
- }
1153
-
1154
- /**
1155
- * Get a rule.
1156
- * @param {LinterInternalSlots} slots The internal slots of Linter.
1157
- * @param {string} ruleId The rule ID to get.
1158
- * @returns {Rule|null} The rule.
1159
- */
1160
- function getRule(slots, ruleId) {
1161
- return (
1162
- (slots.lastConfigArray && slots.lastConfigArray.pluginRules.get(ruleId)) ||
1163
- slots.ruleMap.get(ruleId)
1164
- );
1165
- }
1166
-
1167
- /**
1168
- * Normalize the value of the cwd
1169
- * @param {string | undefined} cwd raw value of the cwd, path to a directory that should be considered as the current working directory, can be undefined.
1170
- * @returns {string | undefined} normalized cwd
1171
- */
1172
- function normalizeCwd(cwd) {
1173
- if (cwd) {
1174
- return cwd;
1175
- }
1176
- if (typeof process === "object") {
1177
- return process.cwd();
1178
- }
1179
-
1180
- // It's more explicit to assign the undefined
1181
- // eslint-disable-next-line no-undefined -- Consistently returning a value
1182
- return undefined;
1183
- }
1184
-
1185
- /**
1186
- * The map to store private data.
1187
- * @type {WeakMap<Linter, LinterInternalSlots>}
1188
- */
1189
- const internalSlotsMap = new WeakMap();
1190
-
1191
- /**
1192
- * Throws an error when the given linter is in flat config mode.
1193
- * @param {Linter} linter The linter to check.
1194
- * @returns {void}
1195
- * @throws {Error} If the linter is in flat config mode.
1196
- */
1197
- function assertEslintrcConfig(linter) {
1198
- const { configType } = internalSlotsMap.get(linter);
1199
-
1200
- if (configType === "flat") {
1201
- throw new Error("This method cannot be used with flat config. Add your entries directly into the config array.");
1202
- }
1203
- }
1204
-
1205
-
1206
- //------------------------------------------------------------------------------
1207
- // Public Interface
1208
- //------------------------------------------------------------------------------
1209
-
1210
- /**
1211
- * Object that is responsible for verifying JavaScript text
1212
- * @name Linter
1213
- */
1214
- class Linter {
1215
-
1216
- /**
1217
- * Initialize the Linter.
1218
- * @param {Object} [config] the config object
1219
- * @param {string} [config.cwd] path to a directory that should be considered as the current working directory, can be undefined.
1220
- * @param {"flat"|"eslintrc"} [config.configType="eslintrc"] the type of config used.
1221
- */
1222
- constructor({ cwd, configType } = {}) {
1223
- internalSlotsMap.set(this, {
1224
- cwd: normalizeCwd(cwd),
1225
- lastConfigArray: null,
1226
- lastSourceCode: null,
1227
- lastSuppressedMessages: [],
1228
- configType, // TODO: Remove after flat config conversion
1229
- parserMap: new Map([["espree", espree]]),
1230
- ruleMap: new Rules()
1231
- });
1232
-
1233
- this.version = pkg.version;
1234
- }
1235
-
1236
- /**
1237
- * Getter for package version.
1238
- * @static
1239
- * @returns {string} The version from package.json.
1240
- */
1241
- static get version() {
1242
- return pkg.version;
1243
- }
1244
-
1245
- /**
1246
- * Same as linter.verify, except without support for processors.
1247
- * @param {string|SourceCode} textOrSourceCode The text to parse or a SourceCode object.
1248
- * @param {ConfigData} providedConfig An ESLintConfig instance to configure everything.
1249
- * @param {VerifyOptions} [providedOptions] The optional filename of the file being checked.
1250
- * @throws {Error} If during rule execution.
1251
- * @returns {(LintMessage|SuppressedLintMessage)[]} The results as an array of messages or an empty array if no messages.
1252
- */
1253
- _verifyWithoutProcessors(textOrSourceCode, providedConfig, providedOptions) {
1254
- const slots = internalSlotsMap.get(this);
1255
- const config = providedConfig || {};
1256
- const options = normalizeVerifyOptions(providedOptions, config);
1257
- let text;
1258
-
1259
- // evaluate arguments
1260
- if (typeof textOrSourceCode === "string") {
1261
- slots.lastSourceCode = null;
1262
- text = textOrSourceCode;
1263
- } else {
1264
- slots.lastSourceCode = textOrSourceCode;
1265
- text = textOrSourceCode.text;
1266
- }
1267
-
1268
- // Resolve parser.
1269
- let parserName = DEFAULT_PARSER_NAME;
1270
- let parser = espree;
1271
-
1272
- if (typeof config.parser === "object" && config.parser !== null) {
1273
- parserName = config.parser.filePath;
1274
- parser = config.parser.definition;
1275
- } else if (typeof config.parser === "string") {
1276
- if (!slots.parserMap.has(config.parser)) {
1277
- return [{
1278
- ruleId: null,
1279
- fatal: true,
1280
- severity: 2,
1281
- message: `Configured parser '${config.parser}' was not found.`,
1282
- line: 0,
1283
- column: 0,
1284
- nodeType: null
1285
- }];
1286
- }
1287
- parserName = config.parser;
1288
- parser = slots.parserMap.get(config.parser);
1289
- }
1290
-
1291
- // search and apply "eslint-env *".
1292
- const envInFile = options.allowInlineConfig && !options.warnInlineConfig
1293
- ? findEslintEnv(text)
1294
- : {};
1295
- const resolvedEnvConfig = Object.assign({ builtin: true }, config.env, envInFile);
1296
- const enabledEnvs = Object.keys(resolvedEnvConfig)
1297
- .filter(envName => resolvedEnvConfig[envName])
1298
- .map(envName => getEnv(slots, envName))
1299
- .filter(env => env);
1300
-
1301
- const parserOptions = resolveParserOptions(parser, config.parserOptions || {}, enabledEnvs);
1302
- const configuredGlobals = resolveGlobals(config.globals || {}, enabledEnvs);
1303
- const settings = config.settings || {};
1304
- const languageOptions = createLanguageOptions({
1305
- globals: config.globals,
1306
- parser,
1307
- parserOptions
1308
- });
1309
-
1310
- if (!slots.lastSourceCode) {
1311
- const parseResult = parse(
1312
- text,
1313
- languageOptions,
1314
- options.filename
1315
- );
1316
-
1317
- if (!parseResult.success) {
1318
- return [parseResult.error];
1319
- }
1320
-
1321
- slots.lastSourceCode = parseResult.sourceCode;
1322
- } else {
1323
-
1324
- /*
1325
- * If the given source code object as the first argument does not have scopeManager, analyze the scope.
1326
- * This is for backward compatibility (SourceCode is frozen so it cannot rebind).
1327
- */
1328
- if (!slots.lastSourceCode.scopeManager) {
1329
- slots.lastSourceCode = new SourceCode({
1330
- text: slots.lastSourceCode.text,
1331
- ast: slots.lastSourceCode.ast,
1332
- parserServices: slots.lastSourceCode.parserServices,
1333
- visitorKeys: slots.lastSourceCode.visitorKeys,
1334
- scopeManager: analyzeScope(slots.lastSourceCode.ast, languageOptions)
1335
- });
1336
- }
1337
- }
1338
-
1339
- const sourceCode = slots.lastSourceCode;
1340
- const commentDirectives = options.allowInlineConfig
1341
- ? getDirectiveComments(sourceCode, ruleId => getRule(slots, ruleId), options.warnInlineConfig)
1342
- : { configuredRules: {}, enabledGlobals: {}, exportedVariables: {}, problems: [], disableDirectives: [] };
1343
-
1344
- // augment global scope with declared global variables
1345
- addDeclaredGlobals(
1346
- sourceCode.scopeManager.scopes[0],
1347
- configuredGlobals,
1348
- { exportedVariables: commentDirectives.exportedVariables, enabledGlobals: commentDirectives.enabledGlobals }
1349
- );
1350
-
1351
- const configuredRules = Object.assign({}, config.rules, commentDirectives.configuredRules);
1352
- let lintingProblems;
1353
-
1354
- try {
1355
- lintingProblems = runRules(
1356
- sourceCode,
1357
- configuredRules,
1358
- ruleId => getRule(slots, ruleId),
1359
- parserName,
1360
- languageOptions,
1361
- settings,
1362
- options.filename,
1363
- options.disableFixes,
1364
- slots.cwd,
1365
- providedOptions.physicalFilename
1366
- );
1367
- } catch (err) {
1368
- err.message += `\nOccurred while linting ${options.filename}`;
1369
- debug("An error occurred while traversing");
1370
- debug("Filename:", options.filename);
1371
- if (err.currentNode) {
1372
- const { line } = err.currentNode.loc.start;
1373
-
1374
- debug("Line:", line);
1375
- err.message += `:${line}`;
1376
- }
1377
- debug("Parser Options:", parserOptions);
1378
- debug("Parser Path:", parserName);
1379
- debug("Settings:", settings);
1380
-
1381
- if (err.ruleId) {
1382
- err.message += `\nRule: "${err.ruleId}"`;
1383
- }
1384
-
1385
- throw err;
1386
- }
1387
-
1388
- return applyDisableDirectives({
1389
- directives: commentDirectives.disableDirectives,
1390
- disableFixes: options.disableFixes,
1391
- problems: lintingProblems
1392
- .concat(commentDirectives.problems)
1393
- .sort((problemA, problemB) => problemA.line - problemB.line || problemA.column - problemB.column),
1394
- reportUnusedDisableDirectives: options.reportUnusedDisableDirectives
1395
- });
1396
- }
1397
-
1398
- /**
1399
- * Verifies the text against the rules specified by the second argument.
1400
- * @param {string|SourceCode} textOrSourceCode The text to parse or a SourceCode object.
1401
- * @param {ConfigData|ConfigArray} config An ESLintConfig instance to configure everything.
1402
- * @param {(string|(VerifyOptions&ProcessorOptions))} [filenameOrOptions] The optional filename of the file being checked.
1403
- * If this is not set, the filename will default to '<input>' in the rule context. If
1404
- * an object, then it has "filename", "allowInlineConfig", and some properties.
1405
- * @returns {LintMessage[]} The results as an array of messages or an empty array if no messages.
1406
- */
1407
- verify(textOrSourceCode, config, filenameOrOptions) {
1408
- debug("Verify");
1409
-
1410
- const { configType, cwd } = internalSlotsMap.get(this);
1411
-
1412
- const options = typeof filenameOrOptions === "string"
1413
- ? { filename: filenameOrOptions }
1414
- : filenameOrOptions || {};
1415
-
1416
- if (config) {
1417
- if (configType === "flat") {
1418
-
1419
- /*
1420
- * Because of how Webpack packages up the files, we can't
1421
- * compare directly to `FlatConfigArray` using `instanceof`
1422
- * because it's not the same `FlatConfigArray` as in the tests.
1423
- * So, we work around it by assuming an array is, in fact, a
1424
- * `FlatConfigArray` if it has a `getConfig()` method.
1425
- */
1426
- let configArray = config;
1427
-
1428
- if (!Array.isArray(config) || typeof config.getConfig !== "function") {
1429
- configArray = new FlatConfigArray(config, { basePath: cwd });
1430
- configArray.normalizeSync();
1431
- }
1432
-
1433
- return this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(textOrSourceCode, configArray, options, true));
1434
- }
1435
-
1436
- if (typeof config.extractConfig === "function") {
1437
- return this._distinguishSuppressedMessages(this._verifyWithConfigArray(textOrSourceCode, config, options));
1438
- }
1439
- }
1440
-
1441
- /*
1442
- * If we get to here, it means `config` is just an object rather
1443
- * than a config array so we can go right into linting.
1444
- */
1445
-
1446
- /*
1447
- * `Linter` doesn't support `overrides` property in configuration.
1448
- * So we cannot apply multiple processors.
1449
- */
1450
- if (options.preprocess || options.postprocess) {
1451
- return this._distinguishSuppressedMessages(this._verifyWithProcessor(textOrSourceCode, config, options));
1452
- }
1453
- return this._distinguishSuppressedMessages(this._verifyWithoutProcessors(textOrSourceCode, config, options));
1454
- }
1455
-
1456
- /**
1457
- * Verify with a processor.
1458
- * @param {string|SourceCode} textOrSourceCode The source code.
1459
- * @param {FlatConfig} config The config array.
1460
- * @param {VerifyOptions&ProcessorOptions} options The options.
1461
- * @param {FlatConfigArray} [configForRecursive] The `ConfigArray` object to apply multiple processors recursively.
1462
- * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems.
1463
- */
1464
- _verifyWithFlatConfigArrayAndProcessor(textOrSourceCode, config, options, configForRecursive) {
1465
- const filename = options.filename || "<input>";
1466
- const filenameToExpose = normalizeFilename(filename);
1467
- const physicalFilename = options.physicalFilename || filenameToExpose;
1468
- const text = ensureText(textOrSourceCode);
1469
- const preprocess = options.preprocess || (rawText => [rawText]);
1470
- const postprocess = options.postprocess || (messagesList => messagesList.flat());
1471
- const filterCodeBlock =
1472
- options.filterCodeBlock ||
1473
- (blockFilename => blockFilename.endsWith(".js"));
1474
- const originalExtname = path.extname(filename);
1475
-
1476
- let blocks;
1477
-
1478
- try {
1479
- blocks = preprocess(text, filenameToExpose);
1480
- } catch (ex) {
1481
-
1482
- // If the message includes a leading line number, strip it:
1483
- const message = `Preprocessing error: ${ex.message.replace(/^line \d+:/iu, "").trim()}`;
1484
-
1485
- debug("%s\n%s", message, ex.stack);
1486
-
1487
- return [
1488
- {
1489
- ruleId: null,
1490
- fatal: true,
1491
- severity: 2,
1492
- message,
1493
- line: ex.lineNumber,
1494
- column: ex.column,
1495
- nodeType: null
1496
- }
1497
- ];
1498
- }
1499
-
1500
- const messageLists = blocks.map((block, i) => {
1501
- debug("A code block was found: %o", block.filename || "(unnamed)");
1502
-
1503
- // Keep the legacy behavior.
1504
- if (typeof block === "string") {
1505
- return this._verifyWithFlatConfigArrayAndWithoutProcessors(block, config, options);
1506
- }
1507
-
1508
- const blockText = block.text;
1509
- const blockName = path.join(filename, `${i}_${block.filename}`);
1510
-
1511
- // Skip this block if filtered.
1512
- if (!filterCodeBlock(blockName, blockText)) {
1513
- debug("This code block was skipped.");
1514
- return [];
1515
- }
1516
-
1517
- // Resolve configuration again if the file content or extension was changed.
1518
- if (configForRecursive && (text !== blockText || path.extname(blockName) !== originalExtname)) {
1519
- debug("Resolving configuration again because the file content or extension was changed.");
1520
- return this._verifyWithFlatConfigArray(
1521
- blockText,
1522
- configForRecursive,
1523
- { ...options, filename: blockName, physicalFilename }
1524
- );
1525
- }
1526
-
1527
- // Does lint.
1528
- return this._verifyWithFlatConfigArrayAndWithoutProcessors(
1529
- blockText,
1530
- config,
1531
- { ...options, filename: blockName, physicalFilename }
1532
- );
1533
- });
1534
-
1535
- return postprocess(messageLists, filenameToExpose);
1536
- }
1537
-
1538
- /**
1539
- * Same as linter.verify, except without support for processors.
1540
- * @param {string|SourceCode} textOrSourceCode The text to parse or a SourceCode object.
1541
- * @param {FlatConfig} providedConfig An ESLintConfig instance to configure everything.
1542
- * @param {VerifyOptions} [providedOptions] The optional filename of the file being checked.
1543
- * @throws {Error} If during rule execution.
1544
- * @returns {(LintMessage|SuppressedLintMessage)[]} The results as an array of messages or an empty array if no messages.
1545
- */
1546
- _verifyWithFlatConfigArrayAndWithoutProcessors(textOrSourceCode, providedConfig, providedOptions) {
1547
- const slots = internalSlotsMap.get(this);
1548
- const config = providedConfig || {};
1549
- const options = normalizeVerifyOptions(providedOptions, config);
1550
- let text;
1551
-
1552
- // evaluate arguments
1553
- if (typeof textOrSourceCode === "string") {
1554
- slots.lastSourceCode = null;
1555
- text = textOrSourceCode;
1556
- } else {
1557
- slots.lastSourceCode = textOrSourceCode;
1558
- text = textOrSourceCode.text;
1559
- }
1560
-
1561
- const languageOptions = config.languageOptions;
1562
-
1563
- languageOptions.ecmaVersion = normalizeEcmaVersionForLanguageOptions(
1564
- languageOptions.ecmaVersion
1565
- );
1566
-
1567
- // double check that there is a parser to avoid mysterious error messages
1568
- if (!languageOptions.parser) {
1569
- throw new TypeError(`No parser specified for ${options.filename}`);
1570
- }
1571
-
1572
- // Espree expects this information to be passed in
1573
- if (isEspree(languageOptions.parser)) {
1574
- const parserOptions = languageOptions.parserOptions;
1575
-
1576
- if (languageOptions.sourceType) {
1577
-
1578
- parserOptions.sourceType = languageOptions.sourceType;
1579
-
1580
- if (
1581
- parserOptions.sourceType === "module" &&
1582
- parserOptions.ecmaFeatures &&
1583
- parserOptions.ecmaFeatures.globalReturn
1584
- ) {
1585
- parserOptions.ecmaFeatures.globalReturn = false;
1586
- }
1587
- }
1588
- }
1589
-
1590
- const settings = config.settings || {};
1591
-
1592
- if (!slots.lastSourceCode) {
1593
- const parseResult = parse(
1594
- text,
1595
- languageOptions,
1596
- options.filename
1597
- );
1598
-
1599
- if (!parseResult.success) {
1600
- return [parseResult.error];
1601
- }
1602
-
1603
- slots.lastSourceCode = parseResult.sourceCode;
1604
- } else {
1605
-
1606
- /*
1607
- * If the given source code object as the first argument does not have scopeManager, analyze the scope.
1608
- * This is for backward compatibility (SourceCode is frozen so it cannot rebind).
1609
- */
1610
- if (!slots.lastSourceCode.scopeManager) {
1611
- slots.lastSourceCode = new SourceCode({
1612
- text: slots.lastSourceCode.text,
1613
- ast: slots.lastSourceCode.ast,
1614
- parserServices: slots.lastSourceCode.parserServices,
1615
- visitorKeys: slots.lastSourceCode.visitorKeys,
1616
- scopeManager: analyzeScope(slots.lastSourceCode.ast, languageOptions)
1617
- });
1618
- }
1619
- }
1620
-
1621
- const sourceCode = slots.lastSourceCode;
1622
-
1623
- /*
1624
- * Make adjustments based on the language options. For JavaScript,
1625
- * this is primarily about adding variables into the global scope
1626
- * to account for ecmaVersion and configured globals.
1627
- */
1628
- sourceCode.applyLanguageOptions(languageOptions);
1629
-
1630
- const mergedInlineConfig = {
1631
- rules: {}
1632
- };
1633
- const inlineConfigProblems = [];
1634
-
1635
- /*
1636
- * Inline config can be either enabled or disabled. If disabled, it's possible
1637
- * to detect the inline config and emit a warning (though this is not required).
1638
- * So we first check to see if inline config is allowed at all, and if so, we
1639
- * need to check if it's a warning or not.
1640
- */
1641
- if (options.allowInlineConfig) {
1642
-
1643
- // if inline config should warn then add the warnings
1644
- if (options.warnInlineConfig) {
1645
- sourceCode.getInlineConfigNodes().forEach(node => {
1646
- inlineConfigProblems.push(createLintingProblem({
1647
- ruleId: null,
1648
- message: `'${sourceCode.text.slice(node.range[0], node.range[1])}' has no effect because you have 'noInlineConfig' setting in ${options.warnInlineConfig}.`,
1649
- loc: node.loc,
1650
- severity: 1
1651
- }));
1652
-
1653
- });
1654
- } else {
1655
- const inlineConfigResult = sourceCode.applyInlineConfig();
1656
-
1657
- inlineConfigProblems.push(
1658
- ...inlineConfigResult.problems
1659
- .map(createLintingProblem)
1660
- .map(problem => {
1661
- problem.fatal = true;
1662
- return problem;
1663
- })
1664
- );
1665
-
1666
- // next we need to verify information about the specified rules
1667
- const ruleValidator = new RuleValidator();
1668
-
1669
- for (const { config: inlineConfig, node } of inlineConfigResult.configs) {
1670
-
1671
- Object.keys(inlineConfig.rules).forEach(ruleId => {
1672
- const rule = getRuleFromConfig(ruleId, config);
1673
- const ruleValue = inlineConfig.rules[ruleId];
1674
-
1675
- if (!rule) {
1676
- inlineConfigProblems.push(createLintingProblem({ ruleId, loc: node.loc }));
1677
- return;
1678
- }
1679
-
1680
- try {
1681
-
1682
- const ruleOptions = Array.isArray(ruleValue) ? ruleValue : [ruleValue];
1683
-
1684
- assertIsRuleOptions(ruleId, ruleValue);
1685
- assertIsRuleSeverity(ruleId, ruleOptions[0]);
1686
-
1687
- ruleValidator.validate({
1688
- plugins: config.plugins,
1689
- rules: {
1690
- [ruleId]: ruleOptions
1691
- }
1692
- });
1693
- mergedInlineConfig.rules[ruleId] = ruleValue;
1694
- } catch (err) {
1695
-
1696
- let baseMessage = err.message.slice(
1697
- err.message.startsWith("Key \"rules\":")
1698
- ? err.message.indexOf(":", 12) + 1
1699
- : err.message.indexOf(":") + 1
1700
- ).trim();
1701
-
1702
- if (err.messageTemplate) {
1703
- baseMessage += ` You passed "${ruleValue}".`;
1704
- }
1705
-
1706
- inlineConfigProblems.push(createLintingProblem({
1707
- ruleId,
1708
- message: `Inline configuration for rule "${ruleId}" is invalid:\n\t${baseMessage}\n`,
1709
- loc: node.loc
1710
- }));
1711
- }
1712
- });
1713
- }
1714
- }
1715
- }
1716
-
1717
- const commentDirectives = options.allowInlineConfig && !options.warnInlineConfig
1718
- ? getDirectiveCommentsForFlatConfig(
1719
- sourceCode,
1720
- ruleId => getRuleFromConfig(ruleId, config)
1721
- )
1722
- : { problems: [], disableDirectives: [] };
1723
-
1724
- const configuredRules = Object.assign({}, config.rules, mergedInlineConfig.rules);
1725
- let lintingProblems;
1726
-
1727
- sourceCode.finalize();
1728
-
1729
- try {
1730
- lintingProblems = runRules(
1731
- sourceCode,
1732
- configuredRules,
1733
- ruleId => getRuleFromConfig(ruleId, config),
1734
- void 0,
1735
- languageOptions,
1736
- settings,
1737
- options.filename,
1738
- options.disableFixes,
1739
- slots.cwd,
1740
- providedOptions.physicalFilename
1741
- );
1742
- } catch (err) {
1743
- err.message += `\nOccurred while linting ${options.filename}`;
1744
- debug("An error occurred while traversing");
1745
- debug("Filename:", options.filename);
1746
- if (err.currentNode) {
1747
- const { line } = err.currentNode.loc.start;
1748
-
1749
- debug("Line:", line);
1750
- err.message += `:${line}`;
1751
- }
1752
- debug("Parser Options:", languageOptions.parserOptions);
1753
-
1754
- // debug("Parser Path:", parserName);
1755
- debug("Settings:", settings);
1756
-
1757
- if (err.ruleId) {
1758
- err.message += `\nRule: "${err.ruleId}"`;
1759
- }
1760
-
1761
- throw err;
1762
- }
1763
-
1764
- return applyDisableDirectives({
1765
- directives: commentDirectives.disableDirectives,
1766
- disableFixes: options.disableFixes,
1767
- problems: lintingProblems
1768
- .concat(commentDirectives.problems)
1769
- .concat(inlineConfigProblems)
1770
- .sort((problemA, problemB) => problemA.line - problemB.line || problemA.column - problemB.column),
1771
- reportUnusedDisableDirectives: options.reportUnusedDisableDirectives
1772
- });
1773
- }
1774
-
1775
- /**
1776
- * Verify a given code with `ConfigArray`.
1777
- * @param {string|SourceCode} textOrSourceCode The source code.
1778
- * @param {ConfigArray} configArray The config array.
1779
- * @param {VerifyOptions&ProcessorOptions} options The options.
1780
- * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems.
1781
- */
1782
- _verifyWithConfigArray(textOrSourceCode, configArray, options) {
1783
- debug("With ConfigArray: %s", options.filename);
1784
-
1785
- // Store the config array in order to get plugin envs and rules later.
1786
- internalSlotsMap.get(this).lastConfigArray = configArray;
1787
-
1788
- // Extract the final config for this file.
1789
- const config = configArray.extractConfig(options.filename);
1790
- const processor =
1791
- config.processor &&
1792
- configArray.pluginProcessors.get(config.processor);
1793
-
1794
- // Verify.
1795
- if (processor) {
1796
- debug("Apply the processor: %o", config.processor);
1797
- const { preprocess, postprocess, supportsAutofix } = processor;
1798
- const disableFixes = options.disableFixes || !supportsAutofix;
1799
-
1800
- return this._verifyWithProcessor(
1801
- textOrSourceCode,
1802
- config,
1803
- { ...options, disableFixes, postprocess, preprocess },
1804
- configArray
1805
- );
1806
- }
1807
- return this._verifyWithoutProcessors(textOrSourceCode, config, options);
1808
- }
1809
-
1810
- /**
1811
- * Verify a given code with a flat config.
1812
- * @param {string|SourceCode} textOrSourceCode The source code.
1813
- * @param {FlatConfigArray} configArray The config array.
1814
- * @param {VerifyOptions&ProcessorOptions} options The options.
1815
- * @param {boolean} [firstCall=false] Indicates if this is being called directly
1816
- * from verify(). (TODO: Remove once eslintrc is removed.)
1817
- * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems.
1818
- */
1819
- _verifyWithFlatConfigArray(textOrSourceCode, configArray, options, firstCall = false) {
1820
- debug("With flat config: %s", options.filename);
1821
-
1822
- // we need a filename to match configs against
1823
- const filename = options.filename || "__placeholder__.js";
1824
-
1825
- // Store the config array in order to get plugin envs and rules later.
1826
- internalSlotsMap.get(this).lastConfigArray = configArray;
1827
- const config = configArray.getConfig(filename);
1828
-
1829
- if (!config) {
1830
- return [
1831
- {
1832
- ruleId: null,
1833
- severity: 1,
1834
- message: `No matching configuration found for ${filename}.`,
1835
- line: 0,
1836
- column: 0,
1837
- nodeType: null
1838
- }
1839
- ];
1840
- }
1841
-
1842
- // Verify.
1843
- if (config.processor) {
1844
- debug("Apply the processor: %o", config.processor);
1845
- const { preprocess, postprocess, supportsAutofix } = config.processor;
1846
- const disableFixes = options.disableFixes || !supportsAutofix;
1847
-
1848
- return this._verifyWithFlatConfigArrayAndProcessor(
1849
- textOrSourceCode,
1850
- config,
1851
- { ...options, filename, disableFixes, postprocess, preprocess },
1852
- configArray
1853
- );
1854
- }
1855
-
1856
- // check for options-based processing
1857
- if (firstCall && (options.preprocess || options.postprocess)) {
1858
- return this._verifyWithFlatConfigArrayAndProcessor(textOrSourceCode, config, options);
1859
- }
1860
-
1861
- return this._verifyWithFlatConfigArrayAndWithoutProcessors(textOrSourceCode, config, options);
1862
- }
1863
-
1864
- /**
1865
- * Verify with a processor.
1866
- * @param {string|SourceCode} textOrSourceCode The source code.
1867
- * @param {ConfigData|ExtractedConfig} config The config array.
1868
- * @param {VerifyOptions&ProcessorOptions} options The options.
1869
- * @param {ConfigArray} [configForRecursive] The `ConfigArray` object to apply multiple processors recursively.
1870
- * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems.
1871
- */
1872
- _verifyWithProcessor(textOrSourceCode, config, options, configForRecursive) {
1873
- const filename = options.filename || "<input>";
1874
- const filenameToExpose = normalizeFilename(filename);
1875
- const physicalFilename = options.physicalFilename || filenameToExpose;
1876
- const text = ensureText(textOrSourceCode);
1877
- const preprocess = options.preprocess || (rawText => [rawText]);
1878
- const postprocess = options.postprocess || (messagesList => messagesList.flat());
1879
- const filterCodeBlock =
1880
- options.filterCodeBlock ||
1881
- (blockFilename => blockFilename.endsWith(".js"));
1882
- const originalExtname = path.extname(filename);
1883
-
1884
- let blocks;
1885
-
1886
- try {
1887
- blocks = preprocess(text, filenameToExpose);
1888
- } catch (ex) {
1889
-
1890
- // If the message includes a leading line number, strip it:
1891
- const message = `Preprocessing error: ${ex.message.replace(/^line \d+:/iu, "").trim()}`;
1892
-
1893
- debug("%s\n%s", message, ex.stack);
1894
-
1895
- return [
1896
- {
1897
- ruleId: null,
1898
- fatal: true,
1899
- severity: 2,
1900
- message,
1901
- line: ex.lineNumber,
1902
- column: ex.column,
1903
- nodeType: null
1904
- }
1905
- ];
1906
- }
1907
-
1908
- const messageLists = blocks.map((block, i) => {
1909
- debug("A code block was found: %o", block.filename || "(unnamed)");
1910
-
1911
- // Keep the legacy behavior.
1912
- if (typeof block === "string") {
1913
- return this._verifyWithoutProcessors(block, config, options);
1914
- }
1915
-
1916
- const blockText = block.text;
1917
- const blockName = path.join(filename, `${i}_${block.filename}`);
1918
-
1919
- // Skip this block if filtered.
1920
- if (!filterCodeBlock(blockName, blockText)) {
1921
- debug("This code block was skipped.");
1922
- return [];
1923
- }
1924
-
1925
- // Resolve configuration again if the file content or extension was changed.
1926
- if (configForRecursive && (text !== blockText || path.extname(blockName) !== originalExtname)) {
1927
- debug("Resolving configuration again because the file content or extension was changed.");
1928
- return this._verifyWithConfigArray(
1929
- blockText,
1930
- configForRecursive,
1931
- { ...options, filename: blockName, physicalFilename }
1932
- );
1933
- }
1934
-
1935
- // Does lint.
1936
- return this._verifyWithoutProcessors(
1937
- blockText,
1938
- config,
1939
- { ...options, filename: blockName, physicalFilename }
1940
- );
1941
- });
1942
-
1943
- return postprocess(messageLists, filenameToExpose);
1944
- }
1945
-
1946
- /**
1947
- * Given a list of reported problems, distinguish problems between normal messages and suppressed messages.
1948
- * The normal messages will be returned and the suppressed messages will be stored as lastSuppressedMessages.
1949
- * @param {Array<LintMessage|SuppressedLintMessage>} problems A list of reported problems.
1950
- * @returns {LintMessage[]} A list of LintMessage.
1951
- */
1952
- _distinguishSuppressedMessages(problems) {
1953
- const messages = [];
1954
- const suppressedMessages = [];
1955
- const slots = internalSlotsMap.get(this);
1956
-
1957
- for (const problem of problems) {
1958
- if (problem.suppressions) {
1959
- suppressedMessages.push(problem);
1960
- } else {
1961
- messages.push(problem);
1962
- }
1963
- }
1964
-
1965
- slots.lastSuppressedMessages = suppressedMessages;
1966
-
1967
- return messages;
1968
- }
1969
-
1970
- /**
1971
- * Gets the SourceCode object representing the parsed source.
1972
- * @returns {SourceCode} The SourceCode object.
1973
- */
1974
- getSourceCode() {
1975
- return internalSlotsMap.get(this).lastSourceCode;
1976
- }
1977
-
1978
- /**
1979
- * Gets the list of SuppressedLintMessage produced in the last running.
1980
- * @returns {SuppressedLintMessage[]} The list of SuppressedLintMessage
1981
- */
1982
- getSuppressedMessages() {
1983
- return internalSlotsMap.get(this).lastSuppressedMessages;
1984
- }
1985
-
1986
- /**
1987
- * Defines a new linting rule.
1988
- * @param {string} ruleId A unique rule identifier
1989
- * @param {Function | Rule} ruleModule Function from context to object mapping AST node types to event handlers
1990
- * @returns {void}
1991
- */
1992
- defineRule(ruleId, ruleModule) {
1993
- assertEslintrcConfig(this);
1994
- internalSlotsMap.get(this).ruleMap.define(ruleId, ruleModule);
1995
- }
1996
-
1997
- /**
1998
- * Defines many new linting rules.
1999
- * @param {Record<string, Function | Rule>} rulesToDefine map from unique rule identifier to rule
2000
- * @returns {void}
2001
- */
2002
- defineRules(rulesToDefine) {
2003
- assertEslintrcConfig(this);
2004
- Object.getOwnPropertyNames(rulesToDefine).forEach(ruleId => {
2005
- this.defineRule(ruleId, rulesToDefine[ruleId]);
2006
- });
2007
- }
2008
-
2009
- /**
2010
- * Gets an object with all loaded rules.
2011
- * @returns {Map<string, Rule>} All loaded rules
2012
- */
2013
- getRules() {
2014
- assertEslintrcConfig(this);
2015
- const { lastConfigArray, ruleMap } = internalSlotsMap.get(this);
2016
-
2017
- return new Map(function *() {
2018
- yield* ruleMap;
2019
-
2020
- if (lastConfigArray) {
2021
- yield* lastConfigArray.pluginRules;
2022
- }
2023
- }());
2024
- }
2025
-
2026
- /**
2027
- * Define a new parser module
2028
- * @param {string} parserId Name of the parser
2029
- * @param {Parser} parserModule The parser object
2030
- * @returns {void}
2031
- */
2032
- defineParser(parserId, parserModule) {
2033
- assertEslintrcConfig(this);
2034
- internalSlotsMap.get(this).parserMap.set(parserId, parserModule);
2035
- }
2036
-
2037
- /**
2038
- * Performs multiple autofix passes over the text until as many fixes as possible
2039
- * have been applied.
2040
- * @param {string} text The source text to apply fixes to.
2041
- * @param {ConfigData|ConfigArray|FlatConfigArray} config The ESLint config object to use.
2042
- * @param {VerifyOptions&ProcessorOptions&FixOptions} options The ESLint options object to use.
2043
- * @returns {{fixed:boolean,messages:LintMessage[],output:string}} The result of the fix operation as returned from the
2044
- * SourceCodeFixer.
2045
- */
2046
- verifyAndFix(text, config, options) {
2047
- let messages = [],
2048
- fixedResult,
2049
- fixed = false,
2050
- passNumber = 0,
2051
- currentText = text;
2052
- const debugTextDescription = options && options.filename || `${text.slice(0, 10)}...`;
2053
- const shouldFix = options && typeof options.fix !== "undefined" ? options.fix : true;
2054
-
2055
- /**
2056
- * This loop continues until one of the following is true:
2057
- *
2058
- * 1. No more fixes have been applied.
2059
- * 2. Ten passes have been made.
2060
- *
2061
- * That means anytime a fix is successfully applied, there will be another pass.
2062
- * Essentially, guaranteeing a minimum of two passes.
2063
- */
2064
- do {
2065
- passNumber++;
2066
-
2067
- debug(`Linting code for ${debugTextDescription} (pass ${passNumber})`);
2068
- messages = this.verify(currentText, config, options);
2069
-
2070
- debug(`Generating fixed text for ${debugTextDescription} (pass ${passNumber})`);
2071
- fixedResult = SourceCodeFixer.applyFixes(currentText, messages, shouldFix);
2072
-
2073
- /*
2074
- * stop if there are any syntax errors.
2075
- * 'fixedResult.output' is a empty string.
2076
- */
2077
- if (messages.length === 1 && messages[0].fatal) {
2078
- break;
2079
- }
2080
-
2081
- // keep track if any fixes were ever applied - important for return value
2082
- fixed = fixed || fixedResult.fixed;
2083
-
2084
- // update to use the fixed output instead of the original text
2085
- currentText = fixedResult.output;
2086
-
2087
- } while (
2088
- fixedResult.fixed &&
2089
- passNumber < MAX_AUTOFIX_PASSES
2090
- );
2091
-
2092
- /*
2093
- * If the last result had fixes, we need to lint again to be sure we have
2094
- * the most up-to-date information.
2095
- */
2096
- if (fixedResult.fixed) {
2097
- fixedResult.messages = this.verify(currentText, config, options);
2098
- }
2099
-
2100
- // ensure the last result properly reflects if fixes were done
2101
- fixedResult.fixed = fixed;
2102
- fixedResult.output = currentText;
2103
-
2104
- return fixedResult;
2105
- }
2106
- }
2107
-
2108
- module.exports = {
2109
- Linter,
2110
-
2111
- /**
2112
- * Get the internal slots of a given Linter instance for tests.
2113
- * @param {Linter} instance The Linter instance to get.
2114
- * @returns {LinterInternalSlots} The internal slots.
2115
- */
2116
- getLinterInternalSlots(instance) {
2117
- return internalSlotsMap.get(instance);
2118
- }
2119
- };