decidim 0.26.2 → 0.26.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim might be problematic. Click here for more details.

Files changed (1612) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +22 -4
  3. data/lib/decidim/gem_manager.rb +23 -4
  4. data/lib/decidim/version.rb +1 -1
  5. data/package-lock.json +7 -7
  6. data/packages/browserslist-config/package.json +1 -1
  7. data/packages/core/node_modules/@rails/activestorage/CHANGELOG.md +306 -0
  8. data/packages/core/node_modules/@rails/activestorage/README.md +194 -0
  9. data/packages/core/node_modules/@rails/activestorage/app/assets/javascripts/activestorage.js +942 -0
  10. data/packages/core/node_modules/@rails/activestorage/package.json +41 -0
  11. data/packages/core/node_modules/@rails/activestorage/src/blob_record.js +73 -0
  12. data/packages/core/node_modules/@rails/activestorage/src/blob_upload.js +35 -0
  13. data/packages/core/node_modules/@rails/activestorage/src/direct_upload.js +48 -0
  14. data/packages/core/node_modules/@rails/activestorage/src/direct_upload_controller.js +67 -0
  15. data/packages/core/node_modules/@rails/activestorage/src/direct_uploads_controller.js +50 -0
  16. data/packages/core/node_modules/@rails/activestorage/src/file_checksum.js +53 -0
  17. data/packages/core/node_modules/@rails/activestorage/src/helpers.js +51 -0
  18. data/packages/core/node_modules/@rails/activestorage/src/index.js +11 -0
  19. data/packages/core/node_modules/@rails/activestorage/src/ujs.js +86 -0
  20. data/packages/core/package.json +1 -1
  21. data/packages/dev/package.json +1 -1
  22. data/packages/elections/package.json +1 -1
  23. data/packages/eslint-config/package.json +1 -1
  24. data/packages/stylelint-config/package.json +1 -1
  25. data/packages/webpacker/node_modules/@eslint/eslintrc/LICENSE +21 -0
  26. data/packages/webpacker/node_modules/@eslint/eslintrc/README.md +61 -0
  27. data/packages/webpacker/node_modules/@eslint/eslintrc/conf/config-schema.js +79 -0
  28. data/packages/webpacker/node_modules/@eslint/eslintrc/conf/environments.js +203 -0
  29. data/packages/webpacker/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +1092 -0
  30. data/packages/webpacker/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +1 -0
  31. data/packages/webpacker/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +4295 -0
  32. data/packages/webpacker/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +1 -0
  33. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +533 -0
  34. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +523 -0
  35. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +115 -0
  36. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +145 -0
  37. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +238 -0
  38. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/index.js +19 -0
  39. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +225 -0
  40. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array-factory.js +1133 -0
  41. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/flat-compat.js +307 -0
  42. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/index-universal.js +29 -0
  43. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/index.js +56 -0
  44. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/ajv.js +191 -0
  45. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +135 -0
  46. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +325 -0
  47. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +63 -0
  48. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/naming.js +96 -0
  49. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +42 -0
  50. data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/types.js +149 -0
  51. data/packages/webpacker/node_modules/@eslint/eslintrc/package.json +81 -0
  52. data/packages/webpacker/node_modules/@eslint/eslintrc/universal.js +9 -0
  53. data/packages/webpacker/node_modules/@humanwhocodes/config-array/CHANGELOG.md +71 -0
  54. data/packages/webpacker/node_modules/@humanwhocodes/config-array/LICENSE +201 -0
  55. data/packages/webpacker/node_modules/@humanwhocodes/config-array/README.md +301 -0
  56. data/packages/webpacker/node_modules/@humanwhocodes/config-array/api.js +695 -0
  57. data/packages/webpacker/node_modules/@humanwhocodes/config-array/package.json +61 -0
  58. data/packages/webpacker/node_modules/@jest/console/LICENSE +21 -0
  59. data/packages/webpacker/node_modules/@jest/console/build/BufferedConsole.d.ts +37 -0
  60. data/packages/webpacker/node_modules/@jest/console/build/BufferedConsole.js +258 -0
  61. data/packages/webpacker/node_modules/@jest/console/build/CustomConsole.d.ts +41 -0
  62. data/packages/webpacker/node_modules/@jest/console/build/CustomConsole.js +240 -0
  63. data/packages/webpacker/node_modules/@jest/console/build/NullConsole.d.ts +23 -0
  64. data/packages/webpacker/node_modules/@jest/console/build/NullConsole.js +50 -0
  65. data/packages/webpacker/node_modules/@jest/console/build/getConsoleOutput.d.ts +10 -0
  66. data/packages/webpacker/node_modules/@jest/console/build/getConsoleOutput.js +101 -0
  67. data/packages/webpacker/node_modules/@jest/console/build/index.d.ts +11 -0
  68. data/packages/webpacker/node_modules/@jest/console/build/index.js +41 -0
  69. data/packages/webpacker/node_modules/@jest/console/build/types.d.ts +20 -0
  70. data/packages/webpacker/node_modules/@jest/console/build/types.js +1 -0
  71. data/packages/webpacker/node_modules/@jest/console/package.json +38 -0
  72. data/packages/webpacker/node_modules/@jest/core/LICENSE +21 -0
  73. data/packages/webpacker/node_modules/@jest/core/README.md +3 -0
  74. data/packages/webpacker/node_modules/@jest/core/build/FailedTestsCache.d.ts +12 -0
  75. data/packages/webpacker/node_modules/@jest/core/build/FailedTestsCache.js +59 -0
  76. data/packages/webpacker/node_modules/@jest/core/build/FailedTestsInteractiveMode.d.ts +31 -0
  77. data/packages/webpacker/node_modules/@jest/core/build/FailedTestsInteractiveMode.js +262 -0
  78. data/packages/webpacker/node_modules/@jest/core/build/ReporterDispatcher.d.ts +22 -0
  79. data/packages/webpacker/node_modules/@jest/core/build/ReporterDispatcher.js +104 -0
  80. data/packages/webpacker/node_modules/@jest/core/build/SearchSource.d.ts +46 -0
  81. data/packages/webpacker/node_modules/@jest/core/build/SearchSource.js +490 -0
  82. data/packages/webpacker/node_modules/@jest/core/build/SnapshotInteractiveMode.d.ts +30 -0
  83. data/packages/webpacker/node_modules/@jest/core/build/SnapshotInteractiveMode.js +327 -0
  84. data/packages/webpacker/node_modules/@jest/core/build/TestNamePatternPrompt.d.ts +17 -0
  85. data/packages/webpacker/node_modules/@jest/core/build/TestNamePatternPrompt.js +86 -0
  86. data/packages/webpacker/node_modules/@jest/core/build/TestPathPatternPrompt.d.ts +24 -0
  87. data/packages/webpacker/node_modules/@jest/core/build/TestPathPatternPrompt.js +81 -0
  88. data/packages/webpacker/node_modules/@jest/core/build/TestScheduler.d.ts +42 -0
  89. data/packages/webpacker/node_modules/@jest/core/build/TestScheduler.js +570 -0
  90. data/packages/webpacker/node_modules/@jest/core/build/TestWatcher.d.ts +23 -0
  91. data/packages/webpacker/node_modules/@jest/core/build/TestWatcher.js +64 -0
  92. data/packages/webpacker/node_modules/@jest/core/build/assets/jest_logo.png +0 -0
  93. data/packages/webpacker/node_modules/@jest/core/build/cli/index.d.ts +12 -0
  94. data/packages/webpacker/node_modules/@jest/core/build/cli/index.js +399 -0
  95. data/packages/webpacker/node_modules/@jest/core/build/collectHandles.d.ts +10 -0
  96. data/packages/webpacker/node_modules/@jest/core/build/collectHandles.js +269 -0
  97. data/packages/webpacker/node_modules/@jest/core/build/getChangedFilesPromise.d.ts +9 -0
  98. data/packages/webpacker/node_modules/@jest/core/build/getChangedFilesPromise.js +77 -0
  99. data/packages/webpacker/node_modules/@jest/core/build/getConfigsOfProjectsToRun.d.ts +8 -0
  100. data/packages/webpacker/node_modules/@jest/core/build/getConfigsOfProjectsToRun.js +28 -0
  101. data/packages/webpacker/node_modules/@jest/core/build/getNoTestFound.d.ts +9 -0
  102. data/packages/webpacker/node_modules/@jest/core/build/getNoTestFound.js +63 -0
  103. data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundFailed.d.ts +8 -0
  104. data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundFailed.js +51 -0
  105. data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundPassWithNoTests.d.ts +7 -0
  106. data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundPassWithNoTests.js +30 -0
  107. data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundRelatedToChangedFiles.d.ts +8 -0
  108. data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundRelatedToChangedFiles.js +57 -0
  109. data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundVerbose.d.ts +9 -0
  110. data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundVerbose.js +95 -0
  111. data/packages/webpacker/node_modules/@jest/core/build/getNoTestsFoundMessage.d.ts +9 -0
  112. data/packages/webpacker/node_modules/@jest/core/build/getNoTestsFoundMessage.js +52 -0
  113. data/packages/webpacker/node_modules/@jest/core/build/getProjectDisplayName.d.ts +8 -0
  114. data/packages/webpacker/node_modules/@jest/core/build/getProjectDisplayName.js +23 -0
  115. data/packages/webpacker/node_modules/@jest/core/build/getProjectNamesMissingWarning.d.ts +8 -0
  116. data/packages/webpacker/node_modules/@jest/core/build/getProjectNamesMissingWarning.js +49 -0
  117. data/packages/webpacker/node_modules/@jest/core/build/getSelectProjectsMessage.d.ts +8 -0
  118. data/packages/webpacker/node_modules/@jest/core/build/getSelectProjectsMessage.js +65 -0
  119. data/packages/webpacker/node_modules/@jest/core/build/jest.d.ts +11 -0
  120. data/packages/webpacker/node_modules/@jest/core/build/jest.js +49 -0
  121. data/packages/webpacker/node_modules/@jest/core/build/lib/activeFiltersMessage.d.ts +9 -0
  122. data/packages/webpacker/node_modules/@jest/core/build/lib/activeFiltersMessage.js +54 -0
  123. data/packages/webpacker/node_modules/@jest/core/build/lib/createContext.d.ts +10 -0
  124. data/packages/webpacker/node_modules/@jest/core/build/lib/createContext.js +35 -0
  125. data/packages/webpacker/node_modules/@jest/core/build/lib/handleDeprecationWarnings.d.ts +8 -0
  126. data/packages/webpacker/node_modules/@jest/core/build/lib/handleDeprecationWarnings.js +72 -0
  127. data/packages/webpacker/node_modules/@jest/core/build/lib/isValidPath.d.ts +8 -0
  128. data/packages/webpacker/node_modules/@jest/core/build/lib/isValidPath.js +29 -0
  129. data/packages/webpacker/node_modules/@jest/core/build/lib/logDebugMessages.d.ts +9 -0
  130. data/packages/webpacker/node_modules/@jest/core/build/lib/logDebugMessages.js +23 -0
  131. data/packages/webpacker/node_modules/@jest/core/build/lib/updateGlobalConfig.d.ts +11 -0
  132. data/packages/webpacker/node_modules/@jest/core/build/lib/updateGlobalConfig.js +121 -0
  133. data/packages/webpacker/node_modules/@jest/core/build/lib/watchPluginsHelpers.d.ts +10 -0
  134. data/packages/webpacker/node_modules/@jest/core/build/lib/watchPluginsHelpers.js +62 -0
  135. data/packages/webpacker/node_modules/@jest/core/build/plugins/FailedTestsInteractive.d.ts +17 -0
  136. data/packages/webpacker/node_modules/@jest/core/build/plugins/FailedTestsInteractive.js +135 -0
  137. data/packages/webpacker/node_modules/@jest/core/build/plugins/Quit.d.ts +18 -0
  138. data/packages/webpacker/node_modules/@jest/core/build/plugins/Quit.js +60 -0
  139. data/packages/webpacker/node_modules/@jest/core/build/plugins/TestNamePattern.d.ts +21 -0
  140. data/packages/webpacker/node_modules/@jest/core/build/plugins/TestNamePattern.js +91 -0
  141. data/packages/webpacker/node_modules/@jest/core/build/plugins/TestPathPattern.d.ts +21 -0
  142. data/packages/webpacker/node_modules/@jest/core/build/plugins/TestPathPattern.js +91 -0
  143. data/packages/webpacker/node_modules/@jest/core/build/plugins/UpdateSnapshots.d.ts +21 -0
  144. data/packages/webpacker/node_modules/@jest/core/build/plugins/UpdateSnapshots.js +70 -0
  145. data/packages/webpacker/node_modules/@jest/core/build/plugins/UpdateSnapshotsInteractive.d.ts +20 -0
  146. data/packages/webpacker/node_modules/@jest/core/build/plugins/UpdateSnapshotsInteractive.js +138 -0
  147. data/packages/webpacker/node_modules/@jest/core/build/pluralize.d.ts +7 -0
  148. data/packages/webpacker/node_modules/@jest/core/build/pluralize.js +16 -0
  149. data/packages/webpacker/node_modules/@jest/core/build/runGlobalHook.d.ts +13 -0
  150. data/packages/webpacker/node_modules/@jest/core/build/runGlobalHook.js +143 -0
  151. data/packages/webpacker/node_modules/@jest/core/build/runJest.d.ts +27 -0
  152. data/packages/webpacker/node_modules/@jest/core/build/runJest.js +423 -0
  153. data/packages/webpacker/node_modules/@jest/core/build/testSchedulerHelper.d.ts +9 -0
  154. data/packages/webpacker/node_modules/@jest/core/build/testSchedulerHelper.js +51 -0
  155. data/packages/webpacker/node_modules/@jest/core/build/types.d.ts +39 -0
  156. data/packages/webpacker/node_modules/@jest/core/build/types.js +1 -0
  157. data/packages/webpacker/node_modules/@jest/core/build/version.d.ts +7 -0
  158. data/packages/webpacker/node_modules/@jest/core/build/version.js +19 -0
  159. data/packages/webpacker/node_modules/@jest/core/build/watch.d.ts +13 -0
  160. data/packages/webpacker/node_modules/@jest/core/build/watch.js +769 -0
  161. data/packages/webpacker/node_modules/@jest/core/package.json +103 -0
  162. data/packages/webpacker/node_modules/@jest/environment/LICENSE +21 -0
  163. data/packages/webpacker/node_modules/@jest/environment/build/index.d.ts +267 -0
  164. data/packages/webpacker/node_modules/@jest/environment/build/index.js +1 -0
  165. data/packages/webpacker/node_modules/@jest/environment/package.json +32 -0
  166. data/packages/webpacker/node_modules/@jest/fake-timers/LICENSE +21 -0
  167. data/packages/webpacker/node_modules/@jest/fake-timers/build/index.d.ts +8 -0
  168. data/packages/webpacker/node_modules/@jest/fake-timers/build/index.js +25 -0
  169. data/packages/webpacker/node_modules/@jest/fake-timers/build/legacyFakeTimers.d.ts +67 -0
  170. data/packages/webpacker/node_modules/@jest/fake-timers/build/legacyFakeTimers.js +673 -0
  171. data/packages/webpacker/node_modules/@jest/fake-timers/build/modernFakeTimers.d.ts +34 -0
  172. data/packages/webpacker/node_modules/@jest/fake-timers/build/modernFakeTimers.js +181 -0
  173. data/packages/webpacker/node_modules/@jest/fake-timers/package.json +37 -0
  174. data/packages/webpacker/node_modules/@jest/globals/LICENSE +21 -0
  175. data/packages/webpacker/node_modules/@jest/globals/build/index.d.ts +23 -0
  176. data/packages/webpacker/node_modules/@jest/globals/build/index.js +25 -0
  177. data/packages/webpacker/node_modules/@jest/globals/package.json +31 -0
  178. data/packages/webpacker/node_modules/@jest/reporters/LICENSE +21 -0
  179. data/packages/webpacker/node_modules/@jest/reporters/build/BaseReporter.d.ts +19 -0
  180. data/packages/webpacker/node_modules/@jest/reporters/build/BaseReporter.js +65 -0
  181. data/packages/webpacker/node_modules/@jest/reporters/build/CoverageReporter.d.ts +24 -0
  182. data/packages/webpacker/node_modules/@jest/reporters/build/CoverageReporter.js +668 -0
  183. data/packages/webpacker/node_modules/@jest/reporters/build/CoverageWorker.d.ts +17 -0
  184. data/packages/webpacker/node_modules/@jest/reporters/build/CoverageWorker.js +103 -0
  185. data/packages/webpacker/node_modules/@jest/reporters/build/DefaultReporter.d.ts +33 -0
  186. data/packages/webpacker/node_modules/@jest/reporters/build/DefaultReporter.js +254 -0
  187. data/packages/webpacker/node_modules/@jest/reporters/build/NotifyReporter.d.ts +19 -0
  188. data/packages/webpacker/node_modules/@jest/reporters/build/NotifyReporter.js +256 -0
  189. data/packages/webpacker/node_modules/@jest/reporters/build/Status.d.ts +42 -0
  190. data/packages/webpacker/node_modules/@jest/reporters/build/Status.js +272 -0
  191. data/packages/webpacker/node_modules/@jest/reporters/build/SummaryReporter.d.ts +22 -0
  192. data/packages/webpacker/node_modules/@jest/reporters/build/SummaryReporter.js +271 -0
  193. data/packages/webpacker/node_modules/@jest/reporters/build/VerboseReporter.d.ts +27 -0
  194. data/packages/webpacker/node_modules/@jest/reporters/build/VerboseReporter.js +226 -0
  195. data/packages/webpacker/node_modules/@jest/reporters/build/generateEmptyCoverage.d.ts +19 -0
  196. data/packages/webpacker/node_modules/@jest/reporters/build/generateEmptyCoverage.js +168 -0
  197. data/packages/webpacker/node_modules/@jest/reporters/build/getResultHeader.d.ts +9 -0
  198. data/packages/webpacker/node_modules/@jest/reporters/build/getResultHeader.js +104 -0
  199. data/packages/webpacker/node_modules/@jest/reporters/build/getSnapshotStatus.d.ts +8 -0
  200. data/packages/webpacker/node_modules/@jest/reporters/build/getSnapshotStatus.js +111 -0
  201. data/packages/webpacker/node_modules/@jest/reporters/build/getSnapshotSummary.d.ts +9 -0
  202. data/packages/webpacker/node_modules/@jest/reporters/build/getSnapshotSummary.js +203 -0
  203. data/packages/webpacker/node_modules/@jest/reporters/build/getWatermarks.d.ts +9 -0
  204. data/packages/webpacker/node_modules/@jest/reporters/build/getWatermarks.js +47 -0
  205. data/packages/webpacker/node_modules/@jest/reporters/build/index.d.ts +27 -0
  206. data/packages/webpacker/node_modules/@jest/reporters/build/index.js +78 -0
  207. data/packages/webpacker/node_modules/@jest/reporters/build/types.d.ts +75 -0
  208. data/packages/webpacker/node_modules/@jest/reporters/build/types.js +1 -0
  209. data/packages/webpacker/node_modules/@jest/reporters/build/utils.d.ts +18 -0
  210. data/packages/webpacker/node_modules/@jest/reporters/build/utils.js +435 -0
  211. data/packages/webpacker/node_modules/@jest/reporters/package.json +80 -0
  212. data/packages/webpacker/node_modules/@jest/source-map/LICENSE +21 -0
  213. data/packages/webpacker/node_modules/@jest/source-map/build/getCallsite.d.ts +9 -0
  214. data/packages/webpacker/node_modules/@jest/source-map/build/getCallsite.js +108 -0
  215. data/packages/webpacker/node_modules/@jest/source-map/build/index.d.ts +8 -0
  216. data/packages/webpacker/node_modules/@jest/source-map/build/index.js +17 -0
  217. data/packages/webpacker/node_modules/@jest/source-map/build/types.d.ts +7 -0
  218. data/packages/webpacker/node_modules/@jest/source-map/build/types.js +1 -0
  219. data/packages/webpacker/node_modules/@jest/source-map/package.json +34 -0
  220. data/packages/webpacker/node_modules/@jest/test-result/LICENSE +21 -0
  221. data/packages/webpacker/node_modules/@jest/test-result/build/formatTestResults.d.ts +8 -0
  222. data/packages/webpacker/node_modules/@jest/test-result/build/formatTestResults.js +70 -0
  223. data/packages/webpacker/node_modules/@jest/test-result/build/helpers.d.ts +12 -0
  224. data/packages/webpacker/node_modules/@jest/test-result/build/helpers.js +188 -0
  225. data/packages/webpacker/node_modules/@jest/test-result/build/index.d.ts +9 -0
  226. data/packages/webpacker/node_modules/@jest/test-result/build/index.js +43 -0
  227. data/packages/webpacker/node_modules/@jest/test-result/build/types.d.ts +171 -0
  228. data/packages/webpacker/node_modules/@jest/test-result/build/types.js +1 -0
  229. data/packages/webpacker/node_modules/@jest/test-result/package.json +32 -0
  230. data/packages/webpacker/node_modules/@jest/test-sequencer/LICENSE +21 -0
  231. data/packages/webpacker/node_modules/@jest/test-sequencer/build/index.d.ts +51 -0
  232. data/packages/webpacker/node_modules/@jest/test-sequencer/build/index.js +237 -0
  233. data/packages/webpacker/node_modules/@jest/test-sequencer/package.json +35 -0
  234. data/packages/webpacker/node_modules/@jest/transform/LICENSE +21 -0
  235. data/packages/webpacker/node_modules/@jest/transform/build/ScriptTransformer.d.ts +40 -0
  236. data/packages/webpacker/node_modules/@jest/transform/build/ScriptTransformer.js +1115 -0
  237. data/packages/webpacker/node_modules/@jest/transform/build/enhanceUnexpectedTokenMessage.d.ts +12 -0
  238. data/packages/webpacker/node_modules/@jest/transform/build/enhanceUnexpectedTokenMessage.js +83 -0
  239. data/packages/webpacker/node_modules/@jest/transform/build/index.d.ts +11 -0
  240. data/packages/webpacker/node_modules/@jest/transform/build/index.js +41 -0
  241. data/packages/webpacker/node_modules/@jest/transform/build/runtimeErrorsAndWarnings.d.ts +10 -0
  242. data/packages/webpacker/node_modules/@jest/transform/build/runtimeErrorsAndWarnings.js +101 -0
  243. data/packages/webpacker/node_modules/@jest/transform/build/shouldInstrument.d.ts +9 -0
  244. data/packages/webpacker/node_modules/@jest/transform/build/shouldInstrument.js +207 -0
  245. data/packages/webpacker/node_modules/@jest/transform/build/types.d.ts +75 -0
  246. data/packages/webpacker/node_modules/@jest/transform/build/types.js +1 -0
  247. data/packages/webpacker/node_modules/@jest/transform/package.json +53 -0
  248. data/packages/webpacker/node_modules/@jest/types/LICENSE +21 -0
  249. data/packages/webpacker/node_modules/@jest/types/build/Circus.d.ts +193 -0
  250. data/packages/webpacker/node_modules/@jest/types/build/Circus.js +1 -0
  251. data/packages/webpacker/node_modules/@jest/types/build/Config.d.ts +462 -0
  252. data/packages/webpacker/node_modules/@jest/types/build/Config.js +1 -0
  253. data/packages/webpacker/node_modules/@jest/types/build/Global.d.ts +95 -0
  254. data/packages/webpacker/node_modules/@jest/types/build/Global.js +1 -0
  255. data/packages/webpacker/node_modules/@jest/types/build/TestResult.d.ts +31 -0
  256. data/packages/webpacker/node_modules/@jest/types/build/TestResult.js +1 -0
  257. data/packages/webpacker/node_modules/@jest/types/build/Transform.d.ts +11 -0
  258. data/packages/webpacker/node_modules/@jest/types/build/Transform.js +1 -0
  259. data/packages/webpacker/node_modules/@jest/types/build/index.d.ts +12 -0
  260. data/packages/webpacker/node_modules/@jest/types/build/index.js +1 -0
  261. data/packages/webpacker/node_modules/@jest/types/package.json +37 -0
  262. data/packages/webpacker/node_modules/@sinonjs/fake-timers/CHANGELOG.md +441 -0
  263. data/packages/webpacker/node_modules/@sinonjs/fake-timers/LICENSE +11 -0
  264. data/packages/webpacker/node_modules/@sinonjs/fake-timers/README.md +353 -0
  265. data/packages/webpacker/node_modules/@sinonjs/fake-timers/package.json +71 -0
  266. data/packages/webpacker/node_modules/@sinonjs/fake-timers/src/fake-timers-src.js +1728 -0
  267. data/packages/webpacker/node_modules/@types/yargs/LICENSE +21 -0
  268. data/packages/webpacker/node_modules/@types/yargs/README.md +16 -0
  269. data/packages/webpacker/node_modules/@types/yargs/helpers.d.ts +5 -0
  270. data/packages/webpacker/node_modules/@types/yargs/index.d.ts +844 -0
  271. data/packages/webpacker/node_modules/@types/yargs/package.json +62 -0
  272. data/packages/webpacker/node_modules/@types/yargs/yargs.d.ts +9 -0
  273. data/packages/webpacker/node_modules/acorn/CHANGELOG.md +788 -0
  274. data/packages/webpacker/node_modules/acorn/LICENSE +21 -0
  275. data/packages/webpacker/node_modules/acorn/README.md +280 -0
  276. data/packages/webpacker/node_modules/acorn/bin/acorn +4 -0
  277. data/packages/webpacker/node_modules/acorn/dist/acorn.d.ts +214 -0
  278. data/packages/webpacker/node_modules/acorn/dist/acorn.js +5619 -0
  279. data/packages/webpacker/node_modules/acorn/dist/acorn.mjs +5588 -0
  280. data/packages/webpacker/node_modules/acorn/dist/acorn.mjs.d.ts +2 -0
  281. data/packages/webpacker/node_modules/acorn/dist/bin.js +91 -0
  282. data/packages/webpacker/node_modules/acorn/package.json +46 -0
  283. data/packages/webpacker/node_modules/ansi-styles/index.d.ts +345 -0
  284. data/packages/webpacker/node_modules/ansi-styles/index.js +163 -0
  285. data/packages/webpacker/node_modules/ansi-styles/license +9 -0
  286. data/packages/webpacker/node_modules/ansi-styles/package.json +56 -0
  287. data/packages/webpacker/node_modules/ansi-styles/readme.md +152 -0
  288. data/packages/webpacker/node_modules/babel-jest/LICENSE +21 -0
  289. data/packages/webpacker/node_modules/babel-jest/README.md +25 -0
  290. data/packages/webpacker/node_modules/babel-jest/build/index.d.ts +10 -0
  291. data/packages/webpacker/node_modules/babel-jest/build/index.js +386 -0
  292. data/packages/webpacker/node_modules/babel-jest/build/loadBabelConfig.d.ts +7 -0
  293. data/packages/webpacker/node_modules/babel-jest/build/loadBabelConfig.js +27 -0
  294. data/packages/webpacker/node_modules/babel-jest/package.json +45 -0
  295. data/packages/webpacker/node_modules/babel-plugin-jest-hoist/LICENSE +21 -0
  296. data/packages/webpacker/node_modules/babel-plugin-jest-hoist/README.md +33 -0
  297. data/packages/webpacker/node_modules/babel-plugin-jest-hoist/build/index.d.ts +13 -0
  298. data/packages/webpacker/node_modules/babel-plugin-jest-hoist/build/index.js +389 -0
  299. data/packages/webpacker/node_modules/babel-plugin-jest-hoist/package.json +41 -0
  300. data/packages/webpacker/node_modules/babel-preset-jest/LICENSE +21 -0
  301. data/packages/webpacker/node_modules/babel-preset-jest/README.md +33 -0
  302. data/packages/webpacker/node_modules/babel-preset-jest/index.js +14 -0
  303. data/packages/webpacker/node_modules/babel-preset-jest/package.json +29 -0
  304. data/packages/webpacker/node_modules/camelcase/index.d.ts +103 -0
  305. data/packages/webpacker/node_modules/camelcase/index.js +113 -0
  306. data/packages/webpacker/node_modules/camelcase/license +9 -0
  307. data/packages/webpacker/node_modules/camelcase/package.json +44 -0
  308. data/packages/webpacker/node_modules/camelcase/readme.md +144 -0
  309. data/packages/webpacker/node_modules/chalk/index.d.ts +415 -0
  310. data/packages/webpacker/node_modules/chalk/license +9 -0
  311. data/packages/webpacker/node_modules/chalk/package.json +68 -0
  312. data/packages/webpacker/node_modules/chalk/readme.md +341 -0
  313. data/packages/webpacker/node_modules/chalk/source/index.js +229 -0
  314. data/packages/webpacker/node_modules/chalk/source/templates.js +134 -0
  315. data/packages/webpacker/node_modules/chalk/source/util.js +39 -0
  316. data/packages/webpacker/node_modules/ci-info/CHANGELOG.md +122 -0
  317. data/packages/webpacker/node_modules/ci-info/LICENSE +21 -0
  318. data/packages/webpacker/node_modules/ci-info/README.md +118 -0
  319. data/packages/webpacker/node_modules/ci-info/index.d.ts +62 -0
  320. data/packages/webpacker/node_modules/ci-info/index.js +66 -0
  321. data/packages/webpacker/node_modules/ci-info/package.json +36 -0
  322. data/packages/webpacker/node_modules/ci-info/vendors.json +210 -0
  323. data/packages/webpacker/node_modules/cjs-module-lexer/CHANGELOG.md +40 -0
  324. data/packages/webpacker/node_modules/cjs-module-lexer/LICENSE +10 -0
  325. data/packages/webpacker/node_modules/cjs-module-lexer/README.md +453 -0
  326. data/packages/webpacker/node_modules/cjs-module-lexer/dist/lexer.js +1 -0
  327. data/packages/webpacker/node_modules/cjs-module-lexer/dist/lexer.mjs +2 -0
  328. data/packages/webpacker/node_modules/cjs-module-lexer/lexer.d.ts +7 -0
  329. data/packages/webpacker/node_modules/cjs-module-lexer/lexer.js +1438 -0
  330. data/packages/webpacker/node_modules/cjs-module-lexer/package.json +43 -0
  331. data/packages/webpacker/node_modules/cliui/CHANGELOG.md +121 -0
  332. data/packages/webpacker/node_modules/cliui/LICENSE.txt +14 -0
  333. data/packages/webpacker/node_modules/cliui/README.md +141 -0
  334. data/packages/webpacker/node_modules/cliui/build/index.cjs +302 -0
  335. data/packages/webpacker/node_modules/cliui/build/lib/index.js +287 -0
  336. data/packages/webpacker/node_modules/cliui/build/lib/string-utils.js +27 -0
  337. data/packages/webpacker/node_modules/cliui/index.mjs +13 -0
  338. data/packages/webpacker/node_modules/cliui/package.json +83 -0
  339. data/packages/webpacker/node_modules/color-convert/CHANGELOG.md +54 -0
  340. data/packages/webpacker/node_modules/color-convert/LICENSE +21 -0
  341. data/packages/webpacker/node_modules/color-convert/README.md +68 -0
  342. data/packages/webpacker/node_modules/color-convert/conversions.js +839 -0
  343. data/packages/webpacker/node_modules/color-convert/index.js +81 -0
  344. data/packages/webpacker/node_modules/color-convert/package.json +48 -0
  345. data/packages/webpacker/node_modules/color-convert/route.js +97 -0
  346. data/packages/webpacker/node_modules/color-name/LICENSE +8 -0
  347. data/packages/webpacker/node_modules/color-name/README.md +11 -0
  348. data/packages/webpacker/node_modules/color-name/index.js +152 -0
  349. data/packages/webpacker/node_modules/color-name/package.json +28 -0
  350. data/packages/webpacker/node_modules/diff-sequences/LICENSE +21 -0
  351. data/packages/webpacker/node_modules/diff-sequences/README.md +404 -0
  352. data/packages/webpacker/node_modules/diff-sequences/build/index.d.ts +18 -0
  353. data/packages/webpacker/node_modules/diff-sequences/build/index.js +816 -0
  354. data/packages/webpacker/node_modules/diff-sequences/package.json +42 -0
  355. data/packages/webpacker/node_modules/diff-sequences/perf/example.md +48 -0
  356. data/packages/webpacker/node_modules/diff-sequences/perf/index.js +170 -0
  357. data/packages/webpacker/node_modules/emittery/index.d.ts +432 -0
  358. data/packages/webpacker/node_modules/emittery/index.js +408 -0
  359. data/packages/webpacker/node_modules/emittery/license +9 -0
  360. data/packages/webpacker/node_modules/emittery/package.json +66 -0
  361. data/packages/webpacker/node_modules/emittery/readme.md +409 -0
  362. data/packages/webpacker/node_modules/escape-string-regexp/index.d.ts +18 -0
  363. data/packages/webpacker/node_modules/escape-string-regexp/index.js +13 -0
  364. data/packages/webpacker/node_modules/escape-string-regexp/license +9 -0
  365. data/packages/webpacker/node_modules/escape-string-regexp/package.json +38 -0
  366. data/packages/webpacker/node_modules/escape-string-regexp/readme.md +34 -0
  367. data/packages/webpacker/node_modules/eslint/LICENSE +19 -0
  368. data/packages/webpacker/node_modules/eslint/README.md +304 -0
  369. data/packages/webpacker/node_modules/eslint/bin/eslint.js +142 -0
  370. data/packages/webpacker/node_modules/eslint/conf/config-schema.js +93 -0
  371. data/packages/webpacker/node_modules/eslint/conf/default-cli-options.js +32 -0
  372. data/packages/webpacker/node_modules/eslint/conf/eslint-all.js +31 -0
  373. data/packages/webpacker/node_modules/eslint/conf/eslint-recommended.js +76 -0
  374. data/packages/webpacker/node_modules/eslint/conf/globals.js +144 -0
  375. data/packages/webpacker/node_modules/eslint/conf/replacements.json +22 -0
  376. data/packages/webpacker/node_modules/eslint/conf/rule-type-list.json +36 -0
  377. data/packages/webpacker/node_modules/eslint/lib/api.js +26 -0
  378. data/packages/webpacker/node_modules/eslint/lib/cli-engine/cli-engine.js +1068 -0
  379. data/packages/webpacker/node_modules/eslint/lib/cli-engine/file-enumerator.js +543 -0
  380. data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/checkstyle.js +60 -0
  381. data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/compact.js +60 -0
  382. data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/html.js +324 -0
  383. data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/jslint-xml.js +41 -0
  384. data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js +16 -0
  385. data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/json.js +13 -0
  386. data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/junit.js +82 -0
  387. data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/stylish.js +101 -0
  388. data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/tap.js +95 -0
  389. data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/unix.js +58 -0
  390. data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/visualstudio.js +63 -0
  391. data/packages/webpacker/node_modules/eslint/lib/cli-engine/hash.js +35 -0
  392. data/packages/webpacker/node_modules/eslint/lib/cli-engine/index.js +7 -0
  393. data/packages/webpacker/node_modules/eslint/lib/cli-engine/lint-result-cache.js +191 -0
  394. data/packages/webpacker/node_modules/eslint/lib/cli-engine/load-rules.js +46 -0
  395. data/packages/webpacker/node_modules/eslint/lib/cli-engine/xml-escape.js +34 -0
  396. data/packages/webpacker/node_modules/eslint/lib/cli.js +344 -0
  397. data/packages/webpacker/node_modules/eslint/lib/config/default-config.js +61 -0
  398. data/packages/webpacker/node_modules/eslint/lib/config/flat-config-array.js +134 -0
  399. data/packages/webpacker/node_modules/eslint/lib/config/flat-config-helpers.js +103 -0
  400. data/packages/webpacker/node_modules/eslint/lib/config/flat-config-schema.js +457 -0
  401. data/packages/webpacker/node_modules/eslint/lib/config/rule-validator.js +157 -0
  402. data/packages/webpacker/node_modules/eslint/lib/eslint/eslint.js +712 -0
  403. data/packages/webpacker/node_modules/eslint/lib/eslint/index.js +7 -0
  404. data/packages/webpacker/node_modules/eslint/lib/linter/apply-disable-directives.js +341 -0
  405. data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +844 -0
  406. data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js +235 -0
  407. data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js +1483 -0
  408. data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +247 -0
  409. data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +203 -0
  410. data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +248 -0
  411. data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/id-generator.js +45 -0
  412. data/packages/webpacker/node_modules/eslint/lib/linter/config-comment-parser.js +145 -0
  413. data/packages/webpacker/node_modules/eslint/lib/linter/index.js +13 -0
  414. data/packages/webpacker/node_modules/eslint/lib/linter/interpolate.js +28 -0
  415. data/packages/webpacker/node_modules/eslint/lib/linter/linter.js +2004 -0
  416. data/packages/webpacker/node_modules/eslint/lib/linter/node-event-generator.js +354 -0
  417. data/packages/webpacker/node_modules/eslint/lib/linter/report-translator.js +368 -0
  418. data/packages/webpacker/node_modules/eslint/lib/linter/rule-fixer.js +140 -0
  419. data/packages/webpacker/node_modules/eslint/lib/linter/rules.js +80 -0
  420. data/packages/webpacker/node_modules/eslint/lib/linter/safe-emitter.js +52 -0
  421. data/packages/webpacker/node_modules/eslint/lib/linter/source-code-fixer.js +152 -0
  422. data/packages/webpacker/node_modules/eslint/lib/linter/timing.js +160 -0
  423. data/packages/webpacker/node_modules/eslint/lib/options.js +323 -0
  424. data/packages/webpacker/node_modules/eslint/lib/rule-tester/flat-rule-tester.js +1039 -0
  425. data/packages/webpacker/node_modules/eslint/lib/rule-tester/index.js +5 -0
  426. data/packages/webpacker/node_modules/eslint/lib/rule-tester/rule-tester.js +1008 -0
  427. data/packages/webpacker/node_modules/eslint/lib/rules/accessor-pairs.js +354 -0
  428. data/packages/webpacker/node_modules/eslint/lib/rules/array-bracket-newline.js +258 -0
  429. data/packages/webpacker/node_modules/eslint/lib/rules/array-bracket-spacing.js +241 -0
  430. data/packages/webpacker/node_modules/eslint/lib/rules/array-callback-return.js +296 -0
  431. data/packages/webpacker/node_modules/eslint/lib/rules/array-element-newline.js +301 -0
  432. data/packages/webpacker/node_modules/eslint/lib/rules/arrow-body-style.js +296 -0
  433. data/packages/webpacker/node_modules/eslint/lib/rules/arrow-parens.js +183 -0
  434. data/packages/webpacker/node_modules/eslint/lib/rules/arrow-spacing.js +161 -0
  435. data/packages/webpacker/node_modules/eslint/lib/rules/block-scoped-var.js +124 -0
  436. data/packages/webpacker/node_modules/eslint/lib/rules/block-spacing.js +171 -0
  437. data/packages/webpacker/node_modules/eslint/lib/rules/brace-style.js +194 -0
  438. data/packages/webpacker/node_modules/eslint/lib/rules/callback-return.js +187 -0
  439. data/packages/webpacker/node_modules/eslint/lib/rules/camelcase.js +398 -0
  440. data/packages/webpacker/node_modules/eslint/lib/rules/capitalized-comments.js +300 -0
  441. data/packages/webpacker/node_modules/eslint/lib/rules/class-methods-use-this.js +187 -0
  442. data/packages/webpacker/node_modules/eslint/lib/rules/comma-dangle.js +350 -0
  443. data/packages/webpacker/node_modules/eslint/lib/rules/comma-spacing.js +195 -0
  444. data/packages/webpacker/node_modules/eslint/lib/rules/comma-style.js +311 -0
  445. data/packages/webpacker/node_modules/eslint/lib/rules/complexity.js +165 -0
  446. data/packages/webpacker/node_modules/eslint/lib/rules/computed-property-spacing.js +205 -0
  447. data/packages/webpacker/node_modules/eslint/lib/rules/consistent-return.js +185 -0
  448. data/packages/webpacker/node_modules/eslint/lib/rules/consistent-this.js +151 -0
  449. data/packages/webpacker/node_modules/eslint/lib/rules/constructor-super.js +423 -0
  450. data/packages/webpacker/node_modules/eslint/lib/rules/curly.js +486 -0
  451. data/packages/webpacker/node_modules/eslint/lib/rules/default-case-last.js +44 -0
  452. data/packages/webpacker/node_modules/eslint/lib/rules/default-case.js +97 -0
  453. data/packages/webpacker/node_modules/eslint/lib/rules/default-param-last.js +62 -0
  454. data/packages/webpacker/node_modules/eslint/lib/rules/dot-location.js +105 -0
  455. data/packages/webpacker/node_modules/eslint/lib/rules/dot-notation.js +177 -0
  456. data/packages/webpacker/node_modules/eslint/lib/rules/eol-last.js +112 -0
  457. data/packages/webpacker/node_modules/eslint/lib/rules/eqeqeq.js +174 -0
  458. data/packages/webpacker/node_modules/eslint/lib/rules/for-direction.js +126 -0
  459. data/packages/webpacker/node_modules/eslint/lib/rules/func-call-spacing.js +230 -0
  460. data/packages/webpacker/node_modules/eslint/lib/rules/func-name-matching.js +253 -0
  461. data/packages/webpacker/node_modules/eslint/lib/rules/func-names.js +191 -0
  462. data/packages/webpacker/node_modules/eslint/lib/rules/func-style.js +98 -0
  463. data/packages/webpacker/node_modules/eslint/lib/rules/function-call-argument-newline.js +122 -0
  464. data/packages/webpacker/node_modules/eslint/lib/rules/function-paren-newline.js +286 -0
  465. data/packages/webpacker/node_modules/eslint/lib/rules/generator-star-spacing.js +206 -0
  466. data/packages/webpacker/node_modules/eslint/lib/rules/getter-return.js +173 -0
  467. data/packages/webpacker/node_modules/eslint/lib/rules/global-require.js +87 -0
  468. data/packages/webpacker/node_modules/eslint/lib/rules/grouped-accessor-pairs.js +224 -0
  469. data/packages/webpacker/node_modules/eslint/lib/rules/guard-for-in.js +76 -0
  470. data/packages/webpacker/node_modules/eslint/lib/rules/handle-callback-err.js +100 -0
  471. data/packages/webpacker/node_modules/eslint/lib/rules/id-blacklist.js +245 -0
  472. data/packages/webpacker/node_modules/eslint/lib/rules/id-denylist.js +227 -0
  473. data/packages/webpacker/node_modules/eslint/lib/rules/id-length.js +169 -0
  474. data/packages/webpacker/node_modules/eslint/lib/rules/id-match.js +298 -0
  475. data/packages/webpacker/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js +81 -0
  476. data/packages/webpacker/node_modules/eslint/lib/rules/indent-legacy.js +1126 -0
  477. data/packages/webpacker/node_modules/eslint/lib/rules/indent.js +1764 -0
  478. data/packages/webpacker/node_modules/eslint/lib/rules/index.js +301 -0
  479. data/packages/webpacker/node_modules/eslint/lib/rules/init-declarations.js +139 -0
  480. data/packages/webpacker/node_modules/eslint/lib/rules/jsx-quotes.js +95 -0
  481. data/packages/webpacker/node_modules/eslint/lib/rules/key-spacing.js +675 -0
  482. data/packages/webpacker/node_modules/eslint/lib/rules/keyword-spacing.js +637 -0
  483. data/packages/webpacker/node_modules/eslint/lib/rules/line-comment-position.js +122 -0
  484. data/packages/webpacker/node_modules/eslint/lib/rules/linebreak-style.js +105 -0
  485. data/packages/webpacker/node_modules/eslint/lib/rules/lines-around-comment.js +450 -0
  486. data/packages/webpacker/node_modules/eslint/lib/rules/lines-around-directive.js +201 -0
  487. data/packages/webpacker/node_modules/eslint/lib/rules/lines-between-class-members.js +181 -0
  488. data/packages/webpacker/node_modules/eslint/lib/rules/max-classes-per-file.js +89 -0
  489. data/packages/webpacker/node_modules/eslint/lib/rules/max-depth.js +156 -0
  490. data/packages/webpacker/node_modules/eslint/lib/rules/max-len.js +433 -0
  491. data/packages/webpacker/node_modules/eslint/lib/rules/max-lines-per-function.js +213 -0
  492. data/packages/webpacker/node_modules/eslint/lib/rules/max-lines.js +193 -0
  493. data/packages/webpacker/node_modules/eslint/lib/rules/max-nested-callbacks.js +117 -0
  494. data/packages/webpacker/node_modules/eslint/lib/rules/max-params.js +102 -0
  495. data/packages/webpacker/node_modules/eslint/lib/rules/max-statements-per-line.js +196 -0
  496. data/packages/webpacker/node_modules/eslint/lib/rules/max-statements.js +184 -0
  497. data/packages/webpacker/node_modules/eslint/lib/rules/multiline-comment-style.js +435 -0
  498. data/packages/webpacker/node_modules/eslint/lib/rules/multiline-ternary.js +171 -0
  499. data/packages/webpacker/node_modules/eslint/lib/rules/new-cap.js +276 -0
  500. data/packages/webpacker/node_modules/eslint/lib/rules/new-parens.js +99 -0
  501. data/packages/webpacker/node_modules/eslint/lib/rules/newline-after-var.js +255 -0
  502. data/packages/webpacker/node_modules/eslint/lib/rules/newline-before-return.js +217 -0
  503. data/packages/webpacker/node_modules/eslint/lib/rules/newline-per-chained-call.js +123 -0
  504. data/packages/webpacker/node_modules/eslint/lib/rules/no-alert.js +136 -0
  505. data/packages/webpacker/node_modules/eslint/lib/rules/no-array-constructor.js +54 -0
  506. data/packages/webpacker/node_modules/eslint/lib/rules/no-async-promise-executor.js +39 -0
  507. data/packages/webpacker/node_modules/eslint/lib/rules/no-await-in-loop.js +106 -0
  508. data/packages/webpacker/node_modules/eslint/lib/rules/no-bitwise.js +119 -0
  509. data/packages/webpacker/node_modules/eslint/lib/rules/no-buffer-constructor.js +50 -0
  510. data/packages/webpacker/node_modules/eslint/lib/rules/no-caller.js +46 -0
  511. data/packages/webpacker/node_modules/eslint/lib/rules/no-case-declarations.js +64 -0
  512. data/packages/webpacker/node_modules/eslint/lib/rules/no-catch-shadow.js +80 -0
  513. data/packages/webpacker/node_modules/eslint/lib/rules/no-class-assign.js +61 -0
  514. data/packages/webpacker/node_modules/eslint/lib/rules/no-compare-neg-zero.js +60 -0
  515. data/packages/webpacker/node_modules/eslint/lib/rules/no-cond-assign.js +159 -0
  516. data/packages/webpacker/node_modules/eslint/lib/rules/no-confusing-arrow.js +89 -0
  517. data/packages/webpacker/node_modules/eslint/lib/rules/no-console.js +134 -0
  518. data/packages/webpacker/node_modules/eslint/lib/rules/no-const-assign.js +54 -0
  519. data/packages/webpacker/node_modules/eslint/lib/rules/no-constant-condition.js +315 -0
  520. data/packages/webpacker/node_modules/eslint/lib/rules/no-constructor-return.js +62 -0
  521. data/packages/webpacker/node_modules/eslint/lib/rules/no-continue.js +39 -0
  522. data/packages/webpacker/node_modules/eslint/lib/rules/no-control-regex.js +112 -0
  523. data/packages/webpacker/node_modules/eslint/lib/rules/no-debugger.js +43 -0
  524. data/packages/webpacker/node_modules/eslint/lib/rules/no-delete-var.js +42 -0
  525. data/packages/webpacker/node_modules/eslint/lib/rules/no-div-regex.js +53 -0
  526. data/packages/webpacker/node_modules/eslint/lib/rules/no-dupe-args.js +80 -0
  527. data/packages/webpacker/node_modules/eslint/lib/rules/no-dupe-class-members.js +104 -0
  528. data/packages/webpacker/node_modules/eslint/lib/rules/no-dupe-else-if.js +122 -0
  529. data/packages/webpacker/node_modules/eslint/lib/rules/no-dupe-keys.js +142 -0
  530. data/packages/webpacker/node_modules/eslint/lib/rules/no-duplicate-case.js +71 -0
  531. data/packages/webpacker/node_modules/eslint/lib/rules/no-duplicate-imports.js +290 -0
  532. data/packages/webpacker/node_modules/eslint/lib/rules/no-else-return.js +404 -0
  533. data/packages/webpacker/node_modules/eslint/lib/rules/no-empty-character-class.js +55 -0
  534. data/packages/webpacker/node_modules/eslint/lib/rules/no-empty-function.js +167 -0
  535. data/packages/webpacker/node_modules/eslint/lib/rules/no-empty-pattern.js +43 -0
  536. data/packages/webpacker/node_modules/eslint/lib/rules/no-empty.js +86 -0
  537. data/packages/webpacker/node_modules/eslint/lib/rules/no-eq-null.js +46 -0
  538. data/packages/webpacker/node_modules/eslint/lib/rules/no-eval.js +281 -0
  539. data/packages/webpacker/node_modules/eslint/lib/rules/no-ex-assign.js +52 -0
  540. data/packages/webpacker/node_modules/eslint/lib/rules/no-extend-native.js +178 -0
  541. data/packages/webpacker/node_modules/eslint/lib/rules/no-extra-bind.js +213 -0
  542. data/packages/webpacker/node_modules/eslint/lib/rules/no-extra-boolean-cast.js +317 -0
  543. data/packages/webpacker/node_modules/eslint/lib/rules/no-extra-label.js +149 -0
  544. data/packages/webpacker/node_modules/eslint/lib/rules/no-extra-parens.js +1235 -0
  545. data/packages/webpacker/node_modules/eslint/lib/rules/no-extra-semi.js +126 -0
  546. data/packages/webpacker/node_modules/eslint/lib/rules/no-fallthrough.js +147 -0
  547. data/packages/webpacker/node_modules/eslint/lib/rules/no-floating-decimal.js +70 -0
  548. data/packages/webpacker/node_modules/eslint/lib/rules/no-func-assign.js +76 -0
  549. data/packages/webpacker/node_modules/eslint/lib/rules/no-global-assign.js +94 -0
  550. data/packages/webpacker/node_modules/eslint/lib/rules/no-implicit-coercion.js +361 -0
  551. data/packages/webpacker/node_modules/eslint/lib/rules/no-implicit-globals.js +140 -0
  552. data/packages/webpacker/node_modules/eslint/lib/rules/no-implied-eval.js +131 -0
  553. data/packages/webpacker/node_modules/eslint/lib/rules/no-import-assign.js +239 -0
  554. data/packages/webpacker/node_modules/eslint/lib/rules/no-inline-comments.js +110 -0
  555. data/packages/webpacker/node_modules/eslint/lib/rules/no-inner-declarations.js +110 -0
  556. data/packages/webpacker/node_modules/eslint/lib/rules/no-invalid-regexp.js +157 -0
  557. data/packages/webpacker/node_modules/eslint/lib/rules/no-invalid-this.js +150 -0
  558. data/packages/webpacker/node_modules/eslint/lib/rules/no-irregular-whitespace.js +259 -0
  559. data/packages/webpacker/node_modules/eslint/lib/rules/no-iterator.js +52 -0
  560. data/packages/webpacker/node_modules/eslint/lib/rules/no-label-var.js +79 -0
  561. data/packages/webpacker/node_modules/eslint/lib/rules/no-labels.js +149 -0
  562. data/packages/webpacker/node_modules/eslint/lib/rules/no-lone-blocks.js +134 -0
  563. data/packages/webpacker/node_modules/eslint/lib/rules/no-lonely-if.js +89 -0
  564. data/packages/webpacker/node_modules/eslint/lib/rules/no-loop-func.js +204 -0
  565. data/packages/webpacker/node_modules/eslint/lib/rules/no-loss-of-precision.js +206 -0
  566. data/packages/webpacker/node_modules/eslint/lib/rules/no-magic-numbers.js +226 -0
  567. data/packages/webpacker/node_modules/eslint/lib/rules/no-misleading-character-class.js +200 -0
  568. data/packages/webpacker/node_modules/eslint/lib/rules/no-mixed-operators.js +226 -0
  569. data/packages/webpacker/node_modules/eslint/lib/rules/no-mixed-requires.js +238 -0
  570. data/packages/webpacker/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +113 -0
  571. data/packages/webpacker/node_modules/eslint/lib/rules/no-multi-assign.js +67 -0
  572. data/packages/webpacker/node_modules/eslint/lib/rules/no-multi-spaces.js +138 -0
  573. data/packages/webpacker/node_modules/eslint/lib/rules/no-multi-str.js +65 -0
  574. data/packages/webpacker/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +151 -0
  575. data/packages/webpacker/node_modules/eslint/lib/rules/no-native-reassign.js +97 -0
  576. data/packages/webpacker/node_modules/eslint/lib/rules/no-negated-condition.js +95 -0
  577. data/packages/webpacker/node_modules/eslint/lib/rules/no-negated-in-lhs.js +46 -0
  578. data/packages/webpacker/node_modules/eslint/lib/rules/no-nested-ternary.js +44 -0
  579. data/packages/webpacker/node_modules/eslint/lib/rules/no-new-func.js +86 -0
  580. data/packages/webpacker/node_modules/eslint/lib/rules/no-new-object.js +57 -0
  581. data/packages/webpacker/node_modules/eslint/lib/rules/no-new-require.js +50 -0
  582. data/packages/webpacker/node_modules/eslint/lib/rules/no-new-symbol.js +54 -0
  583. data/packages/webpacker/node_modules/eslint/lib/rules/no-new-wrappers.js +48 -0
  584. data/packages/webpacker/node_modules/eslint/lib/rules/no-new.js +43 -0
  585. data/packages/webpacker/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js +148 -0
  586. data/packages/webpacker/node_modules/eslint/lib/rules/no-obj-calls.js +84 -0
  587. data/packages/webpacker/node_modules/eslint/lib/rules/no-octal-escape.js +56 -0
  588. data/packages/webpacker/node_modules/eslint/lib/rules/no-octal.js +45 -0
  589. data/packages/webpacker/node_modules/eslint/lib/rules/no-param-reassign.js +229 -0
  590. data/packages/webpacker/node_modules/eslint/lib/rules/no-path-concat.js +64 -0
  591. data/packages/webpacker/node_modules/eslint/lib/rules/no-plusplus.js +105 -0
  592. data/packages/webpacker/node_modules/eslint/lib/rules/no-process-env.js +51 -0
  593. data/packages/webpacker/node_modules/eslint/lib/rules/no-process-exit.js +47 -0
  594. data/packages/webpacker/node_modules/eslint/lib/rules/no-promise-executor-return.js +121 -0
  595. data/packages/webpacker/node_modules/eslint/lib/rules/no-proto.js +48 -0
  596. data/packages/webpacker/node_modules/eslint/lib/rules/no-prototype-builtins.js +71 -0
  597. data/packages/webpacker/node_modules/eslint/lib/rules/no-redeclare.js +174 -0
  598. data/packages/webpacker/node_modules/eslint/lib/rules/no-regex-spaces.js +180 -0
  599. data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-exports.js +96 -0
  600. data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-globals.js +122 -0
  601. data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-imports.js +322 -0
  602. data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-modules.js +216 -0
  603. data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-properties.js +181 -0
  604. data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-syntax.js +70 -0
  605. data/packages/webpacker/node_modules/eslint/lib/rules/no-return-assign.js +80 -0
  606. data/packages/webpacker/node_modules/eslint/lib/rules/no-return-await.js +103 -0
  607. data/packages/webpacker/node_modules/eslint/lib/rules/no-script-url.js +61 -0
  608. data/packages/webpacker/node_modules/eslint/lib/rules/no-self-assign.js +183 -0
  609. data/packages/webpacker/node_modules/eslint/lib/rules/no-self-compare.js +60 -0
  610. data/packages/webpacker/node_modules/eslint/lib/rules/no-sequences.js +138 -0
  611. data/packages/webpacker/node_modules/eslint/lib/rules/no-setter-return.js +225 -0
  612. data/packages/webpacker/node_modules/eslint/lib/rules/no-shadow-restricted-names.js +64 -0
  613. data/packages/webpacker/node_modules/eslint/lib/rules/no-shadow.js +335 -0
  614. data/packages/webpacker/node_modules/eslint/lib/rules/no-spaced-func.js +83 -0
  615. data/packages/webpacker/node_modules/eslint/lib/rules/no-sparse-arrays.js +50 -0
  616. data/packages/webpacker/node_modules/eslint/lib/rules/no-sync.js +64 -0
  617. data/packages/webpacker/node_modules/eslint/lib/rules/no-tabs.js +78 -0
  618. data/packages/webpacker/node_modules/eslint/lib/rules/no-template-curly-in-string.js +44 -0
  619. data/packages/webpacker/node_modules/eslint/lib/rules/no-ternary.js +41 -0
  620. data/packages/webpacker/node_modules/eslint/lib/rules/no-this-before-super.js +304 -0
  621. data/packages/webpacker/node_modules/eslint/lib/rules/no-throw-literal.js +51 -0
  622. data/packages/webpacker/node_modules/eslint/lib/rules/no-trailing-spaces.js +190 -0
  623. data/packages/webpacker/node_modules/eslint/lib/rules/no-undef-init.js +75 -0
  624. data/packages/webpacker/node_modules/eslint/lib/rules/no-undef.js +78 -0
  625. data/packages/webpacker/node_modules/eslint/lib/rules/no-undefined.js +84 -0
  626. data/packages/webpacker/node_modules/eslint/lib/rules/no-underscore-dangle.js +280 -0
  627. data/packages/webpacker/node_modules/eslint/lib/rules/no-unexpected-multiline.js +120 -0
  628. data/packages/webpacker/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js +360 -0
  629. data/packages/webpacker/node_modules/eslint/lib/rules/no-unneeded-ternary.js +166 -0
  630. data/packages/webpacker/node_modules/eslint/lib/rules/no-unreachable-loop.js +150 -0
  631. data/packages/webpacker/node_modules/eslint/lib/rules/no-unreachable.js +264 -0
  632. data/packages/webpacker/node_modules/eslint/lib/rules/no-unsafe-finally.js +111 -0
  633. data/packages/webpacker/node_modules/eslint/lib/rules/no-unsafe-negation.js +128 -0
  634. data/packages/webpacker/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +205 -0
  635. data/packages/webpacker/node_modules/eslint/lib/rules/no-unused-expressions.js +189 -0
  636. data/packages/webpacker/node_modules/eslint/lib/rules/no-unused-labels.js +110 -0
  637. data/packages/webpacker/node_modules/eslint/lib/rules/no-unused-private-class-members.js +195 -0
  638. data/packages/webpacker/node_modules/eslint/lib/rules/no-unused-vars.js +690 -0
  639. data/packages/webpacker/node_modules/eslint/lib/rules/no-use-before-define.js +334 -0
  640. data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-backreference.js +192 -0
  641. data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-call.js +90 -0
  642. data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-catch.js +57 -0
  643. data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-computed-key.js +168 -0
  644. data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-concat.js +115 -0
  645. data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-constructor.js +189 -0
  646. data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-escape.js +254 -0
  647. data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-rename.js +172 -0
  648. data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-return.js +305 -0
  649. data/packages/webpacker/node_modules/eslint/lib/rules/no-var.js +334 -0
  650. data/packages/webpacker/node_modules/eslint/lib/rules/no-void.js +64 -0
  651. data/packages/webpacker/node_modules/eslint/lib/rules/no-warning-comments.js +196 -0
  652. data/packages/webpacker/node_modules/eslint/lib/rules/no-whitespace-before-property.js +113 -0
  653. data/packages/webpacker/node_modules/eslint/lib/rules/no-with.js +39 -0
  654. data/packages/webpacker/node_modules/eslint/lib/rules/nonblock-statement-body-position.js +124 -0
  655. data/packages/webpacker/node_modules/eslint/lib/rules/object-curly-newline.js +321 -0
  656. data/packages/webpacker/node_modules/eslint/lib/rules/object-curly-spacing.js +308 -0
  657. data/packages/webpacker/node_modules/eslint/lib/rules/object-property-newline.js +99 -0
  658. data/packages/webpacker/node_modules/eslint/lib/rules/object-shorthand.js +504 -0
  659. data/packages/webpacker/node_modules/eslint/lib/rules/one-var-declaration-per-line.js +92 -0
  660. data/packages/webpacker/node_modules/eslint/lib/rules/one-var.js +567 -0
  661. data/packages/webpacker/node_modules/eslint/lib/rules/operator-assignment.js +207 -0
  662. data/packages/webpacker/node_modules/eslint/lib/rules/operator-linebreak.js +250 -0
  663. data/packages/webpacker/node_modules/eslint/lib/rules/padded-blocks.js +307 -0
  664. data/packages/webpacker/node_modules/eslint/lib/rules/padding-line-between-statements.js +634 -0
  665. data/packages/webpacker/node_modules/eslint/lib/rules/prefer-arrow-callback.js +380 -0
  666. data/packages/webpacker/node_modules/eslint/lib/rules/prefer-const.js +489 -0
  667. data/packages/webpacker/node_modules/eslint/lib/rules/prefer-destructuring.js +301 -0
  668. data/packages/webpacker/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js +190 -0
  669. data/packages/webpacker/node_modules/eslint/lib/rules/prefer-named-capture-group.js +110 -0
  670. data/packages/webpacker/node_modules/eslint/lib/rules/prefer-numeric-literals.js +148 -0
  671. data/packages/webpacker/node_modules/eslint/lib/rules/prefer-object-has-own.js +112 -0
  672. data/packages/webpacker/node_modules/eslint/lib/rules/prefer-object-spread.js +299 -0
  673. data/packages/webpacker/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js +131 -0
  674. data/packages/webpacker/node_modules/eslint/lib/rules/prefer-reflect.js +127 -0
  675. data/packages/webpacker/node_modules/eslint/lib/rules/prefer-regex-literals.js +396 -0
  676. data/packages/webpacker/node_modules/eslint/lib/rules/prefer-rest-params.js +115 -0
  677. data/packages/webpacker/node_modules/eslint/lib/rules/prefer-spread.js +87 -0
  678. data/packages/webpacker/node_modules/eslint/lib/rules/prefer-template.js +275 -0
  679. data/packages/webpacker/node_modules/eslint/lib/rules/quote-props.js +307 -0
  680. data/packages/webpacker/node_modules/eslint/lib/rules/quotes.js +347 -0
  681. data/packages/webpacker/node_modules/eslint/lib/rules/radix.js +198 -0
  682. data/packages/webpacker/node_modules/eslint/lib/rules/require-atomic-updates.js +317 -0
  683. data/packages/webpacker/node_modules/eslint/lib/rules/require-await.js +113 -0
  684. data/packages/webpacker/node_modules/eslint/lib/rules/require-jsdoc.js +122 -0
  685. data/packages/webpacker/node_modules/eslint/lib/rules/require-unicode-regexp.js +69 -0
  686. data/packages/webpacker/node_modules/eslint/lib/rules/require-yield.js +78 -0
  687. data/packages/webpacker/node_modules/eslint/lib/rules/rest-spread-spacing.js +120 -0
  688. data/packages/webpacker/node_modules/eslint/lib/rules/semi-spacing.js +245 -0
  689. data/packages/webpacker/node_modules/eslint/lib/rules/semi-style.js +155 -0
  690. data/packages/webpacker/node_modules/eslint/lib/rules/semi.js +410 -0
  691. data/packages/webpacker/node_modules/eslint/lib/rules/sort-imports.js +241 -0
  692. data/packages/webpacker/node_modules/eslint/lib/rules/sort-keys.js +187 -0
  693. data/packages/webpacker/node_modules/eslint/lib/rules/sort-vars.js +104 -0
  694. data/packages/webpacker/node_modules/eslint/lib/rules/space-before-blocks.js +201 -0
  695. data/packages/webpacker/node_modules/eslint/lib/rules/space-before-function-paren.js +164 -0
  696. data/packages/webpacker/node_modules/eslint/lib/rules/space-in-parens.js +282 -0
  697. data/packages/webpacker/node_modules/eslint/lib/rules/space-infix-ops.js +195 -0
  698. data/packages/webpacker/node_modules/eslint/lib/rules/space-unary-ops.js +321 -0
  699. data/packages/webpacker/node_modules/eslint/lib/rules/spaced-comment.js +382 -0
  700. data/packages/webpacker/node_modules/eslint/lib/rules/strict.js +277 -0
  701. data/packages/webpacker/node_modules/eslint/lib/rules/switch-colon-spacing.js +129 -0
  702. data/packages/webpacker/node_modules/eslint/lib/rules/symbol-description.js +71 -0
  703. data/packages/webpacker/node_modules/eslint/lib/rules/template-curly-spacing.js +141 -0
  704. data/packages/webpacker/node_modules/eslint/lib/rules/template-tag-spacing.js +90 -0
  705. data/packages/webpacker/node_modules/eslint/lib/rules/unicode-bom.js +73 -0
  706. data/packages/webpacker/node_modules/eslint/lib/rules/use-isnan.js +141 -0
  707. data/packages/webpacker/node_modules/eslint/lib/rules/utils/ast-utils.js +1922 -0
  708. data/packages/webpacker/node_modules/eslint/lib/rules/utils/fix-tracker.js +114 -0
  709. data/packages/webpacker/node_modules/eslint/lib/rules/utils/keywords.js +67 -0
  710. data/packages/webpacker/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +115 -0
  711. data/packages/webpacker/node_modules/eslint/lib/rules/utils/patterns/letters.js +36 -0
  712. data/packages/webpacker/node_modules/eslint/lib/rules/utils/unicode/index.js +11 -0
  713. data/packages/webpacker/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js +13 -0
  714. data/packages/webpacker/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js +13 -0
  715. data/packages/webpacker/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js +13 -0
  716. data/packages/webpacker/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js +14 -0
  717. data/packages/webpacker/node_modules/eslint/lib/rules/valid-jsdoc.js +516 -0
  718. data/packages/webpacker/node_modules/eslint/lib/rules/valid-typeof.js +85 -0
  719. data/packages/webpacker/node_modules/eslint/lib/rules/vars-on-top.js +157 -0
  720. data/packages/webpacker/node_modules/eslint/lib/rules/wrap-iife.js +204 -0
  721. data/packages/webpacker/node_modules/eslint/lib/rules/wrap-regex.js +59 -0
  722. data/packages/webpacker/node_modules/eslint/lib/rules/yield-star-spacing.js +127 -0
  723. data/packages/webpacker/node_modules/eslint/lib/rules/yoda.js +362 -0
  724. data/packages/webpacker/node_modules/eslint/lib/shared/ajv.js +34 -0
  725. data/packages/webpacker/node_modules/eslint/lib/shared/ast-utils.js +29 -0
  726. data/packages/webpacker/node_modules/eslint/lib/shared/config-validator.js +347 -0
  727. data/packages/webpacker/node_modules/eslint/lib/shared/deprecation-warnings.js +65 -0
  728. data/packages/webpacker/node_modules/eslint/lib/shared/logging.js +30 -0
  729. data/packages/webpacker/node_modules/eslint/lib/shared/relative-module-resolver.js +50 -0
  730. data/packages/webpacker/node_modules/eslint/lib/shared/runtime-info.js +167 -0
  731. data/packages/webpacker/node_modules/eslint/lib/shared/string-utils.js +22 -0
  732. data/packages/webpacker/node_modules/eslint/lib/shared/traverser.js +195 -0
  733. data/packages/webpacker/node_modules/eslint/lib/shared/types.js +175 -0
  734. data/packages/webpacker/node_modules/eslint/lib/source-code/index.js +5 -0
  735. data/packages/webpacker/node_modules/eslint/lib/source-code/source-code.js +593 -0
  736. data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/backward-token-comment-cursor.js +57 -0
  737. data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/backward-token-cursor.js +58 -0
  738. data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/cursor.js +76 -0
  739. data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/cursors.js +90 -0
  740. data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/decorative-cursor.js +39 -0
  741. data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/filter-cursor.js +43 -0
  742. data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/forward-token-comment-cursor.js +57 -0
  743. data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/forward-token-cursor.js +63 -0
  744. data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/index.js +627 -0
  745. data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/limit-cursor.js +40 -0
  746. data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/padded-token-cursor.js +38 -0
  747. data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/skip-cursor.js +42 -0
  748. data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/utils.js +92 -0
  749. data/packages/webpacker/node_modules/eslint/lib/unsupported-api.js +23 -0
  750. data/packages/webpacker/node_modules/eslint/messages/all-files-ignored.js +16 -0
  751. data/packages/webpacker/node_modules/eslint/messages/extend-config-missing.js +13 -0
  752. data/packages/webpacker/node_modules/eslint/messages/failed-to-read-json.js +11 -0
  753. data/packages/webpacker/node_modules/eslint/messages/file-not-found.js +10 -0
  754. data/packages/webpacker/node_modules/eslint/messages/no-config-found.js +15 -0
  755. data/packages/webpacker/node_modules/eslint/messages/plugin-conflict.js +22 -0
  756. data/packages/webpacker/node_modules/eslint/messages/plugin-invalid.js +16 -0
  757. data/packages/webpacker/node_modules/eslint/messages/plugin-missing.js +19 -0
  758. data/packages/webpacker/node_modules/eslint/messages/print-config-with-directory-path.js +8 -0
  759. data/packages/webpacker/node_modules/eslint/messages/whitespace-found.js +11 -0
  760. data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/LICENSE +201 -0
  761. data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/README.md +107 -0
  762. data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +382 -0
  763. data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/dist/index.d.ts +18 -0
  764. data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +10 -0
  765. data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/lib/index.js +65 -0
  766. data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/lib/visitor-keys.js +312 -0
  767. data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/package.json +62 -0
  768. data/packages/webpacker/node_modules/eslint/node_modules/ignore/LICENSE-MIT +21 -0
  769. data/packages/webpacker/node_modules/eslint/node_modules/ignore/README.md +412 -0
  770. data/packages/webpacker/node_modules/eslint/node_modules/ignore/index.d.ts +61 -0
  771. data/packages/webpacker/node_modules/eslint/node_modules/ignore/index.js +603 -0
  772. data/packages/webpacker/node_modules/eslint/node_modules/ignore/legacy.js +498 -0
  773. data/packages/webpacker/node_modules/eslint/node_modules/ignore/package.json +71 -0
  774. data/packages/webpacker/node_modules/eslint/package.json +150 -0
  775. data/packages/webpacker/node_modules/eslint-scope/LICENSE +22 -0
  776. data/packages/webpacker/node_modules/eslint-scope/README.md +66 -0
  777. data/packages/webpacker/node_modules/eslint-scope/dist/eslint-scope.cjs +2240 -0
  778. data/packages/webpacker/node_modules/eslint-scope/lib/definition.js +85 -0
  779. data/packages/webpacker/node_modules/eslint-scope/lib/index.js +172 -0
  780. data/packages/webpacker/node_modules/eslint-scope/lib/pattern-visitor.js +153 -0
  781. data/packages/webpacker/node_modules/eslint-scope/lib/reference.js +166 -0
  782. data/packages/webpacker/node_modules/eslint-scope/lib/referencer.js +654 -0
  783. data/packages/webpacker/node_modules/eslint-scope/lib/scope-manager.js +255 -0
  784. data/packages/webpacker/node_modules/eslint-scope/lib/scope.js +772 -0
  785. data/packages/webpacker/node_modules/eslint-scope/lib/variable.js +87 -0
  786. data/packages/webpacker/node_modules/eslint-scope/lib/version.js +3 -0
  787. data/packages/webpacker/node_modules/eslint-scope/package.json +62 -0
  788. data/packages/webpacker/node_modules/eslint-utils/LICENSE +21 -0
  789. data/packages/webpacker/node_modules/eslint-utils/README.md +38 -0
  790. data/packages/webpacker/node_modules/eslint-utils/index.js +1956 -0
  791. data/packages/webpacker/node_modules/eslint-utils/index.js.map +1 -0
  792. data/packages/webpacker/node_modules/eslint-utils/index.mjs +1914 -0
  793. data/packages/webpacker/node_modules/eslint-utils/index.mjs.map +1 -0
  794. data/packages/webpacker/node_modules/eslint-utils/package.json +78 -0
  795. data/packages/webpacker/node_modules/espree/LICENSE +25 -0
  796. data/packages/webpacker/node_modules/espree/README.md +250 -0
  797. data/packages/webpacker/node_modules/espree/dist/espree.cjs +917 -0
  798. data/packages/webpacker/node_modules/espree/espree.js +173 -0
  799. data/packages/webpacker/node_modules/espree/lib/espree.js +328 -0
  800. data/packages/webpacker/node_modules/espree/lib/features.js +27 -0
  801. data/packages/webpacker/node_modules/espree/lib/options.js +121 -0
  802. data/packages/webpacker/node_modules/espree/lib/token-translator.js +265 -0
  803. data/packages/webpacker/node_modules/espree/lib/version.js +3 -0
  804. data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/LICENSE +201 -0
  805. data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/README.md +107 -0
  806. data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +382 -0
  807. data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/dist/index.d.ts +18 -0
  808. data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +10 -0
  809. data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/lib/index.js +65 -0
  810. data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/lib/visitor-keys.js +312 -0
  811. data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/package.json +62 -0
  812. data/packages/webpacker/node_modules/espree/package.json +86 -0
  813. data/packages/webpacker/node_modules/execa/index.d.ts +564 -0
  814. data/packages/webpacker/node_modules/execa/index.js +268 -0
  815. data/packages/webpacker/node_modules/execa/lib/command.js +52 -0
  816. data/packages/webpacker/node_modules/execa/lib/error.js +88 -0
  817. data/packages/webpacker/node_modules/execa/lib/kill.js +115 -0
  818. data/packages/webpacker/node_modules/execa/lib/promise.js +46 -0
  819. data/packages/webpacker/node_modules/execa/lib/stdio.js +52 -0
  820. data/packages/webpacker/node_modules/execa/lib/stream.js +97 -0
  821. data/packages/webpacker/node_modules/execa/license +9 -0
  822. data/packages/webpacker/node_modules/execa/package.json +74 -0
  823. data/packages/webpacker/node_modules/execa/readme.md +663 -0
  824. data/packages/webpacker/node_modules/expect/LICENSE +21 -0
  825. data/packages/webpacker/node_modules/expect/README.md +3 -0
  826. data/packages/webpacker/node_modules/expect/build/asymmetricMatchers.d.ts +75 -0
  827. data/packages/webpacker/node_modules/expect/build/asymmetricMatchers.js +432 -0
  828. data/packages/webpacker/node_modules/expect/build/extractExpectedAssertionsErrors.d.ts +10 -0
  829. data/packages/webpacker/node_modules/expect/build/extractExpectedAssertionsErrors.js +90 -0
  830. data/packages/webpacker/node_modules/expect/build/index.d.ts +15 -0
  831. data/packages/webpacker/node_modules/expect/build/index.js +485 -0
  832. data/packages/webpacker/node_modules/expect/build/jasmineUtils.d.ts +8 -0
  833. data/packages/webpacker/node_modules/expect/build/jasmineUtils.js +279 -0
  834. data/packages/webpacker/node_modules/expect/build/jestMatchersObject.d.ts +13 -0
  835. data/packages/webpacker/node_modules/expect/build/jestMatchersObject.js +120 -0
  836. data/packages/webpacker/node_modules/expect/build/matchers.d.ts +10 -0
  837. data/packages/webpacker/node_modules/expect/build/matchers.js +1370 -0
  838. data/packages/webpacker/node_modules/expect/build/print.d.ts +15 -0
  839. data/packages/webpacker/node_modules/expect/build/print.js +141 -0
  840. data/packages/webpacker/node_modules/expect/build/spyMatchers.d.ts +9 -0
  841. data/packages/webpacker/node_modules/expect/build/spyMatchers.js +1339 -0
  842. data/packages/webpacker/node_modules/expect/build/toThrowMatchers.d.ts +11 -0
  843. data/packages/webpacker/node_modules/expect/build/toThrowMatchers.js +464 -0
  844. data/packages/webpacker/node_modules/expect/build/types.d.ts +327 -0
  845. data/packages/webpacker/node_modules/expect/build/types.js +3 -0
  846. data/packages/webpacker/node_modules/expect/build/utils.d.ts +26 -0
  847. data/packages/webpacker/node_modules/expect/build/utils.js +458 -0
  848. data/packages/webpacker/node_modules/expect/package.json +42 -0
  849. data/packages/webpacker/node_modules/get-stream/buffer-stream.js +52 -0
  850. data/packages/webpacker/node_modules/get-stream/index.d.ts +105 -0
  851. data/packages/webpacker/node_modules/get-stream/index.js +61 -0
  852. data/packages/webpacker/node_modules/get-stream/license +9 -0
  853. data/packages/webpacker/node_modules/get-stream/package.json +47 -0
  854. data/packages/webpacker/node_modules/get-stream/readme.md +124 -0
  855. data/packages/webpacker/node_modules/glob-parent/LICENSE +15 -0
  856. data/packages/webpacker/node_modules/glob-parent/README.md +134 -0
  857. data/packages/webpacker/node_modules/glob-parent/index.js +75 -0
  858. data/packages/webpacker/node_modules/glob-parent/package.json +54 -0
  859. data/packages/webpacker/node_modules/globals/globals.json +1781 -0
  860. data/packages/webpacker/node_modules/globals/index.d.ts +6 -0
  861. data/packages/webpacker/node_modules/globals/index.js +2 -0
  862. data/packages/webpacker/node_modules/globals/license +9 -0
  863. data/packages/webpacker/node_modules/globals/package.json +55 -0
  864. data/packages/webpacker/node_modules/globals/readme.md +56 -0
  865. data/packages/webpacker/node_modules/has-flag/index.d.ts +39 -0
  866. data/packages/webpacker/node_modules/has-flag/index.js +8 -0
  867. data/packages/webpacker/node_modules/has-flag/license +9 -0
  868. data/packages/webpacker/node_modules/has-flag/package.json +46 -0
  869. data/packages/webpacker/node_modules/has-flag/readme.md +89 -0
  870. data/packages/webpacker/node_modules/human-signals/CHANGELOG.md +11 -0
  871. data/packages/webpacker/node_modules/human-signals/LICENSE +201 -0
  872. data/packages/webpacker/node_modules/human-signals/README.md +165 -0
  873. data/packages/webpacker/node_modules/human-signals/build/src/core.js +273 -0
  874. data/packages/webpacker/node_modules/human-signals/build/src/core.js.map +1 -0
  875. data/packages/webpacker/node_modules/human-signals/build/src/main.d.ts +52 -0
  876. data/packages/webpacker/node_modules/human-signals/build/src/main.js +71 -0
  877. data/packages/webpacker/node_modules/human-signals/build/src/main.js.map +1 -0
  878. data/packages/webpacker/node_modules/human-signals/build/src/realtime.js +19 -0
  879. data/packages/webpacker/node_modules/human-signals/build/src/realtime.js.map +1 -0
  880. data/packages/webpacker/node_modules/human-signals/build/src/signals.js +35 -0
  881. data/packages/webpacker/node_modules/human-signals/build/src/signals.js.map +1 -0
  882. data/packages/webpacker/node_modules/human-signals/package.json +64 -0
  883. data/packages/webpacker/node_modules/jest/LICENSE +21 -0
  884. data/packages/webpacker/node_modules/jest/README.md +11 -0
  885. data/packages/webpacker/node_modules/jest/bin/jest.js +13 -0
  886. data/packages/webpacker/node_modules/jest/build/jest.d.ts +8 -0
  887. data/packages/webpacker/node_modules/jest/build/jest.js +61 -0
  888. data/packages/webpacker/node_modules/jest/package.json +68 -0
  889. data/packages/webpacker/node_modules/jest-changed-files/LICENSE +21 -0
  890. data/packages/webpacker/node_modules/jest-changed-files/README.md +63 -0
  891. data/packages/webpacker/node_modules/jest-changed-files/build/git.d.ts +10 -0
  892. data/packages/webpacker/node_modules/jest-changed-files/build/git.js +179 -0
  893. data/packages/webpacker/node_modules/jest-changed-files/build/hg.d.ts +10 -0
  894. data/packages/webpacker/node_modules/jest-changed-files/build/hg.js +133 -0
  895. data/packages/webpacker/node_modules/jest-changed-files/build/index.d.ts +12 -0
  896. data/packages/webpacker/node_modules/jest-changed-files/build/index.js +86 -0
  897. data/packages/webpacker/node_modules/jest-changed-files/build/types.d.ts +28 -0
  898. data/packages/webpacker/node_modules/jest-changed-files/build/types.js +1 -0
  899. data/packages/webpacker/node_modules/jest-changed-files/package.json +31 -0
  900. data/packages/webpacker/node_modules/jest-cli/LICENSE +21 -0
  901. data/packages/webpacker/node_modules/jest-cli/README.md +11 -0
  902. data/packages/webpacker/node_modules/jest-cli/bin/jest.js +17 -0
  903. data/packages/webpacker/node_modules/jest-cli/build/cli/args.d.ts +448 -0
  904. data/packages/webpacker/node_modules/jest-cli/build/cli/args.js +710 -0
  905. data/packages/webpacker/node_modules/jest-cli/build/cli/index.d.ts +9 -0
  906. data/packages/webpacker/node_modules/jest-cli/build/cli/index.js +265 -0
  907. data/packages/webpacker/node_modules/jest-cli/build/index.d.ts +7 -0
  908. data/packages/webpacker/node_modules/jest-cli/build/index.js +13 -0
  909. data/packages/webpacker/node_modules/jest-cli/build/init/errors.d.ts +12 -0
  910. data/packages/webpacker/node_modules/jest-cli/build/init/errors.js +35 -0
  911. data/packages/webpacker/node_modules/jest-cli/build/init/generateConfigFile.d.ts +8 -0
  912. data/packages/webpacker/node_modules/jest-cli/build/init/generateConfigFile.js +104 -0
  913. data/packages/webpacker/node_modules/jest-cli/build/init/index.d.ts +7 -0
  914. data/packages/webpacker/node_modules/jest-cli/build/init/index.js +246 -0
  915. data/packages/webpacker/node_modules/jest-cli/build/init/modifyPackageJson.d.ts +12 -0
  916. data/packages/webpacker/node_modules/jest-cli/build/init/modifyPackageJson.js +28 -0
  917. data/packages/webpacker/node_modules/jest-cli/build/init/questions.d.ts +10 -0
  918. data/packages/webpacker/node_modules/jest-cli/build/init/questions.js +76 -0
  919. data/packages/webpacker/node_modules/jest-cli/build/init/types.d.ts +12 -0
  920. data/packages/webpacker/node_modules/jest-cli/build/init/types.js +1 -0
  921. data/packages/webpacker/node_modules/jest-cli/package.json +89 -0
  922. data/packages/webpacker/node_modules/jest-config/LICENSE +21 -0
  923. data/packages/webpacker/node_modules/jest-config/build/Defaults.d.ts +9 -0
  924. data/packages/webpacker/node_modules/jest-config/build/Defaults.js +125 -0
  925. data/packages/webpacker/node_modules/jest-config/build/Deprecated.d.ts +9 -0
  926. data/packages/webpacker/node_modules/jest-config/build/Deprecated.js +98 -0
  927. data/packages/webpacker/node_modules/jest-config/build/Descriptions.d.ts +11 -0
  928. data/packages/webpacker/node_modules/jest-config/build/Descriptions.js +107 -0
  929. data/packages/webpacker/node_modules/jest-config/build/ReporterValidationErrors.d.ts +19 -0
  930. data/packages/webpacker/node_modules/jest-config/build/ReporterValidationErrors.js +138 -0
  931. data/packages/webpacker/node_modules/jest-config/build/ValidConfig.d.ts +9 -0
  932. data/packages/webpacker/node_modules/jest-config/build/ValidConfig.js +199 -0
  933. data/packages/webpacker/node_modules/jest-config/build/color.d.ts +10 -0
  934. data/packages/webpacker/node_modules/jest-config/build/color.js +37 -0
  935. data/packages/webpacker/node_modules/jest-config/build/constants.d.ts +17 -0
  936. data/packages/webpacker/node_modules/jest-config/build/constants.js +104 -0
  937. data/packages/webpacker/node_modules/jest-config/build/getCacheDirectory.d.ts +9 -0
  938. data/packages/webpacker/node_modules/jest-config/build/getCacheDirectory.js +104 -0
  939. data/packages/webpacker/node_modules/jest-config/build/getMaxWorkers.d.ts +8 -0
  940. data/packages/webpacker/node_modules/jest-config/build/getMaxWorkers.js +65 -0
  941. data/packages/webpacker/node_modules/jest-config/build/index.d.ts +28 -0
  942. data/packages/webpacker/node_modules/jest-config/build/index.js +495 -0
  943. data/packages/webpacker/node_modules/jest-config/build/normalize.d.ts +13 -0
  944. data/packages/webpacker/node_modules/jest-config/build/normalize.js +1372 -0
  945. data/packages/webpacker/node_modules/jest-config/build/readConfigFileAndSetRootDir.d.ts +8 -0
  946. data/packages/webpacker/node_modules/jest-config/build/readConfigFileAndSetRootDir.js +204 -0
  947. data/packages/webpacker/node_modules/jest-config/build/resolveConfigPath.d.ts +8 -0
  948. data/packages/webpacker/node_modules/jest-config/build/resolveConfigPath.js +247 -0
  949. data/packages/webpacker/node_modules/jest-config/build/setFromArgv.d.ts +8 -0
  950. data/packages/webpacker/node_modules/jest-config/build/setFromArgv.js +68 -0
  951. data/packages/webpacker/node_modules/jest-config/build/utils.d.ts +27 -0
  952. data/packages/webpacker/node_modules/jest-config/build/utils.js +209 -0
  953. data/packages/webpacker/node_modules/jest-config/build/validatePattern.d.ts +7 -0
  954. data/packages/webpacker/node_modules/jest-config/build/validatePattern.js +25 -0
  955. data/packages/webpacker/node_modules/jest-config/package.json +68 -0
  956. data/packages/webpacker/node_modules/jest-diff/LICENSE +21 -0
  957. data/packages/webpacker/node_modules/jest-diff/README.md +671 -0
  958. data/packages/webpacker/node_modules/jest-diff/build/cleanupSemantic.d.ts +57 -0
  959. data/packages/webpacker/node_modules/jest-diff/build/cleanupSemantic.js +655 -0
  960. data/packages/webpacker/node_modules/jest-diff/build/constants.d.ts +8 -0
  961. data/packages/webpacker/node_modules/jest-diff/build/constants.js +19 -0
  962. data/packages/webpacker/node_modules/jest-diff/build/diffLines.d.ts +12 -0
  963. data/packages/webpacker/node_modules/jest-diff/build/diffLines.js +220 -0
  964. data/packages/webpacker/node_modules/jest-diff/build/diffStrings.d.ts +9 -0
  965. data/packages/webpacker/node_modules/jest-diff/build/diffStrings.js +78 -0
  966. data/packages/webpacker/node_modules/jest-diff/build/getAlignedDiffs.d.ts +10 -0
  967. data/packages/webpacker/node_modules/jest-diff/build/getAlignedDiffs.js +244 -0
  968. data/packages/webpacker/node_modules/jest-diff/build/index.d.ts +15 -0
  969. data/packages/webpacker/node_modules/jest-diff/build/index.js +267 -0
  970. data/packages/webpacker/node_modules/jest-diff/build/joinAlignedDiffs.d.ts +10 -0
  971. data/packages/webpacker/node_modules/jest-diff/build/joinAlignedDiffs.js +303 -0
  972. data/packages/webpacker/node_modules/jest-diff/build/normalizeDiffOptions.d.ts +9 -0
  973. data/packages/webpacker/node_modules/jest-diff/build/normalizeDiffOptions.js +64 -0
  974. data/packages/webpacker/node_modules/jest-diff/build/printDiffs.d.ts +10 -0
  975. data/packages/webpacker/node_modules/jest-diff/build/printDiffs.js +85 -0
  976. data/packages/webpacker/node_modules/jest-diff/build/types.d.ts +48 -0
  977. data/packages/webpacker/node_modules/jest-diff/build/types.js +1 -0
  978. data/packages/webpacker/node_modules/jest-diff/package.json +36 -0
  979. data/packages/webpacker/node_modules/jest-docblock/LICENSE +21 -0
  980. data/packages/webpacker/node_modules/jest-docblock/README.md +108 -0
  981. data/packages/webpacker/node_modules/jest-docblock/build/index.d.ts +19 -0
  982. data/packages/webpacker/node_modules/jest-docblock/build/index.js +153 -0
  983. data/packages/webpacker/node_modules/jest-docblock/package.json +32 -0
  984. data/packages/webpacker/node_modules/jest-each/LICENSE +21 -0
  985. data/packages/webpacker/node_modules/jest-each/README.md +548 -0
  986. data/packages/webpacker/node_modules/jest-each/build/bind.d.ts +15 -0
  987. data/packages/webpacker/node_modules/jest-each/build/bind.js +79 -0
  988. data/packages/webpacker/node_modules/jest-each/build/index.d.ts +79 -0
  989. data/packages/webpacker/node_modules/jest-each/build/index.js +97 -0
  990. data/packages/webpacker/node_modules/jest-each/build/table/array.d.ts +10 -0
  991. data/packages/webpacker/node_modules/jest-each/build/table/array.js +151 -0
  992. data/packages/webpacker/node_modules/jest-each/build/table/interpolation.d.ts +17 -0
  993. data/packages/webpacker/node_modules/jest-each/build/table/interpolation.js +69 -0
  994. data/packages/webpacker/node_modules/jest-each/build/table/template.d.ts +11 -0
  995. data/packages/webpacker/node_modules/jest-each/build/table/template.js +45 -0
  996. data/packages/webpacker/node_modules/jest-each/build/validation.d.ts +11 -0
  997. data/packages/webpacker/node_modules/jest-each/build/validation.js +133 -0
  998. data/packages/webpacker/node_modules/jest-each/package.json +41 -0
  999. data/packages/webpacker/node_modules/jest-environment-jsdom/LICENSE +21 -0
  1000. data/packages/webpacker/node_modules/jest-environment-jsdom/build/index.d.ts +30 -0
  1001. data/packages/webpacker/node_modules/jest-environment-jsdom/build/index.js +195 -0
  1002. data/packages/webpacker/node_modules/jest-environment-jsdom/package.json +39 -0
  1003. data/packages/webpacker/node_modules/jest-environment-node/LICENSE +21 -0
  1004. data/packages/webpacker/node_modules/jest-environment-node/build/index.d.ts +29 -0
  1005. data/packages/webpacker/node_modules/jest-environment-node/build/index.js +184 -0
  1006. data/packages/webpacker/node_modules/jest-environment-node/package.json +37 -0
  1007. data/packages/webpacker/node_modules/jest-get-type/LICENSE +21 -0
  1008. data/packages/webpacker/node_modules/jest-get-type/build/index.d.ts +10 -0
  1009. data/packages/webpacker/node_modules/jest-get-type/build/index.js +57 -0
  1010. data/packages/webpacker/node_modules/jest-get-type/package.json +27 -0
  1011. data/packages/webpacker/node_modules/jest-haste-map/LICENSE +21 -0
  1012. data/packages/webpacker/node_modules/jest-haste-map/build/HasteFS.d.ts +27 -0
  1013. data/packages/webpacker/node_modules/jest-haste-map/build/HasteFS.js +179 -0
  1014. data/packages/webpacker/node_modules/jest-haste-map/build/ModuleMap.d.ts +41 -0
  1015. data/packages/webpacker/node_modules/jest-haste-map/build/ModuleMap.js +305 -0
  1016. data/packages/webpacker/node_modules/jest-haste-map/build/blacklist.d.ts +8 -0
  1017. data/packages/webpacker/node_modules/jest-haste-map/build/blacklist.js +59 -0
  1018. data/packages/webpacker/node_modules/jest-haste-map/build/constants.d.ts +9 -0
  1019. data/packages/webpacker/node_modules/jest-haste-map/build/constants.js +52 -0
  1020. data/packages/webpacker/node_modules/jest-haste-map/build/crawlers/node.d.ts +12 -0
  1021. data/packages/webpacker/node_modules/jest-haste-map/build/crawlers/node.js +309 -0
  1022. data/packages/webpacker/node_modules/jest-haste-map/build/crawlers/watchman.d.ts +13 -0
  1023. data/packages/webpacker/node_modules/jest-haste-map/build/crawlers/watchman.js +385 -0
  1024. data/packages/webpacker/node_modules/jest-haste-map/build/getMockName.d.ts +8 -0
  1025. data/packages/webpacker/node_modules/jest-haste-map/build/getMockName.js +76 -0
  1026. data/packages/webpacker/node_modules/jest-haste-map/build/index.d.ts +184 -0
  1027. data/packages/webpacker/node_modules/jest-haste-map/build/index.js +1266 -0
  1028. data/packages/webpacker/node_modules/jest-haste-map/build/lib/dependencyExtractor.d.ts +7 -0
  1029. data/packages/webpacker/node_modules/jest-haste-map/build/lib/dependencyExtractor.js +99 -0
  1030. data/packages/webpacker/node_modules/jest-haste-map/build/lib/fast_path.d.ts +8 -0
  1031. data/packages/webpacker/node_modules/jest-haste-map/build/lib/fast_path.js +81 -0
  1032. data/packages/webpacker/node_modules/jest-haste-map/build/lib/getPlatformExtension.d.ts +7 -0
  1033. data/packages/webpacker/node_modules/jest-haste-map/build/lib/getPlatformExtension.js +31 -0
  1034. data/packages/webpacker/node_modules/jest-haste-map/build/lib/isRegExpSupported.d.ts +7 -0
  1035. data/packages/webpacker/node_modules/jest-haste-map/build/lib/isRegExpSupported.js +22 -0
  1036. data/packages/webpacker/node_modules/jest-haste-map/build/lib/normalizePathSep.d.ts +8 -0
  1037. data/packages/webpacker/node_modules/jest-haste-map/build/lib/normalizePathSep.js +75 -0
  1038. data/packages/webpacker/node_modules/jest-haste-map/build/types.d.ts +126 -0
  1039. data/packages/webpacker/node_modules/jest-haste-map/build/types.js +1 -0
  1040. data/packages/webpacker/node_modules/jest-haste-map/build/watchers/FSEventsWatcher.d.ts +44 -0
  1041. data/packages/webpacker/node_modules/jest-haste-map/build/watchers/FSEventsWatcher.js +294 -0
  1042. data/packages/webpacker/node_modules/jest-haste-map/build/watchers/NodeWatcher.js +375 -0
  1043. data/packages/webpacker/node_modules/jest-haste-map/build/watchers/RecrawlWarning.js +57 -0
  1044. data/packages/webpacker/node_modules/jest-haste-map/build/watchers/WatchmanWatcher.js +418 -0
  1045. data/packages/webpacker/node_modules/jest-haste-map/build/watchers/common.js +114 -0
  1046. data/packages/webpacker/node_modules/jest-haste-map/build/worker.d.ts +9 -0
  1047. data/packages/webpacker/node_modules/jest-haste-map/build/worker.js +197 -0
  1048. data/packages/webpacker/node_modules/jest-haste-map/package.json +49 -0
  1049. data/packages/webpacker/node_modules/jest-jasmine2/LICENSE +21 -0
  1050. data/packages/webpacker/node_modules/jest-jasmine2/build/ExpectationFailed.d.ts +8 -0
  1051. data/packages/webpacker/node_modules/jest-jasmine2/build/ExpectationFailed.js +16 -0
  1052. data/packages/webpacker/node_modules/jest-jasmine2/build/PCancelable.d.ts +17 -0
  1053. data/packages/webpacker/node_modules/jest-jasmine2/build/PCancelable.js +139 -0
  1054. data/packages/webpacker/node_modules/jest-jasmine2/build/assertionErrorMessage.d.ts +10 -0
  1055. data/packages/webpacker/node_modules/jest-jasmine2/build/assertionErrorMessage.js +156 -0
  1056. data/packages/webpacker/node_modules/jest-jasmine2/build/each.d.ts +8 -0
  1057. data/packages/webpacker/node_modules/jest-jasmine2/build/each.js +44 -0
  1058. data/packages/webpacker/node_modules/jest-jasmine2/build/errorOnPrivate.d.ts +8 -0
  1059. data/packages/webpacker/node_modules/jest-jasmine2/build/errorOnPrivate.js +66 -0
  1060. data/packages/webpacker/node_modules/jest-jasmine2/build/expectationResultFactory.d.ts +16 -0
  1061. data/packages/webpacker/node_modules/jest-jasmine2/build/expectationResultFactory.js +93 -0
  1062. data/packages/webpacker/node_modules/jest-jasmine2/build/index.d.ts +12 -0
  1063. data/packages/webpacker/node_modules/jest-jasmine2/build/index.js +247 -0
  1064. data/packages/webpacker/node_modules/jest-jasmine2/build/isError.d.ts +10 -0
  1065. data/packages/webpacker/node_modules/jest-jasmine2/build/isError.js +32 -0
  1066. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/CallTracker.d.ts +25 -0
  1067. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/CallTracker.js +121 -0
  1068. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Env.d.ts +43 -0
  1069. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Env.js +716 -0
  1070. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/JsApiReporter.d.ts +31 -0
  1071. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/JsApiReporter.js +173 -0
  1072. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/ReportDispatcher.d.ts +22 -0
  1073. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/ReportDispatcher.js +127 -0
  1074. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Spec.d.ts +81 -0
  1075. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Spec.js +298 -0
  1076. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/SpyStrategy.d.ts +22 -0
  1077. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/SpyStrategy.js +143 -0
  1078. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Suite.d.ts +61 -0
  1079. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Suite.js +235 -0
  1080. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Timer.d.ts +14 -0
  1081. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Timer.js +79 -0
  1082. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/createSpy.d.ts +13 -0
  1083. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/createSpy.js +88 -0
  1084. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/jasmineLight.d.ts +27 -0
  1085. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/jasmineLight.js +171 -0
  1086. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/spyRegistry.d.ts +18 -0
  1087. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/spyRegistry.js +222 -0
  1088. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmineAsyncInstall.d.ts +8 -0
  1089. data/packages/webpacker/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js +259 -0
  1090. data/packages/webpacker/node_modules/jest-jasmine2/build/jestExpect.d.ts +9 -0
  1091. data/packages/webpacker/node_modules/jest-jasmine2/build/jestExpect.js +69 -0
  1092. data/packages/webpacker/node_modules/jest-jasmine2/build/pTimeout.d.ts +7 -0
  1093. data/packages/webpacker/node_modules/jest-jasmine2/build/pTimeout.js +78 -0
  1094. data/packages/webpacker/node_modules/jest-jasmine2/build/queueRunner.d.ts +29 -0
  1095. data/packages/webpacker/node_modules/jest-jasmine2/build/queueRunner.js +127 -0
  1096. data/packages/webpacker/node_modules/jest-jasmine2/build/reporter.d.ts +31 -0
  1097. data/packages/webpacker/node_modules/jest-jasmine2/build/reporter.js +250 -0
  1098. data/packages/webpacker/node_modules/jest-jasmine2/build/setup_jest_globals.d.ts +16 -0
  1099. data/packages/webpacker/node_modules/jest-jasmine2/build/setup_jest_globals.js +121 -0
  1100. data/packages/webpacker/node_modules/jest-jasmine2/build/treeProcessor.d.ts +26 -0
  1101. data/packages/webpacker/node_modules/jest-jasmine2/build/treeProcessor.js +82 -0
  1102. data/packages/webpacker/node_modules/jest-jasmine2/build/types.d.ts +82 -0
  1103. data/packages/webpacker/node_modules/jest-jasmine2/build/types.js +7 -0
  1104. data/packages/webpacker/node_modules/jest-jasmine2/package.json +48 -0
  1105. data/packages/webpacker/node_modules/jest-leak-detector/LICENSE +21 -0
  1106. data/packages/webpacker/node_modules/jest-leak-detector/README.md +27 -0
  1107. data/packages/webpacker/node_modules/jest-leak-detector/build/index.d.ts +12 -0
  1108. data/packages/webpacker/node_modules/jest-leak-detector/build/index.js +135 -0
  1109. data/packages/webpacker/node_modules/jest-leak-detector/package.json +34 -0
  1110. data/packages/webpacker/node_modules/jest-matcher-utils/LICENSE +21 -0
  1111. data/packages/webpacker/node_modules/jest-matcher-utils/README.md +24 -0
  1112. data/packages/webpacker/node_modules/jest-matcher-utils/build/Replaceable.d.ts +17 -0
  1113. data/packages/webpacker/node_modules/jest-matcher-utils/build/Replaceable.js +82 -0
  1114. data/packages/webpacker/node_modules/jest-matcher-utils/build/deepCyclicCopyReplaceable.d.ts +7 -0
  1115. data/packages/webpacker/node_modules/jest-matcher-utils/build/deepCyclicCopyReplaceable.js +110 -0
  1116. data/packages/webpacker/node_modules/jest-matcher-utils/build/index.d.ts +53 -0
  1117. data/packages/webpacker/node_modules/jest-matcher-utils/build/index.js +590 -0
  1118. data/packages/webpacker/node_modules/jest-matcher-utils/package.json +37 -0
  1119. data/packages/webpacker/node_modules/jest-message-util/LICENSE +21 -0
  1120. data/packages/webpacker/node_modules/jest-message-util/build/index.d.ts +23 -0
  1121. data/packages/webpacker/node_modules/jest-message-util/build/index.js +501 -0
  1122. data/packages/webpacker/node_modules/jest-message-util/build/types.d.ts +10 -0
  1123. data/packages/webpacker/node_modules/jest-message-util/build/types.js +1 -0
  1124. data/packages/webpacker/node_modules/jest-message-util/package.json +42 -0
  1125. data/packages/webpacker/node_modules/jest-mock/LICENSE +21 -0
  1126. data/packages/webpacker/node_modules/jest-mock/README.md +92 -0
  1127. data/packages/webpacker/node_modules/jest-mock/build/index.d.ts +185 -0
  1128. data/packages/webpacker/node_modules/jest-mock/build/index.js +964 -0
  1129. data/packages/webpacker/node_modules/jest-mock/package.json +30 -0
  1130. data/packages/webpacker/node_modules/jest-regex-util/LICENSE +21 -0
  1131. data/packages/webpacker/node_modules/jest-regex-util/build/index.d.ts +10 -0
  1132. data/packages/webpacker/node_modules/jest-regex-util/build/index.js +48 -0
  1133. data/packages/webpacker/node_modules/jest-regex-util/package.json +29 -0
  1134. data/packages/webpacker/node_modules/jest-resolve/LICENSE +21 -0
  1135. data/packages/webpacker/node_modules/jest-resolve/build/ModuleNotFoundError.d.ts +18 -0
  1136. data/packages/webpacker/node_modules/jest-resolve/build/ModuleNotFoundError.js +146 -0
  1137. data/packages/webpacker/node_modules/jest-resolve/build/defaultResolver.d.ts +29 -0
  1138. data/packages/webpacker/node_modules/jest-resolve/build/defaultResolver.js +123 -0
  1139. data/packages/webpacker/node_modules/jest-resolve/build/fileWalkers.d.ts +14 -0
  1140. data/packages/webpacker/node_modules/jest-resolve/build/fileWalkers.js +214 -0
  1141. data/packages/webpacker/node_modules/jest-resolve/build/index.d.ts +10 -0
  1142. data/packages/webpacker/node_modules/jest-resolve/build/index.js +36 -0
  1143. data/packages/webpacker/node_modules/jest-resolve/build/isBuiltinModule.d.ts +7 -0
  1144. data/packages/webpacker/node_modules/jest-resolve/build/isBuiltinModule.js +36 -0
  1145. data/packages/webpacker/node_modules/jest-resolve/build/nodeModulesPaths.d.ts +15 -0
  1146. data/packages/webpacker/node_modules/jest-resolve/build/nodeModulesPaths.js +128 -0
  1147. data/packages/webpacker/node_modules/jest-resolve/build/resolver.d.ts +58 -0
  1148. data/packages/webpacker/node_modules/jest-resolve/build/resolver.js +595 -0
  1149. data/packages/webpacker/node_modules/jest-resolve/build/shouldLoadAsEsm.d.ts +9 -0
  1150. data/packages/webpacker/node_modules/jest-resolve/build/shouldLoadAsEsm.js +112 -0
  1151. data/packages/webpacker/node_modules/jest-resolve/build/types.d.ts +23 -0
  1152. data/packages/webpacker/node_modules/jest-resolve/build/types.js +1 -0
  1153. data/packages/webpacker/node_modules/jest-resolve/build/utils.d.ts +51 -0
  1154. data/packages/webpacker/node_modules/jest-resolve/build/utils.js +269 -0
  1155. data/packages/webpacker/node_modules/jest-resolve/package.json +42 -0
  1156. data/packages/webpacker/node_modules/jest-resolve-dependencies/LICENSE +21 -0
  1157. data/packages/webpacker/node_modules/jest-resolve-dependencies/build/index.d.ts +27 -0
  1158. data/packages/webpacker/node_modules/jest-resolve-dependencies/build/index.js +238 -0
  1159. data/packages/webpacker/node_modules/jest-resolve-dependencies/package.json +37 -0
  1160. data/packages/webpacker/node_modules/jest-runner/LICENSE +21 -0
  1161. data/packages/webpacker/node_modules/jest-runner/build/index.d.ts +24 -0
  1162. data/packages/webpacker/node_modules/jest-runner/build/index.js +300 -0
  1163. data/packages/webpacker/node_modules/jest-runner/build/runTest.d.ts +12 -0
  1164. data/packages/webpacker/node_modules/jest-runner/build/runTest.js +494 -0
  1165. data/packages/webpacker/node_modules/jest-runner/build/testWorker.d.ts +26 -0
  1166. data/packages/webpacker/node_modules/jest-runner/build/testWorker.js +150 -0
  1167. data/packages/webpacker/node_modules/jest-runner/build/types.d.ts +41 -0
  1168. data/packages/webpacker/node_modules/jest-runner/build/types.js +15 -0
  1169. data/packages/webpacker/node_modules/jest-runner/package.json +55 -0
  1170. data/packages/webpacker/node_modules/jest-runtime/LICENSE +21 -0
  1171. data/packages/webpacker/node_modules/jest-runtime/build/helpers.d.ts +10 -0
  1172. data/packages/webpacker/node_modules/jest-runtime/build/helpers.js +157 -0
  1173. data/packages/webpacker/node_modules/jest-runtime/build/index.d.ts +142 -0
  1174. data/packages/webpacker/node_modules/jest-runtime/build/index.js +2454 -0
  1175. data/packages/webpacker/node_modules/jest-runtime/build/types.d.ts +15 -0
  1176. data/packages/webpacker/node_modules/jest-runtime/build/types.js +1 -0
  1177. data/packages/webpacker/node_modules/jest-runtime/package.json +57 -0
  1178. data/packages/webpacker/node_modules/jest-serializer/LICENSE +21 -0
  1179. data/packages/webpacker/node_modules/jest-serializer/README.md +47 -0
  1180. data/packages/webpacker/node_modules/jest-serializer/build/index.d.ts +20 -0
  1181. data/packages/webpacker/node_modules/jest-serializer/build/index.js +109 -0
  1182. data/packages/webpacker/node_modules/jest-serializer/package.json +33 -0
  1183. data/packages/webpacker/node_modules/jest-serializer/v8.d.ts +11 -0
  1184. data/packages/webpacker/node_modules/jest-snapshot/LICENSE +21 -0
  1185. data/packages/webpacker/node_modules/jest-snapshot/build/InlineSnapshots.d.ts +15 -0
  1186. data/packages/webpacker/node_modules/jest-snapshot/build/InlineSnapshots.js +503 -0
  1187. data/packages/webpacker/node_modules/jest-snapshot/build/SnapshotResolver.d.ts +18 -0
  1188. data/packages/webpacker/node_modules/jest-snapshot/build/SnapshotResolver.js +179 -0
  1189. data/packages/webpacker/node_modules/jest-snapshot/build/State.d.ts +62 -0
  1190. data/packages/webpacker/node_modules/jest-snapshot/build/State.js +389 -0
  1191. data/packages/webpacker/node_modules/jest-snapshot/build/colors.d.ts +15 -0
  1192. data/packages/webpacker/node_modules/jest-snapshot/build/colors.js +38 -0
  1193. data/packages/webpacker/node_modules/jest-snapshot/build/dedentLines.d.ts +7 -0
  1194. data/packages/webpacker/node_modules/jest-snapshot/build/dedentLines.js +149 -0
  1195. data/packages/webpacker/node_modules/jest-snapshot/build/index.d.ts +34 -0
  1196. data/packages/webpacker/node_modules/jest-snapshot/build/index.js +645 -0
  1197. data/packages/webpacker/node_modules/jest-snapshot/build/mockSerializer.d.ts +11 -0
  1198. data/packages/webpacker/node_modules/jest-snapshot/build/mockSerializer.js +52 -0
  1199. data/packages/webpacker/node_modules/jest-snapshot/build/plugins.d.ts +9 -0
  1200. data/packages/webpacker/node_modules/jest-snapshot/build/plugins.js +48 -0
  1201. data/packages/webpacker/node_modules/jest-snapshot/build/printSnapshot.d.ts +24 -0
  1202. data/packages/webpacker/node_modules/jest-snapshot/build/printSnapshot.js +407 -0
  1203. data/packages/webpacker/node_modules/jest-snapshot/build/types.d.ts +25 -0
  1204. data/packages/webpacker/node_modules/jest-snapshot/build/types.js +1 -0
  1205. data/packages/webpacker/node_modules/jest-snapshot/build/utils.d.ts +28 -0
  1206. data/packages/webpacker/node_modules/jest-snapshot/build/utils.js +460 -0
  1207. data/packages/webpacker/node_modules/jest-snapshot/package.json +61 -0
  1208. data/packages/webpacker/node_modules/jest-util/LICENSE +21 -0
  1209. data/packages/webpacker/node_modules/jest-util/build/ErrorWithStack.d.ts +9 -0
  1210. data/packages/webpacker/node_modules/jest-util/build/ErrorWithStack.js +33 -0
  1211. data/packages/webpacker/node_modules/jest-util/build/clearLine.d.ts +8 -0
  1212. data/packages/webpacker/node_modules/jest-util/build/clearLine.js +18 -0
  1213. data/packages/webpacker/node_modules/jest-util/build/convertDescriptorToString.d.ts +7 -0
  1214. data/packages/webpacker/node_modules/jest-util/build/convertDescriptorToString.js +41 -0
  1215. data/packages/webpacker/node_modules/jest-util/build/createDirectory.d.ts +8 -0
  1216. data/packages/webpacker/node_modules/jest-util/build/createDirectory.js +76 -0
  1217. data/packages/webpacker/node_modules/jest-util/build/createProcessObject.d.ts +8 -0
  1218. data/packages/webpacker/node_modules/jest-util/build/createProcessObject.js +126 -0
  1219. data/packages/webpacker/node_modules/jest-util/build/deepCyclicCopy.d.ts +11 -0
  1220. data/packages/webpacker/node_modules/jest-util/build/deepCyclicCopy.js +84 -0
  1221. data/packages/webpacker/node_modules/jest-util/build/formatTime.d.ts +7 -0
  1222. data/packages/webpacker/node_modules/jest-util/build/formatTime.js +24 -0
  1223. data/packages/webpacker/node_modules/jest-util/build/globsToMatcher.d.ts +27 -0
  1224. data/packages/webpacker/node_modules/jest-util/build/globsToMatcher.js +108 -0
  1225. data/packages/webpacker/node_modules/jest-util/build/index.d.ts +25 -0
  1226. data/packages/webpacker/node_modules/jest-util/build/index.js +209 -0
  1227. data/packages/webpacker/node_modules/jest-util/build/installCommonGlobals.d.ts +8 -0
  1228. data/packages/webpacker/node_modules/jest-util/build/installCommonGlobals.js +123 -0
  1229. data/packages/webpacker/node_modules/jest-util/build/interopRequireDefault.d.ts +7 -0
  1230. data/packages/webpacker/node_modules/jest-util/build/interopRequireDefault.js +22 -0
  1231. data/packages/webpacker/node_modules/jest-util/build/isInteractive.d.ts +8 -0
  1232. data/packages/webpacker/node_modules/jest-util/build/isInteractive.js +27 -0
  1233. data/packages/webpacker/node_modules/jest-util/build/isPromise.d.ts +8 -0
  1234. data/packages/webpacker/node_modules/jest-util/build/isPromise.js +20 -0
  1235. data/packages/webpacker/node_modules/jest-util/build/pluralize.d.ts +7 -0
  1236. data/packages/webpacker/node_modules/jest-util/build/pluralize.js +16 -0
  1237. data/packages/webpacker/node_modules/jest-util/build/preRunMessage.d.ts +9 -0
  1238. data/packages/webpacker/node_modules/jest-util/build/preRunMessage.js +48 -0
  1239. data/packages/webpacker/node_modules/jest-util/build/replacePathSepForGlob.d.ts +8 -0
  1240. data/packages/webpacker/node_modules/jest-util/build/replacePathSepForGlob.js +16 -0
  1241. data/packages/webpacker/node_modules/jest-util/build/requireOrImportModule.d.ts +8 -0
  1242. data/packages/webpacker/node_modules/jest-util/build/requireOrImportModule.js +91 -0
  1243. data/packages/webpacker/node_modules/jest-util/build/setGlobal.d.ts +7 -0
  1244. data/packages/webpacker/node_modules/jest-util/build/setGlobal.js +17 -0
  1245. data/packages/webpacker/node_modules/jest-util/build/specialChars.d.ts +14 -0
  1246. data/packages/webpacker/node_modules/jest-util/build/specialChars.js +25 -0
  1247. data/packages/webpacker/node_modules/jest-util/build/testPathPatternToRegExp.d.ts +8 -0
  1248. data/packages/webpacker/node_modules/jest-util/build/testPathPatternToRegExp.js +19 -0
  1249. data/packages/webpacker/node_modules/jest-util/build/tryRealpath.d.ts +8 -0
  1250. data/packages/webpacker/node_modules/jest-util/build/tryRealpath.js +34 -0
  1251. data/packages/webpacker/node_modules/jest-util/package.json +39 -0
  1252. data/packages/webpacker/node_modules/jest-validate/LICENSE +21 -0
  1253. data/packages/webpacker/node_modules/jest-validate/README.md +196 -0
  1254. data/packages/webpacker/node_modules/jest-validate/build/condition.d.ts +9 -0
  1255. data/packages/webpacker/node_modules/jest-validate/build/condition.js +48 -0
  1256. data/packages/webpacker/node_modules/jest-validate/build/defaultConfig.d.ts +9 -0
  1257. data/packages/webpacker/node_modules/jest-validate/build/defaultConfig.js +42 -0
  1258. data/packages/webpacker/node_modules/jest-validate/build/deprecated.d.ts +8 -0
  1259. data/packages/webpacker/node_modules/jest-validate/build/deprecated.js +32 -0
  1260. data/packages/webpacker/node_modules/jest-validate/build/errors.d.ts +8 -0
  1261. data/packages/webpacker/node_modules/jest-validate/build/errors.js +75 -0
  1262. data/packages/webpacker/node_modules/jest-validate/build/exampleConfig.d.ts +9 -0
  1263. data/packages/webpacker/node_modules/jest-validate/build/exampleConfig.js +36 -0
  1264. data/packages/webpacker/node_modules/jest-validate/build/index.d.ts +11 -0
  1265. data/packages/webpacker/node_modules/jest-validate/build/index.js +61 -0
  1266. data/packages/webpacker/node_modules/jest-validate/build/types.d.ts +26 -0
  1267. data/packages/webpacker/node_modules/jest-validate/build/types.js +1 -0
  1268. data/packages/webpacker/node_modules/jest-validate/build/utils.d.ts +18 -0
  1269. data/packages/webpacker/node_modules/jest-validate/build/utils.js +129 -0
  1270. data/packages/webpacker/node_modules/jest-validate/build/validate.d.ts +13 -0
  1271. data/packages/webpacker/node_modules/jest-validate/build/validate.js +131 -0
  1272. data/packages/webpacker/node_modules/jest-validate/build/validateCLIOptions.d.ts +14 -0
  1273. data/packages/webpacker/node_modules/jest-validate/build/validateCLIOptions.js +141 -0
  1274. data/packages/webpacker/node_modules/jest-validate/build/warnings.d.ts +8 -0
  1275. data/packages/webpacker/node_modules/jest-validate/build/warnings.js +48 -0
  1276. data/packages/webpacker/node_modules/jest-validate/package.json +37 -0
  1277. data/packages/webpacker/node_modules/jest-watcher/LICENSE +21 -0
  1278. data/packages/webpacker/node_modules/jest-watcher/build/BaseWatchPlugin.d.ts +22 -0
  1279. data/packages/webpacker/node_modules/jest-watcher/build/BaseWatchPlugin.js +52 -0
  1280. data/packages/webpacker/node_modules/jest-watcher/build/JestHooks.d.ts +18 -0
  1281. data/packages/webpacker/node_modules/jest-watcher/build/JestHooks.js +91 -0
  1282. data/packages/webpacker/node_modules/jest-watcher/build/PatternPrompt.d.ts +20 -0
  1283. data/packages/webpacker/node_modules/jest-watcher/build/PatternPrompt.js +113 -0
  1284. data/packages/webpacker/node_modules/jest-watcher/build/constants.d.ts +18 -0
  1285. data/packages/webpacker/node_modules/jest-watcher/build/constants.js +27 -0
  1286. data/packages/webpacker/node_modules/jest-watcher/build/index.d.ts +13 -0
  1287. data/packages/webpacker/node_modules/jest-watcher/build/index.js +75 -0
  1288. data/packages/webpacker/node_modules/jest-watcher/build/lib/Prompt.d.ts +25 -0
  1289. data/packages/webpacker/node_modules/jest-watcher/build/lib/Prompt.js +158 -0
  1290. data/packages/webpacker/node_modules/jest-watcher/build/lib/colorize.d.ts +7 -0
  1291. data/packages/webpacker/node_modules/jest-watcher/build/lib/colorize.js +34 -0
  1292. data/packages/webpacker/node_modules/jest-watcher/build/lib/formatTestNameByPattern.d.ts +7 -0
  1293. data/packages/webpacker/node_modules/jest-watcher/build/lib/formatTestNameByPattern.js +81 -0
  1294. data/packages/webpacker/node_modules/jest-watcher/build/lib/patternModeHelpers.d.ts +9 -0
  1295. data/packages/webpacker/node_modules/jest-watcher/build/lib/patternModeHelpers.js +68 -0
  1296. data/packages/webpacker/node_modules/jest-watcher/build/lib/scroll.d.ts +12 -0
  1297. data/packages/webpacker/node_modules/jest-watcher/build/lib/scroll.js +34 -0
  1298. data/packages/webpacker/node_modules/jest-watcher/build/types.d.ts +60 -0
  1299. data/packages/webpacker/node_modules/jest-watcher/build/types.js +1 -0
  1300. data/packages/webpacker/node_modules/jest-watcher/package.json +40 -0
  1301. data/packages/webpacker/node_modules/jest-worker/LICENSE +21 -0
  1302. data/packages/webpacker/node_modules/jest-worker/README.md +247 -0
  1303. data/packages/webpacker/node_modules/jest-worker/build/Farm.d.ts +29 -0
  1304. data/packages/webpacker/node_modules/jest-worker/build/Farm.js +206 -0
  1305. data/packages/webpacker/node_modules/jest-worker/build/FifoQueue.d.ts +18 -0
  1306. data/packages/webpacker/node_modules/jest-worker/build/FifoQueue.js +171 -0
  1307. data/packages/webpacker/node_modules/jest-worker/build/PriorityQueue.d.ts +41 -0
  1308. data/packages/webpacker/node_modules/jest-worker/build/PriorityQueue.js +188 -0
  1309. data/packages/webpacker/node_modules/jest-worker/build/WorkerPool.d.ts +13 -0
  1310. data/packages/webpacker/node_modules/jest-worker/build/WorkerPool.js +49 -0
  1311. data/packages/webpacker/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts +21 -0
  1312. data/packages/webpacker/node_modules/jest-worker/build/base/BaseWorkerPool.js +201 -0
  1313. data/packages/webpacker/node_modules/jest-worker/build/index.d.ts +49 -0
  1314. data/packages/webpacker/node_modules/jest-worker/build/index.js +223 -0
  1315. data/packages/webpacker/node_modules/jest-worker/build/types.d.ts +143 -0
  1316. data/packages/webpacker/node_modules/jest-worker/build/types.js +39 -0
  1317. data/packages/webpacker/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts +51 -0
  1318. data/packages/webpacker/node_modules/jest-worker/build/workers/ChildProcessWorker.js +333 -0
  1319. data/packages/webpacker/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts +34 -0
  1320. data/packages/webpacker/node_modules/jest-worker/build/workers/NodeThreadsWorker.js +344 -0
  1321. data/packages/webpacker/node_modules/jest-worker/build/workers/messageParent.d.ts +8 -0
  1322. data/packages/webpacker/node_modules/jest-worker/build/workers/messageParent.js +38 -0
  1323. data/packages/webpacker/node_modules/jest-worker/build/workers/processChild.d.ts +7 -0
  1324. data/packages/webpacker/node_modules/jest-worker/build/workers/processChild.js +148 -0
  1325. data/packages/webpacker/node_modules/jest-worker/build/workers/threadChild.d.ts +7 -0
  1326. data/packages/webpacker/node_modules/jest-worker/build/workers/threadChild.js +159 -0
  1327. data/packages/webpacker/node_modules/jest-worker/node_modules/supports-color/browser.js +24 -0
  1328. data/packages/webpacker/node_modules/jest-worker/node_modules/supports-color/index.js +152 -0
  1329. data/packages/webpacker/node_modules/jest-worker/node_modules/supports-color/license +9 -0
  1330. data/packages/webpacker/node_modules/jest-worker/node_modules/supports-color/package.json +58 -0
  1331. data/packages/webpacker/node_modules/jest-worker/node_modules/supports-color/readme.md +77 -0
  1332. data/packages/webpacker/node_modules/jest-worker/package.json +38 -0
  1333. data/packages/webpacker/node_modules/pretty-format/LICENSE +21 -0
  1334. data/packages/webpacker/node_modules/pretty-format/README.md +458 -0
  1335. data/packages/webpacker/node_modules/pretty-format/build/collections.d.ts +32 -0
  1336. data/packages/webpacker/node_modules/pretty-format/build/collections.js +187 -0
  1337. data/packages/webpacker/node_modules/pretty-format/build/index.d.ts +25 -0
  1338. data/packages/webpacker/node_modules/pretty-format/build/index.js +597 -0
  1339. data/packages/webpacker/node_modules/pretty-format/build/plugins/AsymmetricMatcher.d.ts +11 -0
  1340. data/packages/webpacker/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js +117 -0
  1341. data/packages/webpacker/node_modules/pretty-format/build/plugins/ConvertAnsi.d.ts +11 -0
  1342. data/packages/webpacker/node_modules/pretty-format/build/plugins/ConvertAnsi.js +96 -0
  1343. data/packages/webpacker/node_modules/pretty-format/build/plugins/DOMCollection.d.ts +11 -0
  1344. data/packages/webpacker/node_modules/pretty-format/build/plugins/DOMCollection.js +80 -0
  1345. data/packages/webpacker/node_modules/pretty-format/build/plugins/DOMElement.d.ts +11 -0
  1346. data/packages/webpacker/node_modules/pretty-format/build/plugins/DOMElement.js +128 -0
  1347. data/packages/webpacker/node_modules/pretty-format/build/plugins/Immutable.d.ts +11 -0
  1348. data/packages/webpacker/node_modules/pretty-format/build/plugins/Immutable.js +247 -0
  1349. data/packages/webpacker/node_modules/pretty-format/build/plugins/ReactElement.d.ts +11 -0
  1350. data/packages/webpacker/node_modules/pretty-format/build/plugins/ReactElement.js +166 -0
  1351. data/packages/webpacker/node_modules/pretty-format/build/plugins/ReactTestComponent.d.ts +18 -0
  1352. data/packages/webpacker/node_modules/pretty-format/build/plugins/ReactTestComponent.js +79 -0
  1353. data/packages/webpacker/node_modules/pretty-format/build/plugins/lib/escapeHTML.d.ts +7 -0
  1354. data/packages/webpacker/node_modules/pretty-format/build/plugins/lib/escapeHTML.js +16 -0
  1355. data/packages/webpacker/node_modules/pretty-format/build/plugins/lib/markup.d.ts +13 -0
  1356. data/packages/webpacker/node_modules/pretty-format/build/plugins/lib/markup.js +153 -0
  1357. data/packages/webpacker/node_modules/pretty-format/build/types.d.ts +108 -0
  1358. data/packages/webpacker/node_modules/pretty-format/build/types.js +1 -0
  1359. data/packages/webpacker/node_modules/pretty-format/node_modules/ansi-styles/index.d.ts +167 -0
  1360. data/packages/webpacker/node_modules/pretty-format/node_modules/ansi-styles/index.js +164 -0
  1361. data/packages/webpacker/node_modules/pretty-format/node_modules/ansi-styles/license +9 -0
  1362. data/packages/webpacker/node_modules/pretty-format/node_modules/ansi-styles/package.json +52 -0
  1363. data/packages/webpacker/node_modules/pretty-format/node_modules/ansi-styles/readme.md +144 -0
  1364. data/packages/webpacker/node_modules/pretty-format/package.json +44 -0
  1365. data/packages/webpacker/node_modules/react-is/LICENSE +21 -0
  1366. data/packages/webpacker/node_modules/react-is/README.md +104 -0
  1367. data/packages/webpacker/node_modules/react-is/build-info.json +8 -0
  1368. data/packages/webpacker/node_modules/react-is/cjs/react-is.development.js +226 -0
  1369. data/packages/webpacker/node_modules/react-is/cjs/react-is.production.min.js +14 -0
  1370. data/packages/webpacker/node_modules/react-is/index.js +7 -0
  1371. data/packages/webpacker/node_modules/react-is/package.json +27 -0
  1372. data/packages/webpacker/node_modules/react-is/umd/react-is.development.js +225 -0
  1373. data/packages/webpacker/node_modules/react-is/umd/react-is.production.min.js +14 -0
  1374. data/packages/webpacker/node_modules/semver/CHANGELOG.md +111 -0
  1375. data/packages/webpacker/node_modules/semver/LICENSE +15 -0
  1376. data/packages/webpacker/node_modules/semver/README.md +566 -0
  1377. data/packages/webpacker/node_modules/semver/bin/semver.js +173 -0
  1378. data/packages/webpacker/node_modules/semver/classes/comparator.js +135 -0
  1379. data/packages/webpacker/node_modules/semver/classes/index.js +5 -0
  1380. data/packages/webpacker/node_modules/semver/classes/range.js +510 -0
  1381. data/packages/webpacker/node_modules/semver/classes/semver.js +287 -0
  1382. data/packages/webpacker/node_modules/semver/functions/clean.js +6 -0
  1383. data/packages/webpacker/node_modules/semver/functions/cmp.js +48 -0
  1384. data/packages/webpacker/node_modules/semver/functions/coerce.js +51 -0
  1385. data/packages/webpacker/node_modules/semver/functions/compare-build.js +7 -0
  1386. data/packages/webpacker/node_modules/semver/functions/compare-loose.js +3 -0
  1387. data/packages/webpacker/node_modules/semver/functions/compare.js +5 -0
  1388. data/packages/webpacker/node_modules/semver/functions/diff.js +23 -0
  1389. data/packages/webpacker/node_modules/semver/functions/eq.js +3 -0
  1390. data/packages/webpacker/node_modules/semver/functions/gt.js +3 -0
  1391. data/packages/webpacker/node_modules/semver/functions/gte.js +3 -0
  1392. data/packages/webpacker/node_modules/semver/functions/inc.js +15 -0
  1393. data/packages/webpacker/node_modules/semver/functions/lt.js +3 -0
  1394. data/packages/webpacker/node_modules/semver/functions/lte.js +3 -0
  1395. data/packages/webpacker/node_modules/semver/functions/major.js +3 -0
  1396. data/packages/webpacker/node_modules/semver/functions/minor.js +3 -0
  1397. data/packages/webpacker/node_modules/semver/functions/neq.js +3 -0
  1398. data/packages/webpacker/node_modules/semver/functions/parse.js +33 -0
  1399. data/packages/webpacker/node_modules/semver/functions/patch.js +3 -0
  1400. data/packages/webpacker/node_modules/semver/functions/prerelease.js +6 -0
  1401. data/packages/webpacker/node_modules/semver/functions/rcompare.js +3 -0
  1402. data/packages/webpacker/node_modules/semver/functions/rsort.js +3 -0
  1403. data/packages/webpacker/node_modules/semver/functions/satisfies.js +10 -0
  1404. data/packages/webpacker/node_modules/semver/functions/sort.js +3 -0
  1405. data/packages/webpacker/node_modules/semver/functions/valid.js +6 -0
  1406. data/packages/webpacker/node_modules/semver/index.js +48 -0
  1407. data/packages/webpacker/node_modules/semver/internal/constants.js +17 -0
  1408. data/packages/webpacker/node_modules/semver/internal/debug.js +9 -0
  1409. data/packages/webpacker/node_modules/semver/internal/identifiers.js +23 -0
  1410. data/packages/webpacker/node_modules/semver/internal/parse-options.js +11 -0
  1411. data/packages/webpacker/node_modules/semver/internal/re.js +182 -0
  1412. data/packages/webpacker/node_modules/semver/package.json +41 -0
  1413. data/packages/webpacker/node_modules/semver/preload.js +2 -0
  1414. data/packages/webpacker/node_modules/semver/range.bnf +16 -0
  1415. data/packages/webpacker/node_modules/semver/ranges/gtr.js +4 -0
  1416. data/packages/webpacker/node_modules/semver/ranges/intersects.js +7 -0
  1417. data/packages/webpacker/node_modules/semver/ranges/ltr.js +4 -0
  1418. data/packages/webpacker/node_modules/semver/ranges/max-satisfying.js +25 -0
  1419. data/packages/webpacker/node_modules/semver/ranges/min-satisfying.js +24 -0
  1420. data/packages/webpacker/node_modules/semver/ranges/min-version.js +60 -0
  1421. data/packages/webpacker/node_modules/semver/ranges/outside.js +80 -0
  1422. data/packages/webpacker/node_modules/semver/ranges/simplify.js +44 -0
  1423. data/packages/webpacker/node_modules/semver/ranges/subset.js +222 -0
  1424. data/packages/webpacker/node_modules/semver/ranges/to-comparators.js +8 -0
  1425. data/packages/webpacker/node_modules/semver/ranges/valid.js +11 -0
  1426. data/packages/webpacker/node_modules/source-map/CHANGELOG.md +301 -0
  1427. data/packages/webpacker/node_modules/source-map/LICENSE +28 -0
  1428. data/packages/webpacker/node_modules/source-map/README.md +742 -0
  1429. data/packages/webpacker/node_modules/source-map/dist/source-map.debug.js +3234 -0
  1430. data/packages/webpacker/node_modules/source-map/dist/source-map.js +3233 -0
  1431. data/packages/webpacker/node_modules/source-map/dist/source-map.min.js +2 -0
  1432. data/packages/webpacker/node_modules/source-map/dist/source-map.min.js.map +1 -0
  1433. data/packages/webpacker/node_modules/source-map/lib/array-set.js +121 -0
  1434. data/packages/webpacker/node_modules/source-map/lib/base64-vlq.js +140 -0
  1435. data/packages/webpacker/node_modules/source-map/lib/base64.js +67 -0
  1436. data/packages/webpacker/node_modules/source-map/lib/binary-search.js +111 -0
  1437. data/packages/webpacker/node_modules/source-map/lib/mapping-list.js +79 -0
  1438. data/packages/webpacker/node_modules/source-map/lib/quick-sort.js +114 -0
  1439. data/packages/webpacker/node_modules/source-map/lib/source-map-consumer.js +1145 -0
  1440. data/packages/webpacker/node_modules/source-map/lib/source-map-generator.js +425 -0
  1441. data/packages/webpacker/node_modules/source-map/lib/source-node.js +413 -0
  1442. data/packages/webpacker/node_modules/source-map/lib/util.js +488 -0
  1443. data/packages/webpacker/node_modules/source-map/package.json +73 -0
  1444. data/packages/webpacker/node_modules/source-map/source-map.d.ts +98 -0
  1445. data/packages/webpacker/node_modules/source-map/source-map.js +8 -0
  1446. data/packages/webpacker/node_modules/supports-color/browser.js +5 -0
  1447. data/packages/webpacker/node_modules/supports-color/index.js +135 -0
  1448. data/packages/webpacker/node_modules/supports-color/license +9 -0
  1449. data/packages/webpacker/node_modules/supports-color/package.json +53 -0
  1450. data/packages/webpacker/node_modules/supports-color/readme.md +76 -0
  1451. data/packages/webpacker/node_modules/throat/LICENSE +19 -0
  1452. data/packages/webpacker/node_modules/throat/README.md +55 -0
  1453. data/packages/webpacker/node_modules/throat/index.d.ts +32 -0
  1454. data/packages/webpacker/node_modules/throat/index.js +145 -0
  1455. data/packages/webpacker/node_modules/throat/index.js.flow +7 -0
  1456. data/packages/webpacker/node_modules/throat/package.json +47 -0
  1457. data/packages/webpacker/node_modules/type-fest/base.d.ts +38 -0
  1458. data/packages/webpacker/node_modules/type-fest/index.d.ts +2 -0
  1459. data/packages/webpacker/node_modules/type-fest/license +9 -0
  1460. data/packages/webpacker/node_modules/type-fest/package.json +58 -0
  1461. data/packages/webpacker/node_modules/type-fest/readme.md +658 -0
  1462. data/packages/webpacker/node_modules/type-fest/source/async-return-type.d.ts +23 -0
  1463. data/packages/webpacker/node_modules/type-fest/source/asyncify.d.ts +31 -0
  1464. data/packages/webpacker/node_modules/type-fest/source/basic.d.ts +67 -0
  1465. data/packages/webpacker/node_modules/type-fest/source/conditional-except.d.ts +43 -0
  1466. data/packages/webpacker/node_modules/type-fest/source/conditional-keys.d.ts +43 -0
  1467. data/packages/webpacker/node_modules/type-fest/source/conditional-pick.d.ts +42 -0
  1468. data/packages/webpacker/node_modules/type-fest/source/entries.d.ts +57 -0
  1469. data/packages/webpacker/node_modules/type-fest/source/entry.d.ts +60 -0
  1470. data/packages/webpacker/node_modules/type-fest/source/except.d.ts +22 -0
  1471. data/packages/webpacker/node_modules/type-fest/source/fixed-length-array.d.ts +38 -0
  1472. data/packages/webpacker/node_modules/type-fest/source/iterable-element.d.ts +46 -0
  1473. data/packages/webpacker/node_modules/type-fest/source/literal-union.d.ts +33 -0
  1474. data/packages/webpacker/node_modules/type-fest/source/merge-exclusive.d.ts +39 -0
  1475. data/packages/webpacker/node_modules/type-fest/source/merge.d.ts +22 -0
  1476. data/packages/webpacker/node_modules/type-fest/source/mutable.d.ts +22 -0
  1477. data/packages/webpacker/node_modules/type-fest/source/opaque.d.ts +65 -0
  1478. data/packages/webpacker/node_modules/type-fest/source/package-json.d.ts +611 -0
  1479. data/packages/webpacker/node_modules/type-fest/source/partial-deep.d.ts +72 -0
  1480. data/packages/webpacker/node_modules/type-fest/source/promisable.d.ts +23 -0
  1481. data/packages/webpacker/node_modules/type-fest/source/promise-value.d.ts +27 -0
  1482. data/packages/webpacker/node_modules/type-fest/source/readonly-deep.d.ts +59 -0
  1483. data/packages/webpacker/node_modules/type-fest/source/require-at-least-one.d.ts +33 -0
  1484. data/packages/webpacker/node_modules/type-fest/source/require-exactly-one.d.ts +35 -0
  1485. data/packages/webpacker/node_modules/type-fest/source/set-optional.d.ts +34 -0
  1486. data/packages/webpacker/node_modules/type-fest/source/set-required.d.ts +34 -0
  1487. data/packages/webpacker/node_modules/type-fest/source/set-return-type.d.ts +29 -0
  1488. data/packages/webpacker/node_modules/type-fest/source/stringified.d.ts +21 -0
  1489. data/packages/webpacker/node_modules/type-fest/source/tsconfig-json.d.ts +870 -0
  1490. data/packages/webpacker/node_modules/type-fest/source/union-to-intersection.d.ts +58 -0
  1491. data/packages/webpacker/node_modules/type-fest/source/utilities.d.ts +3 -0
  1492. data/packages/webpacker/node_modules/type-fest/source/value-of.d.ts +40 -0
  1493. data/packages/webpacker/node_modules/type-fest/ts41/camel-case.d.ts +72 -0
  1494. data/packages/webpacker/node_modules/type-fest/ts41/delimiter-case.d.ts +85 -0
  1495. data/packages/webpacker/node_modules/type-fest/ts41/index.d.ts +9 -0
  1496. data/packages/webpacker/node_modules/type-fest/ts41/kebab-case.d.ts +36 -0
  1497. data/packages/webpacker/node_modules/type-fest/ts41/pascal-case.d.ts +36 -0
  1498. data/packages/webpacker/node_modules/type-fest/ts41/snake-case.d.ts +35 -0
  1499. data/packages/webpacker/node_modules/v8-to-istanbul/CHANGELOG.md +380 -0
  1500. data/packages/webpacker/node_modules/v8-to-istanbul/LICENSE.txt +14 -0
  1501. data/packages/webpacker/node_modules/v8-to-istanbul/README.md +90 -0
  1502. data/packages/webpacker/node_modules/v8-to-istanbul/index.d.ts +25 -0
  1503. data/packages/webpacker/node_modules/v8-to-istanbul/index.js +5 -0
  1504. data/packages/webpacker/node_modules/v8-to-istanbul/lib/branch.js +28 -0
  1505. data/packages/webpacker/node_modules/v8-to-istanbul/lib/function.js +29 -0
  1506. data/packages/webpacker/node_modules/v8-to-istanbul/lib/line.js +34 -0
  1507. data/packages/webpacker/node_modules/v8-to-istanbul/lib/range.js +33 -0
  1508. data/packages/webpacker/node_modules/v8-to-istanbul/lib/source.js +245 -0
  1509. data/packages/webpacker/node_modules/v8-to-istanbul/lib/v8-to-istanbul.js +318 -0
  1510. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/CHANGELOG.md +344 -0
  1511. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/LICENSE +28 -0
  1512. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/README.md +822 -0
  1513. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/dist/source-map.js +3351 -0
  1514. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/array-set.js +100 -0
  1515. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/base64-vlq.js +111 -0
  1516. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/base64.js +18 -0
  1517. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/binary-search.js +107 -0
  1518. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/mapping-list.js +80 -0
  1519. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/mappings.wasm +0 -0
  1520. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/read-wasm.js +40 -0
  1521. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-map-consumer.js +1254 -0
  1522. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-map-generator.js +413 -0
  1523. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-node.js +404 -0
  1524. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/util.js +546 -0
  1525. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/wasm.js +107 -0
  1526. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/package.json +90 -0
  1527. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/source-map.d.ts +369 -0
  1528. data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/source-map.js +8 -0
  1529. data/packages/webpacker/node_modules/v8-to-istanbul/package.json +48 -0
  1530. data/packages/webpacker/node_modules/wrap-ansi/index.js +216 -0
  1531. data/packages/webpacker/node_modules/wrap-ansi/license +9 -0
  1532. data/packages/webpacker/node_modules/wrap-ansi/package.json +62 -0
  1533. data/packages/webpacker/node_modules/wrap-ansi/readme.md +91 -0
  1534. data/packages/webpacker/node_modules/y18n/CHANGELOG.md +100 -0
  1535. data/packages/webpacker/node_modules/y18n/LICENSE +13 -0
  1536. data/packages/webpacker/node_modules/y18n/README.md +127 -0
  1537. data/packages/webpacker/node_modules/y18n/build/index.cjs +203 -0
  1538. data/packages/webpacker/node_modules/y18n/build/lib/cjs.js +6 -0
  1539. data/packages/webpacker/node_modules/y18n/build/lib/index.js +174 -0
  1540. data/packages/webpacker/node_modules/y18n/build/lib/platform-shims/node.js +19 -0
  1541. data/packages/webpacker/node_modules/y18n/index.mjs +8 -0
  1542. data/packages/webpacker/node_modules/y18n/package.json +70 -0
  1543. data/packages/webpacker/node_modules/yargs/CHANGELOG.md +88 -0
  1544. data/packages/webpacker/node_modules/yargs/LICENSE +21 -0
  1545. data/packages/webpacker/node_modules/yargs/README.md +202 -0
  1546. data/packages/webpacker/node_modules/yargs/browser.mjs +7 -0
  1547. data/packages/webpacker/node_modules/yargs/build/index.cjs +2920 -0
  1548. data/packages/webpacker/node_modules/yargs/build/lib/argsert.js +62 -0
  1549. data/packages/webpacker/node_modules/yargs/build/lib/command.js +382 -0
  1550. data/packages/webpacker/node_modules/yargs/build/lib/completion-templates.js +47 -0
  1551. data/packages/webpacker/node_modules/yargs/build/lib/completion.js +128 -0
  1552. data/packages/webpacker/node_modules/yargs/build/lib/middleware.js +53 -0
  1553. data/packages/webpacker/node_modules/yargs/build/lib/parse-command.js +32 -0
  1554. data/packages/webpacker/node_modules/yargs/build/lib/typings/common-types.js +9 -0
  1555. data/packages/webpacker/node_modules/yargs/build/lib/typings/yargs-parser-types.js +1 -0
  1556. data/packages/webpacker/node_modules/yargs/build/lib/usage.js +548 -0
  1557. data/packages/webpacker/node_modules/yargs/build/lib/utils/apply-extends.js +59 -0
  1558. data/packages/webpacker/node_modules/yargs/build/lib/utils/is-promise.js +5 -0
  1559. data/packages/webpacker/node_modules/yargs/build/lib/utils/levenshtein.js +26 -0
  1560. data/packages/webpacker/node_modules/yargs/build/lib/utils/obj-filter.js +10 -0
  1561. data/packages/webpacker/node_modules/yargs/build/lib/utils/process-argv.js +17 -0
  1562. data/packages/webpacker/node_modules/yargs/build/lib/utils/set-blocking.js +12 -0
  1563. data/packages/webpacker/node_modules/yargs/build/lib/utils/which-module.js +10 -0
  1564. data/packages/webpacker/node_modules/yargs/build/lib/validation.js +308 -0
  1565. data/packages/webpacker/node_modules/yargs/build/lib/yargs-factory.js +1143 -0
  1566. data/packages/webpacker/node_modules/yargs/build/lib/yerror.js +7 -0
  1567. data/packages/webpacker/node_modules/yargs/helpers/helpers.mjs +10 -0
  1568. data/packages/webpacker/node_modules/yargs/helpers/index.js +14 -0
  1569. data/packages/webpacker/node_modules/yargs/helpers/package.json +3 -0
  1570. data/packages/webpacker/node_modules/yargs/index.cjs +39 -0
  1571. data/packages/webpacker/node_modules/yargs/index.mjs +8 -0
  1572. data/packages/webpacker/node_modules/yargs/lib/platform-shims/browser.mjs +92 -0
  1573. data/packages/webpacker/node_modules/yargs/lib/platform-shims/esm.mjs +67 -0
  1574. data/packages/webpacker/node_modules/yargs/locales/be.json +46 -0
  1575. data/packages/webpacker/node_modules/yargs/locales/de.json +46 -0
  1576. data/packages/webpacker/node_modules/yargs/locales/en.json +51 -0
  1577. data/packages/webpacker/node_modules/yargs/locales/es.json +46 -0
  1578. data/packages/webpacker/node_modules/yargs/locales/fi.json +49 -0
  1579. data/packages/webpacker/node_modules/yargs/locales/fr.json +53 -0
  1580. data/packages/webpacker/node_modules/yargs/locales/hi.json +49 -0
  1581. data/packages/webpacker/node_modules/yargs/locales/hu.json +46 -0
  1582. data/packages/webpacker/node_modules/yargs/locales/id.json +50 -0
  1583. data/packages/webpacker/node_modules/yargs/locales/it.json +46 -0
  1584. data/packages/webpacker/node_modules/yargs/locales/ja.json +51 -0
  1585. data/packages/webpacker/node_modules/yargs/locales/ko.json +49 -0
  1586. data/packages/webpacker/node_modules/yargs/locales/nb.json +44 -0
  1587. data/packages/webpacker/node_modules/yargs/locales/nl.json +49 -0
  1588. data/packages/webpacker/node_modules/yargs/locales/nn.json +44 -0
  1589. data/packages/webpacker/node_modules/yargs/locales/pirate.json +13 -0
  1590. data/packages/webpacker/node_modules/yargs/locales/pl.json +49 -0
  1591. data/packages/webpacker/node_modules/yargs/locales/pt.json +45 -0
  1592. data/packages/webpacker/node_modules/yargs/locales/pt_BR.json +48 -0
  1593. data/packages/webpacker/node_modules/yargs/locales/ru.json +46 -0
  1594. data/packages/webpacker/node_modules/yargs/locales/th.json +46 -0
  1595. data/packages/webpacker/node_modules/yargs/locales/tr.json +48 -0
  1596. data/packages/webpacker/node_modules/yargs/locales/zh_CN.json +48 -0
  1597. data/packages/webpacker/node_modules/yargs/locales/zh_TW.json +47 -0
  1598. data/packages/webpacker/node_modules/yargs/package.json +122 -0
  1599. data/packages/webpacker/node_modules/yargs/yargs +9 -0
  1600. data/packages/webpacker/node_modules/yargs-parser/CHANGELOG.md +263 -0
  1601. data/packages/webpacker/node_modules/yargs-parser/LICENSE.txt +14 -0
  1602. data/packages/webpacker/node_modules/yargs-parser/README.md +518 -0
  1603. data/packages/webpacker/node_modules/yargs-parser/browser.js +29 -0
  1604. data/packages/webpacker/node_modules/yargs-parser/build/index.cjs +1042 -0
  1605. data/packages/webpacker/node_modules/yargs-parser/build/lib/index.js +59 -0
  1606. data/packages/webpacker/node_modules/yargs-parser/build/lib/string-utils.js +65 -0
  1607. data/packages/webpacker/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +40 -0
  1608. data/packages/webpacker/node_modules/yargs-parser/build/lib/yargs-parser-types.js +12 -0
  1609. data/packages/webpacker/node_modules/yargs-parser/build/lib/yargs-parser.js +1037 -0
  1610. data/packages/webpacker/node_modules/yargs-parser/package.json +87 -0
  1611. data/packages/webpacker/package.json +1 -1
  1612. metadata +1641 -42
@@ -0,0 +1,2004 @@
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
+ Legacy: {
23
+ ConfigOps,
24
+ ConfigValidator,
25
+ environments: BuiltInEnvironments
26
+ }
27
+ } = require("@eslint/eslintrc/universal"),
28
+ Traverser = require("../shared/traverser"),
29
+ { SourceCode } = require("../source-code"),
30
+ CodePathAnalyzer = require("./code-path-analysis/code-path-analyzer"),
31
+ applyDisableDirectives = require("./apply-disable-directives"),
32
+ ConfigCommentParser = require("./config-comment-parser"),
33
+ NodeEventGenerator = require("./node-event-generator"),
34
+ createReportTranslator = require("./report-translator"),
35
+ Rules = require("./rules"),
36
+ createEmitter = require("./safe-emitter"),
37
+ SourceCodeFixer = require("./source-code-fixer"),
38
+ timing = require("./timing"),
39
+ ruleReplacements = require("../../conf/replacements.json");
40
+ const { getRuleFromConfig } = require("../config/flat-config-helpers");
41
+ const { FlatConfigArray } = require("../config/flat-config-array");
42
+
43
+ const debug = require("debug")("eslint:linter");
44
+ const MAX_AUTOFIX_PASSES = 10;
45
+ const DEFAULT_PARSER_NAME = "espree";
46
+ const DEFAULT_ECMA_VERSION = 5;
47
+ const commentParser = new ConfigCommentParser();
48
+ const DEFAULT_ERROR_LOC = { start: { line: 1, column: 0 }, end: { line: 1, column: 1 } };
49
+ const parserSymbol = Symbol.for("eslint.RuleTester.parser");
50
+ const globals = require("../../conf/globals");
51
+
52
+ //------------------------------------------------------------------------------
53
+ // Typedefs
54
+ //------------------------------------------------------------------------------
55
+
56
+ /** @typedef {InstanceType<import("../cli-engine/config-array").ConfigArray>} ConfigArray */
57
+ /** @typedef {InstanceType<import("../cli-engine/config-array").ExtractedConfig>} ExtractedConfig */
58
+ /** @typedef {import("../shared/types").ConfigData} ConfigData */
59
+ /** @typedef {import("../shared/types").Environment} Environment */
60
+ /** @typedef {import("../shared/types").GlobalConf} GlobalConf */
61
+ /** @typedef {import("../shared/types").LintMessage} LintMessage */
62
+ /** @typedef {import("../shared/types").SuppressedLintMessage} SuppressedLintMessage */
63
+ /** @typedef {import("../shared/types").ParserOptions} ParserOptions */
64
+ /** @typedef {import("../shared/types").LanguageOptions} LanguageOptions */
65
+ /** @typedef {import("../shared/types").Processor} Processor */
66
+ /** @typedef {import("../shared/types").Rule} Rule */
67
+
68
+ /* eslint-disable jsdoc/valid-types -- https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/4#issuecomment-778805577 */
69
+ /**
70
+ * @template T
71
+ * @typedef {{ [P in keyof T]-?: T[P] }} Required
72
+ */
73
+ /* eslint-enable jsdoc/valid-types -- https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/4#issuecomment-778805577 */
74
+
75
+ /**
76
+ * @typedef {Object} DisableDirective
77
+ * @property {("disable"|"enable"|"disable-line"|"disable-next-line")} type Type of directive
78
+ * @property {number} line The line number
79
+ * @property {number} column The column number
80
+ * @property {(string|null)} ruleId The rule ID
81
+ * @property {string} justification The justification of directive
82
+ */
83
+
84
+ /**
85
+ * The private data for `Linter` instance.
86
+ * @typedef {Object} LinterInternalSlots
87
+ * @property {ConfigArray|null} lastConfigArray The `ConfigArray` instance that the last `verify()` call used.
88
+ * @property {SourceCode|null} lastSourceCode The `SourceCode` instance that the last `verify()` call used.
89
+ * @property {SuppressedLintMessage[]} lastSuppressedMessages The `SuppressedLintMessage[]` instance that the last `verify()` call produced.
90
+ * @property {Map<string, Parser>} parserMap The loaded parsers.
91
+ * @property {Rules} ruleMap The loaded rules.
92
+ */
93
+
94
+ /**
95
+ * @typedef {Object} VerifyOptions
96
+ * @property {boolean} [allowInlineConfig] Allow/disallow inline comments' ability
97
+ * to change config once it is set. Defaults to true if not supplied.
98
+ * Useful if you want to validate JS without comments overriding rules.
99
+ * @property {boolean} [disableFixes] if `true` then the linter doesn't make `fix`
100
+ * properties into the lint result.
101
+ * @property {string} [filename] the filename of the source code.
102
+ * @property {boolean | "off" | "warn" | "error"} [reportUnusedDisableDirectives] Adds reported errors for
103
+ * unused `eslint-disable` directives.
104
+ */
105
+
106
+ /**
107
+ * @typedef {Object} ProcessorOptions
108
+ * @property {(filename:string, text:string) => boolean} [filterCodeBlock] the
109
+ * predicate function that selects adopt code blocks.
110
+ * @property {Processor.postprocess} [postprocess] postprocessor for report
111
+ * messages. If provided, this should accept an array of the message lists
112
+ * for each code block returned from the preprocessor, apply a mapping to
113
+ * the messages as appropriate, and return a one-dimensional array of
114
+ * messages.
115
+ * @property {Processor.preprocess} [preprocess] preprocessor for source text.
116
+ * If provided, this should accept a string of source text, and return an
117
+ * array of code blocks to lint.
118
+ */
119
+
120
+ /**
121
+ * @typedef {Object} FixOptions
122
+ * @property {boolean | ((message: LintMessage) => boolean)} [fix] Determines
123
+ * whether fixes should be applied.
124
+ */
125
+
126
+ /**
127
+ * @typedef {Object} InternalOptions
128
+ * @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.
129
+ * @property {"off" | "warn" | "error"} reportUnusedDisableDirectives (boolean values were normalized)
130
+ */
131
+
132
+ //------------------------------------------------------------------------------
133
+ // Helpers
134
+ //------------------------------------------------------------------------------
135
+
136
+ /**
137
+ * Determines if a given object is Espree.
138
+ * @param {Object} parser The parser to check.
139
+ * @returns {boolean} True if the parser is Espree or false if not.
140
+ */
141
+ function isEspree(parser) {
142
+ return !!(parser === espree || parser[parserSymbol] === espree);
143
+ }
144
+
145
+ /**
146
+ * Retrieves globals for the given ecmaVersion.
147
+ * @param {number} ecmaVersion The version to retrieve globals for.
148
+ * @returns {Object} The globals for the given ecmaVersion.
149
+ */
150
+ function getGlobalsForEcmaVersion(ecmaVersion) {
151
+
152
+ switch (ecmaVersion) {
153
+ case 3:
154
+ return globals.es3;
155
+
156
+ case 5:
157
+ return globals.es5;
158
+
159
+ default:
160
+ if (ecmaVersion < 2015) {
161
+ return globals[`es${ecmaVersion + 2009}`];
162
+ }
163
+
164
+ return globals[`es${ecmaVersion}`];
165
+ }
166
+ }
167
+
168
+ /**
169
+ * Ensures that variables representing built-in properties of the Global Object,
170
+ * and any globals declared by special block comments, are present in the global
171
+ * scope.
172
+ * @param {Scope} globalScope The global scope.
173
+ * @param {Object} configGlobals The globals declared in configuration
174
+ * @param {{exportedVariables: Object, enabledGlobals: Object}} commentDirectives Directives from comment configuration
175
+ * @returns {void}
176
+ */
177
+ function addDeclaredGlobals(globalScope, configGlobals, { exportedVariables, enabledGlobals }) {
178
+
179
+ // Define configured global variables.
180
+ for (const id of new Set([...Object.keys(configGlobals), ...Object.keys(enabledGlobals)])) {
181
+
182
+ /*
183
+ * `ConfigOps.normalizeConfigGlobal` will throw an error if a configured global value is invalid. However, these errors would
184
+ * typically be caught when validating a config anyway (validity for inline global comments is checked separately).
185
+ */
186
+ const configValue = configGlobals[id] === void 0 ? void 0 : ConfigOps.normalizeConfigGlobal(configGlobals[id]);
187
+ const commentValue = enabledGlobals[id] && enabledGlobals[id].value;
188
+ const value = commentValue || configValue;
189
+ const sourceComments = enabledGlobals[id] && enabledGlobals[id].comments;
190
+
191
+ if (value === "off") {
192
+ continue;
193
+ }
194
+
195
+ let variable = globalScope.set.get(id);
196
+
197
+ if (!variable) {
198
+ variable = new eslintScope.Variable(id, globalScope);
199
+
200
+ globalScope.variables.push(variable);
201
+ globalScope.set.set(id, variable);
202
+ }
203
+
204
+ variable.eslintImplicitGlobalSetting = configValue;
205
+ variable.eslintExplicitGlobal = sourceComments !== void 0;
206
+ variable.eslintExplicitGlobalComments = sourceComments;
207
+ variable.writeable = (value === "writable");
208
+ }
209
+
210
+ // mark all exported variables as such
211
+ Object.keys(exportedVariables).forEach(name => {
212
+ const variable = globalScope.set.get(name);
213
+
214
+ if (variable) {
215
+ variable.eslintUsed = true;
216
+ }
217
+ });
218
+
219
+ /*
220
+ * "through" contains all references which definitions cannot be found.
221
+ * Since we augment the global scope using configuration, we need to update
222
+ * references and remove the ones that were added by configuration.
223
+ */
224
+ globalScope.through = globalScope.through.filter(reference => {
225
+ const name = reference.identifier.name;
226
+ const variable = globalScope.set.get(name);
227
+
228
+ if (variable) {
229
+
230
+ /*
231
+ * Links the variable and the reference.
232
+ * And this reference is removed from `Scope#through`.
233
+ */
234
+ reference.resolved = variable;
235
+ variable.references.push(reference);
236
+
237
+ return false;
238
+ }
239
+
240
+ return true;
241
+ });
242
+ }
243
+
244
+ /**
245
+ * creates a missing-rule message.
246
+ * @param {string} ruleId the ruleId to create
247
+ * @returns {string} created error message
248
+ * @private
249
+ */
250
+ function createMissingRuleMessage(ruleId) {
251
+ return Object.prototype.hasOwnProperty.call(ruleReplacements.rules, ruleId)
252
+ ? `Rule '${ruleId}' was removed and replaced by: ${ruleReplacements.rules[ruleId].join(", ")}`
253
+ : `Definition for rule '${ruleId}' was not found.`;
254
+ }
255
+
256
+ /**
257
+ * creates a linting problem
258
+ * @param {Object} options to create linting error
259
+ * @param {string} [options.ruleId] the ruleId to report
260
+ * @param {Object} [options.loc] the loc to report
261
+ * @param {string} [options.message] the error message to report
262
+ * @param {string} [options.severity] the error message to report
263
+ * @returns {LintMessage} created problem, returns a missing-rule problem if only provided ruleId.
264
+ * @private
265
+ */
266
+ function createLintingProblem(options) {
267
+ const {
268
+ ruleId = null,
269
+ loc = DEFAULT_ERROR_LOC,
270
+ message = createMissingRuleMessage(options.ruleId),
271
+ severity = 2
272
+ } = options;
273
+
274
+ return {
275
+ ruleId,
276
+ message,
277
+ line: loc.start.line,
278
+ column: loc.start.column + 1,
279
+ endLine: loc.end.line,
280
+ endColumn: loc.end.column + 1,
281
+ severity,
282
+ nodeType: null
283
+ };
284
+ }
285
+
286
+ /**
287
+ * Creates a collection of disable directives from a comment
288
+ * @param {Object} options to create disable directives
289
+ * @param {("disable"|"enable"|"disable-line"|"disable-next-line")} options.type The type of directive comment
290
+ * @param {token} options.commentToken The Comment token
291
+ * @param {string} options.value The value after the directive in the comment
292
+ * comment specified no specific rules, so it applies to all rules (e.g. `eslint-disable`)
293
+ * @param {string} options.justification The justification of the directive
294
+ * @param {function(string): {create: Function}} options.ruleMapper A map from rule IDs to defined rules
295
+ * @returns {Object} Directives and problems from the comment
296
+ */
297
+ function createDisableDirectives(options) {
298
+ const { commentToken, type, value, justification, ruleMapper } = options;
299
+ const ruleIds = Object.keys(commentParser.parseListConfig(value));
300
+ const directiveRules = ruleIds.length ? ruleIds : [null];
301
+ const result = {
302
+ directives: [], // valid disable directives
303
+ directiveProblems: [] // problems in directives
304
+ };
305
+
306
+ const parentComment = { commentToken, ruleIds };
307
+
308
+ for (const ruleId of directiveRules) {
309
+
310
+ // push to directives, if the rule is defined(including null, e.g. /*eslint enable*/)
311
+ if (ruleId === null || !!ruleMapper(ruleId)) {
312
+ if (type === "disable-next-line") {
313
+ result.directives.push({
314
+ parentComment,
315
+ type,
316
+ line: commentToken.loc.end.line,
317
+ column: commentToken.loc.end.column + 1,
318
+ ruleId,
319
+ justification
320
+ });
321
+ } else {
322
+ result.directives.push({
323
+ parentComment,
324
+ type,
325
+ line: commentToken.loc.start.line,
326
+ column: commentToken.loc.start.column + 1,
327
+ ruleId,
328
+ justification
329
+ });
330
+ }
331
+ } else {
332
+ result.directiveProblems.push(createLintingProblem({ ruleId, loc: commentToken.loc }));
333
+ }
334
+ }
335
+ return result;
336
+ }
337
+
338
+ /**
339
+ * Extract the directive and the justification from a given directive comment and trim them.
340
+ * @param {string} value The comment text to extract.
341
+ * @returns {{directivePart: string, justificationPart: string}} The extracted directive and justification.
342
+ */
343
+ function extractDirectiveComment(value) {
344
+ const match = /\s-{2,}\s/u.exec(value);
345
+
346
+ if (!match) {
347
+ return { directivePart: value.trim(), justificationPart: "" };
348
+ }
349
+
350
+ const directive = value.slice(0, match.index).trim();
351
+ const justification = value.slice(match.index + match[0].length).trim();
352
+
353
+ return { directivePart: directive, justificationPart: justification };
354
+ }
355
+
356
+ /**
357
+ * Parses comments in file to extract file-specific config of rules, globals
358
+ * and environments and merges them with global config; also code blocks
359
+ * where reporting is disabled or enabled and merges them with reporting config.
360
+ * @param {ASTNode} ast The top node of the AST.
361
+ * @param {function(string): {create: Function}} ruleMapper A map from rule IDs to defined rules
362
+ * @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.
363
+ * @returns {{configuredRules: Object, enabledGlobals: {value:string,comment:Token}[], exportedVariables: Object, problems: Problem[], disableDirectives: DisableDirective[]}}
364
+ * A collection of the directive comments that were found, along with any problems that occurred when parsing
365
+ */
366
+ function getDirectiveComments(ast, ruleMapper, warnInlineConfig) {
367
+ const configuredRules = {};
368
+ const enabledGlobals = Object.create(null);
369
+ const exportedVariables = {};
370
+ const problems = [];
371
+ const disableDirectives = [];
372
+ const validator = new ConfigValidator({
373
+ builtInRules: Rules
374
+ });
375
+
376
+ ast.comments.filter(token => token.type !== "Shebang").forEach(comment => {
377
+ const { directivePart, justificationPart } = extractDirectiveComment(comment.value);
378
+
379
+ const match = /^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u.exec(directivePart);
380
+
381
+ if (!match) {
382
+ return;
383
+ }
384
+ const directiveText = match[1];
385
+ const lineCommentSupported = /^eslint-disable-(next-)?line$/u.test(directiveText);
386
+
387
+ if (comment.type === "Line" && !lineCommentSupported) {
388
+ return;
389
+ }
390
+
391
+ if (warnInlineConfig) {
392
+ const kind = comment.type === "Block" ? `/*${directiveText}*/` : `//${directiveText}`;
393
+
394
+ problems.push(createLintingProblem({
395
+ ruleId: null,
396
+ message: `'${kind}' has no effect because you have 'noInlineConfig' setting in ${warnInlineConfig}.`,
397
+ loc: comment.loc,
398
+ severity: 1
399
+ }));
400
+ return;
401
+ }
402
+
403
+ if (directiveText === "eslint-disable-line" && comment.loc.start.line !== comment.loc.end.line) {
404
+ const message = `${directiveText} comment should not span multiple lines.`;
405
+
406
+ problems.push(createLintingProblem({
407
+ ruleId: null,
408
+ message,
409
+ loc: comment.loc
410
+ }));
411
+ return;
412
+ }
413
+
414
+ const directiveValue = directivePart.slice(match.index + directiveText.length);
415
+
416
+ switch (directiveText) {
417
+ case "eslint-disable":
418
+ case "eslint-enable":
419
+ case "eslint-disable-next-line":
420
+ case "eslint-disable-line": {
421
+ const directiveType = directiveText.slice("eslint-".length);
422
+ const options = { commentToken: comment, type: directiveType, value: directiveValue, justification: justificationPart, ruleMapper };
423
+ const { directives, directiveProblems } = createDisableDirectives(options);
424
+
425
+ disableDirectives.push(...directives);
426
+ problems.push(...directiveProblems);
427
+ break;
428
+ }
429
+
430
+ case "exported":
431
+ Object.assign(exportedVariables, commentParser.parseStringConfig(directiveValue, comment));
432
+ break;
433
+
434
+ case "globals":
435
+ case "global":
436
+ for (const [id, { value }] of Object.entries(commentParser.parseStringConfig(directiveValue, comment))) {
437
+ let normalizedValue;
438
+
439
+ try {
440
+ normalizedValue = ConfigOps.normalizeConfigGlobal(value);
441
+ } catch (err) {
442
+ problems.push(createLintingProblem({
443
+ ruleId: null,
444
+ loc: comment.loc,
445
+ message: err.message
446
+ }));
447
+ continue;
448
+ }
449
+
450
+ if (enabledGlobals[id]) {
451
+ enabledGlobals[id].comments.push(comment);
452
+ enabledGlobals[id].value = normalizedValue;
453
+ } else {
454
+ enabledGlobals[id] = {
455
+ comments: [comment],
456
+ value: normalizedValue
457
+ };
458
+ }
459
+ }
460
+ break;
461
+
462
+ case "eslint": {
463
+ const parseResult = commentParser.parseJsonConfig(directiveValue, comment.loc);
464
+
465
+ if (parseResult.success) {
466
+ Object.keys(parseResult.config).forEach(name => {
467
+ const rule = ruleMapper(name);
468
+ const ruleValue = parseResult.config[name];
469
+
470
+ if (!rule) {
471
+ problems.push(createLintingProblem({ ruleId: name, loc: comment.loc }));
472
+ return;
473
+ }
474
+
475
+ try {
476
+ validator.validateRuleOptions(rule, name, ruleValue);
477
+ } catch (err) {
478
+ problems.push(createLintingProblem({
479
+ ruleId: name,
480
+ message: err.message,
481
+ loc: comment.loc
482
+ }));
483
+
484
+ // do not apply the config, if found invalid options.
485
+ return;
486
+ }
487
+
488
+ configuredRules[name] = ruleValue;
489
+ });
490
+ } else {
491
+ problems.push(parseResult.error);
492
+ }
493
+
494
+ break;
495
+ }
496
+
497
+ // no default
498
+ }
499
+ });
500
+
501
+ return {
502
+ configuredRules,
503
+ enabledGlobals,
504
+ exportedVariables,
505
+ problems,
506
+ disableDirectives
507
+ };
508
+ }
509
+
510
+ /**
511
+ * Normalize ECMAScript version from the initial config
512
+ * @param {Parser} parser The parser which uses this options.
513
+ * @param {number} ecmaVersion ECMAScript version from the initial config
514
+ * @returns {number} normalized ECMAScript version
515
+ */
516
+ function normalizeEcmaVersion(parser, ecmaVersion) {
517
+
518
+ if (isEspree(parser)) {
519
+ if (ecmaVersion === "latest") {
520
+ return espree.latestEcmaVersion;
521
+ }
522
+ }
523
+
524
+ /*
525
+ * Calculate ECMAScript edition number from official year version starting with
526
+ * ES2015, which corresponds with ES6 (or a difference of 2009).
527
+ */
528
+ return ecmaVersion >= 2015 ? ecmaVersion - 2009 : ecmaVersion;
529
+ }
530
+
531
+ /**
532
+ * Normalize ECMAScript version from the initial config into languageOptions (year)
533
+ * format.
534
+ * @param {any} [ecmaVersion] ECMAScript version from the initial config
535
+ * @returns {number} normalized ECMAScript version
536
+ */
537
+ function normalizeEcmaVersionForLanguageOptions(ecmaVersion) {
538
+
539
+ switch (ecmaVersion) {
540
+ case 3:
541
+ return 3;
542
+
543
+ // void 0 = no ecmaVersion specified so use the default
544
+ case 5:
545
+ case void 0:
546
+ return 5;
547
+
548
+ default:
549
+ if (typeof ecmaVersion === "number") {
550
+ return ecmaVersion >= 2015 ? ecmaVersion : ecmaVersion + 2009;
551
+ }
552
+ }
553
+
554
+ /*
555
+ * We default to the latest supported ecmaVersion for everything else.
556
+ * Remember, this is for languageOptions.ecmaVersion, which sets the version
557
+ * that is used for a number of processes inside of ESLint. It's normally
558
+ * safe to assume people want the latest unless otherwise specified.
559
+ */
560
+ return espree.latestEcmaVersion + 2009;
561
+ }
562
+
563
+ const eslintEnvPattern = /\/\*\s*eslint-env\s(.+?)(?:\*\/|$)/gsu;
564
+
565
+ /**
566
+ * Checks whether or not there is a comment which has "eslint-env *" in a given text.
567
+ * @param {string} text A source code text to check.
568
+ * @returns {Object|null} A result of parseListConfig() with "eslint-env *" comment.
569
+ */
570
+ function findEslintEnv(text) {
571
+ let match, retv;
572
+
573
+ eslintEnvPattern.lastIndex = 0;
574
+
575
+ while ((match = eslintEnvPattern.exec(text)) !== null) {
576
+ if (match[0].endsWith("*/")) {
577
+ retv = Object.assign(
578
+ retv || {},
579
+ commentParser.parseListConfig(extractDirectiveComment(match[1]).directivePart)
580
+ );
581
+ }
582
+ }
583
+
584
+ return retv;
585
+ }
586
+
587
+ /**
588
+ * Convert "/path/to/<text>" to "<text>".
589
+ * `CLIEngine#executeOnText()` method gives "/path/to/<text>" if the filename
590
+ * was omitted because `configArray.extractConfig()` requires an absolute path.
591
+ * But the linter should pass `<text>` to `RuleContext#getFilename()` in that
592
+ * case.
593
+ * Also, code blocks can have their virtual filename. If the parent filename was
594
+ * `<text>`, the virtual filename is `<text>/0_foo.js` or something like (i.e.,
595
+ * it's not an absolute path).
596
+ * @param {string} filename The filename to normalize.
597
+ * @returns {string} The normalized filename.
598
+ */
599
+ function normalizeFilename(filename) {
600
+ const parts = filename.split(path.sep);
601
+ const index = parts.lastIndexOf("<text>");
602
+
603
+ return index === -1 ? filename : parts.slice(index).join(path.sep);
604
+ }
605
+
606
+ /**
607
+ * Normalizes the possible options for `linter.verify` and `linter.verifyAndFix` to a
608
+ * consistent shape.
609
+ * @param {VerifyOptions} providedOptions Options
610
+ * @param {ConfigData} config Config.
611
+ * @returns {Required<VerifyOptions> & InternalOptions} Normalized options
612
+ */
613
+ function normalizeVerifyOptions(providedOptions, config) {
614
+
615
+ const linterOptions = config.linterOptions || config;
616
+
617
+ // .noInlineConfig for eslintrc, .linterOptions.noInlineConfig for flat
618
+ const disableInlineConfig = linterOptions.noInlineConfig === true;
619
+ const ignoreInlineConfig = providedOptions.allowInlineConfig === false;
620
+ const configNameOfNoInlineConfig = config.configNameOfNoInlineConfig
621
+ ? ` (${config.configNameOfNoInlineConfig})`
622
+ : "";
623
+
624
+ let reportUnusedDisableDirectives = providedOptions.reportUnusedDisableDirectives;
625
+
626
+ if (typeof reportUnusedDisableDirectives === "boolean") {
627
+ reportUnusedDisableDirectives = reportUnusedDisableDirectives ? "error" : "off";
628
+ }
629
+ if (typeof reportUnusedDisableDirectives !== "string") {
630
+ reportUnusedDisableDirectives =
631
+ linterOptions.reportUnusedDisableDirectives
632
+ ? "warn" : "off";
633
+ }
634
+
635
+ return {
636
+ filename: normalizeFilename(providedOptions.filename || "<input>"),
637
+ allowInlineConfig: !ignoreInlineConfig,
638
+ warnInlineConfig: disableInlineConfig && !ignoreInlineConfig
639
+ ? `your config${configNameOfNoInlineConfig}`
640
+ : null,
641
+ reportUnusedDisableDirectives,
642
+ disableFixes: Boolean(providedOptions.disableFixes)
643
+ };
644
+ }
645
+
646
+ /**
647
+ * Combines the provided parserOptions with the options from environments
648
+ * @param {Parser} parser The parser which uses this options.
649
+ * @param {ParserOptions} providedOptions The provided 'parserOptions' key in a config
650
+ * @param {Environment[]} enabledEnvironments The environments enabled in configuration and with inline comments
651
+ * @returns {ParserOptions} Resulting parser options after merge
652
+ */
653
+ function resolveParserOptions(parser, providedOptions, enabledEnvironments) {
654
+
655
+ const parserOptionsFromEnv = enabledEnvironments
656
+ .filter(env => env.parserOptions)
657
+ .reduce((parserOptions, env) => merge(parserOptions, env.parserOptions), {});
658
+ const mergedParserOptions = merge(parserOptionsFromEnv, providedOptions || {});
659
+ const isModule = mergedParserOptions.sourceType === "module";
660
+
661
+ if (isModule) {
662
+
663
+ /*
664
+ * can't have global return inside of modules
665
+ * TODO: espree validate parserOptions.globalReturn when sourceType is setting to module.(@aladdin-add)
666
+ */
667
+ mergedParserOptions.ecmaFeatures = Object.assign({}, mergedParserOptions.ecmaFeatures, { globalReturn: false });
668
+ }
669
+
670
+ mergedParserOptions.ecmaVersion = normalizeEcmaVersion(parser, mergedParserOptions.ecmaVersion);
671
+
672
+ return mergedParserOptions;
673
+ }
674
+
675
+ /**
676
+ * Converts parserOptions to languageOptions for backwards compatibility with eslintrc.
677
+ * @param {ConfigData} config Config object.
678
+ * @param {Object} config.globals Global variable definitions.
679
+ * @param {Parser} config.parser The parser to use.
680
+ * @param {ParserOptions} config.parserOptions The parserOptions to use.
681
+ * @returns {LanguageOptions} The languageOptions equivalent.
682
+ */
683
+ function createLanguageOptions({ globals: configuredGlobals, parser, parserOptions }) {
684
+
685
+ const {
686
+ ecmaVersion,
687
+ sourceType
688
+ } = parserOptions;
689
+
690
+ return {
691
+ globals: configuredGlobals,
692
+ ecmaVersion: normalizeEcmaVersionForLanguageOptions(ecmaVersion),
693
+ sourceType,
694
+ parser,
695
+ parserOptions
696
+ };
697
+ }
698
+
699
+ /**
700
+ * Combines the provided globals object with the globals from environments
701
+ * @param {Record<string, GlobalConf>} providedGlobals The 'globals' key in a config
702
+ * @param {Environment[]} enabledEnvironments The environments enabled in configuration and with inline comments
703
+ * @returns {Record<string, GlobalConf>} The resolved globals object
704
+ */
705
+ function resolveGlobals(providedGlobals, enabledEnvironments) {
706
+ return Object.assign(
707
+ {},
708
+ ...enabledEnvironments.filter(env => env.globals).map(env => env.globals),
709
+ providedGlobals
710
+ );
711
+ }
712
+
713
+ /**
714
+ * Strips Unicode BOM from a given text.
715
+ * @param {string} text A text to strip.
716
+ * @returns {string} The stripped text.
717
+ */
718
+ function stripUnicodeBOM(text) {
719
+
720
+ /*
721
+ * Check Unicode BOM.
722
+ * In JavaScript, string data is stored as UTF-16, so BOM is 0xFEFF.
723
+ * http://www.ecma-international.org/ecma-262/6.0/#sec-unicode-format-control-characters
724
+ */
725
+ if (text.charCodeAt(0) === 0xFEFF) {
726
+ return text.slice(1);
727
+ }
728
+ return text;
729
+ }
730
+
731
+ /**
732
+ * Get the options for a rule (not including severity), if any
733
+ * @param {Array|number} ruleConfig rule configuration
734
+ * @returns {Array} of rule options, empty Array if none
735
+ */
736
+ function getRuleOptions(ruleConfig) {
737
+ if (Array.isArray(ruleConfig)) {
738
+ return ruleConfig.slice(1);
739
+ }
740
+ return [];
741
+
742
+ }
743
+
744
+ /**
745
+ * Analyze scope of the given AST.
746
+ * @param {ASTNode} ast The `Program` node to analyze.
747
+ * @param {LanguageOptions} languageOptions The parser options.
748
+ * @param {Record<string, string[]>} visitorKeys The visitor keys.
749
+ * @returns {ScopeManager} The analysis result.
750
+ */
751
+ function analyzeScope(ast, languageOptions, visitorKeys) {
752
+ const parserOptions = languageOptions.parserOptions;
753
+ const ecmaFeatures = parserOptions.ecmaFeatures || {};
754
+ const ecmaVersion = languageOptions.ecmaVersion || DEFAULT_ECMA_VERSION;
755
+
756
+ return eslintScope.analyze(ast, {
757
+ ignoreEval: true,
758
+ nodejsScope: ecmaFeatures.globalReturn,
759
+ impliedStrict: ecmaFeatures.impliedStrict,
760
+ ecmaVersion: typeof ecmaVersion === "number" ? ecmaVersion : 6,
761
+ sourceType: languageOptions.sourceType || "script",
762
+ childVisitorKeys: visitorKeys || evk.KEYS,
763
+ fallback: Traverser.getKeys
764
+ });
765
+ }
766
+
767
+ /**
768
+ * Parses text into an AST. Moved out here because the try-catch prevents
769
+ * optimization of functions, so it's best to keep the try-catch as isolated
770
+ * as possible
771
+ * @param {string} text The text to parse.
772
+ * @param {LanguageOptions} languageOptions Options to pass to the parser
773
+ * @param {string} filePath The path to the file being parsed.
774
+ * @returns {{success: false, error: Problem}|{success: true, sourceCode: SourceCode}}
775
+ * An object containing the AST and parser services if parsing was successful, or the error if parsing failed
776
+ * @private
777
+ */
778
+ function parse(text, languageOptions, filePath) {
779
+ const textToParse = stripUnicodeBOM(text).replace(astUtils.shebangPattern, (match, captured) => `//${captured}`);
780
+ const { ecmaVersion, sourceType, parser } = languageOptions;
781
+ const parserOptions = Object.assign(
782
+ { ecmaVersion, sourceType },
783
+ languageOptions.parserOptions,
784
+ {
785
+ loc: true,
786
+ range: true,
787
+ raw: true,
788
+ tokens: true,
789
+ comment: true,
790
+ eslintVisitorKeys: true,
791
+ eslintScopeManager: true,
792
+ filePath
793
+ }
794
+ );
795
+
796
+ /*
797
+ * Check for parsing errors first. If there's a parsing error, nothing
798
+ * else can happen. However, a parsing error does not throw an error
799
+ * from this method - it's just considered a fatal error message, a
800
+ * problem that ESLint identified just like any other.
801
+ */
802
+ try {
803
+ debug("Parsing:", filePath);
804
+ const parseResult = (typeof parser.parseForESLint === "function")
805
+ ? parser.parseForESLint(textToParse, parserOptions)
806
+ : { ast: parser.parse(textToParse, parserOptions) };
807
+
808
+ debug("Parsing successful:", filePath);
809
+ const ast = parseResult.ast;
810
+ const parserServices = parseResult.services || {};
811
+ const visitorKeys = parseResult.visitorKeys || evk.KEYS;
812
+
813
+ debug("Scope analysis:", filePath);
814
+ const scopeManager = parseResult.scopeManager || analyzeScope(ast, languageOptions, visitorKeys);
815
+
816
+ debug("Scope analysis successful:", filePath);
817
+
818
+ return {
819
+ success: true,
820
+
821
+ /*
822
+ * Save all values that `parseForESLint()` returned.
823
+ * If a `SourceCode` object is given as the first parameter instead of source code text,
824
+ * linter skips the parsing process and reuses the source code object.
825
+ * In that case, linter needs all the values that `parseForESLint()` returned.
826
+ */
827
+ sourceCode: new SourceCode({
828
+ text,
829
+ ast,
830
+ parserServices,
831
+ scopeManager,
832
+ visitorKeys
833
+ })
834
+ };
835
+ } catch (ex) {
836
+
837
+ // If the message includes a leading line number, strip it:
838
+ const message = `Parsing error: ${ex.message.replace(/^line \d+:/iu, "").trim()}`;
839
+
840
+ debug("%s\n%s", message, ex.stack);
841
+
842
+ return {
843
+ success: false,
844
+ error: {
845
+ ruleId: null,
846
+ fatal: true,
847
+ severity: 2,
848
+ message,
849
+ line: ex.lineNumber,
850
+ column: ex.column
851
+ }
852
+ };
853
+ }
854
+ }
855
+
856
+ /**
857
+ * Gets the scope for the current node
858
+ * @param {ScopeManager} scopeManager The scope manager for this AST
859
+ * @param {ASTNode} currentNode The node to get the scope of
860
+ * @returns {eslint-scope.Scope} The scope information for this node
861
+ */
862
+ function getScope(scopeManager, currentNode) {
863
+
864
+ // On Program node, get the outermost scope to avoid return Node.js special function scope or ES modules scope.
865
+ const inner = currentNode.type !== "Program";
866
+
867
+ for (let node = currentNode; node; node = node.parent) {
868
+ const scope = scopeManager.acquire(node, inner);
869
+
870
+ if (scope) {
871
+ if (scope.type === "function-expression-name") {
872
+ return scope.childScopes[0];
873
+ }
874
+ return scope;
875
+ }
876
+ }
877
+
878
+ return scopeManager.scopes[0];
879
+ }
880
+
881
+ /**
882
+ * Marks a variable as used in the current scope
883
+ * @param {ScopeManager} scopeManager The scope manager for this AST. The scope may be mutated by this function.
884
+ * @param {ASTNode} currentNode The node currently being traversed
885
+ * @param {LanguageOptions} languageOptions The options used to parse this text
886
+ * @param {string} name The name of the variable that should be marked as used.
887
+ * @returns {boolean} True if the variable was found and marked as used, false if not.
888
+ */
889
+ function markVariableAsUsed(scopeManager, currentNode, languageOptions, name) {
890
+ const parserOptions = languageOptions.parserOptions;
891
+ const sourceType = languageOptions.sourceType;
892
+ const hasGlobalReturn =
893
+ (parserOptions.ecmaFeatures && parserOptions.ecmaFeatures.globalReturn) ||
894
+ sourceType === "commonjs";
895
+ const specialScope = hasGlobalReturn || sourceType === "module";
896
+ const currentScope = getScope(scopeManager, currentNode);
897
+
898
+ // Special Node.js scope means we need to start one level deeper
899
+ const initialScope = currentScope.type === "global" && specialScope ? currentScope.childScopes[0] : currentScope;
900
+
901
+ for (let scope = initialScope; scope; scope = scope.upper) {
902
+ const variable = scope.variables.find(scopeVar => scopeVar.name === name);
903
+
904
+ if (variable) {
905
+ variable.eslintUsed = true;
906
+ return true;
907
+ }
908
+ }
909
+
910
+ return false;
911
+ }
912
+
913
+ /**
914
+ * Runs a rule, and gets its listeners
915
+ * @param {Rule} rule A normalized rule with a `create` method
916
+ * @param {Context} ruleContext The context that should be passed to the rule
917
+ * @throws {any} Any error during the rule's `create`
918
+ * @returns {Object} A map of selector listeners provided by the rule
919
+ */
920
+ function createRuleListeners(rule, ruleContext) {
921
+ try {
922
+ return rule.create(ruleContext);
923
+ } catch (ex) {
924
+ ex.message = `Error while loading rule '${ruleContext.id}': ${ex.message}`;
925
+ throw ex;
926
+ }
927
+ }
928
+
929
+ /**
930
+ * Gets all the ancestors of a given node
931
+ * @param {ASTNode} node The node
932
+ * @returns {ASTNode[]} All the ancestor nodes in the AST, not including the provided node, starting
933
+ * from the root node and going inwards to the parent node.
934
+ */
935
+ function getAncestors(node) {
936
+ const ancestorsStartingAtParent = [];
937
+
938
+ for (let ancestor = node.parent; ancestor; ancestor = ancestor.parent) {
939
+ ancestorsStartingAtParent.push(ancestor);
940
+ }
941
+
942
+ return ancestorsStartingAtParent.reverse();
943
+ }
944
+
945
+ // methods that exist on SourceCode object
946
+ const DEPRECATED_SOURCECODE_PASSTHROUGHS = {
947
+ getSource: "getText",
948
+ getSourceLines: "getLines",
949
+ getAllComments: "getAllComments",
950
+ getNodeByRangeIndex: "getNodeByRangeIndex",
951
+ getComments: "getComments",
952
+ getCommentsBefore: "getCommentsBefore",
953
+ getCommentsAfter: "getCommentsAfter",
954
+ getCommentsInside: "getCommentsInside",
955
+ getJSDocComment: "getJSDocComment",
956
+ getFirstToken: "getFirstToken",
957
+ getFirstTokens: "getFirstTokens",
958
+ getLastToken: "getLastToken",
959
+ getLastTokens: "getLastTokens",
960
+ getTokenAfter: "getTokenAfter",
961
+ getTokenBefore: "getTokenBefore",
962
+ getTokenByRangeStart: "getTokenByRangeStart",
963
+ getTokens: "getTokens",
964
+ getTokensAfter: "getTokensAfter",
965
+ getTokensBefore: "getTokensBefore",
966
+ getTokensBetween: "getTokensBetween"
967
+ };
968
+
969
+ const BASE_TRAVERSAL_CONTEXT = Object.freeze(
970
+ Object.keys(DEPRECATED_SOURCECODE_PASSTHROUGHS).reduce(
971
+ (contextInfo, methodName) =>
972
+ Object.assign(contextInfo, {
973
+ [methodName](...args) {
974
+ return this.getSourceCode()[DEPRECATED_SOURCECODE_PASSTHROUGHS[methodName]](...args);
975
+ }
976
+ }),
977
+ {}
978
+ )
979
+ );
980
+
981
+ /**
982
+ * Runs the given rules on the given SourceCode object
983
+ * @param {SourceCode} sourceCode A SourceCode object for the given text
984
+ * @param {Object} configuredRules The rules configuration
985
+ * @param {function(string): Rule} ruleMapper A mapper function from rule names to rules
986
+ * @param {string | undefined} parserName The name of the parser in the config
987
+ * @param {LanguageOptions} languageOptions The options for parsing the code.
988
+ * @param {Object} settings The settings that were enabled in the config
989
+ * @param {string} filename The reported filename of the code
990
+ * @param {boolean} disableFixes If true, it doesn't make `fix` properties.
991
+ * @param {string | undefined} cwd cwd of the cli
992
+ * @param {string} physicalFilename The full path of the file on disk without any code block information
993
+ * @returns {Problem[]} An array of reported problems
994
+ */
995
+ function runRules(sourceCode, configuredRules, ruleMapper, parserName, languageOptions, settings, filename, disableFixes, cwd, physicalFilename) {
996
+ const emitter = createEmitter();
997
+ const nodeQueue = [];
998
+ let currentNode = sourceCode.ast;
999
+
1000
+ Traverser.traverse(sourceCode.ast, {
1001
+ enter(node, parent) {
1002
+ node.parent = parent;
1003
+ nodeQueue.push({ isEntering: true, node });
1004
+ },
1005
+ leave(node) {
1006
+ nodeQueue.push({ isEntering: false, node });
1007
+ },
1008
+ visitorKeys: sourceCode.visitorKeys
1009
+ });
1010
+
1011
+ /*
1012
+ * Create a frozen object with the ruleContext properties and methods that are shared by all rules.
1013
+ * All rule contexts will inherit from this object. This avoids the performance penalty of copying all the
1014
+ * properties once for each rule.
1015
+ */
1016
+ const sharedTraversalContext = Object.freeze(
1017
+ Object.assign(
1018
+ Object.create(BASE_TRAVERSAL_CONTEXT),
1019
+ {
1020
+ getAncestors: () => getAncestors(currentNode),
1021
+ getDeclaredVariables: sourceCode.scopeManager.getDeclaredVariables.bind(sourceCode.scopeManager),
1022
+ getCwd: () => cwd,
1023
+ getFilename: () => filename,
1024
+ getPhysicalFilename: () => physicalFilename || filename,
1025
+ getScope: () => getScope(sourceCode.scopeManager, currentNode),
1026
+ getSourceCode: () => sourceCode,
1027
+ markVariableAsUsed: name => markVariableAsUsed(sourceCode.scopeManager, currentNode, languageOptions, name),
1028
+ parserOptions: {
1029
+ ...languageOptions.parserOptions
1030
+ },
1031
+ parserPath: parserName,
1032
+ languageOptions,
1033
+ parserServices: sourceCode.parserServices,
1034
+ settings
1035
+ }
1036
+ )
1037
+ );
1038
+
1039
+ const lintingProblems = [];
1040
+
1041
+ Object.keys(configuredRules).forEach(ruleId => {
1042
+ const severity = ConfigOps.getRuleSeverity(configuredRules[ruleId]);
1043
+
1044
+ // not load disabled rules
1045
+ if (severity === 0) {
1046
+ return;
1047
+ }
1048
+
1049
+ const rule = ruleMapper(ruleId);
1050
+
1051
+ if (!rule) {
1052
+ lintingProblems.push(createLintingProblem({ ruleId }));
1053
+ return;
1054
+ }
1055
+
1056
+ const messageIds = rule.meta && rule.meta.messages;
1057
+ let reportTranslator = null;
1058
+ const ruleContext = Object.freeze(
1059
+ Object.assign(
1060
+ Object.create(sharedTraversalContext),
1061
+ {
1062
+ id: ruleId,
1063
+ options: getRuleOptions(configuredRules[ruleId]),
1064
+ report(...args) {
1065
+
1066
+ /*
1067
+ * Create a report translator lazily.
1068
+ * In a vast majority of cases, any given rule reports zero errors on a given
1069
+ * piece of code. Creating a translator lazily avoids the performance cost of
1070
+ * creating a new translator function for each rule that usually doesn't get
1071
+ * called.
1072
+ *
1073
+ * Using lazy report translators improves end-to-end performance by about 3%
1074
+ * with Node 8.4.0.
1075
+ */
1076
+ if (reportTranslator === null) {
1077
+ reportTranslator = createReportTranslator({
1078
+ ruleId,
1079
+ severity,
1080
+ sourceCode,
1081
+ messageIds,
1082
+ disableFixes
1083
+ });
1084
+ }
1085
+ const problem = reportTranslator(...args);
1086
+
1087
+ if (problem.fix && !(rule.meta && rule.meta.fixable)) {
1088
+ throw new Error("Fixable rules must set the `meta.fixable` property to \"code\" or \"whitespace\".");
1089
+ }
1090
+ if (problem.suggestions && !(rule.meta && rule.meta.hasSuggestions === true)) {
1091
+ if (rule.meta && rule.meta.docs && typeof rule.meta.docs.suggestion !== "undefined") {
1092
+
1093
+ // Encourage migration from the former property name.
1094
+ throw new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint.");
1095
+ }
1096
+ throw new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`.");
1097
+ }
1098
+ lintingProblems.push(problem);
1099
+ }
1100
+ }
1101
+ )
1102
+ );
1103
+
1104
+ const ruleListeners = createRuleListeners(rule, ruleContext);
1105
+
1106
+ /**
1107
+ * Include `ruleId` in error logs
1108
+ * @param {Function} ruleListener A rule method that listens for a node.
1109
+ * @returns {Function} ruleListener wrapped in error handler
1110
+ */
1111
+ function addRuleErrorHandler(ruleListener) {
1112
+ return function ruleErrorHandler(...listenerArgs) {
1113
+ try {
1114
+ return ruleListener(...listenerArgs);
1115
+ } catch (e) {
1116
+ e.ruleId = ruleId;
1117
+ throw e;
1118
+ }
1119
+ };
1120
+ }
1121
+
1122
+ // add all the selectors from the rule as listeners
1123
+ Object.keys(ruleListeners).forEach(selector => {
1124
+ const ruleListener = timing.enabled
1125
+ ? timing.time(ruleId, ruleListeners[selector])
1126
+ : ruleListeners[selector];
1127
+
1128
+ emitter.on(
1129
+ selector,
1130
+ addRuleErrorHandler(ruleListener)
1131
+ );
1132
+ });
1133
+ });
1134
+
1135
+ // only run code path analyzer if the top level node is "Program", skip otherwise
1136
+ const eventGenerator = nodeQueue[0].node.type === "Program"
1137
+ ? new CodePathAnalyzer(new NodeEventGenerator(emitter, { visitorKeys: sourceCode.visitorKeys, fallback: Traverser.getKeys }))
1138
+ : new NodeEventGenerator(emitter, { visitorKeys: sourceCode.visitorKeys, fallback: Traverser.getKeys });
1139
+
1140
+ nodeQueue.forEach(traversalInfo => {
1141
+ currentNode = traversalInfo.node;
1142
+
1143
+ try {
1144
+ if (traversalInfo.isEntering) {
1145
+ eventGenerator.enterNode(currentNode);
1146
+ } else {
1147
+ eventGenerator.leaveNode(currentNode);
1148
+ }
1149
+ } catch (err) {
1150
+ err.currentNode = currentNode;
1151
+ throw err;
1152
+ }
1153
+ });
1154
+
1155
+ return lintingProblems;
1156
+ }
1157
+
1158
+ /**
1159
+ * Ensure the source code to be a string.
1160
+ * @param {string|SourceCode} textOrSourceCode The text or source code object.
1161
+ * @returns {string} The source code text.
1162
+ */
1163
+ function ensureText(textOrSourceCode) {
1164
+ if (typeof textOrSourceCode === "object") {
1165
+ const { hasBOM, text } = textOrSourceCode;
1166
+ const bom = hasBOM ? "\uFEFF" : "";
1167
+
1168
+ return bom + text;
1169
+ }
1170
+
1171
+ return String(textOrSourceCode);
1172
+ }
1173
+
1174
+ /**
1175
+ * Get an environment.
1176
+ * @param {LinterInternalSlots} slots The internal slots of Linter.
1177
+ * @param {string} envId The environment ID to get.
1178
+ * @returns {Environment|null} The environment.
1179
+ */
1180
+ function getEnv(slots, envId) {
1181
+ return (
1182
+ (slots.lastConfigArray && slots.lastConfigArray.pluginEnvironments.get(envId)) ||
1183
+ BuiltInEnvironments.get(envId) ||
1184
+ null
1185
+ );
1186
+ }
1187
+
1188
+ /**
1189
+ * Get a rule.
1190
+ * @param {LinterInternalSlots} slots The internal slots of Linter.
1191
+ * @param {string} ruleId The rule ID to get.
1192
+ * @returns {Rule|null} The rule.
1193
+ */
1194
+ function getRule(slots, ruleId) {
1195
+ return (
1196
+ (slots.lastConfigArray && slots.lastConfigArray.pluginRules.get(ruleId)) ||
1197
+ slots.ruleMap.get(ruleId)
1198
+ );
1199
+ }
1200
+
1201
+ /**
1202
+ * Normalize the value of the cwd
1203
+ * @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.
1204
+ * @returns {string | undefined} normalized cwd
1205
+ */
1206
+ function normalizeCwd(cwd) {
1207
+ if (cwd) {
1208
+ return cwd;
1209
+ }
1210
+ if (typeof process === "object") {
1211
+ return process.cwd();
1212
+ }
1213
+
1214
+ // It's more explicit to assign the undefined
1215
+ // eslint-disable-next-line no-undefined -- Consistently returning a value
1216
+ return undefined;
1217
+ }
1218
+
1219
+ /**
1220
+ * The map to store private data.
1221
+ * @type {WeakMap<Linter, LinterInternalSlots>}
1222
+ */
1223
+ const internalSlotsMap = new WeakMap();
1224
+
1225
+ /**
1226
+ * Throws an error when the given linter is in flat config mode.
1227
+ * @param {Linter} linter The linter to check.
1228
+ * @returns {void}
1229
+ * @throws {Error} If the linter is in flat config mode.
1230
+ */
1231
+ function assertEslintrcConfig(linter) {
1232
+ const { configType } = internalSlotsMap.get(linter);
1233
+
1234
+ if (configType === "flat") {
1235
+ throw new Error("This method cannot be used with flat config. Add your entries directly into the config array.");
1236
+ }
1237
+ }
1238
+
1239
+
1240
+ //------------------------------------------------------------------------------
1241
+ // Public Interface
1242
+ //------------------------------------------------------------------------------
1243
+
1244
+ /**
1245
+ * Object that is responsible for verifying JavaScript text
1246
+ * @name Linter
1247
+ */
1248
+ class Linter {
1249
+
1250
+ /**
1251
+ * Initialize the Linter.
1252
+ * @param {Object} [config] the config object
1253
+ * @param {string} [config.cwd] path to a directory that should be considered as the current working directory, can be undefined.
1254
+ * @param {"flat"|"eslintrc"} [config.configType="eslintrc"] the type of config used.
1255
+ */
1256
+ constructor({ cwd, configType } = {}) {
1257
+ internalSlotsMap.set(this, {
1258
+ cwd: normalizeCwd(cwd),
1259
+ lastConfigArray: null,
1260
+ lastSourceCode: null,
1261
+ lastSuppressedMessages: [],
1262
+ configType, // TODO: Remove after flat config conversion
1263
+ parserMap: new Map([["espree", espree]]),
1264
+ ruleMap: new Rules()
1265
+ });
1266
+
1267
+ this.version = pkg.version;
1268
+ }
1269
+
1270
+ /**
1271
+ * Getter for package version.
1272
+ * @static
1273
+ * @returns {string} The version from package.json.
1274
+ */
1275
+ static get version() {
1276
+ return pkg.version;
1277
+ }
1278
+
1279
+ /**
1280
+ * Same as linter.verify, except without support for processors.
1281
+ * @param {string|SourceCode} textOrSourceCode The text to parse or a SourceCode object.
1282
+ * @param {ConfigData} providedConfig An ESLintConfig instance to configure everything.
1283
+ * @param {VerifyOptions} [providedOptions] The optional filename of the file being checked.
1284
+ * @throws {Error} If during rule execution.
1285
+ * @returns {(LintMessage|SuppressedLintMessage)[]} The results as an array of messages or an empty array if no messages.
1286
+ */
1287
+ _verifyWithoutProcessors(textOrSourceCode, providedConfig, providedOptions) {
1288
+ const slots = internalSlotsMap.get(this);
1289
+ const config = providedConfig || {};
1290
+ const options = normalizeVerifyOptions(providedOptions, config);
1291
+ let text;
1292
+
1293
+ // evaluate arguments
1294
+ if (typeof textOrSourceCode === "string") {
1295
+ slots.lastSourceCode = null;
1296
+ text = textOrSourceCode;
1297
+ } else {
1298
+ slots.lastSourceCode = textOrSourceCode;
1299
+ text = textOrSourceCode.text;
1300
+ }
1301
+
1302
+ // Resolve parser.
1303
+ let parserName = DEFAULT_PARSER_NAME;
1304
+ let parser = espree;
1305
+
1306
+ if (typeof config.parser === "object" && config.parser !== null) {
1307
+ parserName = config.parser.filePath;
1308
+ parser = config.parser.definition;
1309
+ } else if (typeof config.parser === "string") {
1310
+ if (!slots.parserMap.has(config.parser)) {
1311
+ return [{
1312
+ ruleId: null,
1313
+ fatal: true,
1314
+ severity: 2,
1315
+ message: `Configured parser '${config.parser}' was not found.`,
1316
+ line: 0,
1317
+ column: 0
1318
+ }];
1319
+ }
1320
+ parserName = config.parser;
1321
+ parser = slots.parserMap.get(config.parser);
1322
+ }
1323
+
1324
+ // search and apply "eslint-env *".
1325
+ const envInFile = options.allowInlineConfig && !options.warnInlineConfig
1326
+ ? findEslintEnv(text)
1327
+ : {};
1328
+ const resolvedEnvConfig = Object.assign({ builtin: true }, config.env, envInFile);
1329
+ const enabledEnvs = Object.keys(resolvedEnvConfig)
1330
+ .filter(envName => resolvedEnvConfig[envName])
1331
+ .map(envName => getEnv(slots, envName))
1332
+ .filter(env => env);
1333
+
1334
+ const parserOptions = resolveParserOptions(parser, config.parserOptions || {}, enabledEnvs);
1335
+ const configuredGlobals = resolveGlobals(config.globals || {}, enabledEnvs);
1336
+ const settings = config.settings || {};
1337
+ const languageOptions = createLanguageOptions({
1338
+ globals: config.globals,
1339
+ parser,
1340
+ parserOptions
1341
+ });
1342
+
1343
+ if (!slots.lastSourceCode) {
1344
+ const parseResult = parse(
1345
+ text,
1346
+ languageOptions,
1347
+ options.filename
1348
+ );
1349
+
1350
+ if (!parseResult.success) {
1351
+ return [parseResult.error];
1352
+ }
1353
+
1354
+ slots.lastSourceCode = parseResult.sourceCode;
1355
+ } else {
1356
+
1357
+ /*
1358
+ * If the given source code object as the first argument does not have scopeManager, analyze the scope.
1359
+ * This is for backward compatibility (SourceCode is frozen so it cannot rebind).
1360
+ */
1361
+ if (!slots.lastSourceCode.scopeManager) {
1362
+ slots.lastSourceCode = new SourceCode({
1363
+ text: slots.lastSourceCode.text,
1364
+ ast: slots.lastSourceCode.ast,
1365
+ parserServices: slots.lastSourceCode.parserServices,
1366
+ visitorKeys: slots.lastSourceCode.visitorKeys,
1367
+ scopeManager: analyzeScope(slots.lastSourceCode.ast, languageOptions)
1368
+ });
1369
+ }
1370
+ }
1371
+
1372
+ const sourceCode = slots.lastSourceCode;
1373
+ const commentDirectives = options.allowInlineConfig
1374
+ ? getDirectiveComments(sourceCode.ast, ruleId => getRule(slots, ruleId), options.warnInlineConfig)
1375
+ : { configuredRules: {}, enabledGlobals: {}, exportedVariables: {}, problems: [], disableDirectives: [] };
1376
+
1377
+ // augment global scope with declared global variables
1378
+ addDeclaredGlobals(
1379
+ sourceCode.scopeManager.scopes[0],
1380
+ configuredGlobals,
1381
+ { exportedVariables: commentDirectives.exportedVariables, enabledGlobals: commentDirectives.enabledGlobals }
1382
+ );
1383
+
1384
+ const configuredRules = Object.assign({}, config.rules, commentDirectives.configuredRules);
1385
+
1386
+ let lintingProblems;
1387
+
1388
+ try {
1389
+ lintingProblems = runRules(
1390
+ sourceCode,
1391
+ configuredRules,
1392
+ ruleId => getRule(slots, ruleId),
1393
+ parserName,
1394
+ languageOptions,
1395
+ settings,
1396
+ options.filename,
1397
+ options.disableFixes,
1398
+ slots.cwd,
1399
+ providedOptions.physicalFilename
1400
+ );
1401
+ } catch (err) {
1402
+ err.message += `\nOccurred while linting ${options.filename}`;
1403
+ debug("An error occurred while traversing");
1404
+ debug("Filename:", options.filename);
1405
+ if (err.currentNode) {
1406
+ const { line } = err.currentNode.loc.start;
1407
+
1408
+ debug("Line:", line);
1409
+ err.message += `:${line}`;
1410
+ }
1411
+ debug("Parser Options:", parserOptions);
1412
+ debug("Parser Path:", parserName);
1413
+ debug("Settings:", settings);
1414
+
1415
+ if (err.ruleId) {
1416
+ err.message += `\nRule: "${err.ruleId}"`;
1417
+ }
1418
+
1419
+ throw err;
1420
+ }
1421
+
1422
+ return applyDisableDirectives({
1423
+ directives: commentDirectives.disableDirectives,
1424
+ disableFixes: options.disableFixes,
1425
+ problems: lintingProblems
1426
+ .concat(commentDirectives.problems)
1427
+ .sort((problemA, problemB) => problemA.line - problemB.line || problemA.column - problemB.column),
1428
+ reportUnusedDisableDirectives: options.reportUnusedDisableDirectives
1429
+ });
1430
+ }
1431
+
1432
+ /**
1433
+ * Verifies the text against the rules specified by the second argument.
1434
+ * @param {string|SourceCode} textOrSourceCode The text to parse or a SourceCode object.
1435
+ * @param {ConfigData|ConfigArray} config An ESLintConfig instance to configure everything.
1436
+ * @param {(string|(VerifyOptions&ProcessorOptions))} [filenameOrOptions] The optional filename of the file being checked.
1437
+ * If this is not set, the filename will default to '<input>' in the rule context. If
1438
+ * an object, then it has "filename", "allowInlineConfig", and some properties.
1439
+ * @returns {LintMessage[]} The results as an array of messages or an empty array if no messages.
1440
+ */
1441
+ verify(textOrSourceCode, config, filenameOrOptions) {
1442
+ debug("Verify");
1443
+
1444
+ const { configType } = internalSlotsMap.get(this);
1445
+
1446
+ const options = typeof filenameOrOptions === "string"
1447
+ ? { filename: filenameOrOptions }
1448
+ : filenameOrOptions || {};
1449
+
1450
+ if (config) {
1451
+ if (configType === "flat") {
1452
+
1453
+ /*
1454
+ * Because of how Webpack packages up the files, we can't
1455
+ * compare directly to `FlatConfigArray` using `instanceof`
1456
+ * because it's not the same `FlatConfigArray` as in the tests.
1457
+ * So, we work around it by assuming an array is, in fact, a
1458
+ * `FlatConfigArray` if it has a `getConfig()` method.
1459
+ */
1460
+ let configArray = config;
1461
+
1462
+ if (!Array.isArray(config) || typeof config.getConfig !== "function") {
1463
+ configArray = new FlatConfigArray(config);
1464
+ configArray.normalizeSync();
1465
+ }
1466
+
1467
+ return this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(textOrSourceCode, configArray, options, true));
1468
+ }
1469
+
1470
+ if (typeof config.extractConfig === "function") {
1471
+ return this._distinguishSuppressedMessages(this._verifyWithConfigArray(textOrSourceCode, config, options));
1472
+ }
1473
+ }
1474
+
1475
+ /*
1476
+ * If we get to here, it means `config` is just an object rather
1477
+ * than a config array so we can go right into linting.
1478
+ */
1479
+
1480
+ /*
1481
+ * `Linter` doesn't support `overrides` property in configuration.
1482
+ * So we cannot apply multiple processors.
1483
+ */
1484
+ if (options.preprocess || options.postprocess) {
1485
+ return this._distinguishSuppressedMessages(this._verifyWithProcessor(textOrSourceCode, config, options));
1486
+ }
1487
+ return this._distinguishSuppressedMessages(this._verifyWithoutProcessors(textOrSourceCode, config, options));
1488
+ }
1489
+
1490
+ /**
1491
+ * Verify with a processor.
1492
+ * @param {string|SourceCode} textOrSourceCode The source code.
1493
+ * @param {FlatConfig} config The config array.
1494
+ * @param {VerifyOptions&ProcessorOptions} options The options.
1495
+ * @param {FlatConfigArray} [configForRecursive] The `ConfigArray` object to apply multiple processors recursively.
1496
+ * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems.
1497
+ */
1498
+ _verifyWithFlatConfigArrayAndProcessor(textOrSourceCode, config, options, configForRecursive) {
1499
+ const filename = options.filename || "<input>";
1500
+ const filenameToExpose = normalizeFilename(filename);
1501
+ const physicalFilename = options.physicalFilename || filenameToExpose;
1502
+ const text = ensureText(textOrSourceCode);
1503
+ const preprocess = options.preprocess || (rawText => [rawText]);
1504
+ const postprocess = options.postprocess || (messagesList => messagesList.flat());
1505
+ const filterCodeBlock =
1506
+ options.filterCodeBlock ||
1507
+ (blockFilename => blockFilename.endsWith(".js"));
1508
+ const originalExtname = path.extname(filename);
1509
+ const messageLists = preprocess(text, filenameToExpose).map((block, i) => {
1510
+ debug("A code block was found: %o", block.filename || "(unnamed)");
1511
+
1512
+ // Keep the legacy behavior.
1513
+ if (typeof block === "string") {
1514
+ return this._verifyWithFlatConfigArrayAndWithoutProcessors(block, config, options);
1515
+ }
1516
+
1517
+ const blockText = block.text;
1518
+ const blockName = path.join(filename, `${i}_${block.filename}`);
1519
+
1520
+ // Skip this block if filtered.
1521
+ if (!filterCodeBlock(blockName, blockText)) {
1522
+ debug("This code block was skipped.");
1523
+ return [];
1524
+ }
1525
+
1526
+ // Resolve configuration again if the file content or extension was changed.
1527
+ if (configForRecursive && (text !== blockText || path.extname(blockName) !== originalExtname)) {
1528
+ debug("Resolving configuration again because the file content or extension was changed.");
1529
+ return this._verifyWithFlatConfigArray(
1530
+ blockText,
1531
+ configForRecursive,
1532
+ { ...options, filename: blockName, physicalFilename }
1533
+ );
1534
+ }
1535
+
1536
+ // Does lint.
1537
+ return this._verifyWithFlatConfigArrayAndWithoutProcessors(
1538
+ blockText,
1539
+ config,
1540
+ { ...options, filename: blockName, physicalFilename }
1541
+ );
1542
+ });
1543
+
1544
+ return postprocess(messageLists, filenameToExpose);
1545
+ }
1546
+
1547
+ /**
1548
+ * Same as linter.verify, except without support for processors.
1549
+ * @param {string|SourceCode} textOrSourceCode The text to parse or a SourceCode object.
1550
+ * @param {FlatConfig} providedConfig An ESLintConfig instance to configure everything.
1551
+ * @param {VerifyOptions} [providedOptions] The optional filename of the file being checked.
1552
+ * @throws {Error} If during rule execution.
1553
+ * @returns {(LintMessage|SuppressedLintMessage)[]} The results as an array of messages or an empty array if no messages.
1554
+ */
1555
+ _verifyWithFlatConfigArrayAndWithoutProcessors(textOrSourceCode, providedConfig, providedOptions) {
1556
+ const slots = internalSlotsMap.get(this);
1557
+ const config = providedConfig || {};
1558
+ const options = normalizeVerifyOptions(providedOptions, config);
1559
+ let text;
1560
+
1561
+ // evaluate arguments
1562
+ if (typeof textOrSourceCode === "string") {
1563
+ slots.lastSourceCode = null;
1564
+ text = textOrSourceCode;
1565
+ } else {
1566
+ slots.lastSourceCode = textOrSourceCode;
1567
+ text = textOrSourceCode.text;
1568
+ }
1569
+
1570
+ const languageOptions = config.languageOptions;
1571
+
1572
+ languageOptions.ecmaVersion = normalizeEcmaVersionForLanguageOptions(
1573
+ languageOptions.ecmaVersion
1574
+ );
1575
+
1576
+ // add configured globals and language globals
1577
+ const configuredGlobals = {
1578
+ ...(getGlobalsForEcmaVersion(languageOptions.ecmaVersion)),
1579
+ ...(languageOptions.sourceType === "commonjs" ? globals.commonjs : void 0),
1580
+ ...languageOptions.globals
1581
+ };
1582
+
1583
+ // Espree expects this information to be passed in
1584
+ if (isEspree(languageOptions.parser)) {
1585
+ const parserOptions = languageOptions.parserOptions;
1586
+
1587
+ if (languageOptions.sourceType) {
1588
+
1589
+ parserOptions.sourceType = languageOptions.sourceType;
1590
+
1591
+ if (
1592
+ parserOptions.sourceType === "module" &&
1593
+ parserOptions.ecmaFeatures &&
1594
+ parserOptions.ecmaFeatures.globalReturn
1595
+ ) {
1596
+ parserOptions.ecmaFeatures.globalReturn = false;
1597
+ }
1598
+ }
1599
+ }
1600
+
1601
+ const settings = config.settings || {};
1602
+
1603
+ if (!slots.lastSourceCode) {
1604
+ const parseResult = parse(
1605
+ text,
1606
+ languageOptions,
1607
+ options.filename
1608
+ );
1609
+
1610
+ if (!parseResult.success) {
1611
+ return [parseResult.error];
1612
+ }
1613
+
1614
+ slots.lastSourceCode = parseResult.sourceCode;
1615
+ } else {
1616
+
1617
+ /*
1618
+ * If the given source code object as the first argument does not have scopeManager, analyze the scope.
1619
+ * This is for backward compatibility (SourceCode is frozen so it cannot rebind).
1620
+ */
1621
+ if (!slots.lastSourceCode.scopeManager) {
1622
+ slots.lastSourceCode = new SourceCode({
1623
+ text: slots.lastSourceCode.text,
1624
+ ast: slots.lastSourceCode.ast,
1625
+ parserServices: slots.lastSourceCode.parserServices,
1626
+ visitorKeys: slots.lastSourceCode.visitorKeys,
1627
+ scopeManager: analyzeScope(slots.lastSourceCode.ast, languageOptions)
1628
+ });
1629
+ }
1630
+ }
1631
+
1632
+ const sourceCode = slots.lastSourceCode;
1633
+ const commentDirectives = options.allowInlineConfig
1634
+ ? getDirectiveComments(
1635
+ sourceCode.ast,
1636
+ ruleId => getRuleFromConfig(ruleId, config),
1637
+ options.warnInlineConfig
1638
+ )
1639
+ : { configuredRules: {}, enabledGlobals: {}, exportedVariables: {}, problems: [], disableDirectives: [] };
1640
+
1641
+ // augment global scope with declared global variables
1642
+ addDeclaredGlobals(
1643
+ sourceCode.scopeManager.scopes[0],
1644
+ configuredGlobals,
1645
+ { exportedVariables: commentDirectives.exportedVariables, enabledGlobals: commentDirectives.enabledGlobals }
1646
+ );
1647
+
1648
+ const configuredRules = Object.assign({}, config.rules, commentDirectives.configuredRules);
1649
+
1650
+ let lintingProblems;
1651
+
1652
+ try {
1653
+ lintingProblems = runRules(
1654
+ sourceCode,
1655
+ configuredRules,
1656
+ ruleId => getRuleFromConfig(ruleId, config),
1657
+ void 0,
1658
+ languageOptions,
1659
+ settings,
1660
+ options.filename,
1661
+ options.disableFixes,
1662
+ slots.cwd,
1663
+ providedOptions.physicalFilename
1664
+ );
1665
+ } catch (err) {
1666
+ err.message += `\nOccurred while linting ${options.filename}`;
1667
+ debug("An error occurred while traversing");
1668
+ debug("Filename:", options.filename);
1669
+ if (err.currentNode) {
1670
+ const { line } = err.currentNode.loc.start;
1671
+
1672
+ debug("Line:", line);
1673
+ err.message += `:${line}`;
1674
+ }
1675
+ debug("Parser Options:", languageOptions.parserOptions);
1676
+
1677
+ // debug("Parser Path:", parserName);
1678
+ debug("Settings:", settings);
1679
+
1680
+ if (err.ruleId) {
1681
+ err.message += `\nRule: "${err.ruleId}"`;
1682
+ }
1683
+
1684
+ throw err;
1685
+ }
1686
+
1687
+ return applyDisableDirectives({
1688
+ directives: commentDirectives.disableDirectives,
1689
+ disableFixes: options.disableFixes,
1690
+ problems: lintingProblems
1691
+ .concat(commentDirectives.problems)
1692
+ .sort((problemA, problemB) => problemA.line - problemB.line || problemA.column - problemB.column),
1693
+ reportUnusedDisableDirectives: options.reportUnusedDisableDirectives
1694
+ });
1695
+ }
1696
+
1697
+ /**
1698
+ * Verify a given code with `ConfigArray`.
1699
+ * @param {string|SourceCode} textOrSourceCode The source code.
1700
+ * @param {ConfigArray} configArray The config array.
1701
+ * @param {VerifyOptions&ProcessorOptions} options The options.
1702
+ * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems.
1703
+ */
1704
+ _verifyWithConfigArray(textOrSourceCode, configArray, options) {
1705
+ debug("With ConfigArray: %s", options.filename);
1706
+
1707
+ // Store the config array in order to get plugin envs and rules later.
1708
+ internalSlotsMap.get(this).lastConfigArray = configArray;
1709
+
1710
+ // Extract the final config for this file.
1711
+ const config = configArray.extractConfig(options.filename);
1712
+ const processor =
1713
+ config.processor &&
1714
+ configArray.pluginProcessors.get(config.processor);
1715
+
1716
+ // Verify.
1717
+ if (processor) {
1718
+ debug("Apply the processor: %o", config.processor);
1719
+ const { preprocess, postprocess, supportsAutofix } = processor;
1720
+ const disableFixes = options.disableFixes || !supportsAutofix;
1721
+
1722
+ return this._verifyWithProcessor(
1723
+ textOrSourceCode,
1724
+ config,
1725
+ { ...options, disableFixes, postprocess, preprocess },
1726
+ configArray
1727
+ );
1728
+ }
1729
+ return this._verifyWithoutProcessors(textOrSourceCode, config, options);
1730
+ }
1731
+
1732
+ /**
1733
+ * Verify a given code with a flat config.
1734
+ * @param {string|SourceCode} textOrSourceCode The source code.
1735
+ * @param {FlatConfigArray} configArray The config array.
1736
+ * @param {VerifyOptions&ProcessorOptions} options The options.
1737
+ * @param {boolean} [firstCall=false] Indicates if this is being called directly
1738
+ * from verify(). (TODO: Remove once eslintrc is removed.)
1739
+ * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems.
1740
+ */
1741
+ _verifyWithFlatConfigArray(textOrSourceCode, configArray, options, firstCall = false) {
1742
+ debug("With flat config: %s", options.filename);
1743
+
1744
+ // we need a filename to match configs against
1745
+ const filename = options.filename || "<input>";
1746
+
1747
+ // Store the config array in order to get plugin envs and rules later.
1748
+ internalSlotsMap.get(this).lastConfigArray = configArray;
1749
+ const config = configArray.getConfig(filename);
1750
+
1751
+ // Verify.
1752
+ if (config.processor) {
1753
+ debug("Apply the processor: %o", config.processor);
1754
+ const { preprocess, postprocess, supportsAutofix } = config.processor;
1755
+ const disableFixes = options.disableFixes || !supportsAutofix;
1756
+
1757
+ return this._verifyWithFlatConfigArrayAndProcessor(
1758
+ textOrSourceCode,
1759
+ config,
1760
+ { ...options, filename, disableFixes, postprocess, preprocess },
1761
+ configArray
1762
+ );
1763
+ }
1764
+
1765
+ // check for options-based processing
1766
+ if (firstCall && (options.preprocess || options.postprocess)) {
1767
+ return this._verifyWithFlatConfigArrayAndProcessor(textOrSourceCode, config, options);
1768
+ }
1769
+
1770
+ return this._verifyWithFlatConfigArrayAndWithoutProcessors(textOrSourceCode, config, options);
1771
+ }
1772
+
1773
+ /**
1774
+ * Verify with a processor.
1775
+ * @param {string|SourceCode} textOrSourceCode The source code.
1776
+ * @param {ConfigData|ExtractedConfig} config The config array.
1777
+ * @param {VerifyOptions&ProcessorOptions} options The options.
1778
+ * @param {ConfigArray} [configForRecursive] The `ConfigArray` object to apply multiple processors recursively.
1779
+ * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems.
1780
+ */
1781
+ _verifyWithProcessor(textOrSourceCode, config, options, configForRecursive) {
1782
+ const filename = options.filename || "<input>";
1783
+ const filenameToExpose = normalizeFilename(filename);
1784
+ const physicalFilename = options.physicalFilename || filenameToExpose;
1785
+ const text = ensureText(textOrSourceCode);
1786
+ const preprocess = options.preprocess || (rawText => [rawText]);
1787
+
1788
+ const postprocess = options.postprocess || (messagesList => messagesList.flat());
1789
+ const filterCodeBlock =
1790
+ options.filterCodeBlock ||
1791
+ (blockFilename => blockFilename.endsWith(".js"));
1792
+ const originalExtname = path.extname(filename);
1793
+ const messageLists = preprocess(text, filenameToExpose).map((block, i) => {
1794
+ debug("A code block was found: %o", block.filename || "(unnamed)");
1795
+
1796
+ // Keep the legacy behavior.
1797
+ if (typeof block === "string") {
1798
+ return this._verifyWithoutProcessors(block, config, options);
1799
+ }
1800
+
1801
+ const blockText = block.text;
1802
+ const blockName = path.join(filename, `${i}_${block.filename}`);
1803
+
1804
+ // Skip this block if filtered.
1805
+ if (!filterCodeBlock(blockName, blockText)) {
1806
+ debug("This code block was skipped.");
1807
+ return [];
1808
+ }
1809
+
1810
+ // Resolve configuration again if the file content or extension was changed.
1811
+ if (configForRecursive && (text !== blockText || path.extname(blockName) !== originalExtname)) {
1812
+ debug("Resolving configuration again because the file content or extension was changed.");
1813
+ return this._verifyWithConfigArray(
1814
+ blockText,
1815
+ configForRecursive,
1816
+ { ...options, filename: blockName, physicalFilename }
1817
+ );
1818
+ }
1819
+
1820
+ // Does lint.
1821
+ return this._verifyWithoutProcessors(
1822
+ blockText,
1823
+ config,
1824
+ { ...options, filename: blockName, physicalFilename }
1825
+ );
1826
+ });
1827
+
1828
+ return postprocess(messageLists, filenameToExpose);
1829
+ }
1830
+
1831
+ /**
1832
+ * Given a list of reported problems, distinguish problems between normal messages and suppressed messages.
1833
+ * The normal messages will be returned and the suppressed messages will be stored as lastSuppressedMessages.
1834
+ * @param {Problem[]} problems A list of reported problems.
1835
+ * @returns {LintMessage[]} A list of LintMessage.
1836
+ */
1837
+ _distinguishSuppressedMessages(problems) {
1838
+ const messages = [];
1839
+ const suppressedMessages = [];
1840
+ const slots = internalSlotsMap.get(this);
1841
+
1842
+ for (const problem of problems) {
1843
+ if (problem.suppressions) {
1844
+ suppressedMessages.push(problem);
1845
+ } else {
1846
+ messages.push(problem);
1847
+ }
1848
+ }
1849
+
1850
+ slots.lastSuppressedMessages = suppressedMessages;
1851
+
1852
+ return messages;
1853
+ }
1854
+
1855
+ /**
1856
+ * Gets the SourceCode object representing the parsed source.
1857
+ * @returns {SourceCode} The SourceCode object.
1858
+ */
1859
+ getSourceCode() {
1860
+ return internalSlotsMap.get(this).lastSourceCode;
1861
+ }
1862
+
1863
+ /**
1864
+ * Gets the list of SuppressedLintMessage produced in the last running.
1865
+ * @returns {SuppressedLintMessage[]} The list of SuppressedLintMessage
1866
+ */
1867
+ getSuppressedMessages() {
1868
+ return internalSlotsMap.get(this).lastSuppressedMessages;
1869
+ }
1870
+
1871
+ /**
1872
+ * Defines a new linting rule.
1873
+ * @param {string} ruleId A unique rule identifier
1874
+ * @param {Function | Rule} ruleModule Function from context to object mapping AST node types to event handlers
1875
+ * @returns {void}
1876
+ */
1877
+ defineRule(ruleId, ruleModule) {
1878
+ assertEslintrcConfig(this);
1879
+ internalSlotsMap.get(this).ruleMap.define(ruleId, ruleModule);
1880
+ }
1881
+
1882
+ /**
1883
+ * Defines many new linting rules.
1884
+ * @param {Record<string, Function | Rule>} rulesToDefine map from unique rule identifier to rule
1885
+ * @returns {void}
1886
+ */
1887
+ defineRules(rulesToDefine) {
1888
+ assertEslintrcConfig(this);
1889
+ Object.getOwnPropertyNames(rulesToDefine).forEach(ruleId => {
1890
+ this.defineRule(ruleId, rulesToDefine[ruleId]);
1891
+ });
1892
+ }
1893
+
1894
+ /**
1895
+ * Gets an object with all loaded rules.
1896
+ * @returns {Map<string, Rule>} All loaded rules
1897
+ */
1898
+ getRules() {
1899
+ assertEslintrcConfig(this);
1900
+ const { lastConfigArray, ruleMap } = internalSlotsMap.get(this);
1901
+
1902
+ return new Map(function *() {
1903
+ yield* ruleMap;
1904
+
1905
+ if (lastConfigArray) {
1906
+ yield* lastConfigArray.pluginRules;
1907
+ }
1908
+ }());
1909
+ }
1910
+
1911
+ /**
1912
+ * Define a new parser module
1913
+ * @param {string} parserId Name of the parser
1914
+ * @param {Parser} parserModule The parser object
1915
+ * @returns {void}
1916
+ */
1917
+ defineParser(parserId, parserModule) {
1918
+ assertEslintrcConfig(this);
1919
+ internalSlotsMap.get(this).parserMap.set(parserId, parserModule);
1920
+ }
1921
+
1922
+ /**
1923
+ * Performs multiple autofix passes over the text until as many fixes as possible
1924
+ * have been applied.
1925
+ * @param {string} text The source text to apply fixes to.
1926
+ * @param {ConfigData|ConfigArray|FlatConfigArray} config The ESLint config object to use.
1927
+ * @param {VerifyOptions&ProcessorOptions&FixOptions} options The ESLint options object to use.
1928
+ * @returns {{fixed:boolean,messages:LintMessage[],output:string}} The result of the fix operation as returned from the
1929
+ * SourceCodeFixer.
1930
+ */
1931
+ verifyAndFix(text, config, options) {
1932
+ let messages = [],
1933
+ fixedResult,
1934
+ fixed = false,
1935
+ passNumber = 0,
1936
+ currentText = text;
1937
+ const debugTextDescription = options && options.filename || `${text.slice(0, 10)}...`;
1938
+ const shouldFix = options && typeof options.fix !== "undefined" ? options.fix : true;
1939
+
1940
+ /**
1941
+ * This loop continues until one of the following is true:
1942
+ *
1943
+ * 1. No more fixes have been applied.
1944
+ * 2. Ten passes have been made.
1945
+ *
1946
+ * That means anytime a fix is successfully applied, there will be another pass.
1947
+ * Essentially, guaranteeing a minimum of two passes.
1948
+ */
1949
+ do {
1950
+ passNumber++;
1951
+
1952
+ debug(`Linting code for ${debugTextDescription} (pass ${passNumber})`);
1953
+ messages = this.verify(currentText, config, options);
1954
+
1955
+ debug(`Generating fixed text for ${debugTextDescription} (pass ${passNumber})`);
1956
+ fixedResult = SourceCodeFixer.applyFixes(currentText, messages, shouldFix);
1957
+
1958
+ /*
1959
+ * stop if there are any syntax errors.
1960
+ * 'fixedResult.output' is a empty string.
1961
+ */
1962
+ if (messages.length === 1 && messages[0].fatal) {
1963
+ break;
1964
+ }
1965
+
1966
+ // keep track if any fixes were ever applied - important for return value
1967
+ fixed = fixed || fixedResult.fixed;
1968
+
1969
+ // update to use the fixed output instead of the original text
1970
+ currentText = fixedResult.output;
1971
+
1972
+ } while (
1973
+ fixedResult.fixed &&
1974
+ passNumber < MAX_AUTOFIX_PASSES
1975
+ );
1976
+
1977
+ /*
1978
+ * If the last result had fixes, we need to lint again to be sure we have
1979
+ * the most up-to-date information.
1980
+ */
1981
+ if (fixedResult.fixed) {
1982
+ fixedResult.messages = this.verify(currentText, config, options);
1983
+ }
1984
+
1985
+ // ensure the last result properly reflects if fixes were done
1986
+ fixedResult.fixed = fixed;
1987
+ fixedResult.output = currentText;
1988
+
1989
+ return fixedResult;
1990
+ }
1991
+ }
1992
+
1993
+ module.exports = {
1994
+ Linter,
1995
+
1996
+ /**
1997
+ * Get the internal slots of a given Linter instance for tests.
1998
+ * @param {Linter} instance The Linter instance to get.
1999
+ * @returns {LinterInternalSlots} The internal slots.
2000
+ */
2001
+ getLinterInternalSlots(instance) {
2002
+ return internalSlotsMap.get(instance);
2003
+ }
2004
+ };