decidim 0.26.0 → 0.27.0.rc1
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.
- checksums.yaml +4 -4
- data/babel.config.json +4 -6
- data/decidim-core/lib/decidim/webpacker/thread_safe_compiler.rb +30 -0
- data/decidim-core/lib/decidim/webpacker/webpack/custom.js +15 -3
- data/decidim-core/lib/decidim/webpacker/webpacker.yml +1 -1
- data/docs/README.adoc +3 -14
- data/docs/modules/configure/pages/environment_variables.adoc +833 -29
- data/docs/modules/configure/pages/index.adoc +40 -0
- data/docs/modules/configure/pages/initializer.adoc +46 -11
- data/docs/modules/customize/assets/images/error_max_budget.png +0 -0
- data/docs/modules/customize/assets/images/maximum_budget.png +0 -0
- data/docs/modules/customize/pages/code.adoc +0 -12
- data/docs/modules/customize/pages/cookies.adoc +109 -0
- data/docs/modules/customize/pages/index.adoc +28 -0
- data/docs/modules/customize/pages/logic.adoc +103 -0
- data/docs/modules/customize/pages/styles.adoc +2 -2
- data/docs/modules/develop/pages/api.adoc +3 -7
- data/docs/modules/develop/pages/guide_development_app.adoc +5 -3
- data/docs/modules/develop/pages/guide_migrate_webpacker_app.adoc +46 -6
- data/docs/modules/develop/pages/maps.adoc +6 -6
- data/docs/modules/develop/pages/metrics.adoc +4 -0
- data/docs/modules/develop/pages/modules.adoc +1 -1
- data/docs/modules/develop/pages/newsletter_templates.adoc +1 -1
- data/docs/modules/develop/pages/notifications.adoc +1 -1
- data/docs/modules/develop/pages/releases.adoc +3 -2
- data/docs/modules/develop/pages/reminders.adoc +138 -0
- data/docs/modules/develop/pages/testing.adoc +68 -4
- data/docs/modules/develop/pages/{how_to_fix_metrics.adoc → troubleshooting_metrics.adoc} +0 -0
- data/docs/modules/install/pages/checklist.adoc +1 -1
- data/docs/modules/install/pages/empty-database.adoc +32 -0
- data/docs/modules/install/pages/index.adoc +26 -17
- data/docs/modules/install/pages/manual.adoc +9 -5
- data/docs/modules/install/pages/update.adoc +3 -3
- data/docs/modules/services/pages/index.adoc +12 -0
- data/docs/modules/services/pages/maps.adoc +2 -2
- data/docs/modules/services/pages/sms.adoc +32 -0
- data/lib/decidim/gem_manager.rb +9 -7
- data/lib/decidim/version.rb +1 -1
- data/lib/decidim.rb +1 -1
- data/lib/tasks/decidim_tasks.rake +2 -2
- data/package-lock.json +12550 -18192
- data/package.json +3 -3
- data/packages/browserslist-config/package.json +1 -1
- data/packages/core/node_modules/@rails/activestorage/CHANGELOG.md +306 -0
- data/packages/core/node_modules/@rails/activestorage/README.md +194 -0
- data/packages/core/node_modules/@rails/activestorage/app/assets/javascripts/activestorage.js +942 -0
- data/packages/core/node_modules/@rails/activestorage/package.json +41 -0
- data/packages/core/node_modules/@rails/activestorage/src/blob_record.js +73 -0
- data/packages/core/node_modules/@rails/activestorage/src/blob_upload.js +35 -0
- data/packages/core/node_modules/@rails/activestorage/src/direct_upload.js +48 -0
- data/packages/core/node_modules/@rails/activestorage/src/direct_upload_controller.js +67 -0
- data/packages/core/node_modules/@rails/activestorage/src/direct_uploads_controller.js +50 -0
- data/packages/core/node_modules/@rails/activestorage/src/file_checksum.js +53 -0
- data/packages/core/node_modules/@rails/activestorage/src/helpers.js +51 -0
- data/packages/core/node_modules/@rails/activestorage/src/index.js +11 -0
- data/packages/core/node_modules/@rails/activestorage/src/ujs.js +86 -0
- data/packages/core/package.json +9 -15
- data/packages/dev/package.json +1 -1
- data/packages/elections/package.json +5 -5
- data/packages/eslint-config/package.json +1 -1
- data/packages/stylelint-config/package.json +1 -1
- data/packages/webpacker/index.js +5 -4
- data/packages/webpacker/node_modules/@eslint/eslintrc/LICENSE +21 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/README.md +61 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/conf/config-schema.js +79 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/conf/environments.js +203 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +1092 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +1 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +4295 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +1 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +533 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +523 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +115 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +145 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +238 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/index.js +19 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +225 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array-factory.js +1133 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/flat-compat.js +307 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/index-universal.js +29 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/index.js +56 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/ajv.js +191 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +135 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +325 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +63 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/naming.js +96 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +42 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/types.js +149 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/package.json +81 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/universal.js +9 -0
- data/packages/webpacker/node_modules/@humanwhocodes/config-array/CHANGELOG.md +71 -0
- data/packages/webpacker/node_modules/@humanwhocodes/config-array/LICENSE +201 -0
- data/packages/webpacker/node_modules/@humanwhocodes/config-array/README.md +301 -0
- data/packages/webpacker/node_modules/@humanwhocodes/config-array/api.js +695 -0
- data/packages/webpacker/node_modules/@humanwhocodes/config-array/package.json +61 -0
- data/packages/webpacker/node_modules/@jest/console/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/console/build/BufferedConsole.d.ts +37 -0
- data/packages/webpacker/node_modules/@jest/console/build/BufferedConsole.js +258 -0
- data/packages/webpacker/node_modules/@jest/console/build/CustomConsole.d.ts +41 -0
- data/packages/webpacker/node_modules/@jest/console/build/CustomConsole.js +240 -0
- data/packages/webpacker/node_modules/@jest/console/build/NullConsole.d.ts +23 -0
- data/packages/webpacker/node_modules/@jest/console/build/NullConsole.js +50 -0
- data/packages/webpacker/node_modules/@jest/console/build/getConsoleOutput.d.ts +10 -0
- data/packages/webpacker/node_modules/@jest/console/build/getConsoleOutput.js +101 -0
- data/packages/webpacker/node_modules/@jest/console/build/index.d.ts +11 -0
- data/packages/webpacker/node_modules/@jest/console/build/index.js +41 -0
- data/packages/webpacker/node_modules/@jest/console/build/types.d.ts +20 -0
- data/packages/webpacker/node_modules/@jest/console/build/types.js +1 -0
- data/packages/webpacker/node_modules/@jest/console/package.json +38 -0
- data/packages/webpacker/node_modules/@jest/core/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/core/README.md +3 -0
- data/packages/webpacker/node_modules/@jest/core/build/FailedTestsCache.d.ts +12 -0
- data/packages/webpacker/node_modules/@jest/core/build/FailedTestsCache.js +59 -0
- data/packages/webpacker/node_modules/@jest/core/build/FailedTestsInteractiveMode.d.ts +31 -0
- data/packages/webpacker/node_modules/@jest/core/build/FailedTestsInteractiveMode.js +262 -0
- data/packages/webpacker/node_modules/@jest/core/build/ReporterDispatcher.d.ts +22 -0
- data/packages/webpacker/node_modules/@jest/core/build/ReporterDispatcher.js +104 -0
- data/packages/webpacker/node_modules/@jest/core/build/SearchSource.d.ts +46 -0
- data/packages/webpacker/node_modules/@jest/core/build/SearchSource.js +490 -0
- data/packages/webpacker/node_modules/@jest/core/build/SnapshotInteractiveMode.d.ts +30 -0
- data/packages/webpacker/node_modules/@jest/core/build/SnapshotInteractiveMode.js +327 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestNamePatternPrompt.d.ts +17 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestNamePatternPrompt.js +86 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestPathPatternPrompt.d.ts +24 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestPathPatternPrompt.js +81 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestScheduler.d.ts +42 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestScheduler.js +570 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestWatcher.d.ts +23 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestWatcher.js +64 -0
- data/packages/webpacker/node_modules/@jest/core/build/assets/jest_logo.png +0 -0
- data/packages/webpacker/node_modules/@jest/core/build/cli/index.d.ts +12 -0
- data/packages/webpacker/node_modules/@jest/core/build/cli/index.js +399 -0
- data/packages/webpacker/node_modules/@jest/core/build/collectHandles.d.ts +10 -0
- data/packages/webpacker/node_modules/@jest/core/build/collectHandles.js +269 -0
- data/packages/webpacker/node_modules/@jest/core/build/getChangedFilesPromise.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/core/build/getChangedFilesPromise.js +77 -0
- data/packages/webpacker/node_modules/@jest/core/build/getConfigsOfProjectsToRun.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/getConfigsOfProjectsToRun.js +28 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFound.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFound.js +63 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundFailed.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundFailed.js +51 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundPassWithNoTests.d.ts +7 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundPassWithNoTests.js +30 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundRelatedToChangedFiles.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundRelatedToChangedFiles.js +57 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundVerbose.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundVerbose.js +95 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestsFoundMessage.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestsFoundMessage.js +52 -0
- data/packages/webpacker/node_modules/@jest/core/build/getProjectDisplayName.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/getProjectDisplayName.js +23 -0
- data/packages/webpacker/node_modules/@jest/core/build/getProjectNamesMissingWarning.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/getProjectNamesMissingWarning.js +49 -0
- data/packages/webpacker/node_modules/@jest/core/build/getSelectProjectsMessage.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/getSelectProjectsMessage.js +65 -0
- data/packages/webpacker/node_modules/@jest/core/build/jest.d.ts +11 -0
- data/packages/webpacker/node_modules/@jest/core/build/jest.js +49 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/activeFiltersMessage.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/activeFiltersMessage.js +54 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/createContext.d.ts +10 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/createContext.js +35 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/handleDeprecationWarnings.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/handleDeprecationWarnings.js +72 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/isValidPath.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/isValidPath.js +29 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/logDebugMessages.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/logDebugMessages.js +23 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/updateGlobalConfig.d.ts +11 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/updateGlobalConfig.js +121 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/watchPluginsHelpers.d.ts +10 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/watchPluginsHelpers.js +62 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/FailedTestsInteractive.d.ts +17 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/FailedTestsInteractive.js +135 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/Quit.d.ts +18 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/Quit.js +60 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/TestNamePattern.d.ts +21 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/TestNamePattern.js +91 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/TestPathPattern.d.ts +21 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/TestPathPattern.js +91 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/UpdateSnapshots.d.ts +21 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/UpdateSnapshots.js +70 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/UpdateSnapshotsInteractive.d.ts +20 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/UpdateSnapshotsInteractive.js +138 -0
- data/packages/webpacker/node_modules/@jest/core/build/pluralize.d.ts +7 -0
- data/packages/webpacker/node_modules/@jest/core/build/pluralize.js +16 -0
- data/packages/webpacker/node_modules/@jest/core/build/runGlobalHook.d.ts +13 -0
- data/packages/webpacker/node_modules/@jest/core/build/runGlobalHook.js +143 -0
- data/packages/webpacker/node_modules/@jest/core/build/runJest.d.ts +27 -0
- data/packages/webpacker/node_modules/@jest/core/build/runJest.js +423 -0
- data/packages/webpacker/node_modules/@jest/core/build/testSchedulerHelper.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/core/build/testSchedulerHelper.js +51 -0
- data/packages/webpacker/node_modules/@jest/core/build/types.d.ts +39 -0
- data/packages/webpacker/node_modules/@jest/core/build/types.js +1 -0
- data/packages/webpacker/node_modules/@jest/core/build/version.d.ts +7 -0
- data/packages/webpacker/node_modules/@jest/core/build/version.js +19 -0
- data/packages/webpacker/node_modules/@jest/core/build/watch.d.ts +13 -0
- data/packages/webpacker/node_modules/@jest/core/build/watch.js +769 -0
- data/packages/webpacker/node_modules/@jest/core/package.json +103 -0
- data/packages/webpacker/node_modules/@jest/environment/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/environment/build/index.d.ts +267 -0
- data/packages/webpacker/node_modules/@jest/environment/build/index.js +1 -0
- data/packages/webpacker/node_modules/@jest/environment/package.json +32 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/build/index.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/build/index.js +25 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/build/legacyFakeTimers.d.ts +67 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/build/legacyFakeTimers.js +673 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/build/modernFakeTimers.d.ts +34 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/build/modernFakeTimers.js +181 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/package.json +37 -0
- data/packages/webpacker/node_modules/@jest/globals/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/globals/build/index.d.ts +23 -0
- data/packages/webpacker/node_modules/@jest/globals/build/index.js +25 -0
- data/packages/webpacker/node_modules/@jest/globals/package.json +31 -0
- data/packages/webpacker/node_modules/@jest/reporters/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/BaseReporter.d.ts +19 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/BaseReporter.js +65 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/CoverageReporter.d.ts +24 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/CoverageReporter.js +668 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/CoverageWorker.d.ts +17 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/CoverageWorker.js +103 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/DefaultReporter.d.ts +33 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/DefaultReporter.js +254 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/NotifyReporter.d.ts +19 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/NotifyReporter.js +256 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/Status.d.ts +42 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/Status.js +272 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/SummaryReporter.d.ts +22 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/SummaryReporter.js +271 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/VerboseReporter.d.ts +27 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/VerboseReporter.js +226 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/generateEmptyCoverage.d.ts +19 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/generateEmptyCoverage.js +168 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getResultHeader.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getResultHeader.js +104 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getSnapshotStatus.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getSnapshotStatus.js +111 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getSnapshotSummary.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getSnapshotSummary.js +203 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getWatermarks.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getWatermarks.js +47 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/index.d.ts +27 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/index.js +78 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/types.d.ts +75 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/types.js +1 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/utils.d.ts +18 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/utils.js +435 -0
- data/packages/webpacker/node_modules/@jest/reporters/package.json +80 -0
- data/packages/webpacker/node_modules/@jest/source-map/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/source-map/build/getCallsite.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/source-map/build/getCallsite.js +108 -0
- data/packages/webpacker/node_modules/@jest/source-map/build/index.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/source-map/build/index.js +17 -0
- data/packages/webpacker/node_modules/@jest/source-map/build/types.d.ts +7 -0
- data/packages/webpacker/node_modules/@jest/source-map/build/types.js +1 -0
- data/packages/webpacker/node_modules/@jest/source-map/package.json +34 -0
- data/packages/webpacker/node_modules/@jest/test-result/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/formatTestResults.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/formatTestResults.js +70 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/helpers.d.ts +12 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/helpers.js +188 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/index.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/index.js +43 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/types.d.ts +171 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/types.js +1 -0
- data/packages/webpacker/node_modules/@jest/test-result/package.json +32 -0
- data/packages/webpacker/node_modules/@jest/test-sequencer/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/test-sequencer/build/index.d.ts +51 -0
- data/packages/webpacker/node_modules/@jest/test-sequencer/build/index.js +237 -0
- data/packages/webpacker/node_modules/@jest/test-sequencer/package.json +35 -0
- data/packages/webpacker/node_modules/@jest/transform/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/transform/build/ScriptTransformer.d.ts +40 -0
- data/packages/webpacker/node_modules/@jest/transform/build/ScriptTransformer.js +1115 -0
- data/packages/webpacker/node_modules/@jest/transform/build/enhanceUnexpectedTokenMessage.d.ts +12 -0
- data/packages/webpacker/node_modules/@jest/transform/build/enhanceUnexpectedTokenMessage.js +83 -0
- data/packages/webpacker/node_modules/@jest/transform/build/index.d.ts +11 -0
- data/packages/webpacker/node_modules/@jest/transform/build/index.js +41 -0
- data/packages/webpacker/node_modules/@jest/transform/build/runtimeErrorsAndWarnings.d.ts +10 -0
- data/packages/webpacker/node_modules/@jest/transform/build/runtimeErrorsAndWarnings.js +101 -0
- data/packages/webpacker/node_modules/@jest/transform/build/shouldInstrument.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/transform/build/shouldInstrument.js +207 -0
- data/packages/webpacker/node_modules/@jest/transform/build/types.d.ts +75 -0
- data/packages/webpacker/node_modules/@jest/transform/build/types.js +1 -0
- data/packages/webpacker/node_modules/@jest/transform/package.json +53 -0
- data/packages/webpacker/node_modules/@jest/types/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/types/build/Circus.d.ts +193 -0
- data/packages/webpacker/node_modules/@jest/types/build/Circus.js +1 -0
- data/packages/webpacker/node_modules/@jest/types/build/Config.d.ts +462 -0
- data/packages/webpacker/node_modules/@jest/types/build/Config.js +1 -0
- data/packages/webpacker/node_modules/@jest/types/build/Global.d.ts +95 -0
- data/packages/webpacker/node_modules/@jest/types/build/Global.js +1 -0
- data/packages/webpacker/node_modules/@jest/types/build/TestResult.d.ts +31 -0
- data/packages/webpacker/node_modules/@jest/types/build/TestResult.js +1 -0
- data/packages/webpacker/node_modules/@jest/types/build/Transform.d.ts +11 -0
- data/packages/webpacker/node_modules/@jest/types/build/Transform.js +1 -0
- data/packages/webpacker/node_modules/@jest/types/build/index.d.ts +12 -0
- data/packages/webpacker/node_modules/@jest/types/build/index.js +1 -0
- data/packages/webpacker/node_modules/@jest/types/package.json +37 -0
- data/packages/webpacker/node_modules/@sinonjs/fake-timers/CHANGELOG.md +441 -0
- data/packages/webpacker/node_modules/@sinonjs/fake-timers/LICENSE +11 -0
- data/packages/webpacker/node_modules/@sinonjs/fake-timers/README.md +353 -0
- data/packages/webpacker/node_modules/@sinonjs/fake-timers/package.json +71 -0
- data/packages/webpacker/node_modules/@sinonjs/fake-timers/src/fake-timers-src.js +1728 -0
- data/packages/webpacker/node_modules/@types/yargs/LICENSE +21 -0
- data/packages/webpacker/node_modules/@types/yargs/README.md +16 -0
- data/packages/webpacker/node_modules/@types/yargs/helpers.d.ts +5 -0
- data/packages/webpacker/node_modules/@types/yargs/index.d.ts +844 -0
- data/packages/webpacker/node_modules/@types/yargs/package.json +62 -0
- data/packages/webpacker/node_modules/@types/yargs/yargs.d.ts +9 -0
- data/packages/webpacker/node_modules/acorn/CHANGELOG.md +788 -0
- data/packages/webpacker/node_modules/acorn/LICENSE +21 -0
- data/packages/webpacker/node_modules/acorn/README.md +280 -0
- data/packages/webpacker/node_modules/acorn/bin/acorn +4 -0
- data/packages/webpacker/node_modules/acorn/dist/acorn.d.ts +214 -0
- data/packages/webpacker/node_modules/acorn/dist/acorn.js +5619 -0
- data/packages/webpacker/node_modules/acorn/dist/acorn.mjs +5588 -0
- data/packages/webpacker/node_modules/acorn/dist/acorn.mjs.d.ts +2 -0
- data/packages/webpacker/node_modules/acorn/dist/bin.js +91 -0
- data/packages/webpacker/node_modules/acorn/package.json +46 -0
- data/packages/webpacker/node_modules/ansi-styles/index.d.ts +345 -0
- data/packages/webpacker/node_modules/ansi-styles/index.js +163 -0
- data/packages/webpacker/node_modules/ansi-styles/license +9 -0
- data/packages/webpacker/node_modules/ansi-styles/package.json +56 -0
- data/packages/webpacker/node_modules/ansi-styles/readme.md +152 -0
- data/packages/webpacker/node_modules/babel-jest/LICENSE +21 -0
- data/packages/webpacker/node_modules/babel-jest/README.md +25 -0
- data/packages/webpacker/node_modules/babel-jest/build/index.d.ts +10 -0
- data/packages/webpacker/node_modules/babel-jest/build/index.js +386 -0
- data/packages/webpacker/node_modules/babel-jest/build/loadBabelConfig.d.ts +7 -0
- data/packages/webpacker/node_modules/babel-jest/build/loadBabelConfig.js +27 -0
- data/packages/webpacker/node_modules/babel-jest/package.json +45 -0
- data/packages/webpacker/node_modules/babel-plugin-jest-hoist/LICENSE +21 -0
- data/packages/webpacker/node_modules/babel-plugin-jest-hoist/README.md +33 -0
- data/packages/webpacker/node_modules/babel-plugin-jest-hoist/build/index.d.ts +13 -0
- data/packages/webpacker/node_modules/babel-plugin-jest-hoist/build/index.js +389 -0
- data/packages/webpacker/node_modules/babel-plugin-jest-hoist/package.json +41 -0
- data/packages/webpacker/node_modules/babel-preset-jest/LICENSE +21 -0
- data/packages/webpacker/node_modules/babel-preset-jest/README.md +33 -0
- data/packages/webpacker/node_modules/babel-preset-jest/index.js +14 -0
- data/packages/webpacker/node_modules/babel-preset-jest/package.json +29 -0
- data/packages/webpacker/node_modules/camelcase/index.d.ts +103 -0
- data/packages/webpacker/node_modules/camelcase/index.js +113 -0
- data/packages/webpacker/node_modules/camelcase/license +9 -0
- data/packages/webpacker/node_modules/camelcase/package.json +44 -0
- data/packages/webpacker/node_modules/camelcase/readme.md +144 -0
- data/packages/webpacker/node_modules/chalk/index.d.ts +415 -0
- data/packages/webpacker/node_modules/chalk/license +9 -0
- data/packages/webpacker/node_modules/chalk/package.json +68 -0
- data/packages/webpacker/node_modules/chalk/readme.md +341 -0
- data/packages/webpacker/node_modules/chalk/source/index.js +229 -0
- data/packages/webpacker/node_modules/chalk/source/templates.js +134 -0
- data/packages/webpacker/node_modules/chalk/source/util.js +39 -0
- data/packages/webpacker/node_modules/ci-info/CHANGELOG.md +122 -0
- data/packages/webpacker/node_modules/ci-info/LICENSE +21 -0
- data/packages/webpacker/node_modules/ci-info/README.md +118 -0
- data/packages/webpacker/node_modules/ci-info/index.d.ts +62 -0
- data/packages/webpacker/node_modules/ci-info/index.js +66 -0
- data/packages/webpacker/node_modules/ci-info/package.json +36 -0
- data/packages/webpacker/node_modules/ci-info/vendors.json +210 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/CHANGELOG.md +40 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/LICENSE +10 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/README.md +453 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/dist/lexer.js +1 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/dist/lexer.mjs +2 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/lexer.d.ts +7 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/lexer.js +1438 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/package.json +43 -0
- data/packages/webpacker/node_modules/cliui/CHANGELOG.md +121 -0
- data/packages/webpacker/node_modules/cliui/LICENSE.txt +14 -0
- data/packages/webpacker/node_modules/cliui/README.md +141 -0
- data/packages/webpacker/node_modules/cliui/build/index.cjs +302 -0
- data/packages/webpacker/node_modules/cliui/build/lib/index.js +287 -0
- data/packages/webpacker/node_modules/cliui/build/lib/string-utils.js +27 -0
- data/packages/webpacker/node_modules/cliui/index.mjs +13 -0
- data/packages/webpacker/node_modules/cliui/package.json +83 -0
- data/packages/webpacker/node_modules/color-convert/CHANGELOG.md +54 -0
- data/packages/webpacker/node_modules/color-convert/LICENSE +21 -0
- data/packages/webpacker/node_modules/color-convert/README.md +68 -0
- data/packages/webpacker/node_modules/color-convert/conversions.js +839 -0
- data/packages/webpacker/node_modules/color-convert/index.js +81 -0
- data/packages/webpacker/node_modules/color-convert/package.json +48 -0
- data/packages/webpacker/node_modules/color-convert/route.js +97 -0
- data/packages/webpacker/node_modules/color-name/LICENSE +8 -0
- data/packages/webpacker/node_modules/color-name/README.md +11 -0
- data/packages/webpacker/node_modules/color-name/index.js +152 -0
- data/packages/webpacker/node_modules/color-name/package.json +28 -0
- data/packages/webpacker/node_modules/diff-sequences/LICENSE +21 -0
- data/packages/webpacker/node_modules/diff-sequences/README.md +404 -0
- data/packages/webpacker/node_modules/diff-sequences/build/index.d.ts +18 -0
- data/packages/webpacker/node_modules/diff-sequences/build/index.js +816 -0
- data/packages/webpacker/node_modules/diff-sequences/package.json +42 -0
- data/packages/webpacker/node_modules/diff-sequences/perf/example.md +48 -0
- data/packages/webpacker/node_modules/diff-sequences/perf/index.js +170 -0
- data/packages/webpacker/node_modules/emittery/index.d.ts +432 -0
- data/packages/webpacker/node_modules/emittery/index.js +408 -0
- data/packages/webpacker/node_modules/emittery/license +9 -0
- data/packages/webpacker/node_modules/emittery/package.json +66 -0
- data/packages/webpacker/node_modules/emittery/readme.md +409 -0
- data/packages/webpacker/node_modules/escape-string-regexp/index.d.ts +18 -0
- data/packages/webpacker/node_modules/escape-string-regexp/index.js +13 -0
- data/packages/webpacker/node_modules/escape-string-regexp/license +9 -0
- data/packages/webpacker/node_modules/escape-string-regexp/package.json +38 -0
- data/packages/webpacker/node_modules/escape-string-regexp/readme.md +34 -0
- data/packages/webpacker/node_modules/eslint/LICENSE +19 -0
- data/packages/webpacker/node_modules/eslint/README.md +304 -0
- data/packages/webpacker/node_modules/eslint/bin/eslint.js +142 -0
- data/packages/webpacker/node_modules/eslint/conf/config-schema.js +93 -0
- data/packages/webpacker/node_modules/eslint/conf/default-cli-options.js +32 -0
- data/packages/webpacker/node_modules/eslint/conf/eslint-all.js +31 -0
- data/packages/webpacker/node_modules/eslint/conf/eslint-recommended.js +76 -0
- data/packages/webpacker/node_modules/eslint/conf/globals.js +144 -0
- data/packages/webpacker/node_modules/eslint/conf/replacements.json +22 -0
- data/packages/webpacker/node_modules/eslint/conf/rule-type-list.json +36 -0
- data/packages/webpacker/node_modules/eslint/lib/api.js +26 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/cli-engine.js +1068 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/file-enumerator.js +543 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/checkstyle.js +60 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/compact.js +60 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/html.js +324 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/jslint-xml.js +41 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js +16 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/json.js +13 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/junit.js +82 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/stylish.js +101 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/tap.js +95 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/unix.js +58 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/visualstudio.js +63 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/hash.js +35 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/index.js +7 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/lint-result-cache.js +191 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/load-rules.js +46 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/xml-escape.js +34 -0
- data/packages/webpacker/node_modules/eslint/lib/cli.js +344 -0
- data/packages/webpacker/node_modules/eslint/lib/config/default-config.js +61 -0
- data/packages/webpacker/node_modules/eslint/lib/config/flat-config-array.js +134 -0
- data/packages/webpacker/node_modules/eslint/lib/config/flat-config-helpers.js +103 -0
- data/packages/webpacker/node_modules/eslint/lib/config/flat-config-schema.js +457 -0
- data/packages/webpacker/node_modules/eslint/lib/config/rule-validator.js +157 -0
- data/packages/webpacker/node_modules/eslint/lib/eslint/eslint.js +712 -0
- data/packages/webpacker/node_modules/eslint/lib/eslint/index.js +7 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/apply-disable-directives.js +341 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +844 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js +235 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js +1483 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +247 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +203 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +248 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/id-generator.js +45 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/config-comment-parser.js +145 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/index.js +13 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/interpolate.js +28 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/linter.js +2004 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/node-event-generator.js +354 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/report-translator.js +368 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/rule-fixer.js +140 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/rules.js +80 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/safe-emitter.js +52 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/source-code-fixer.js +152 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/timing.js +160 -0
- data/packages/webpacker/node_modules/eslint/lib/options.js +323 -0
- data/packages/webpacker/node_modules/eslint/lib/rule-tester/flat-rule-tester.js +1039 -0
- data/packages/webpacker/node_modules/eslint/lib/rule-tester/index.js +5 -0
- data/packages/webpacker/node_modules/eslint/lib/rule-tester/rule-tester.js +1008 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/accessor-pairs.js +354 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/array-bracket-newline.js +258 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/array-bracket-spacing.js +241 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/array-callback-return.js +296 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/array-element-newline.js +301 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/arrow-body-style.js +296 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/arrow-parens.js +183 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/arrow-spacing.js +161 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/block-scoped-var.js +124 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/block-spacing.js +171 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/brace-style.js +194 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/callback-return.js +187 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/camelcase.js +398 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/capitalized-comments.js +300 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/class-methods-use-this.js +187 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/comma-dangle.js +350 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/comma-spacing.js +195 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/comma-style.js +311 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/complexity.js +165 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/computed-property-spacing.js +205 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/consistent-return.js +185 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/consistent-this.js +151 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/constructor-super.js +423 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/curly.js +486 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/default-case-last.js +44 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/default-case.js +97 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/default-param-last.js +62 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/dot-location.js +105 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/dot-notation.js +177 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/eol-last.js +112 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/eqeqeq.js +174 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/for-direction.js +126 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/func-call-spacing.js +230 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/func-name-matching.js +253 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/func-names.js +191 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/func-style.js +98 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/function-call-argument-newline.js +122 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/function-paren-newline.js +286 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/generator-star-spacing.js +206 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/getter-return.js +173 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/global-require.js +87 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/grouped-accessor-pairs.js +224 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/guard-for-in.js +76 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/handle-callback-err.js +100 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/id-blacklist.js +245 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/id-denylist.js +227 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/id-length.js +169 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/id-match.js +298 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js +81 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/indent-legacy.js +1126 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/indent.js +1764 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/index.js +301 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/init-declarations.js +139 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/jsx-quotes.js +95 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/key-spacing.js +675 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/keyword-spacing.js +637 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/line-comment-position.js +122 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/linebreak-style.js +105 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/lines-around-comment.js +450 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/lines-around-directive.js +201 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/lines-between-class-members.js +181 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-classes-per-file.js +89 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-depth.js +156 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-len.js +433 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-lines-per-function.js +213 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-lines.js +193 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-nested-callbacks.js +117 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-params.js +102 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-statements-per-line.js +196 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-statements.js +184 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/multiline-comment-style.js +435 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/multiline-ternary.js +171 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/new-cap.js +276 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/new-parens.js +99 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/newline-after-var.js +255 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/newline-before-return.js +217 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/newline-per-chained-call.js +123 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-alert.js +136 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-array-constructor.js +54 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-async-promise-executor.js +39 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-await-in-loop.js +106 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-bitwise.js +119 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-buffer-constructor.js +50 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-caller.js +46 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-case-declarations.js +64 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-catch-shadow.js +80 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-class-assign.js +61 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-compare-neg-zero.js +60 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-cond-assign.js +159 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-confusing-arrow.js +89 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-console.js +134 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-const-assign.js +54 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-constant-condition.js +315 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-constructor-return.js +62 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-continue.js +39 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-control-regex.js +112 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-debugger.js +43 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-delete-var.js +42 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-div-regex.js +53 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-dupe-args.js +80 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-dupe-class-members.js +104 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-dupe-else-if.js +122 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-dupe-keys.js +142 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-duplicate-case.js +71 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-duplicate-imports.js +290 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-else-return.js +404 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-empty-character-class.js +55 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-empty-function.js +167 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-empty-pattern.js +43 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-empty.js +86 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-eq-null.js +46 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-eval.js +281 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-ex-assign.js +52 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-extend-native.js +178 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-extra-bind.js +213 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-extra-boolean-cast.js +317 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-extra-label.js +149 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-extra-parens.js +1235 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-extra-semi.js +126 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-fallthrough.js +147 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-floating-decimal.js +70 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-func-assign.js +76 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-global-assign.js +94 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-implicit-coercion.js +361 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-implicit-globals.js +140 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-implied-eval.js +131 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-import-assign.js +239 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-inline-comments.js +110 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-inner-declarations.js +110 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-invalid-regexp.js +157 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-invalid-this.js +150 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-irregular-whitespace.js +259 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-iterator.js +52 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-label-var.js +79 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-labels.js +149 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-lone-blocks.js +134 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-lonely-if.js +89 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-loop-func.js +204 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-loss-of-precision.js +206 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-magic-numbers.js +226 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-misleading-character-class.js +200 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-mixed-operators.js +226 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-mixed-requires.js +238 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +113 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-multi-assign.js +67 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-multi-spaces.js +138 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-multi-str.js +65 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +151 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-native-reassign.js +97 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-negated-condition.js +95 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-negated-in-lhs.js +46 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-nested-ternary.js +44 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-new-func.js +86 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-new-object.js +57 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-new-require.js +50 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-new-symbol.js +54 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-new-wrappers.js +48 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-new.js +43 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js +148 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-obj-calls.js +84 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-octal-escape.js +56 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-octal.js +45 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-param-reassign.js +229 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-path-concat.js +64 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-plusplus.js +105 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-process-env.js +51 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-process-exit.js +47 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-promise-executor-return.js +121 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-proto.js +48 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-prototype-builtins.js +71 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-redeclare.js +174 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-regex-spaces.js +180 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-exports.js +96 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-globals.js +122 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-imports.js +322 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-modules.js +216 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-properties.js +181 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-syntax.js +70 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-return-assign.js +80 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-return-await.js +103 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-script-url.js +61 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-self-assign.js +183 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-self-compare.js +60 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-sequences.js +138 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-setter-return.js +225 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-shadow-restricted-names.js +64 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-shadow.js +335 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-spaced-func.js +83 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-sparse-arrays.js +50 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-sync.js +64 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-tabs.js +78 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-template-curly-in-string.js +44 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-ternary.js +41 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-this-before-super.js +304 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-throw-literal.js +51 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-trailing-spaces.js +190 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-undef-init.js +75 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-undef.js +78 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-undefined.js +84 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-underscore-dangle.js +280 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unexpected-multiline.js +120 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js +360 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unneeded-ternary.js +166 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unreachable-loop.js +150 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unreachable.js +264 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unsafe-finally.js +111 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unsafe-negation.js +128 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +205 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unused-expressions.js +189 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unused-labels.js +110 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unused-private-class-members.js +195 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unused-vars.js +690 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-use-before-define.js +334 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-backreference.js +192 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-call.js +90 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-catch.js +57 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-computed-key.js +168 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-concat.js +115 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-constructor.js +189 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-escape.js +254 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-rename.js +172 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-return.js +305 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-var.js +334 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-void.js +64 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-warning-comments.js +196 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-whitespace-before-property.js +113 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-with.js +39 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/nonblock-statement-body-position.js +124 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/object-curly-newline.js +321 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/object-curly-spacing.js +308 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/object-property-newline.js +99 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/object-shorthand.js +504 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/one-var-declaration-per-line.js +92 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/one-var.js +567 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/operator-assignment.js +207 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/operator-linebreak.js +250 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/padded-blocks.js +307 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/padding-line-between-statements.js +634 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-arrow-callback.js +380 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-const.js +489 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-destructuring.js +301 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js +190 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-named-capture-group.js +110 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-numeric-literals.js +148 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-object-has-own.js +112 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-object-spread.js +299 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js +131 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-reflect.js +127 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-regex-literals.js +396 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-rest-params.js +115 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-spread.js +87 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-template.js +275 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/quote-props.js +307 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/quotes.js +347 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/radix.js +198 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/require-atomic-updates.js +317 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/require-await.js +113 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/require-jsdoc.js +122 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/require-unicode-regexp.js +69 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/require-yield.js +78 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/rest-spread-spacing.js +120 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/semi-spacing.js +245 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/semi-style.js +155 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/semi.js +410 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/sort-imports.js +241 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/sort-keys.js +187 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/sort-vars.js +104 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/space-before-blocks.js +201 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/space-before-function-paren.js +164 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/space-in-parens.js +282 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/space-infix-ops.js +195 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/space-unary-ops.js +321 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/spaced-comment.js +382 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/strict.js +277 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/switch-colon-spacing.js +129 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/symbol-description.js +71 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/template-curly-spacing.js +141 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/template-tag-spacing.js +90 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/unicode-bom.js +73 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/use-isnan.js +141 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/ast-utils.js +1922 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/fix-tracker.js +114 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/keywords.js +67 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +115 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/patterns/letters.js +36 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/unicode/index.js +11 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js +13 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js +13 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js +13 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js +14 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/valid-jsdoc.js +516 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/valid-typeof.js +85 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/vars-on-top.js +157 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/wrap-iife.js +204 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/wrap-regex.js +59 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/yield-star-spacing.js +127 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/yoda.js +362 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/ajv.js +34 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/ast-utils.js +29 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/config-validator.js +347 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/deprecation-warnings.js +65 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/logging.js +30 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/relative-module-resolver.js +50 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/runtime-info.js +167 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/string-utils.js +22 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/traverser.js +195 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/types.js +175 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/index.js +5 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/source-code.js +593 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/backward-token-comment-cursor.js +57 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/backward-token-cursor.js +58 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/cursor.js +76 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/cursors.js +90 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/decorative-cursor.js +39 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/filter-cursor.js +43 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/forward-token-comment-cursor.js +57 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/forward-token-cursor.js +63 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/index.js +627 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/limit-cursor.js +40 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/padded-token-cursor.js +38 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/skip-cursor.js +42 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/utils.js +92 -0
- data/packages/webpacker/node_modules/eslint/lib/unsupported-api.js +23 -0
- data/packages/webpacker/node_modules/eslint/messages/all-files-ignored.js +16 -0
- data/packages/webpacker/node_modules/eslint/messages/extend-config-missing.js +13 -0
- data/packages/webpacker/node_modules/eslint/messages/failed-to-read-json.js +11 -0
- data/packages/webpacker/node_modules/eslint/messages/file-not-found.js +10 -0
- data/packages/webpacker/node_modules/eslint/messages/no-config-found.js +15 -0
- data/packages/webpacker/node_modules/eslint/messages/plugin-conflict.js +22 -0
- data/packages/webpacker/node_modules/eslint/messages/plugin-invalid.js +16 -0
- data/packages/webpacker/node_modules/eslint/messages/plugin-missing.js +19 -0
- data/packages/webpacker/node_modules/eslint/messages/print-config-with-directory-path.js +8 -0
- data/packages/webpacker/node_modules/eslint/messages/whitespace-found.js +11 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/LICENSE +201 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/README.md +107 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +382 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/dist/index.d.ts +18 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +10 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/lib/index.js +65 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/lib/visitor-keys.js +312 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/package.json +62 -0
- data/packages/webpacker/node_modules/eslint/node_modules/ignore/LICENSE-MIT +21 -0
- data/packages/webpacker/node_modules/eslint/node_modules/ignore/README.md +412 -0
- data/packages/webpacker/node_modules/eslint/node_modules/ignore/index.d.ts +61 -0
- data/packages/webpacker/node_modules/eslint/node_modules/ignore/index.js +603 -0
- data/packages/webpacker/node_modules/eslint/node_modules/ignore/legacy.js +498 -0
- data/packages/webpacker/node_modules/eslint/node_modules/ignore/package.json +71 -0
- data/packages/webpacker/node_modules/eslint/package.json +150 -0
- data/packages/webpacker/node_modules/eslint-scope/LICENSE +22 -0
- data/packages/webpacker/node_modules/eslint-scope/README.md +66 -0
- data/packages/webpacker/node_modules/eslint-scope/dist/eslint-scope.cjs +2240 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/definition.js +85 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/index.js +172 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/pattern-visitor.js +153 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/reference.js +166 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/referencer.js +654 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/scope-manager.js +255 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/scope.js +772 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/variable.js +87 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/version.js +3 -0
- data/packages/webpacker/node_modules/eslint-scope/package.json +62 -0
- data/packages/webpacker/node_modules/eslint-utils/LICENSE +21 -0
- data/packages/webpacker/node_modules/eslint-utils/README.md +38 -0
- data/packages/webpacker/node_modules/eslint-utils/index.js +1956 -0
- data/packages/webpacker/node_modules/eslint-utils/index.js.map +1 -0
- data/packages/webpacker/node_modules/eslint-utils/index.mjs +1914 -0
- data/packages/webpacker/node_modules/eslint-utils/index.mjs.map +1 -0
- data/packages/webpacker/node_modules/eslint-utils/package.json +78 -0
- data/packages/webpacker/node_modules/espree/LICENSE +25 -0
- data/packages/webpacker/node_modules/espree/README.md +250 -0
- data/packages/webpacker/node_modules/espree/dist/espree.cjs +917 -0
- data/packages/webpacker/node_modules/espree/espree.js +173 -0
- data/packages/webpacker/node_modules/espree/lib/espree.js +328 -0
- data/packages/webpacker/node_modules/espree/lib/features.js +27 -0
- data/packages/webpacker/node_modules/espree/lib/options.js +121 -0
- data/packages/webpacker/node_modules/espree/lib/token-translator.js +265 -0
- data/packages/webpacker/node_modules/espree/lib/version.js +3 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/LICENSE +201 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/README.md +107 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +382 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/dist/index.d.ts +18 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +10 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/lib/index.js +65 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/lib/visitor-keys.js +312 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/package.json +62 -0
- data/packages/webpacker/node_modules/espree/package.json +86 -0
- data/packages/webpacker/node_modules/execa/index.d.ts +564 -0
- data/packages/webpacker/node_modules/execa/index.js +268 -0
- data/packages/webpacker/node_modules/execa/lib/command.js +52 -0
- data/packages/webpacker/node_modules/execa/lib/error.js +88 -0
- data/packages/webpacker/node_modules/execa/lib/kill.js +115 -0
- data/packages/webpacker/node_modules/execa/lib/promise.js +46 -0
- data/packages/webpacker/node_modules/execa/lib/stdio.js +52 -0
- data/packages/webpacker/node_modules/execa/lib/stream.js +97 -0
- data/packages/webpacker/node_modules/execa/license +9 -0
- data/packages/webpacker/node_modules/execa/package.json +74 -0
- data/packages/webpacker/node_modules/execa/readme.md +663 -0
- data/packages/webpacker/node_modules/expect/LICENSE +21 -0
- data/packages/webpacker/node_modules/expect/README.md +3 -0
- data/packages/webpacker/node_modules/expect/build/asymmetricMatchers.d.ts +75 -0
- data/packages/webpacker/node_modules/expect/build/asymmetricMatchers.js +432 -0
- data/packages/webpacker/node_modules/expect/build/extractExpectedAssertionsErrors.d.ts +10 -0
- data/packages/webpacker/node_modules/expect/build/extractExpectedAssertionsErrors.js +90 -0
- data/packages/webpacker/node_modules/expect/build/index.d.ts +15 -0
- data/packages/webpacker/node_modules/expect/build/index.js +485 -0
- data/packages/webpacker/node_modules/expect/build/jasmineUtils.d.ts +8 -0
- data/packages/webpacker/node_modules/expect/build/jasmineUtils.js +279 -0
- data/packages/webpacker/node_modules/expect/build/jestMatchersObject.d.ts +13 -0
- data/packages/webpacker/node_modules/expect/build/jestMatchersObject.js +120 -0
- data/packages/webpacker/node_modules/expect/build/matchers.d.ts +10 -0
- data/packages/webpacker/node_modules/expect/build/matchers.js +1370 -0
- data/packages/webpacker/node_modules/expect/build/print.d.ts +15 -0
- data/packages/webpacker/node_modules/expect/build/print.js +141 -0
- data/packages/webpacker/node_modules/expect/build/spyMatchers.d.ts +9 -0
- data/packages/webpacker/node_modules/expect/build/spyMatchers.js +1339 -0
- data/packages/webpacker/node_modules/expect/build/toThrowMatchers.d.ts +11 -0
- data/packages/webpacker/node_modules/expect/build/toThrowMatchers.js +464 -0
- data/packages/webpacker/node_modules/expect/build/types.d.ts +327 -0
- data/packages/webpacker/node_modules/expect/build/types.js +3 -0
- data/packages/webpacker/node_modules/expect/build/utils.d.ts +26 -0
- data/packages/webpacker/node_modules/expect/build/utils.js +458 -0
- data/packages/webpacker/node_modules/expect/package.json +42 -0
- data/packages/webpacker/node_modules/get-stream/buffer-stream.js +52 -0
- data/packages/webpacker/node_modules/get-stream/index.d.ts +105 -0
- data/packages/webpacker/node_modules/get-stream/index.js +61 -0
- data/packages/webpacker/node_modules/get-stream/license +9 -0
- data/packages/webpacker/node_modules/get-stream/package.json +47 -0
- data/packages/webpacker/node_modules/get-stream/readme.md +124 -0
- data/packages/webpacker/node_modules/glob-parent/LICENSE +15 -0
- data/packages/webpacker/node_modules/glob-parent/README.md +134 -0
- data/packages/webpacker/node_modules/glob-parent/index.js +75 -0
- data/packages/webpacker/node_modules/glob-parent/package.json +54 -0
- data/packages/webpacker/node_modules/globals/globals.json +1781 -0
- data/packages/webpacker/node_modules/globals/index.d.ts +6 -0
- data/packages/webpacker/node_modules/globals/index.js +2 -0
- data/packages/webpacker/node_modules/globals/license +9 -0
- data/packages/webpacker/node_modules/globals/package.json +55 -0
- data/packages/webpacker/node_modules/globals/readme.md +56 -0
- data/packages/webpacker/node_modules/has-flag/index.d.ts +39 -0
- data/packages/webpacker/node_modules/has-flag/index.js +8 -0
- data/packages/webpacker/node_modules/has-flag/license +9 -0
- data/packages/webpacker/node_modules/has-flag/package.json +46 -0
- data/packages/webpacker/node_modules/has-flag/readme.md +89 -0
- data/packages/webpacker/node_modules/human-signals/CHANGELOG.md +11 -0
- data/packages/webpacker/node_modules/human-signals/LICENSE +201 -0
- data/packages/webpacker/node_modules/human-signals/README.md +165 -0
- data/packages/webpacker/node_modules/human-signals/build/src/core.js +273 -0
- data/packages/webpacker/node_modules/human-signals/build/src/core.js.map +1 -0
- data/packages/webpacker/node_modules/human-signals/build/src/main.d.ts +52 -0
- data/packages/webpacker/node_modules/human-signals/build/src/main.js +71 -0
- data/packages/webpacker/node_modules/human-signals/build/src/main.js.map +1 -0
- data/packages/webpacker/node_modules/human-signals/build/src/realtime.js +19 -0
- data/packages/webpacker/node_modules/human-signals/build/src/realtime.js.map +1 -0
- data/packages/webpacker/node_modules/human-signals/build/src/signals.js +35 -0
- data/packages/webpacker/node_modules/human-signals/build/src/signals.js.map +1 -0
- data/packages/webpacker/node_modules/human-signals/package.json +64 -0
- data/packages/webpacker/node_modules/jest/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest/README.md +11 -0
- data/packages/webpacker/node_modules/jest/bin/jest.js +13 -0
- data/packages/webpacker/node_modules/jest/build/jest.d.ts +8 -0
- data/packages/webpacker/node_modules/jest/build/jest.js +61 -0
- data/packages/webpacker/node_modules/jest/package.json +68 -0
- data/packages/webpacker/node_modules/jest-changed-files/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-changed-files/README.md +63 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/git.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/git.js +179 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/hg.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/hg.js +133 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/index.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/index.js +86 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/types.d.ts +28 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-changed-files/package.json +31 -0
- data/packages/webpacker/node_modules/jest-cli/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-cli/README.md +11 -0
- data/packages/webpacker/node_modules/jest-cli/bin/jest.js +17 -0
- data/packages/webpacker/node_modules/jest-cli/build/cli/args.d.ts +448 -0
- data/packages/webpacker/node_modules/jest-cli/build/cli/args.js +710 -0
- data/packages/webpacker/node_modules/jest-cli/build/cli/index.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-cli/build/cli/index.js +265 -0
- data/packages/webpacker/node_modules/jest-cli/build/index.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-cli/build/index.js +13 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/errors.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/errors.js +35 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/generateConfigFile.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/generateConfigFile.js +104 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/index.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/index.js +246 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/modifyPackageJson.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/modifyPackageJson.js +28 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/questions.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/questions.js +76 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/types.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/types.js +1 -0
- data/packages/webpacker/node_modules/jest-cli/package.json +89 -0
- data/packages/webpacker/node_modules/jest-config/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-config/build/Defaults.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-config/build/Defaults.js +125 -0
- data/packages/webpacker/node_modules/jest-config/build/Deprecated.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-config/build/Deprecated.js +98 -0
- data/packages/webpacker/node_modules/jest-config/build/Descriptions.d.ts +11 -0
- data/packages/webpacker/node_modules/jest-config/build/Descriptions.js +107 -0
- data/packages/webpacker/node_modules/jest-config/build/ReporterValidationErrors.d.ts +19 -0
- data/packages/webpacker/node_modules/jest-config/build/ReporterValidationErrors.js +138 -0
- data/packages/webpacker/node_modules/jest-config/build/ValidConfig.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-config/build/ValidConfig.js +199 -0
- data/packages/webpacker/node_modules/jest-config/build/color.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-config/build/color.js +37 -0
- data/packages/webpacker/node_modules/jest-config/build/constants.d.ts +17 -0
- data/packages/webpacker/node_modules/jest-config/build/constants.js +104 -0
- data/packages/webpacker/node_modules/jest-config/build/getCacheDirectory.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-config/build/getCacheDirectory.js +104 -0
- data/packages/webpacker/node_modules/jest-config/build/getMaxWorkers.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-config/build/getMaxWorkers.js +65 -0
- data/packages/webpacker/node_modules/jest-config/build/index.d.ts +28 -0
- data/packages/webpacker/node_modules/jest-config/build/index.js +495 -0
- data/packages/webpacker/node_modules/jest-config/build/normalize.d.ts +13 -0
- data/packages/webpacker/node_modules/jest-config/build/normalize.js +1372 -0
- data/packages/webpacker/node_modules/jest-config/build/readConfigFileAndSetRootDir.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-config/build/readConfigFileAndSetRootDir.js +204 -0
- data/packages/webpacker/node_modules/jest-config/build/resolveConfigPath.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-config/build/resolveConfigPath.js +247 -0
- data/packages/webpacker/node_modules/jest-config/build/setFromArgv.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-config/build/setFromArgv.js +68 -0
- data/packages/webpacker/node_modules/jest-config/build/utils.d.ts +27 -0
- data/packages/webpacker/node_modules/jest-config/build/utils.js +209 -0
- data/packages/webpacker/node_modules/jest-config/build/validatePattern.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-config/build/validatePattern.js +25 -0
- data/packages/webpacker/node_modules/jest-config/package.json +68 -0
- data/packages/webpacker/node_modules/jest-diff/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-diff/README.md +671 -0
- data/packages/webpacker/node_modules/jest-diff/build/cleanupSemantic.d.ts +57 -0
- data/packages/webpacker/node_modules/jest-diff/build/cleanupSemantic.js +655 -0
- data/packages/webpacker/node_modules/jest-diff/build/constants.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-diff/build/constants.js +19 -0
- data/packages/webpacker/node_modules/jest-diff/build/diffLines.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-diff/build/diffLines.js +220 -0
- data/packages/webpacker/node_modules/jest-diff/build/diffStrings.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-diff/build/diffStrings.js +78 -0
- data/packages/webpacker/node_modules/jest-diff/build/getAlignedDiffs.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-diff/build/getAlignedDiffs.js +244 -0
- data/packages/webpacker/node_modules/jest-diff/build/index.d.ts +15 -0
- data/packages/webpacker/node_modules/jest-diff/build/index.js +267 -0
- data/packages/webpacker/node_modules/jest-diff/build/joinAlignedDiffs.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-diff/build/joinAlignedDiffs.js +303 -0
- data/packages/webpacker/node_modules/jest-diff/build/normalizeDiffOptions.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-diff/build/normalizeDiffOptions.js +64 -0
- data/packages/webpacker/node_modules/jest-diff/build/printDiffs.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-diff/build/printDiffs.js +85 -0
- data/packages/webpacker/node_modules/jest-diff/build/types.d.ts +48 -0
- data/packages/webpacker/node_modules/jest-diff/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-diff/package.json +36 -0
- data/packages/webpacker/node_modules/jest-docblock/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-docblock/README.md +108 -0
- data/packages/webpacker/node_modules/jest-docblock/build/index.d.ts +19 -0
- data/packages/webpacker/node_modules/jest-docblock/build/index.js +153 -0
- data/packages/webpacker/node_modules/jest-docblock/package.json +32 -0
- data/packages/webpacker/node_modules/jest-each/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-each/README.md +548 -0
- data/packages/webpacker/node_modules/jest-each/build/bind.d.ts +15 -0
- data/packages/webpacker/node_modules/jest-each/build/bind.js +79 -0
- data/packages/webpacker/node_modules/jest-each/build/index.d.ts +79 -0
- data/packages/webpacker/node_modules/jest-each/build/index.js +97 -0
- data/packages/webpacker/node_modules/jest-each/build/table/array.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-each/build/table/array.js +151 -0
- data/packages/webpacker/node_modules/jest-each/build/table/interpolation.d.ts +17 -0
- data/packages/webpacker/node_modules/jest-each/build/table/interpolation.js +69 -0
- data/packages/webpacker/node_modules/jest-each/build/table/template.d.ts +11 -0
- data/packages/webpacker/node_modules/jest-each/build/table/template.js +45 -0
- data/packages/webpacker/node_modules/jest-each/build/validation.d.ts +11 -0
- data/packages/webpacker/node_modules/jest-each/build/validation.js +133 -0
- data/packages/webpacker/node_modules/jest-each/package.json +41 -0
- data/packages/webpacker/node_modules/jest-environment-jsdom/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-environment-jsdom/build/index.d.ts +30 -0
- data/packages/webpacker/node_modules/jest-environment-jsdom/build/index.js +195 -0
- data/packages/webpacker/node_modules/jest-environment-jsdom/package.json +39 -0
- data/packages/webpacker/node_modules/jest-environment-node/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-environment-node/build/index.d.ts +29 -0
- data/packages/webpacker/node_modules/jest-environment-node/build/index.js +184 -0
- data/packages/webpacker/node_modules/jest-environment-node/package.json +37 -0
- data/packages/webpacker/node_modules/jest-get-type/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-get-type/build/index.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-get-type/build/index.js +57 -0
- data/packages/webpacker/node_modules/jest-get-type/package.json +27 -0
- data/packages/webpacker/node_modules/jest-haste-map/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/HasteFS.d.ts +27 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/HasteFS.js +179 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/ModuleMap.d.ts +41 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/ModuleMap.js +305 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/blacklist.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/blacklist.js +59 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/constants.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/constants.js +52 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/crawlers/node.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/crawlers/node.js +309 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/crawlers/watchman.d.ts +13 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/crawlers/watchman.js +385 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/getMockName.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/getMockName.js +76 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/index.d.ts +184 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/index.js +1266 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/dependencyExtractor.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/dependencyExtractor.js +99 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/fast_path.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/fast_path.js +81 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/getPlatformExtension.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/getPlatformExtension.js +31 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/isRegExpSupported.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/isRegExpSupported.js +22 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/normalizePathSep.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/normalizePathSep.js +75 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/types.d.ts +126 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/watchers/FSEventsWatcher.d.ts +44 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/watchers/FSEventsWatcher.js +294 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/watchers/NodeWatcher.js +375 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/watchers/RecrawlWarning.js +57 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/watchers/WatchmanWatcher.js +418 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/watchers/common.js +114 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/worker.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/worker.js +197 -0
- data/packages/webpacker/node_modules/jest-haste-map/package.json +49 -0
- data/packages/webpacker/node_modules/jest-jasmine2/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/ExpectationFailed.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/ExpectationFailed.js +16 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/PCancelable.d.ts +17 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/PCancelable.js +139 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/assertionErrorMessage.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/assertionErrorMessage.js +156 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/each.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/each.js +44 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/errorOnPrivate.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/errorOnPrivate.js +66 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/expectationResultFactory.d.ts +16 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/expectationResultFactory.js +93 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/index.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/index.js +247 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/isError.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/isError.js +32 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/CallTracker.d.ts +25 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/CallTracker.js +121 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Env.d.ts +43 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Env.js +716 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/JsApiReporter.d.ts +31 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/JsApiReporter.js +173 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/ReportDispatcher.d.ts +22 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/ReportDispatcher.js +127 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Spec.d.ts +81 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Spec.js +298 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/SpyStrategy.d.ts +22 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/SpyStrategy.js +143 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Suite.d.ts +61 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Suite.js +235 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Timer.d.ts +14 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Timer.js +79 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/createSpy.d.ts +13 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/createSpy.js +88 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/jasmineLight.d.ts +27 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/jasmineLight.js +171 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/spyRegistry.d.ts +18 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/spyRegistry.js +222 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmineAsyncInstall.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js +259 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jestExpect.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jestExpect.js +69 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/pTimeout.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/pTimeout.js +78 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/queueRunner.d.ts +29 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/queueRunner.js +127 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/reporter.d.ts +31 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/reporter.js +250 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/setup_jest_globals.d.ts +16 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/setup_jest_globals.js +121 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/treeProcessor.d.ts +26 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/treeProcessor.js +82 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/types.d.ts +82 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/types.js +7 -0
- data/packages/webpacker/node_modules/jest-jasmine2/package.json +48 -0
- data/packages/webpacker/node_modules/jest-leak-detector/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-leak-detector/README.md +27 -0
- data/packages/webpacker/node_modules/jest-leak-detector/build/index.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-leak-detector/build/index.js +135 -0
- data/packages/webpacker/node_modules/jest-leak-detector/package.json +34 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/README.md +24 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/build/Replaceable.d.ts +17 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/build/Replaceable.js +82 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/build/deepCyclicCopyReplaceable.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/build/deepCyclicCopyReplaceable.js +110 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/build/index.d.ts +53 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/build/index.js +590 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/package.json +37 -0
- data/packages/webpacker/node_modules/jest-message-util/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-message-util/build/index.d.ts +23 -0
- data/packages/webpacker/node_modules/jest-message-util/build/index.js +501 -0
- data/packages/webpacker/node_modules/jest-message-util/build/types.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-message-util/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-message-util/package.json +42 -0
- data/packages/webpacker/node_modules/jest-mock/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-mock/README.md +92 -0
- data/packages/webpacker/node_modules/jest-mock/build/index.d.ts +185 -0
- data/packages/webpacker/node_modules/jest-mock/build/index.js +964 -0
- data/packages/webpacker/node_modules/jest-mock/package.json +30 -0
- data/packages/webpacker/node_modules/jest-regex-util/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-regex-util/build/index.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-regex-util/build/index.js +48 -0
- data/packages/webpacker/node_modules/jest-regex-util/package.json +29 -0
- data/packages/webpacker/node_modules/jest-resolve/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-resolve/build/ModuleNotFoundError.d.ts +18 -0
- data/packages/webpacker/node_modules/jest-resolve/build/ModuleNotFoundError.js +146 -0
- data/packages/webpacker/node_modules/jest-resolve/build/defaultResolver.d.ts +29 -0
- data/packages/webpacker/node_modules/jest-resolve/build/defaultResolver.js +123 -0
- data/packages/webpacker/node_modules/jest-resolve/build/fileWalkers.d.ts +14 -0
- data/packages/webpacker/node_modules/jest-resolve/build/fileWalkers.js +214 -0
- data/packages/webpacker/node_modules/jest-resolve/build/index.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-resolve/build/index.js +36 -0
- data/packages/webpacker/node_modules/jest-resolve/build/isBuiltinModule.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-resolve/build/isBuiltinModule.js +36 -0
- data/packages/webpacker/node_modules/jest-resolve/build/nodeModulesPaths.d.ts +15 -0
- data/packages/webpacker/node_modules/jest-resolve/build/nodeModulesPaths.js +128 -0
- data/packages/webpacker/node_modules/jest-resolve/build/resolver.d.ts +58 -0
- data/packages/webpacker/node_modules/jest-resolve/build/resolver.js +595 -0
- data/packages/webpacker/node_modules/jest-resolve/build/shouldLoadAsEsm.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-resolve/build/shouldLoadAsEsm.js +112 -0
- data/packages/webpacker/node_modules/jest-resolve/build/types.d.ts +23 -0
- data/packages/webpacker/node_modules/jest-resolve/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-resolve/build/utils.d.ts +51 -0
- data/packages/webpacker/node_modules/jest-resolve/build/utils.js +269 -0
- data/packages/webpacker/node_modules/jest-resolve/package.json +42 -0
- data/packages/webpacker/node_modules/jest-resolve-dependencies/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-resolve-dependencies/build/index.d.ts +27 -0
- data/packages/webpacker/node_modules/jest-resolve-dependencies/build/index.js +238 -0
- data/packages/webpacker/node_modules/jest-resolve-dependencies/package.json +37 -0
- data/packages/webpacker/node_modules/jest-runner/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-runner/build/index.d.ts +24 -0
- data/packages/webpacker/node_modules/jest-runner/build/index.js +300 -0
- data/packages/webpacker/node_modules/jest-runner/build/runTest.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-runner/build/runTest.js +494 -0
- data/packages/webpacker/node_modules/jest-runner/build/testWorker.d.ts +26 -0
- data/packages/webpacker/node_modules/jest-runner/build/testWorker.js +150 -0
- data/packages/webpacker/node_modules/jest-runner/build/types.d.ts +41 -0
- data/packages/webpacker/node_modules/jest-runner/build/types.js +15 -0
- data/packages/webpacker/node_modules/jest-runner/package.json +55 -0
- data/packages/webpacker/node_modules/jest-runtime/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-runtime/build/helpers.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-runtime/build/helpers.js +157 -0
- data/packages/webpacker/node_modules/jest-runtime/build/index.d.ts +142 -0
- data/packages/webpacker/node_modules/jest-runtime/build/index.js +2454 -0
- data/packages/webpacker/node_modules/jest-runtime/build/types.d.ts +15 -0
- data/packages/webpacker/node_modules/jest-runtime/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-runtime/package.json +57 -0
- data/packages/webpacker/node_modules/jest-serializer/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-serializer/README.md +47 -0
- data/packages/webpacker/node_modules/jest-serializer/build/index.d.ts +20 -0
- data/packages/webpacker/node_modules/jest-serializer/build/index.js +109 -0
- data/packages/webpacker/node_modules/jest-serializer/package.json +33 -0
- data/packages/webpacker/node_modules/jest-serializer/v8.d.ts +11 -0
- data/packages/webpacker/node_modules/jest-snapshot/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/InlineSnapshots.d.ts +15 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/InlineSnapshots.js +503 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/SnapshotResolver.d.ts +18 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/SnapshotResolver.js +179 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/State.d.ts +62 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/State.js +389 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/colors.d.ts +15 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/colors.js +38 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/dedentLines.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/dedentLines.js +149 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/index.d.ts +34 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/index.js +645 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/mockSerializer.d.ts +11 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/mockSerializer.js +52 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/plugins.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/plugins.js +48 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/printSnapshot.d.ts +24 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/printSnapshot.js +407 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/types.d.ts +25 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/utils.d.ts +28 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/utils.js +460 -0
- data/packages/webpacker/node_modules/jest-snapshot/package.json +61 -0
- data/packages/webpacker/node_modules/jest-util/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-util/build/ErrorWithStack.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-util/build/ErrorWithStack.js +33 -0
- data/packages/webpacker/node_modules/jest-util/build/clearLine.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/clearLine.js +18 -0
- data/packages/webpacker/node_modules/jest-util/build/convertDescriptorToString.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-util/build/convertDescriptorToString.js +41 -0
- data/packages/webpacker/node_modules/jest-util/build/createDirectory.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/createDirectory.js +76 -0
- data/packages/webpacker/node_modules/jest-util/build/createProcessObject.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/createProcessObject.js +126 -0
- data/packages/webpacker/node_modules/jest-util/build/deepCyclicCopy.d.ts +11 -0
- data/packages/webpacker/node_modules/jest-util/build/deepCyclicCopy.js +84 -0
- data/packages/webpacker/node_modules/jest-util/build/formatTime.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-util/build/formatTime.js +24 -0
- data/packages/webpacker/node_modules/jest-util/build/globsToMatcher.d.ts +27 -0
- data/packages/webpacker/node_modules/jest-util/build/globsToMatcher.js +108 -0
- data/packages/webpacker/node_modules/jest-util/build/index.d.ts +25 -0
- data/packages/webpacker/node_modules/jest-util/build/index.js +209 -0
- data/packages/webpacker/node_modules/jest-util/build/installCommonGlobals.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/installCommonGlobals.js +123 -0
- data/packages/webpacker/node_modules/jest-util/build/interopRequireDefault.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-util/build/interopRequireDefault.js +22 -0
- data/packages/webpacker/node_modules/jest-util/build/isInteractive.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/isInteractive.js +27 -0
- data/packages/webpacker/node_modules/jest-util/build/isPromise.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/isPromise.js +20 -0
- data/packages/webpacker/node_modules/jest-util/build/pluralize.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-util/build/pluralize.js +16 -0
- data/packages/webpacker/node_modules/jest-util/build/preRunMessage.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-util/build/preRunMessage.js +48 -0
- data/packages/webpacker/node_modules/jest-util/build/replacePathSepForGlob.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/replacePathSepForGlob.js +16 -0
- data/packages/webpacker/node_modules/jest-util/build/requireOrImportModule.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/requireOrImportModule.js +91 -0
- data/packages/webpacker/node_modules/jest-util/build/setGlobal.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-util/build/setGlobal.js +17 -0
- data/packages/webpacker/node_modules/jest-util/build/specialChars.d.ts +14 -0
- data/packages/webpacker/node_modules/jest-util/build/specialChars.js +25 -0
- data/packages/webpacker/node_modules/jest-util/build/testPathPatternToRegExp.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/testPathPatternToRegExp.js +19 -0
- data/packages/webpacker/node_modules/jest-util/build/tryRealpath.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/tryRealpath.js +34 -0
- data/packages/webpacker/node_modules/jest-util/package.json +39 -0
- data/packages/webpacker/node_modules/jest-validate/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-validate/README.md +196 -0
- data/packages/webpacker/node_modules/jest-validate/build/condition.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-validate/build/condition.js +48 -0
- data/packages/webpacker/node_modules/jest-validate/build/defaultConfig.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-validate/build/defaultConfig.js +42 -0
- data/packages/webpacker/node_modules/jest-validate/build/deprecated.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-validate/build/deprecated.js +32 -0
- data/packages/webpacker/node_modules/jest-validate/build/errors.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-validate/build/errors.js +75 -0
- data/packages/webpacker/node_modules/jest-validate/build/exampleConfig.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-validate/build/exampleConfig.js +36 -0
- data/packages/webpacker/node_modules/jest-validate/build/index.d.ts +11 -0
- data/packages/webpacker/node_modules/jest-validate/build/index.js +61 -0
- data/packages/webpacker/node_modules/jest-validate/build/types.d.ts +26 -0
- data/packages/webpacker/node_modules/jest-validate/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-validate/build/utils.d.ts +18 -0
- data/packages/webpacker/node_modules/jest-validate/build/utils.js +129 -0
- data/packages/webpacker/node_modules/jest-validate/build/validate.d.ts +13 -0
- data/packages/webpacker/node_modules/jest-validate/build/validate.js +131 -0
- data/packages/webpacker/node_modules/jest-validate/build/validateCLIOptions.d.ts +14 -0
- data/packages/webpacker/node_modules/jest-validate/build/validateCLIOptions.js +141 -0
- data/packages/webpacker/node_modules/jest-validate/build/warnings.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-validate/build/warnings.js +48 -0
- data/packages/webpacker/node_modules/jest-validate/package.json +37 -0
- data/packages/webpacker/node_modules/jest-watcher/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-watcher/build/BaseWatchPlugin.d.ts +22 -0
- data/packages/webpacker/node_modules/jest-watcher/build/BaseWatchPlugin.js +52 -0
- data/packages/webpacker/node_modules/jest-watcher/build/JestHooks.d.ts +18 -0
- data/packages/webpacker/node_modules/jest-watcher/build/JestHooks.js +91 -0
- data/packages/webpacker/node_modules/jest-watcher/build/PatternPrompt.d.ts +20 -0
- data/packages/webpacker/node_modules/jest-watcher/build/PatternPrompt.js +113 -0
- data/packages/webpacker/node_modules/jest-watcher/build/constants.d.ts +18 -0
- data/packages/webpacker/node_modules/jest-watcher/build/constants.js +27 -0
- data/packages/webpacker/node_modules/jest-watcher/build/index.d.ts +13 -0
- data/packages/webpacker/node_modules/jest-watcher/build/index.js +75 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/Prompt.d.ts +25 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/Prompt.js +158 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/colorize.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/colorize.js +34 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/formatTestNameByPattern.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/formatTestNameByPattern.js +81 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/patternModeHelpers.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/patternModeHelpers.js +68 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/scroll.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/scroll.js +34 -0
- data/packages/webpacker/node_modules/jest-watcher/build/types.d.ts +60 -0
- data/packages/webpacker/node_modules/jest-watcher/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-watcher/package.json +40 -0
- data/packages/webpacker/node_modules/jest-worker/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-worker/README.md +247 -0
- data/packages/webpacker/node_modules/jest-worker/build/Farm.d.ts +29 -0
- data/packages/webpacker/node_modules/jest-worker/build/Farm.js +206 -0
- data/packages/webpacker/node_modules/jest-worker/build/FifoQueue.d.ts +18 -0
- data/packages/webpacker/node_modules/jest-worker/build/FifoQueue.js +171 -0
- data/packages/webpacker/node_modules/jest-worker/build/PriorityQueue.d.ts +41 -0
- data/packages/webpacker/node_modules/jest-worker/build/PriorityQueue.js +188 -0
- data/packages/webpacker/node_modules/jest-worker/build/WorkerPool.d.ts +13 -0
- data/packages/webpacker/node_modules/jest-worker/build/WorkerPool.js +49 -0
- data/packages/webpacker/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts +21 -0
- data/packages/webpacker/node_modules/jest-worker/build/base/BaseWorkerPool.js +201 -0
- data/packages/webpacker/node_modules/jest-worker/build/index.d.ts +49 -0
- data/packages/webpacker/node_modules/jest-worker/build/index.js +223 -0
- data/packages/webpacker/node_modules/jest-worker/build/types.d.ts +143 -0
- data/packages/webpacker/node_modules/jest-worker/build/types.js +39 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts +51 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/ChildProcessWorker.js +333 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts +34 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/NodeThreadsWorker.js +344 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/messageParent.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/messageParent.js +38 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/processChild.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/processChild.js +148 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/threadChild.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/threadChild.js +159 -0
- data/packages/webpacker/node_modules/jest-worker/node_modules/supports-color/browser.js +24 -0
- data/packages/webpacker/node_modules/jest-worker/node_modules/supports-color/index.js +152 -0
- data/packages/webpacker/node_modules/jest-worker/node_modules/supports-color/license +9 -0
- data/packages/webpacker/node_modules/jest-worker/node_modules/supports-color/package.json +58 -0
- data/packages/webpacker/node_modules/jest-worker/node_modules/supports-color/readme.md +77 -0
- data/packages/webpacker/node_modules/jest-worker/package.json +38 -0
- data/packages/webpacker/node_modules/pretty-format/LICENSE +21 -0
- data/packages/webpacker/node_modules/pretty-format/README.md +458 -0
- data/packages/webpacker/node_modules/pretty-format/build/collections.d.ts +32 -0
- data/packages/webpacker/node_modules/pretty-format/build/collections.js +187 -0
- data/packages/webpacker/node_modules/pretty-format/build/index.d.ts +25 -0
- data/packages/webpacker/node_modules/pretty-format/build/index.js +597 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/AsymmetricMatcher.d.ts +11 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js +117 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/ConvertAnsi.d.ts +11 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/ConvertAnsi.js +96 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/DOMCollection.d.ts +11 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/DOMCollection.js +80 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/DOMElement.d.ts +11 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/DOMElement.js +128 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/Immutable.d.ts +11 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/Immutable.js +247 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/ReactElement.d.ts +11 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/ReactElement.js +166 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/ReactTestComponent.d.ts +18 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/ReactTestComponent.js +79 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/lib/escapeHTML.d.ts +7 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/lib/escapeHTML.js +16 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/lib/markup.d.ts +13 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/lib/markup.js +153 -0
- data/packages/webpacker/node_modules/pretty-format/build/types.d.ts +108 -0
- data/packages/webpacker/node_modules/pretty-format/build/types.js +1 -0
- data/packages/webpacker/node_modules/pretty-format/node_modules/ansi-styles/index.d.ts +167 -0
- data/packages/webpacker/node_modules/pretty-format/node_modules/ansi-styles/index.js +164 -0
- data/packages/webpacker/node_modules/pretty-format/node_modules/ansi-styles/license +9 -0
- data/packages/webpacker/node_modules/pretty-format/node_modules/ansi-styles/package.json +52 -0
- data/packages/webpacker/node_modules/pretty-format/node_modules/ansi-styles/readme.md +144 -0
- data/packages/webpacker/node_modules/pretty-format/package.json +44 -0
- data/packages/webpacker/node_modules/react-is/LICENSE +21 -0
- data/packages/webpacker/node_modules/react-is/README.md +104 -0
- data/packages/webpacker/node_modules/react-is/build-info.json +8 -0
- data/packages/webpacker/node_modules/react-is/cjs/react-is.development.js +226 -0
- data/packages/webpacker/node_modules/react-is/cjs/react-is.production.min.js +14 -0
- data/packages/webpacker/node_modules/react-is/index.js +7 -0
- data/packages/webpacker/node_modules/react-is/package.json +27 -0
- data/packages/webpacker/node_modules/react-is/umd/react-is.development.js +225 -0
- data/packages/webpacker/node_modules/react-is/umd/react-is.production.min.js +14 -0
- data/packages/webpacker/node_modules/semver/CHANGELOG.md +111 -0
- data/packages/webpacker/node_modules/semver/LICENSE +15 -0
- data/packages/webpacker/node_modules/semver/README.md +566 -0
- data/packages/webpacker/node_modules/semver/bin/semver.js +173 -0
- data/packages/webpacker/node_modules/semver/classes/comparator.js +135 -0
- data/packages/webpacker/node_modules/semver/classes/index.js +5 -0
- data/packages/webpacker/node_modules/semver/classes/range.js +510 -0
- data/packages/webpacker/node_modules/semver/classes/semver.js +287 -0
- data/packages/webpacker/node_modules/semver/functions/clean.js +6 -0
- data/packages/webpacker/node_modules/semver/functions/cmp.js +48 -0
- data/packages/webpacker/node_modules/semver/functions/coerce.js +51 -0
- data/packages/webpacker/node_modules/semver/functions/compare-build.js +7 -0
- data/packages/webpacker/node_modules/semver/functions/compare-loose.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/compare.js +5 -0
- data/packages/webpacker/node_modules/semver/functions/diff.js +23 -0
- data/packages/webpacker/node_modules/semver/functions/eq.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/gt.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/gte.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/inc.js +15 -0
- data/packages/webpacker/node_modules/semver/functions/lt.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/lte.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/major.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/minor.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/neq.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/parse.js +33 -0
- data/packages/webpacker/node_modules/semver/functions/patch.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/prerelease.js +6 -0
- data/packages/webpacker/node_modules/semver/functions/rcompare.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/rsort.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/satisfies.js +10 -0
- data/packages/webpacker/node_modules/semver/functions/sort.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/valid.js +6 -0
- data/packages/webpacker/node_modules/semver/index.js +48 -0
- data/packages/webpacker/node_modules/semver/internal/constants.js +17 -0
- data/packages/webpacker/node_modules/semver/internal/debug.js +9 -0
- data/packages/webpacker/node_modules/semver/internal/identifiers.js +23 -0
- data/packages/webpacker/node_modules/semver/internal/parse-options.js +11 -0
- data/packages/webpacker/node_modules/semver/internal/re.js +182 -0
- data/packages/webpacker/node_modules/semver/package.json +41 -0
- data/packages/webpacker/node_modules/semver/preload.js +2 -0
- data/packages/webpacker/node_modules/semver/range.bnf +16 -0
- data/packages/webpacker/node_modules/semver/ranges/gtr.js +4 -0
- data/packages/webpacker/node_modules/semver/ranges/intersects.js +7 -0
- data/packages/webpacker/node_modules/semver/ranges/ltr.js +4 -0
- data/packages/webpacker/node_modules/semver/ranges/max-satisfying.js +25 -0
- data/packages/webpacker/node_modules/semver/ranges/min-satisfying.js +24 -0
- data/packages/webpacker/node_modules/semver/ranges/min-version.js +60 -0
- data/packages/webpacker/node_modules/semver/ranges/outside.js +80 -0
- data/packages/webpacker/node_modules/semver/ranges/simplify.js +44 -0
- data/packages/webpacker/node_modules/semver/ranges/subset.js +222 -0
- data/packages/webpacker/node_modules/semver/ranges/to-comparators.js +8 -0
- data/packages/webpacker/node_modules/semver/ranges/valid.js +11 -0
- data/packages/webpacker/node_modules/source-map/CHANGELOG.md +301 -0
- data/packages/webpacker/node_modules/source-map/LICENSE +28 -0
- data/packages/webpacker/node_modules/source-map/README.md +742 -0
- data/packages/webpacker/node_modules/source-map/dist/source-map.debug.js +3234 -0
- data/packages/webpacker/node_modules/source-map/dist/source-map.js +3233 -0
- data/packages/webpacker/node_modules/source-map/dist/source-map.min.js +2 -0
- data/packages/webpacker/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/packages/webpacker/node_modules/source-map/lib/array-set.js +121 -0
- data/packages/webpacker/node_modules/source-map/lib/base64-vlq.js +140 -0
- data/packages/webpacker/node_modules/source-map/lib/base64.js +67 -0
- data/packages/webpacker/node_modules/source-map/lib/binary-search.js +111 -0
- data/packages/webpacker/node_modules/source-map/lib/mapping-list.js +79 -0
- data/packages/webpacker/node_modules/source-map/lib/quick-sort.js +114 -0
- data/packages/webpacker/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- data/packages/webpacker/node_modules/source-map/lib/source-map-generator.js +425 -0
- data/packages/webpacker/node_modules/source-map/lib/source-node.js +413 -0
- data/packages/webpacker/node_modules/source-map/lib/util.js +488 -0
- data/packages/webpacker/node_modules/source-map/package.json +73 -0
- data/packages/webpacker/node_modules/source-map/source-map.d.ts +98 -0
- data/packages/webpacker/node_modules/source-map/source-map.js +8 -0
- data/packages/webpacker/node_modules/supports-color/browser.js +5 -0
- data/packages/webpacker/node_modules/supports-color/index.js +135 -0
- data/packages/webpacker/node_modules/supports-color/license +9 -0
- data/packages/webpacker/node_modules/supports-color/package.json +53 -0
- data/packages/webpacker/node_modules/supports-color/readme.md +76 -0
- data/packages/webpacker/node_modules/throat/LICENSE +19 -0
- data/packages/webpacker/node_modules/throat/README.md +55 -0
- data/packages/webpacker/node_modules/throat/index.d.ts +32 -0
- data/packages/webpacker/node_modules/throat/index.js +145 -0
- data/packages/webpacker/node_modules/throat/index.js.flow +7 -0
- data/packages/webpacker/node_modules/throat/package.json +47 -0
- data/packages/webpacker/node_modules/type-fest/base.d.ts +38 -0
- data/packages/webpacker/node_modules/type-fest/index.d.ts +2 -0
- data/packages/webpacker/node_modules/type-fest/license +9 -0
- data/packages/webpacker/node_modules/type-fest/package.json +58 -0
- data/packages/webpacker/node_modules/type-fest/readme.md +658 -0
- data/packages/webpacker/node_modules/type-fest/source/async-return-type.d.ts +23 -0
- data/packages/webpacker/node_modules/type-fest/source/asyncify.d.ts +31 -0
- data/packages/webpacker/node_modules/type-fest/source/basic.d.ts +67 -0
- data/packages/webpacker/node_modules/type-fest/source/conditional-except.d.ts +43 -0
- data/packages/webpacker/node_modules/type-fest/source/conditional-keys.d.ts +43 -0
- data/packages/webpacker/node_modules/type-fest/source/conditional-pick.d.ts +42 -0
- data/packages/webpacker/node_modules/type-fest/source/entries.d.ts +57 -0
- data/packages/webpacker/node_modules/type-fest/source/entry.d.ts +60 -0
- data/packages/webpacker/node_modules/type-fest/source/except.d.ts +22 -0
- data/packages/webpacker/node_modules/type-fest/source/fixed-length-array.d.ts +38 -0
- data/packages/webpacker/node_modules/type-fest/source/iterable-element.d.ts +46 -0
- data/packages/webpacker/node_modules/type-fest/source/literal-union.d.ts +33 -0
- data/packages/webpacker/node_modules/type-fest/source/merge-exclusive.d.ts +39 -0
- data/packages/webpacker/node_modules/type-fest/source/merge.d.ts +22 -0
- data/packages/webpacker/node_modules/type-fest/source/mutable.d.ts +22 -0
- data/packages/webpacker/node_modules/type-fest/source/opaque.d.ts +65 -0
- data/packages/webpacker/node_modules/type-fest/source/package-json.d.ts +611 -0
- data/packages/webpacker/node_modules/type-fest/source/partial-deep.d.ts +72 -0
- data/packages/webpacker/node_modules/type-fest/source/promisable.d.ts +23 -0
- data/packages/webpacker/node_modules/type-fest/source/promise-value.d.ts +27 -0
- data/packages/webpacker/node_modules/type-fest/source/readonly-deep.d.ts +59 -0
- data/packages/webpacker/node_modules/type-fest/source/require-at-least-one.d.ts +33 -0
- data/packages/webpacker/node_modules/type-fest/source/require-exactly-one.d.ts +35 -0
- data/packages/webpacker/node_modules/type-fest/source/set-optional.d.ts +34 -0
- data/packages/webpacker/node_modules/type-fest/source/set-required.d.ts +34 -0
- data/packages/webpacker/node_modules/type-fest/source/set-return-type.d.ts +29 -0
- data/packages/webpacker/node_modules/type-fest/source/stringified.d.ts +21 -0
- data/packages/webpacker/node_modules/type-fest/source/tsconfig-json.d.ts +870 -0
- data/packages/webpacker/node_modules/type-fest/source/union-to-intersection.d.ts +58 -0
- data/packages/webpacker/node_modules/type-fest/source/utilities.d.ts +3 -0
- data/packages/webpacker/node_modules/type-fest/source/value-of.d.ts +40 -0
- data/packages/webpacker/node_modules/type-fest/ts41/camel-case.d.ts +72 -0
- data/packages/webpacker/node_modules/type-fest/ts41/delimiter-case.d.ts +85 -0
- data/packages/webpacker/node_modules/type-fest/ts41/index.d.ts +9 -0
- data/packages/webpacker/node_modules/type-fest/ts41/kebab-case.d.ts +36 -0
- data/packages/webpacker/node_modules/type-fest/ts41/pascal-case.d.ts +36 -0
- data/packages/webpacker/node_modules/type-fest/ts41/snake-case.d.ts +35 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/CHANGELOG.md +380 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/LICENSE.txt +14 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/README.md +90 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/index.d.ts +25 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/index.js +5 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/lib/branch.js +28 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/lib/function.js +29 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/lib/line.js +34 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/lib/range.js +33 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/lib/source.js +245 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/lib/v8-to-istanbul.js +318 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/CHANGELOG.md +344 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/LICENSE +28 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/README.md +822 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/dist/source-map.js +3351 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/array-set.js +100 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/base64-vlq.js +111 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/base64.js +18 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/binary-search.js +107 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/mapping-list.js +80 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/mappings.wasm +0 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/read-wasm.js +40 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-map-consumer.js +1254 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-map-generator.js +413 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-node.js +404 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/util.js +546 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/wasm.js +107 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/package.json +90 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/source-map.d.ts +369 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/source-map.js +8 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/package.json +48 -0
- data/packages/webpacker/node_modules/wrap-ansi/index.js +216 -0
- data/packages/webpacker/node_modules/wrap-ansi/license +9 -0
- data/packages/webpacker/node_modules/wrap-ansi/package.json +62 -0
- data/packages/webpacker/node_modules/wrap-ansi/readme.md +91 -0
- data/packages/webpacker/node_modules/y18n/CHANGELOG.md +100 -0
- data/packages/webpacker/node_modules/y18n/LICENSE +13 -0
- data/packages/webpacker/node_modules/y18n/README.md +127 -0
- data/packages/webpacker/node_modules/y18n/build/index.cjs +203 -0
- data/packages/webpacker/node_modules/y18n/build/lib/cjs.js +6 -0
- data/packages/webpacker/node_modules/y18n/build/lib/index.js +174 -0
- data/packages/webpacker/node_modules/y18n/build/lib/platform-shims/node.js +19 -0
- data/packages/webpacker/node_modules/y18n/index.mjs +8 -0
- data/packages/webpacker/node_modules/y18n/package.json +70 -0
- data/packages/webpacker/node_modules/yargs/CHANGELOG.md +88 -0
- data/packages/webpacker/node_modules/yargs/LICENSE +21 -0
- data/packages/webpacker/node_modules/yargs/README.md +202 -0
- data/packages/webpacker/node_modules/yargs/browser.mjs +7 -0
- data/packages/webpacker/node_modules/yargs/build/index.cjs +2920 -0
- data/packages/webpacker/node_modules/yargs/build/lib/argsert.js +62 -0
- data/packages/webpacker/node_modules/yargs/build/lib/command.js +382 -0
- data/packages/webpacker/node_modules/yargs/build/lib/completion-templates.js +47 -0
- data/packages/webpacker/node_modules/yargs/build/lib/completion.js +128 -0
- data/packages/webpacker/node_modules/yargs/build/lib/middleware.js +53 -0
- data/packages/webpacker/node_modules/yargs/build/lib/parse-command.js +32 -0
- data/packages/webpacker/node_modules/yargs/build/lib/typings/common-types.js +9 -0
- data/packages/webpacker/node_modules/yargs/build/lib/typings/yargs-parser-types.js +1 -0
- data/packages/webpacker/node_modules/yargs/build/lib/usage.js +548 -0
- data/packages/webpacker/node_modules/yargs/build/lib/utils/apply-extends.js +59 -0
- data/packages/webpacker/node_modules/yargs/build/lib/utils/is-promise.js +5 -0
- data/packages/webpacker/node_modules/yargs/build/lib/utils/levenshtein.js +26 -0
- data/packages/webpacker/node_modules/yargs/build/lib/utils/obj-filter.js +10 -0
- data/packages/webpacker/node_modules/yargs/build/lib/utils/process-argv.js +17 -0
- data/packages/webpacker/node_modules/yargs/build/lib/utils/set-blocking.js +12 -0
- data/packages/webpacker/node_modules/yargs/build/lib/utils/which-module.js +10 -0
- data/packages/webpacker/node_modules/yargs/build/lib/validation.js +308 -0
- data/packages/webpacker/node_modules/yargs/build/lib/yargs-factory.js +1143 -0
- data/packages/webpacker/node_modules/yargs/build/lib/yerror.js +7 -0
- data/packages/webpacker/node_modules/yargs/helpers/helpers.mjs +10 -0
- data/packages/webpacker/node_modules/yargs/helpers/index.js +14 -0
- data/packages/webpacker/node_modules/yargs/helpers/package.json +3 -0
- data/packages/webpacker/node_modules/yargs/index.cjs +39 -0
- data/packages/webpacker/node_modules/yargs/index.mjs +8 -0
- data/packages/webpacker/node_modules/yargs/lib/platform-shims/browser.mjs +92 -0
- data/packages/webpacker/node_modules/yargs/lib/platform-shims/esm.mjs +67 -0
- data/packages/webpacker/node_modules/yargs/locales/be.json +46 -0
- data/packages/webpacker/node_modules/yargs/locales/de.json +46 -0
- data/packages/webpacker/node_modules/yargs/locales/en.json +51 -0
- data/packages/webpacker/node_modules/yargs/locales/es.json +46 -0
- data/packages/webpacker/node_modules/yargs/locales/fi.json +49 -0
- data/packages/webpacker/node_modules/yargs/locales/fr.json +53 -0
- data/packages/webpacker/node_modules/yargs/locales/hi.json +49 -0
- data/packages/webpacker/node_modules/yargs/locales/hu.json +46 -0
- data/packages/webpacker/node_modules/yargs/locales/id.json +50 -0
- data/packages/webpacker/node_modules/yargs/locales/it.json +46 -0
- data/packages/webpacker/node_modules/yargs/locales/ja.json +51 -0
- data/packages/webpacker/node_modules/yargs/locales/ko.json +49 -0
- data/packages/webpacker/node_modules/yargs/locales/nb.json +44 -0
- data/packages/webpacker/node_modules/yargs/locales/nl.json +49 -0
- data/packages/webpacker/node_modules/yargs/locales/nn.json +44 -0
- data/packages/webpacker/node_modules/yargs/locales/pirate.json +13 -0
- data/packages/webpacker/node_modules/yargs/locales/pl.json +49 -0
- data/packages/webpacker/node_modules/yargs/locales/pt.json +45 -0
- data/packages/webpacker/node_modules/yargs/locales/pt_BR.json +48 -0
- data/packages/webpacker/node_modules/yargs/locales/ru.json +46 -0
- data/packages/webpacker/node_modules/yargs/locales/th.json +46 -0
- data/packages/webpacker/node_modules/yargs/locales/tr.json +48 -0
- data/packages/webpacker/node_modules/yargs/locales/zh_CN.json +48 -0
- data/packages/webpacker/node_modules/yargs/locales/zh_TW.json +47 -0
- data/packages/webpacker/node_modules/yargs/package.json +122 -0
- data/packages/webpacker/node_modules/yargs/yargs +9 -0
- data/packages/webpacker/node_modules/yargs-parser/CHANGELOG.md +263 -0
- data/packages/webpacker/node_modules/yargs-parser/LICENSE.txt +14 -0
- data/packages/webpacker/node_modules/yargs-parser/README.md +518 -0
- data/packages/webpacker/node_modules/yargs-parser/browser.js +29 -0
- data/packages/webpacker/node_modules/yargs-parser/build/index.cjs +1042 -0
- data/packages/webpacker/node_modules/yargs-parser/build/lib/index.js +59 -0
- data/packages/webpacker/node_modules/yargs-parser/build/lib/string-utils.js +65 -0
- data/packages/webpacker/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +40 -0
- data/packages/webpacker/node_modules/yargs-parser/build/lib/yargs-parser-types.js +12 -0
- data/packages/webpacker/node_modules/yargs-parser/build/lib/yargs-parser.js +1037 -0
- data/packages/webpacker/node_modules/yargs-parser/package.json +87 -0
- data/packages/webpacker/package.json +42 -31
- data/packages/webpacker/src/loaders/decidim-sass-loader.js +88 -0
- data/packages/webpacker/src/override-config.js +42 -41
- metadata +1657 -47
@@ -0,0 +1,1922 @@
|
|
1
|
+
/**
|
2
|
+
* @fileoverview Common utils for AST.
|
3
|
+
* @author Gyandeep Singh
|
4
|
+
*/
|
5
|
+
|
6
|
+
"use strict";
|
7
|
+
|
8
|
+
//------------------------------------------------------------------------------
|
9
|
+
// Requirements
|
10
|
+
//------------------------------------------------------------------------------
|
11
|
+
|
12
|
+
const esutils = require("esutils");
|
13
|
+
const espree = require("espree");
|
14
|
+
const escapeRegExp = require("escape-string-regexp");
|
15
|
+
const {
|
16
|
+
breakableTypePattern,
|
17
|
+
createGlobalLinebreakMatcher,
|
18
|
+
lineBreakPattern,
|
19
|
+
shebangPattern
|
20
|
+
} = require("../../shared/ast-utils");
|
21
|
+
|
22
|
+
//------------------------------------------------------------------------------
|
23
|
+
// Helpers
|
24
|
+
//------------------------------------------------------------------------------
|
25
|
+
|
26
|
+
const anyFunctionPattern = /^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u;
|
27
|
+
const anyLoopPattern = /^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u;
|
28
|
+
const arrayOrTypedArrayPattern = /Array$/u;
|
29
|
+
const arrayMethodPattern = /^(?:every|filter|find|findIndex|forEach|map|some)$/u;
|
30
|
+
const bindOrCallOrApplyPattern = /^(?:bind|call|apply)$/u;
|
31
|
+
const thisTagPattern = /^[\s*]*@this/mu;
|
32
|
+
|
33
|
+
|
34
|
+
const COMMENTS_IGNORE_PATTERN = /^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u;
|
35
|
+
const LINEBREAKS = new Set(["\r\n", "\r", "\n", "\u2028", "\u2029"]);
|
36
|
+
|
37
|
+
// A set of node types that can contain a list of statements
|
38
|
+
const STATEMENT_LIST_PARENTS = new Set(["Program", "BlockStatement", "StaticBlock", "SwitchCase"]);
|
39
|
+
|
40
|
+
const DECIMAL_INTEGER_PATTERN = /^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u;
|
41
|
+
|
42
|
+
// Tests the presence of at least one LegacyOctalEscapeSequence or NonOctalDecimalEscapeSequence in a raw string
|
43
|
+
const OCTAL_OR_NON_OCTAL_DECIMAL_ESCAPE_PATTERN = /^(?:[^\\]|\\.)*\\(?:[1-9]|0[0-9])/su;
|
44
|
+
|
45
|
+
const LOGICAL_ASSIGNMENT_OPERATORS = new Set(["&&=", "||=", "??="]);
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Checks reference if is non initializer and writable.
|
49
|
+
* @param {Reference} reference A reference to check.
|
50
|
+
* @param {int} index The index of the reference in the references.
|
51
|
+
* @param {Reference[]} references The array that the reference belongs to.
|
52
|
+
* @returns {boolean} Success/Failure
|
53
|
+
* @private
|
54
|
+
*/
|
55
|
+
function isModifyingReference(reference, index, references) {
|
56
|
+
const identifier = reference.identifier;
|
57
|
+
|
58
|
+
/*
|
59
|
+
* Destructuring assignments can have multiple default value, so
|
60
|
+
* possibly there are multiple writeable references for the same
|
61
|
+
* identifier.
|
62
|
+
*/
|
63
|
+
const modifyingDifferentIdentifier = index === 0 ||
|
64
|
+
references[index - 1].identifier !== identifier;
|
65
|
+
|
66
|
+
return (identifier &&
|
67
|
+
reference.init === false &&
|
68
|
+
reference.isWrite() &&
|
69
|
+
modifyingDifferentIdentifier
|
70
|
+
);
|
71
|
+
}
|
72
|
+
|
73
|
+
/**
|
74
|
+
* Checks whether the given string starts with uppercase or not.
|
75
|
+
* @param {string} s The string to check.
|
76
|
+
* @returns {boolean} `true` if the string starts with uppercase.
|
77
|
+
*/
|
78
|
+
function startsWithUpperCase(s) {
|
79
|
+
return s[0] !== s[0].toLocaleLowerCase();
|
80
|
+
}
|
81
|
+
|
82
|
+
/**
|
83
|
+
* Checks whether or not a node is a constructor.
|
84
|
+
* @param {ASTNode} node A function node to check.
|
85
|
+
* @returns {boolean} Whether or not a node is a constructor.
|
86
|
+
*/
|
87
|
+
function isES5Constructor(node) {
|
88
|
+
return (node.id && startsWithUpperCase(node.id.name));
|
89
|
+
}
|
90
|
+
|
91
|
+
/**
|
92
|
+
* Finds a function node from ancestors of a node.
|
93
|
+
* @param {ASTNode} node A start node to find.
|
94
|
+
* @returns {Node|null} A found function node.
|
95
|
+
*/
|
96
|
+
function getUpperFunction(node) {
|
97
|
+
for (let currentNode = node; currentNode; currentNode = currentNode.parent) {
|
98
|
+
if (anyFunctionPattern.test(currentNode.type)) {
|
99
|
+
return currentNode;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
return null;
|
103
|
+
}
|
104
|
+
|
105
|
+
/**
|
106
|
+
* Checks whether a given node is a function node or not.
|
107
|
+
* The following types are function nodes:
|
108
|
+
*
|
109
|
+
* - ArrowFunctionExpression
|
110
|
+
* - FunctionDeclaration
|
111
|
+
* - FunctionExpression
|
112
|
+
* @param {ASTNode|null} node A node to check.
|
113
|
+
* @returns {boolean} `true` if the node is a function node.
|
114
|
+
*/
|
115
|
+
function isFunction(node) {
|
116
|
+
return Boolean(node && anyFunctionPattern.test(node.type));
|
117
|
+
}
|
118
|
+
|
119
|
+
/**
|
120
|
+
* Checks whether a given node is a loop node or not.
|
121
|
+
* The following types are loop nodes:
|
122
|
+
*
|
123
|
+
* - DoWhileStatement
|
124
|
+
* - ForInStatement
|
125
|
+
* - ForOfStatement
|
126
|
+
* - ForStatement
|
127
|
+
* - WhileStatement
|
128
|
+
* @param {ASTNode|null} node A node to check.
|
129
|
+
* @returns {boolean} `true` if the node is a loop node.
|
130
|
+
*/
|
131
|
+
function isLoop(node) {
|
132
|
+
return Boolean(node && anyLoopPattern.test(node.type));
|
133
|
+
}
|
134
|
+
|
135
|
+
/**
|
136
|
+
* Checks whether the given node is in a loop or not.
|
137
|
+
* @param {ASTNode} node The node to check.
|
138
|
+
* @returns {boolean} `true` if the node is in a loop.
|
139
|
+
*/
|
140
|
+
function isInLoop(node) {
|
141
|
+
for (let currentNode = node; currentNode && !isFunction(currentNode); currentNode = currentNode.parent) {
|
142
|
+
if (isLoop(currentNode)) {
|
143
|
+
return true;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
return false;
|
148
|
+
}
|
149
|
+
|
150
|
+
/**
|
151
|
+
* Determines whether the given node is a `null` literal.
|
152
|
+
* @param {ASTNode} node The node to check
|
153
|
+
* @returns {boolean} `true` if the node is a `null` literal
|
154
|
+
*/
|
155
|
+
function isNullLiteral(node) {
|
156
|
+
|
157
|
+
/*
|
158
|
+
* Checking `node.value === null` does not guarantee that a literal is a null literal.
|
159
|
+
* When parsing values that cannot be represented in the current environment (e.g. unicode
|
160
|
+
* regexes in Node 4), `node.value` is set to `null` because it wouldn't be possible to
|
161
|
+
* set `node.value` to a unicode regex. To make sure a literal is actually `null`, check
|
162
|
+
* `node.regex` instead. Also see: https://github.com/eslint/eslint/issues/8020
|
163
|
+
*/
|
164
|
+
return node.type === "Literal" && node.value === null && !node.regex && !node.bigint;
|
165
|
+
}
|
166
|
+
|
167
|
+
/**
|
168
|
+
* Checks whether or not a node is `null` or `undefined`.
|
169
|
+
* @param {ASTNode} node A node to check.
|
170
|
+
* @returns {boolean} Whether or not the node is a `null` or `undefined`.
|
171
|
+
* @public
|
172
|
+
*/
|
173
|
+
function isNullOrUndefined(node) {
|
174
|
+
return (
|
175
|
+
isNullLiteral(node) ||
|
176
|
+
(node.type === "Identifier" && node.name === "undefined") ||
|
177
|
+
(node.type === "UnaryExpression" && node.operator === "void")
|
178
|
+
);
|
179
|
+
}
|
180
|
+
|
181
|
+
/**
|
182
|
+
* Checks whether or not a node is callee.
|
183
|
+
* @param {ASTNode} node A node to check.
|
184
|
+
* @returns {boolean} Whether or not the node is callee.
|
185
|
+
*/
|
186
|
+
function isCallee(node) {
|
187
|
+
return node.parent.type === "CallExpression" && node.parent.callee === node;
|
188
|
+
}
|
189
|
+
|
190
|
+
/**
|
191
|
+
* Returns the result of the string conversion applied to the evaluated value of the given expression node,
|
192
|
+
* if it can be determined statically.
|
193
|
+
*
|
194
|
+
* This function returns a `string` value for all `Literal` nodes and simple `TemplateLiteral` nodes only.
|
195
|
+
* In all other cases, this function returns `null`.
|
196
|
+
* @param {ASTNode} node Expression node.
|
197
|
+
* @returns {string|null} String value if it can be determined. Otherwise, `null`.
|
198
|
+
*/
|
199
|
+
function getStaticStringValue(node) {
|
200
|
+
switch (node.type) {
|
201
|
+
case "Literal":
|
202
|
+
if (node.value === null) {
|
203
|
+
if (isNullLiteral(node)) {
|
204
|
+
return String(node.value); // "null"
|
205
|
+
}
|
206
|
+
if (node.regex) {
|
207
|
+
return `/${node.regex.pattern}/${node.regex.flags}`;
|
208
|
+
}
|
209
|
+
if (node.bigint) {
|
210
|
+
return node.bigint;
|
211
|
+
}
|
212
|
+
|
213
|
+
// Otherwise, this is an unknown literal. The function will return null.
|
214
|
+
|
215
|
+
} else {
|
216
|
+
return String(node.value);
|
217
|
+
}
|
218
|
+
break;
|
219
|
+
case "TemplateLiteral":
|
220
|
+
if (node.expressions.length === 0 && node.quasis.length === 1) {
|
221
|
+
return node.quasis[0].value.cooked;
|
222
|
+
}
|
223
|
+
break;
|
224
|
+
|
225
|
+
// no default
|
226
|
+
}
|
227
|
+
|
228
|
+
return null;
|
229
|
+
}
|
230
|
+
|
231
|
+
/**
|
232
|
+
* Gets the property name of a given node.
|
233
|
+
* The node can be a MemberExpression, a Property, or a MethodDefinition.
|
234
|
+
*
|
235
|
+
* If the name is dynamic, this returns `null`.
|
236
|
+
*
|
237
|
+
* For examples:
|
238
|
+
*
|
239
|
+
* a.b // => "b"
|
240
|
+
* a["b"] // => "b"
|
241
|
+
* a['b'] // => "b"
|
242
|
+
* a[`b`] // => "b"
|
243
|
+
* a[100] // => "100"
|
244
|
+
* a[b] // => null
|
245
|
+
* a["a" + "b"] // => null
|
246
|
+
* a[tag`b`] // => null
|
247
|
+
* a[`${b}`] // => null
|
248
|
+
*
|
249
|
+
* let a = {b: 1} // => "b"
|
250
|
+
* let a = {["b"]: 1} // => "b"
|
251
|
+
* let a = {['b']: 1} // => "b"
|
252
|
+
* let a = {[`b`]: 1} // => "b"
|
253
|
+
* let a = {[100]: 1} // => "100"
|
254
|
+
* let a = {[b]: 1} // => null
|
255
|
+
* let a = {["a" + "b"]: 1} // => null
|
256
|
+
* let a = {[tag`b`]: 1} // => null
|
257
|
+
* let a = {[`${b}`]: 1} // => null
|
258
|
+
* @param {ASTNode} node The node to get.
|
259
|
+
* @returns {string|null} The property name if static. Otherwise, null.
|
260
|
+
*/
|
261
|
+
function getStaticPropertyName(node) {
|
262
|
+
let prop;
|
263
|
+
|
264
|
+
switch (node && node.type) {
|
265
|
+
case "ChainExpression":
|
266
|
+
return getStaticPropertyName(node.expression);
|
267
|
+
|
268
|
+
case "Property":
|
269
|
+
case "PropertyDefinition":
|
270
|
+
case "MethodDefinition":
|
271
|
+
prop = node.key;
|
272
|
+
break;
|
273
|
+
|
274
|
+
case "MemberExpression":
|
275
|
+
prop = node.property;
|
276
|
+
break;
|
277
|
+
|
278
|
+
// no default
|
279
|
+
}
|
280
|
+
|
281
|
+
if (prop) {
|
282
|
+
if (prop.type === "Identifier" && !node.computed) {
|
283
|
+
return prop.name;
|
284
|
+
}
|
285
|
+
|
286
|
+
return getStaticStringValue(prop);
|
287
|
+
}
|
288
|
+
|
289
|
+
return null;
|
290
|
+
}
|
291
|
+
|
292
|
+
/**
|
293
|
+
* Retrieve `ChainExpression#expression` value if the given node a `ChainExpression` node. Otherwise, pass through it.
|
294
|
+
* @param {ASTNode} node The node to address.
|
295
|
+
* @returns {ASTNode} The `ChainExpression#expression` value if the node is a `ChainExpression` node. Otherwise, the node.
|
296
|
+
*/
|
297
|
+
function skipChainExpression(node) {
|
298
|
+
return node && node.type === "ChainExpression" ? node.expression : node;
|
299
|
+
}
|
300
|
+
|
301
|
+
/**
|
302
|
+
* Check if the `actual` is an expected value.
|
303
|
+
* @param {string} actual The string value to check.
|
304
|
+
* @param {string | RegExp} expected The expected string value or pattern.
|
305
|
+
* @returns {boolean} `true` if the `actual` is an expected value.
|
306
|
+
*/
|
307
|
+
function checkText(actual, expected) {
|
308
|
+
return typeof expected === "string"
|
309
|
+
? actual === expected
|
310
|
+
: expected.test(actual);
|
311
|
+
}
|
312
|
+
|
313
|
+
/**
|
314
|
+
* Check if a given node is an Identifier node with a given name.
|
315
|
+
* @param {ASTNode} node The node to check.
|
316
|
+
* @param {string | RegExp} name The expected name or the expected pattern of the object name.
|
317
|
+
* @returns {boolean} `true` if the node is an Identifier node with the name.
|
318
|
+
*/
|
319
|
+
function isSpecificId(node, name) {
|
320
|
+
return node.type === "Identifier" && checkText(node.name, name);
|
321
|
+
}
|
322
|
+
|
323
|
+
/**
|
324
|
+
* Check if a given node is member access with a given object name and property name pair.
|
325
|
+
* This is regardless of optional or not.
|
326
|
+
* @param {ASTNode} node The node to check.
|
327
|
+
* @param {string | RegExp | null} objectName The expected name or the expected pattern of the object name. If this is nullish, this method doesn't check object.
|
328
|
+
* @param {string | RegExp | null} propertyName The expected name or the expected pattern of the property name. If this is nullish, this method doesn't check property.
|
329
|
+
* @returns {boolean} `true` if the node is member access with the object name and property name pair.
|
330
|
+
* The node is a `MemberExpression` or `ChainExpression`.
|
331
|
+
*/
|
332
|
+
function isSpecificMemberAccess(node, objectName, propertyName) {
|
333
|
+
const checkNode = skipChainExpression(node);
|
334
|
+
|
335
|
+
if (checkNode.type !== "MemberExpression") {
|
336
|
+
return false;
|
337
|
+
}
|
338
|
+
|
339
|
+
if (objectName && !isSpecificId(checkNode.object, objectName)) {
|
340
|
+
return false;
|
341
|
+
}
|
342
|
+
|
343
|
+
if (propertyName) {
|
344
|
+
const actualPropertyName = getStaticPropertyName(checkNode);
|
345
|
+
|
346
|
+
if (typeof actualPropertyName !== "string" || !checkText(actualPropertyName, propertyName)) {
|
347
|
+
return false;
|
348
|
+
}
|
349
|
+
}
|
350
|
+
|
351
|
+
return true;
|
352
|
+
}
|
353
|
+
|
354
|
+
/**
|
355
|
+
* Check if two literal nodes are the same value.
|
356
|
+
* @param {ASTNode} left The Literal node to compare.
|
357
|
+
* @param {ASTNode} right The other Literal node to compare.
|
358
|
+
* @returns {boolean} `true` if the two literal nodes are the same value.
|
359
|
+
*/
|
360
|
+
function equalLiteralValue(left, right) {
|
361
|
+
|
362
|
+
// RegExp literal.
|
363
|
+
if (left.regex || right.regex) {
|
364
|
+
return Boolean(
|
365
|
+
left.regex &&
|
366
|
+
right.regex &&
|
367
|
+
left.regex.pattern === right.regex.pattern &&
|
368
|
+
left.regex.flags === right.regex.flags
|
369
|
+
);
|
370
|
+
}
|
371
|
+
|
372
|
+
// BigInt literal.
|
373
|
+
if (left.bigint || right.bigint) {
|
374
|
+
return left.bigint === right.bigint;
|
375
|
+
}
|
376
|
+
|
377
|
+
return left.value === right.value;
|
378
|
+
}
|
379
|
+
|
380
|
+
/**
|
381
|
+
* Check if two expressions reference the same value. For example:
|
382
|
+
* a = a
|
383
|
+
* a.b = a.b
|
384
|
+
* a[0] = a[0]
|
385
|
+
* a['b'] = a['b']
|
386
|
+
* @param {ASTNode} left The left side of the comparison.
|
387
|
+
* @param {ASTNode} right The right side of the comparison.
|
388
|
+
* @param {boolean} [disableStaticComputedKey] Don't address `a.b` and `a["b"]` are the same if `true`. For backward compatibility.
|
389
|
+
* @returns {boolean} `true` if both sides match and reference the same value.
|
390
|
+
*/
|
391
|
+
function isSameReference(left, right, disableStaticComputedKey = false) {
|
392
|
+
if (left.type !== right.type) {
|
393
|
+
|
394
|
+
// Handle `a.b` and `a?.b` are samely.
|
395
|
+
if (left.type === "ChainExpression") {
|
396
|
+
return isSameReference(left.expression, right, disableStaticComputedKey);
|
397
|
+
}
|
398
|
+
if (right.type === "ChainExpression") {
|
399
|
+
return isSameReference(left, right.expression, disableStaticComputedKey);
|
400
|
+
}
|
401
|
+
|
402
|
+
return false;
|
403
|
+
}
|
404
|
+
|
405
|
+
switch (left.type) {
|
406
|
+
case "Super":
|
407
|
+
case "ThisExpression":
|
408
|
+
return true;
|
409
|
+
|
410
|
+
case "Identifier":
|
411
|
+
case "PrivateIdentifier":
|
412
|
+
return left.name === right.name;
|
413
|
+
case "Literal":
|
414
|
+
return equalLiteralValue(left, right);
|
415
|
+
|
416
|
+
case "ChainExpression":
|
417
|
+
return isSameReference(left.expression, right.expression, disableStaticComputedKey);
|
418
|
+
|
419
|
+
case "MemberExpression": {
|
420
|
+
if (!disableStaticComputedKey) {
|
421
|
+
const nameA = getStaticPropertyName(left);
|
422
|
+
|
423
|
+
// x.y = x["y"]
|
424
|
+
if (nameA !== null) {
|
425
|
+
return (
|
426
|
+
isSameReference(left.object, right.object, disableStaticComputedKey) &&
|
427
|
+
nameA === getStaticPropertyName(right)
|
428
|
+
);
|
429
|
+
}
|
430
|
+
}
|
431
|
+
|
432
|
+
/*
|
433
|
+
* x[0] = x[0]
|
434
|
+
* x[y] = x[y]
|
435
|
+
* x.y = x.y
|
436
|
+
*/
|
437
|
+
return (
|
438
|
+
left.computed === right.computed &&
|
439
|
+
isSameReference(left.object, right.object, disableStaticComputedKey) &&
|
440
|
+
isSameReference(left.property, right.property, disableStaticComputedKey)
|
441
|
+
);
|
442
|
+
}
|
443
|
+
|
444
|
+
default:
|
445
|
+
return false;
|
446
|
+
}
|
447
|
+
}
|
448
|
+
|
449
|
+
/**
|
450
|
+
* Checks whether or not a node is `Reflect.apply`.
|
451
|
+
* @param {ASTNode} node A node to check.
|
452
|
+
* @returns {boolean} Whether or not the node is a `Reflect.apply`.
|
453
|
+
*/
|
454
|
+
function isReflectApply(node) {
|
455
|
+
return isSpecificMemberAccess(node, "Reflect", "apply");
|
456
|
+
}
|
457
|
+
|
458
|
+
/**
|
459
|
+
* Checks whether or not a node is `Array.from`.
|
460
|
+
* @param {ASTNode} node A node to check.
|
461
|
+
* @returns {boolean} Whether or not the node is a `Array.from`.
|
462
|
+
*/
|
463
|
+
function isArrayFromMethod(node) {
|
464
|
+
return isSpecificMemberAccess(node, arrayOrTypedArrayPattern, "from");
|
465
|
+
}
|
466
|
+
|
467
|
+
/**
|
468
|
+
* Checks whether or not a node is a method which has `thisArg`.
|
469
|
+
* @param {ASTNode} node A node to check.
|
470
|
+
* @returns {boolean} Whether or not the node is a method which has `thisArg`.
|
471
|
+
*/
|
472
|
+
function isMethodWhichHasThisArg(node) {
|
473
|
+
return isSpecificMemberAccess(node, null, arrayMethodPattern);
|
474
|
+
}
|
475
|
+
|
476
|
+
/**
|
477
|
+
* Creates the negate function of the given function.
|
478
|
+
* @param {Function} f The function to negate.
|
479
|
+
* @returns {Function} Negated function.
|
480
|
+
*/
|
481
|
+
function negate(f) {
|
482
|
+
return token => !f(token);
|
483
|
+
}
|
484
|
+
|
485
|
+
/**
|
486
|
+
* Checks whether or not a node has a `@this` tag in its comments.
|
487
|
+
* @param {ASTNode} node A node to check.
|
488
|
+
* @param {SourceCode} sourceCode A SourceCode instance to get comments.
|
489
|
+
* @returns {boolean} Whether or not the node has a `@this` tag in its comments.
|
490
|
+
*/
|
491
|
+
function hasJSDocThisTag(node, sourceCode) {
|
492
|
+
const jsdocComment = sourceCode.getJSDocComment(node);
|
493
|
+
|
494
|
+
if (jsdocComment && thisTagPattern.test(jsdocComment.value)) {
|
495
|
+
return true;
|
496
|
+
}
|
497
|
+
|
498
|
+
// Checks `@this` in its leading comments for callbacks,
|
499
|
+
// because callbacks don't have its JSDoc comment.
|
500
|
+
// e.g.
|
501
|
+
// sinon.test(/* @this sinon.Sandbox */function() { this.spy(); });
|
502
|
+
return sourceCode.getCommentsBefore(node).some(comment => thisTagPattern.test(comment.value));
|
503
|
+
}
|
504
|
+
|
505
|
+
/**
|
506
|
+
* Determines if a node is surrounded by parentheses.
|
507
|
+
* @param {SourceCode} sourceCode The ESLint source code object
|
508
|
+
* @param {ASTNode} node The node to be checked.
|
509
|
+
* @returns {boolean} True if the node is parenthesised.
|
510
|
+
* @private
|
511
|
+
*/
|
512
|
+
function isParenthesised(sourceCode, node) {
|
513
|
+
const previousToken = sourceCode.getTokenBefore(node),
|
514
|
+
nextToken = sourceCode.getTokenAfter(node);
|
515
|
+
|
516
|
+
return Boolean(previousToken && nextToken) &&
|
517
|
+
previousToken.value === "(" && previousToken.range[1] <= node.range[0] &&
|
518
|
+
nextToken.value === ")" && nextToken.range[0] >= node.range[1];
|
519
|
+
}
|
520
|
+
|
521
|
+
/**
|
522
|
+
* Checks if the given token is a `=` token or not.
|
523
|
+
* @param {Token} token The token to check.
|
524
|
+
* @returns {boolean} `true` if the token is a `=` token.
|
525
|
+
*/
|
526
|
+
function isEqToken(token) {
|
527
|
+
return token.value === "=" && token.type === "Punctuator";
|
528
|
+
}
|
529
|
+
|
530
|
+
/**
|
531
|
+
* Checks if the given token is an arrow token or not.
|
532
|
+
* @param {Token} token The token to check.
|
533
|
+
* @returns {boolean} `true` if the token is an arrow token.
|
534
|
+
*/
|
535
|
+
function isArrowToken(token) {
|
536
|
+
return token.value === "=>" && token.type === "Punctuator";
|
537
|
+
}
|
538
|
+
|
539
|
+
/**
|
540
|
+
* Checks if the given token is a comma token or not.
|
541
|
+
* @param {Token} token The token to check.
|
542
|
+
* @returns {boolean} `true` if the token is a comma token.
|
543
|
+
*/
|
544
|
+
function isCommaToken(token) {
|
545
|
+
return token.value === "," && token.type === "Punctuator";
|
546
|
+
}
|
547
|
+
|
548
|
+
/**
|
549
|
+
* Checks if the given token is a dot token or not.
|
550
|
+
* @param {Token} token The token to check.
|
551
|
+
* @returns {boolean} `true` if the token is a dot token.
|
552
|
+
*/
|
553
|
+
function isDotToken(token) {
|
554
|
+
return token.value === "." && token.type === "Punctuator";
|
555
|
+
}
|
556
|
+
|
557
|
+
/**
|
558
|
+
* Checks if the given token is a `?.` token or not.
|
559
|
+
* @param {Token} token The token to check.
|
560
|
+
* @returns {boolean} `true` if the token is a `?.` token.
|
561
|
+
*/
|
562
|
+
function isQuestionDotToken(token) {
|
563
|
+
return token.value === "?." && token.type === "Punctuator";
|
564
|
+
}
|
565
|
+
|
566
|
+
/**
|
567
|
+
* Checks if the given token is a semicolon token or not.
|
568
|
+
* @param {Token} token The token to check.
|
569
|
+
* @returns {boolean} `true` if the token is a semicolon token.
|
570
|
+
*/
|
571
|
+
function isSemicolonToken(token) {
|
572
|
+
return token.value === ";" && token.type === "Punctuator";
|
573
|
+
}
|
574
|
+
|
575
|
+
/**
|
576
|
+
* Checks if the given token is a colon token or not.
|
577
|
+
* @param {Token} token The token to check.
|
578
|
+
* @returns {boolean} `true` if the token is a colon token.
|
579
|
+
*/
|
580
|
+
function isColonToken(token) {
|
581
|
+
return token.value === ":" && token.type === "Punctuator";
|
582
|
+
}
|
583
|
+
|
584
|
+
/**
|
585
|
+
* Checks if the given token is an opening parenthesis token or not.
|
586
|
+
* @param {Token} token The token to check.
|
587
|
+
* @returns {boolean} `true` if the token is an opening parenthesis token.
|
588
|
+
*/
|
589
|
+
function isOpeningParenToken(token) {
|
590
|
+
return token.value === "(" && token.type === "Punctuator";
|
591
|
+
}
|
592
|
+
|
593
|
+
/**
|
594
|
+
* Checks if the given token is a closing parenthesis token or not.
|
595
|
+
* @param {Token} token The token to check.
|
596
|
+
* @returns {boolean} `true` if the token is a closing parenthesis token.
|
597
|
+
*/
|
598
|
+
function isClosingParenToken(token) {
|
599
|
+
return token.value === ")" && token.type === "Punctuator";
|
600
|
+
}
|
601
|
+
|
602
|
+
/**
|
603
|
+
* Checks if the given token is an opening square bracket token or not.
|
604
|
+
* @param {Token} token The token to check.
|
605
|
+
* @returns {boolean} `true` if the token is an opening square bracket token.
|
606
|
+
*/
|
607
|
+
function isOpeningBracketToken(token) {
|
608
|
+
return token.value === "[" && token.type === "Punctuator";
|
609
|
+
}
|
610
|
+
|
611
|
+
/**
|
612
|
+
* Checks if the given token is a closing square bracket token or not.
|
613
|
+
* @param {Token} token The token to check.
|
614
|
+
* @returns {boolean} `true` if the token is a closing square bracket token.
|
615
|
+
*/
|
616
|
+
function isClosingBracketToken(token) {
|
617
|
+
return token.value === "]" && token.type === "Punctuator";
|
618
|
+
}
|
619
|
+
|
620
|
+
/**
|
621
|
+
* Checks if the given token is an opening brace token or not.
|
622
|
+
* @param {Token} token The token to check.
|
623
|
+
* @returns {boolean} `true` if the token is an opening brace token.
|
624
|
+
*/
|
625
|
+
function isOpeningBraceToken(token) {
|
626
|
+
return token.value === "{" && token.type === "Punctuator";
|
627
|
+
}
|
628
|
+
|
629
|
+
/**
|
630
|
+
* Checks if the given token is a closing brace token or not.
|
631
|
+
* @param {Token} token The token to check.
|
632
|
+
* @returns {boolean} `true` if the token is a closing brace token.
|
633
|
+
*/
|
634
|
+
function isClosingBraceToken(token) {
|
635
|
+
return token.value === "}" && token.type === "Punctuator";
|
636
|
+
}
|
637
|
+
|
638
|
+
/**
|
639
|
+
* Checks if the given token is a comment token or not.
|
640
|
+
* @param {Token} token The token to check.
|
641
|
+
* @returns {boolean} `true` if the token is a comment token.
|
642
|
+
*/
|
643
|
+
function isCommentToken(token) {
|
644
|
+
return token.type === "Line" || token.type === "Block" || token.type === "Shebang";
|
645
|
+
}
|
646
|
+
|
647
|
+
/**
|
648
|
+
* Checks if the given token is a keyword token or not.
|
649
|
+
* @param {Token} token The token to check.
|
650
|
+
* @returns {boolean} `true` if the token is a keyword token.
|
651
|
+
*/
|
652
|
+
function isKeywordToken(token) {
|
653
|
+
return token.type === "Keyword";
|
654
|
+
}
|
655
|
+
|
656
|
+
/**
|
657
|
+
* Gets the `(` token of the given function node.
|
658
|
+
* @param {ASTNode} node The function node to get.
|
659
|
+
* @param {SourceCode} sourceCode The source code object to get tokens.
|
660
|
+
* @returns {Token} `(` token.
|
661
|
+
*/
|
662
|
+
function getOpeningParenOfParams(node, sourceCode) {
|
663
|
+
|
664
|
+
// If the node is an arrow function and doesn't have parens, this returns the identifier of the first param.
|
665
|
+
if (node.type === "ArrowFunctionExpression" && node.params.length === 1) {
|
666
|
+
const argToken = sourceCode.getFirstToken(node.params[0]);
|
667
|
+
const maybeParenToken = sourceCode.getTokenBefore(argToken);
|
668
|
+
|
669
|
+
return isOpeningParenToken(maybeParenToken) ? maybeParenToken : argToken;
|
670
|
+
}
|
671
|
+
|
672
|
+
// Otherwise, returns paren.
|
673
|
+
return node.id
|
674
|
+
? sourceCode.getTokenAfter(node.id, isOpeningParenToken)
|
675
|
+
: sourceCode.getFirstToken(node, isOpeningParenToken);
|
676
|
+
}
|
677
|
+
|
678
|
+
/**
|
679
|
+
* Checks whether or not the tokens of two given nodes are same.
|
680
|
+
* @param {ASTNode} left A node 1 to compare.
|
681
|
+
* @param {ASTNode} right A node 2 to compare.
|
682
|
+
* @param {SourceCode} sourceCode The ESLint source code object.
|
683
|
+
* @returns {boolean} the source code for the given node.
|
684
|
+
*/
|
685
|
+
function equalTokens(left, right, sourceCode) {
|
686
|
+
const tokensL = sourceCode.getTokens(left);
|
687
|
+
const tokensR = sourceCode.getTokens(right);
|
688
|
+
|
689
|
+
if (tokensL.length !== tokensR.length) {
|
690
|
+
return false;
|
691
|
+
}
|
692
|
+
for (let i = 0; i < tokensL.length; ++i) {
|
693
|
+
if (tokensL[i].type !== tokensR[i].type ||
|
694
|
+
tokensL[i].value !== tokensR[i].value
|
695
|
+
) {
|
696
|
+
return false;
|
697
|
+
}
|
698
|
+
}
|
699
|
+
|
700
|
+
return true;
|
701
|
+
}
|
702
|
+
|
703
|
+
/**
|
704
|
+
* Check if the given node is a true logical expression or not.
|
705
|
+
*
|
706
|
+
* The three binary expressions logical-or (`||`), logical-and (`&&`), and
|
707
|
+
* coalesce (`??`) are known as `ShortCircuitExpression`.
|
708
|
+
* But ESTree represents those by `LogicalExpression` node.
|
709
|
+
*
|
710
|
+
* This function rejects coalesce expressions of `LogicalExpression` node.
|
711
|
+
* @param {ASTNode} node The node to check.
|
712
|
+
* @returns {boolean} `true` if the node is `&&` or `||`.
|
713
|
+
* @see https://tc39.es/ecma262/#prod-ShortCircuitExpression
|
714
|
+
*/
|
715
|
+
function isLogicalExpression(node) {
|
716
|
+
return (
|
717
|
+
node.type === "LogicalExpression" &&
|
718
|
+
(node.operator === "&&" || node.operator === "||")
|
719
|
+
);
|
720
|
+
}
|
721
|
+
|
722
|
+
/**
|
723
|
+
* Check if the given node is a nullish coalescing expression or not.
|
724
|
+
*
|
725
|
+
* The three binary expressions logical-or (`||`), logical-and (`&&`), and
|
726
|
+
* coalesce (`??`) are known as `ShortCircuitExpression`.
|
727
|
+
* But ESTree represents those by `LogicalExpression` node.
|
728
|
+
*
|
729
|
+
* This function finds only coalesce expressions of `LogicalExpression` node.
|
730
|
+
* @param {ASTNode} node The node to check.
|
731
|
+
* @returns {boolean} `true` if the node is `??`.
|
732
|
+
*/
|
733
|
+
function isCoalesceExpression(node) {
|
734
|
+
return node.type === "LogicalExpression" && node.operator === "??";
|
735
|
+
}
|
736
|
+
|
737
|
+
/**
|
738
|
+
* Check if given two nodes are the pair of a logical expression and a coalesce expression.
|
739
|
+
* @param {ASTNode} left A node to check.
|
740
|
+
* @param {ASTNode} right Another node to check.
|
741
|
+
* @returns {boolean} `true` if the two nodes are the pair of a logical expression and a coalesce expression.
|
742
|
+
*/
|
743
|
+
function isMixedLogicalAndCoalesceExpressions(left, right) {
|
744
|
+
return (
|
745
|
+
(isLogicalExpression(left) && isCoalesceExpression(right)) ||
|
746
|
+
(isCoalesceExpression(left) && isLogicalExpression(right))
|
747
|
+
);
|
748
|
+
}
|
749
|
+
|
750
|
+
/**
|
751
|
+
* Checks if the given operator is a logical assignment operator.
|
752
|
+
* @param {string} operator The operator to check.
|
753
|
+
* @returns {boolean} `true` if the operator is a logical assignment operator.
|
754
|
+
*/
|
755
|
+
function isLogicalAssignmentOperator(operator) {
|
756
|
+
return LOGICAL_ASSIGNMENT_OPERATORS.has(operator);
|
757
|
+
}
|
758
|
+
|
759
|
+
/**
|
760
|
+
* Get the colon token of the given SwitchCase node.
|
761
|
+
* @param {ASTNode} node The SwitchCase node to get.
|
762
|
+
* @param {SourceCode} sourceCode The source code object to get tokens.
|
763
|
+
* @returns {Token} The colon token of the node.
|
764
|
+
*/
|
765
|
+
function getSwitchCaseColonToken(node, sourceCode) {
|
766
|
+
if (node.test) {
|
767
|
+
return sourceCode.getTokenAfter(node.test, isColonToken);
|
768
|
+
}
|
769
|
+
return sourceCode.getFirstToken(node, 1);
|
770
|
+
}
|
771
|
+
|
772
|
+
/**
|
773
|
+
* Gets ESM module export name represented by the given node.
|
774
|
+
* @param {ASTNode} node `Identifier` or string `Literal` node in a position
|
775
|
+
* that represents a module export name:
|
776
|
+
* - `ImportSpecifier#imported`
|
777
|
+
* - `ExportSpecifier#local` (if it is a re-export from another module)
|
778
|
+
* - `ExportSpecifier#exported`
|
779
|
+
* - `ExportAllDeclaration#exported`
|
780
|
+
* @returns {string} The module export name.
|
781
|
+
*/
|
782
|
+
function getModuleExportName(node) {
|
783
|
+
if (node.type === "Identifier") {
|
784
|
+
return node.name;
|
785
|
+
}
|
786
|
+
|
787
|
+
// string literal
|
788
|
+
return node.value;
|
789
|
+
}
|
790
|
+
|
791
|
+
//------------------------------------------------------------------------------
|
792
|
+
// Public Interface
|
793
|
+
//------------------------------------------------------------------------------
|
794
|
+
|
795
|
+
module.exports = {
|
796
|
+
COMMENTS_IGNORE_PATTERN,
|
797
|
+
LINEBREAKS,
|
798
|
+
LINEBREAK_MATCHER: lineBreakPattern,
|
799
|
+
SHEBANG_MATCHER: shebangPattern,
|
800
|
+
STATEMENT_LIST_PARENTS,
|
801
|
+
|
802
|
+
/**
|
803
|
+
* Determines whether two adjacent tokens are on the same line.
|
804
|
+
* @param {Object} left The left token object.
|
805
|
+
* @param {Object} right The right token object.
|
806
|
+
* @returns {boolean} Whether or not the tokens are on the same line.
|
807
|
+
* @public
|
808
|
+
*/
|
809
|
+
isTokenOnSameLine(left, right) {
|
810
|
+
return left.loc.end.line === right.loc.start.line;
|
811
|
+
},
|
812
|
+
|
813
|
+
isNullOrUndefined,
|
814
|
+
isCallee,
|
815
|
+
isES5Constructor,
|
816
|
+
getUpperFunction,
|
817
|
+
isFunction,
|
818
|
+
isLoop,
|
819
|
+
isInLoop,
|
820
|
+
isArrayFromMethod,
|
821
|
+
isParenthesised,
|
822
|
+
createGlobalLinebreakMatcher,
|
823
|
+
equalTokens,
|
824
|
+
|
825
|
+
isArrowToken,
|
826
|
+
isClosingBraceToken,
|
827
|
+
isClosingBracketToken,
|
828
|
+
isClosingParenToken,
|
829
|
+
isColonToken,
|
830
|
+
isCommaToken,
|
831
|
+
isCommentToken,
|
832
|
+
isDotToken,
|
833
|
+
isQuestionDotToken,
|
834
|
+
isKeywordToken,
|
835
|
+
isNotClosingBraceToken: negate(isClosingBraceToken),
|
836
|
+
isNotClosingBracketToken: negate(isClosingBracketToken),
|
837
|
+
isNotClosingParenToken: negate(isClosingParenToken),
|
838
|
+
isNotColonToken: negate(isColonToken),
|
839
|
+
isNotCommaToken: negate(isCommaToken),
|
840
|
+
isNotDotToken: negate(isDotToken),
|
841
|
+
isNotQuestionDotToken: negate(isQuestionDotToken),
|
842
|
+
isNotOpeningBraceToken: negate(isOpeningBraceToken),
|
843
|
+
isNotOpeningBracketToken: negate(isOpeningBracketToken),
|
844
|
+
isNotOpeningParenToken: negate(isOpeningParenToken),
|
845
|
+
isNotSemicolonToken: negate(isSemicolonToken),
|
846
|
+
isOpeningBraceToken,
|
847
|
+
isOpeningBracketToken,
|
848
|
+
isOpeningParenToken,
|
849
|
+
isSemicolonToken,
|
850
|
+
isEqToken,
|
851
|
+
|
852
|
+
/**
|
853
|
+
* Checks whether or not a given node is a string literal.
|
854
|
+
* @param {ASTNode} node A node to check.
|
855
|
+
* @returns {boolean} `true` if the node is a string literal.
|
856
|
+
*/
|
857
|
+
isStringLiteral(node) {
|
858
|
+
return (
|
859
|
+
(node.type === "Literal" && typeof node.value === "string") ||
|
860
|
+
node.type === "TemplateLiteral"
|
861
|
+
);
|
862
|
+
},
|
863
|
+
|
864
|
+
/**
|
865
|
+
* Checks whether a given node is a breakable statement or not.
|
866
|
+
* The node is breakable if the node is one of the following type:
|
867
|
+
*
|
868
|
+
* - DoWhileStatement
|
869
|
+
* - ForInStatement
|
870
|
+
* - ForOfStatement
|
871
|
+
* - ForStatement
|
872
|
+
* - SwitchStatement
|
873
|
+
* - WhileStatement
|
874
|
+
* @param {ASTNode} node A node to check.
|
875
|
+
* @returns {boolean} `true` if the node is breakable.
|
876
|
+
*/
|
877
|
+
isBreakableStatement(node) {
|
878
|
+
return breakableTypePattern.test(node.type);
|
879
|
+
},
|
880
|
+
|
881
|
+
/**
|
882
|
+
* Gets references which are non initializer and writable.
|
883
|
+
* @param {Reference[]} references An array of references.
|
884
|
+
* @returns {Reference[]} An array of only references which are non initializer and writable.
|
885
|
+
* @public
|
886
|
+
*/
|
887
|
+
getModifyingReferences(references) {
|
888
|
+
return references.filter(isModifyingReference);
|
889
|
+
},
|
890
|
+
|
891
|
+
/**
|
892
|
+
* Validate that a string passed in is surrounded by the specified character
|
893
|
+
* @param {string} val The text to check.
|
894
|
+
* @param {string} character The character to see if it's surrounded by.
|
895
|
+
* @returns {boolean} True if the text is surrounded by the character, false if not.
|
896
|
+
* @private
|
897
|
+
*/
|
898
|
+
isSurroundedBy(val, character) {
|
899
|
+
return val[0] === character && val[val.length - 1] === character;
|
900
|
+
},
|
901
|
+
|
902
|
+
/**
|
903
|
+
* Returns whether the provided node is an ESLint directive comment or not
|
904
|
+
* @param {Line|Block} node The comment token to be checked
|
905
|
+
* @returns {boolean} `true` if the node is an ESLint directive comment
|
906
|
+
*/
|
907
|
+
isDirectiveComment(node) {
|
908
|
+
const comment = node.value.trim();
|
909
|
+
|
910
|
+
return (
|
911
|
+
node.type === "Line" && comment.indexOf("eslint-") === 0 ||
|
912
|
+
node.type === "Block" && (
|
913
|
+
comment.indexOf("global ") === 0 ||
|
914
|
+
comment.indexOf("eslint ") === 0 ||
|
915
|
+
comment.indexOf("eslint-") === 0
|
916
|
+
)
|
917
|
+
);
|
918
|
+
},
|
919
|
+
|
920
|
+
/**
|
921
|
+
* Gets the trailing statement of a given node.
|
922
|
+
*
|
923
|
+
* if (code)
|
924
|
+
* consequent;
|
925
|
+
*
|
926
|
+
* When taking this `IfStatement`, returns `consequent;` statement.
|
927
|
+
* @param {ASTNode} A node to get.
|
928
|
+
* @returns {ASTNode|null} The trailing statement's node.
|
929
|
+
*/
|
930
|
+
getTrailingStatement: esutils.ast.trailingStatement,
|
931
|
+
|
932
|
+
/**
|
933
|
+
* Finds the variable by a given name in a given scope and its upper scopes.
|
934
|
+
* @param {eslint-scope.Scope} initScope A scope to start find.
|
935
|
+
* @param {string} name A variable name to find.
|
936
|
+
* @returns {eslint-scope.Variable|null} A found variable or `null`.
|
937
|
+
*/
|
938
|
+
getVariableByName(initScope, name) {
|
939
|
+
let scope = initScope;
|
940
|
+
|
941
|
+
while (scope) {
|
942
|
+
const variable = scope.set.get(name);
|
943
|
+
|
944
|
+
if (variable) {
|
945
|
+
return variable;
|
946
|
+
}
|
947
|
+
|
948
|
+
scope = scope.upper;
|
949
|
+
}
|
950
|
+
|
951
|
+
return null;
|
952
|
+
},
|
953
|
+
|
954
|
+
/**
|
955
|
+
* Checks whether or not a given function node is the default `this` binding.
|
956
|
+
*
|
957
|
+
* First, this checks the node:
|
958
|
+
*
|
959
|
+
* - The given node is not in `PropertyDefinition#value` position.
|
960
|
+
* - The given node is not `StaticBlock`.
|
961
|
+
* - The function name does not start with uppercase. It's a convention to capitalize the names
|
962
|
+
* of constructor functions. This check is not performed if `capIsConstructor` is set to `false`.
|
963
|
+
* - The function does not have a JSDoc comment that has a @this tag.
|
964
|
+
*
|
965
|
+
* Next, this checks the location of the node.
|
966
|
+
* If the location is below, this judges `this` is valid.
|
967
|
+
*
|
968
|
+
* - The location is not on an object literal.
|
969
|
+
* - The location is not assigned to a variable which starts with an uppercase letter. Applies to anonymous
|
970
|
+
* functions only, as the name of the variable is considered to be the name of the function in this case.
|
971
|
+
* This check is not performed if `capIsConstructor` is set to `false`.
|
972
|
+
* - The location is not on an ES2015 class.
|
973
|
+
* - Its `bind`/`call`/`apply` method is not called directly.
|
974
|
+
* - The function is not a callback of array methods (such as `.forEach()`) if `thisArg` is given.
|
975
|
+
* @param {ASTNode} node A function node to check. It also can be an implicit function, like `StaticBlock`
|
976
|
+
* or any expression that is `PropertyDefinition#value` node.
|
977
|
+
* @param {SourceCode} sourceCode A SourceCode instance to get comments.
|
978
|
+
* @param {boolean} [capIsConstructor = true] `false` disables the assumption that functions which name starts
|
979
|
+
* with an uppercase or are assigned to a variable which name starts with an uppercase are constructors.
|
980
|
+
* @returns {boolean} The function node is the default `this` binding.
|
981
|
+
*/
|
982
|
+
isDefaultThisBinding(node, sourceCode, { capIsConstructor = true } = {}) {
|
983
|
+
|
984
|
+
/*
|
985
|
+
* Class field initializers are implicit functions, but ESTree doesn't have the AST node of field initializers.
|
986
|
+
* Therefore, A expression node at `PropertyDefinition#value` is a function.
|
987
|
+
* In this case, `this` is always not default binding.
|
988
|
+
*/
|
989
|
+
if (node.parent.type === "PropertyDefinition" && node.parent.value === node) {
|
990
|
+
return false;
|
991
|
+
}
|
992
|
+
|
993
|
+
// Class static blocks are implicit functions. In this case, `this` is always not default binding.
|
994
|
+
if (node.type === "StaticBlock") {
|
995
|
+
return false;
|
996
|
+
}
|
997
|
+
|
998
|
+
if (
|
999
|
+
(capIsConstructor && isES5Constructor(node)) ||
|
1000
|
+
hasJSDocThisTag(node, sourceCode)
|
1001
|
+
) {
|
1002
|
+
return false;
|
1003
|
+
}
|
1004
|
+
const isAnonymous = node.id === null;
|
1005
|
+
let currentNode = node;
|
1006
|
+
|
1007
|
+
while (currentNode) {
|
1008
|
+
const parent = currentNode.parent;
|
1009
|
+
|
1010
|
+
switch (parent.type) {
|
1011
|
+
|
1012
|
+
/*
|
1013
|
+
* Looks up the destination.
|
1014
|
+
* e.g., obj.foo = nativeFoo || function foo() { ... };
|
1015
|
+
*/
|
1016
|
+
case "LogicalExpression":
|
1017
|
+
case "ConditionalExpression":
|
1018
|
+
case "ChainExpression":
|
1019
|
+
currentNode = parent;
|
1020
|
+
break;
|
1021
|
+
|
1022
|
+
/*
|
1023
|
+
* If the upper function is IIFE, checks the destination of the return value.
|
1024
|
+
* e.g.
|
1025
|
+
* obj.foo = (function() {
|
1026
|
+
* // setup...
|
1027
|
+
* return function foo() { ... };
|
1028
|
+
* })();
|
1029
|
+
* obj.foo = (() =>
|
1030
|
+
* function foo() { ... }
|
1031
|
+
* )();
|
1032
|
+
*/
|
1033
|
+
case "ReturnStatement": {
|
1034
|
+
const func = getUpperFunction(parent);
|
1035
|
+
|
1036
|
+
if (func === null || !isCallee(func)) {
|
1037
|
+
return true;
|
1038
|
+
}
|
1039
|
+
currentNode = func.parent;
|
1040
|
+
break;
|
1041
|
+
}
|
1042
|
+
case "ArrowFunctionExpression":
|
1043
|
+
if (currentNode !== parent.body || !isCallee(parent)) {
|
1044
|
+
return true;
|
1045
|
+
}
|
1046
|
+
currentNode = parent.parent;
|
1047
|
+
break;
|
1048
|
+
|
1049
|
+
/*
|
1050
|
+
* e.g.
|
1051
|
+
* var obj = { foo() { ... } };
|
1052
|
+
* var obj = { foo: function() { ... } };
|
1053
|
+
* class A { constructor() { ... } }
|
1054
|
+
* class A { foo() { ... } }
|
1055
|
+
* class A { get foo() { ... } }
|
1056
|
+
* class A { set foo() { ... } }
|
1057
|
+
* class A { static foo() { ... } }
|
1058
|
+
* class A { foo = function() { ... } }
|
1059
|
+
*/
|
1060
|
+
case "Property":
|
1061
|
+
case "PropertyDefinition":
|
1062
|
+
case "MethodDefinition":
|
1063
|
+
return parent.value !== currentNode;
|
1064
|
+
|
1065
|
+
/*
|
1066
|
+
* e.g.
|
1067
|
+
* obj.foo = function foo() { ... };
|
1068
|
+
* Foo = function() { ... };
|
1069
|
+
* [obj.foo = function foo() { ... }] = a;
|
1070
|
+
* [Foo = function() { ... }] = a;
|
1071
|
+
*/
|
1072
|
+
case "AssignmentExpression":
|
1073
|
+
case "AssignmentPattern":
|
1074
|
+
if (parent.left.type === "MemberExpression") {
|
1075
|
+
return false;
|
1076
|
+
}
|
1077
|
+
if (
|
1078
|
+
capIsConstructor &&
|
1079
|
+
isAnonymous &&
|
1080
|
+
parent.left.type === "Identifier" &&
|
1081
|
+
startsWithUpperCase(parent.left.name)
|
1082
|
+
) {
|
1083
|
+
return false;
|
1084
|
+
}
|
1085
|
+
return true;
|
1086
|
+
|
1087
|
+
/*
|
1088
|
+
* e.g.
|
1089
|
+
* var Foo = function() { ... };
|
1090
|
+
*/
|
1091
|
+
case "VariableDeclarator":
|
1092
|
+
return !(
|
1093
|
+
capIsConstructor &&
|
1094
|
+
isAnonymous &&
|
1095
|
+
parent.init === currentNode &&
|
1096
|
+
parent.id.type === "Identifier" &&
|
1097
|
+
startsWithUpperCase(parent.id.name)
|
1098
|
+
);
|
1099
|
+
|
1100
|
+
/*
|
1101
|
+
* e.g.
|
1102
|
+
* var foo = function foo() { ... }.bind(obj);
|
1103
|
+
* (function foo() { ... }).call(obj);
|
1104
|
+
* (function foo() { ... }).apply(obj, []);
|
1105
|
+
*/
|
1106
|
+
case "MemberExpression":
|
1107
|
+
if (
|
1108
|
+
parent.object === currentNode &&
|
1109
|
+
isSpecificMemberAccess(parent, null, bindOrCallOrApplyPattern)
|
1110
|
+
) {
|
1111
|
+
const maybeCalleeNode = parent.parent.type === "ChainExpression"
|
1112
|
+
? parent.parent
|
1113
|
+
: parent;
|
1114
|
+
|
1115
|
+
return !(
|
1116
|
+
isCallee(maybeCalleeNode) &&
|
1117
|
+
maybeCalleeNode.parent.arguments.length >= 1 &&
|
1118
|
+
!isNullOrUndefined(maybeCalleeNode.parent.arguments[0])
|
1119
|
+
);
|
1120
|
+
}
|
1121
|
+
return true;
|
1122
|
+
|
1123
|
+
/*
|
1124
|
+
* e.g.
|
1125
|
+
* Reflect.apply(function() {}, obj, []);
|
1126
|
+
* Array.from([], function() {}, obj);
|
1127
|
+
* list.forEach(function() {}, obj);
|
1128
|
+
*/
|
1129
|
+
case "CallExpression":
|
1130
|
+
if (isReflectApply(parent.callee)) {
|
1131
|
+
return (
|
1132
|
+
parent.arguments.length !== 3 ||
|
1133
|
+
parent.arguments[0] !== currentNode ||
|
1134
|
+
isNullOrUndefined(parent.arguments[1])
|
1135
|
+
);
|
1136
|
+
}
|
1137
|
+
if (isArrayFromMethod(parent.callee)) {
|
1138
|
+
return (
|
1139
|
+
parent.arguments.length !== 3 ||
|
1140
|
+
parent.arguments[1] !== currentNode ||
|
1141
|
+
isNullOrUndefined(parent.arguments[2])
|
1142
|
+
);
|
1143
|
+
}
|
1144
|
+
if (isMethodWhichHasThisArg(parent.callee)) {
|
1145
|
+
return (
|
1146
|
+
parent.arguments.length !== 2 ||
|
1147
|
+
parent.arguments[0] !== currentNode ||
|
1148
|
+
isNullOrUndefined(parent.arguments[1])
|
1149
|
+
);
|
1150
|
+
}
|
1151
|
+
return true;
|
1152
|
+
|
1153
|
+
// Otherwise `this` is default.
|
1154
|
+
default:
|
1155
|
+
return true;
|
1156
|
+
}
|
1157
|
+
}
|
1158
|
+
|
1159
|
+
/* istanbul ignore next */
|
1160
|
+
return true;
|
1161
|
+
},
|
1162
|
+
|
1163
|
+
/**
|
1164
|
+
* Get the precedence level based on the node type
|
1165
|
+
* @param {ASTNode} node node to evaluate
|
1166
|
+
* @returns {int} precedence level
|
1167
|
+
* @private
|
1168
|
+
*/
|
1169
|
+
getPrecedence(node) {
|
1170
|
+
switch (node.type) {
|
1171
|
+
case "SequenceExpression":
|
1172
|
+
return 0;
|
1173
|
+
|
1174
|
+
case "AssignmentExpression":
|
1175
|
+
case "ArrowFunctionExpression":
|
1176
|
+
case "YieldExpression":
|
1177
|
+
return 1;
|
1178
|
+
|
1179
|
+
case "ConditionalExpression":
|
1180
|
+
return 3;
|
1181
|
+
|
1182
|
+
case "LogicalExpression":
|
1183
|
+
switch (node.operator) {
|
1184
|
+
case "||":
|
1185
|
+
case "??":
|
1186
|
+
return 4;
|
1187
|
+
case "&&":
|
1188
|
+
return 5;
|
1189
|
+
|
1190
|
+
// no default
|
1191
|
+
}
|
1192
|
+
|
1193
|
+
/* falls through */
|
1194
|
+
|
1195
|
+
case "BinaryExpression":
|
1196
|
+
|
1197
|
+
switch (node.operator) {
|
1198
|
+
case "|":
|
1199
|
+
return 6;
|
1200
|
+
case "^":
|
1201
|
+
return 7;
|
1202
|
+
case "&":
|
1203
|
+
return 8;
|
1204
|
+
case "==":
|
1205
|
+
case "!=":
|
1206
|
+
case "===":
|
1207
|
+
case "!==":
|
1208
|
+
return 9;
|
1209
|
+
case "<":
|
1210
|
+
case "<=":
|
1211
|
+
case ">":
|
1212
|
+
case ">=":
|
1213
|
+
case "in":
|
1214
|
+
case "instanceof":
|
1215
|
+
return 10;
|
1216
|
+
case "<<":
|
1217
|
+
case ">>":
|
1218
|
+
case ">>>":
|
1219
|
+
return 11;
|
1220
|
+
case "+":
|
1221
|
+
case "-":
|
1222
|
+
return 12;
|
1223
|
+
case "*":
|
1224
|
+
case "/":
|
1225
|
+
case "%":
|
1226
|
+
return 13;
|
1227
|
+
case "**":
|
1228
|
+
return 15;
|
1229
|
+
|
1230
|
+
// no default
|
1231
|
+
}
|
1232
|
+
|
1233
|
+
/* falls through */
|
1234
|
+
|
1235
|
+
case "UnaryExpression":
|
1236
|
+
case "AwaitExpression":
|
1237
|
+
return 16;
|
1238
|
+
|
1239
|
+
case "UpdateExpression":
|
1240
|
+
return 17;
|
1241
|
+
|
1242
|
+
case "CallExpression":
|
1243
|
+
case "ChainExpression":
|
1244
|
+
case "ImportExpression":
|
1245
|
+
return 18;
|
1246
|
+
|
1247
|
+
case "NewExpression":
|
1248
|
+
return 19;
|
1249
|
+
|
1250
|
+
default:
|
1251
|
+
return 20;
|
1252
|
+
}
|
1253
|
+
},
|
1254
|
+
|
1255
|
+
/**
|
1256
|
+
* Checks whether the given node is an empty block node or not.
|
1257
|
+
* @param {ASTNode|null} node The node to check.
|
1258
|
+
* @returns {boolean} `true` if the node is an empty block.
|
1259
|
+
*/
|
1260
|
+
isEmptyBlock(node) {
|
1261
|
+
return Boolean(node && node.type === "BlockStatement" && node.body.length === 0);
|
1262
|
+
},
|
1263
|
+
|
1264
|
+
/**
|
1265
|
+
* Checks whether the given node is an empty function node or not.
|
1266
|
+
* @param {ASTNode|null} node The node to check.
|
1267
|
+
* @returns {boolean} `true` if the node is an empty function.
|
1268
|
+
*/
|
1269
|
+
isEmptyFunction(node) {
|
1270
|
+
return isFunction(node) && module.exports.isEmptyBlock(node.body);
|
1271
|
+
},
|
1272
|
+
|
1273
|
+
/**
|
1274
|
+
* Get directives from directive prologue of a Program or Function node.
|
1275
|
+
* @param {ASTNode} node The node to check.
|
1276
|
+
* @returns {ASTNode[]} The directives found in the directive prologue.
|
1277
|
+
*/
|
1278
|
+
getDirectivePrologue(node) {
|
1279
|
+
const directives = [];
|
1280
|
+
|
1281
|
+
// Directive prologues only occur at the top of files or functions.
|
1282
|
+
if (
|
1283
|
+
node.type === "Program" ||
|
1284
|
+
node.type === "FunctionDeclaration" ||
|
1285
|
+
node.type === "FunctionExpression" ||
|
1286
|
+
|
1287
|
+
/*
|
1288
|
+
* Do not check arrow functions with implicit return.
|
1289
|
+
* `() => "use strict";` returns the string `"use strict"`.
|
1290
|
+
*/
|
1291
|
+
(node.type === "ArrowFunctionExpression" && node.body.type === "BlockStatement")
|
1292
|
+
) {
|
1293
|
+
const statements = node.type === "Program" ? node.body : node.body.body;
|
1294
|
+
|
1295
|
+
for (const statement of statements) {
|
1296
|
+
if (
|
1297
|
+
statement.type === "ExpressionStatement" &&
|
1298
|
+
statement.expression.type === "Literal"
|
1299
|
+
) {
|
1300
|
+
directives.push(statement);
|
1301
|
+
} else {
|
1302
|
+
break;
|
1303
|
+
}
|
1304
|
+
}
|
1305
|
+
}
|
1306
|
+
|
1307
|
+
return directives;
|
1308
|
+
},
|
1309
|
+
|
1310
|
+
|
1311
|
+
/**
|
1312
|
+
* Determines whether this node is a decimal integer literal. If a node is a decimal integer literal, a dot added
|
1313
|
+
* after the node will be parsed as a decimal point, rather than a property-access dot.
|
1314
|
+
* @param {ASTNode} node The node to check.
|
1315
|
+
* @returns {boolean} `true` if this node is a decimal integer.
|
1316
|
+
* @example
|
1317
|
+
*
|
1318
|
+
* 0 // true
|
1319
|
+
* 5 // true
|
1320
|
+
* 50 // true
|
1321
|
+
* 5_000 // true
|
1322
|
+
* 1_234_56 // true
|
1323
|
+
* 08 // true
|
1324
|
+
* 0192 // true
|
1325
|
+
* 5. // false
|
1326
|
+
* .5 // false
|
1327
|
+
* 5.0 // false
|
1328
|
+
* 5.00_00 // false
|
1329
|
+
* 05 // false
|
1330
|
+
* 0x5 // false
|
1331
|
+
* 0b101 // false
|
1332
|
+
* 0b11_01 // false
|
1333
|
+
* 0o5 // false
|
1334
|
+
* 5e0 // false
|
1335
|
+
* 5e1_000 // false
|
1336
|
+
* 5n // false
|
1337
|
+
* 1_000n // false
|
1338
|
+
* "5" // false
|
1339
|
+
*
|
1340
|
+
*/
|
1341
|
+
isDecimalInteger(node) {
|
1342
|
+
return node.type === "Literal" && typeof node.value === "number" &&
|
1343
|
+
DECIMAL_INTEGER_PATTERN.test(node.raw);
|
1344
|
+
},
|
1345
|
+
|
1346
|
+
/**
|
1347
|
+
* Determines whether this token is a decimal integer numeric token.
|
1348
|
+
* This is similar to isDecimalInteger(), but for tokens.
|
1349
|
+
* @param {Token} token The token to check.
|
1350
|
+
* @returns {boolean} `true` if this token is a decimal integer.
|
1351
|
+
*/
|
1352
|
+
isDecimalIntegerNumericToken(token) {
|
1353
|
+
return token.type === "Numeric" && DECIMAL_INTEGER_PATTERN.test(token.value);
|
1354
|
+
},
|
1355
|
+
|
1356
|
+
/**
|
1357
|
+
* Gets the name and kind of the given function node.
|
1358
|
+
*
|
1359
|
+
* - `function foo() {}` .................... `function 'foo'`
|
1360
|
+
* - `(function foo() {})` .................. `function 'foo'`
|
1361
|
+
* - `(function() {})` ...................... `function`
|
1362
|
+
* - `function* foo() {}` ................... `generator function 'foo'`
|
1363
|
+
* - `(function* foo() {})` ................. `generator function 'foo'`
|
1364
|
+
* - `(function*() {})` ..................... `generator function`
|
1365
|
+
* - `() => {}` ............................. `arrow function`
|
1366
|
+
* - `async () => {}` ....................... `async arrow function`
|
1367
|
+
* - `({ foo: function foo() {} })` ......... `method 'foo'`
|
1368
|
+
* - `({ foo: function() {} })` ............. `method 'foo'`
|
1369
|
+
* - `({ ['foo']: function() {} })` ......... `method 'foo'`
|
1370
|
+
* - `({ [foo]: function() {} })` ........... `method`
|
1371
|
+
* - `({ foo() {} })` ....................... `method 'foo'`
|
1372
|
+
* - `({ foo: function* foo() {} })` ........ `generator method 'foo'`
|
1373
|
+
* - `({ foo: function*() {} })` ............ `generator method 'foo'`
|
1374
|
+
* - `({ ['foo']: function*() {} })` ........ `generator method 'foo'`
|
1375
|
+
* - `({ [foo]: function*() {} })` .......... `generator method`
|
1376
|
+
* - `({ *foo() {} })` ...................... `generator method 'foo'`
|
1377
|
+
* - `({ foo: async function foo() {} })` ... `async method 'foo'`
|
1378
|
+
* - `({ foo: async function() {} })` ....... `async method 'foo'`
|
1379
|
+
* - `({ ['foo']: async function() {} })` ... `async method 'foo'`
|
1380
|
+
* - `({ [foo]: async function() {} })` ..... `async method`
|
1381
|
+
* - `({ async foo() {} })` ................. `async method 'foo'`
|
1382
|
+
* - `({ get foo() {} })` ................... `getter 'foo'`
|
1383
|
+
* - `({ set foo(a) {} })` .................. `setter 'foo'`
|
1384
|
+
* - `class A { constructor() {} }` ......... `constructor`
|
1385
|
+
* - `class A { foo() {} }` ................. `method 'foo'`
|
1386
|
+
* - `class A { *foo() {} }` ................ `generator method 'foo'`
|
1387
|
+
* - `class A { async foo() {} }` ........... `async method 'foo'`
|
1388
|
+
* - `class A { ['foo']() {} }` ............. `method 'foo'`
|
1389
|
+
* - `class A { *['foo']() {} }` ............ `generator method 'foo'`
|
1390
|
+
* - `class A { async ['foo']() {} }` ....... `async method 'foo'`
|
1391
|
+
* - `class A { [foo]() {} }` ............... `method`
|
1392
|
+
* - `class A { *[foo]() {} }` .............. `generator method`
|
1393
|
+
* - `class A { async [foo]() {} }` ......... `async method`
|
1394
|
+
* - `class A { get foo() {} }` ............. `getter 'foo'`
|
1395
|
+
* - `class A { set foo(a) {} }` ............ `setter 'foo'`
|
1396
|
+
* - `class A { static foo() {} }` .......... `static method 'foo'`
|
1397
|
+
* - `class A { static *foo() {} }` ......... `static generator method 'foo'`
|
1398
|
+
* - `class A { static async foo() {} }` .... `static async method 'foo'`
|
1399
|
+
* - `class A { static get foo() {} }` ...... `static getter 'foo'`
|
1400
|
+
* - `class A { static set foo(a) {} }` ..... `static setter 'foo'`
|
1401
|
+
* - `class A { foo = () => {}; }` .......... `method 'foo'`
|
1402
|
+
* - `class A { foo = function() {}; }` ..... `method 'foo'`
|
1403
|
+
* - `class A { foo = function bar() {}; }` . `method 'foo'`
|
1404
|
+
* - `class A { static foo = () => {}; }` ... `static method 'foo'`
|
1405
|
+
* - `class A { '#foo' = () => {}; }` ....... `method '#foo'`
|
1406
|
+
* - `class A { #foo = () => {}; }` ......... `private method #foo`
|
1407
|
+
* - `class A { static #foo = () => {}; }` .. `static private method #foo`
|
1408
|
+
* - `class A { '#foo'() {} }` .............. `method '#foo'`
|
1409
|
+
* - `class A { #foo() {} }` ................ `private method #foo`
|
1410
|
+
* - `class A { static #foo() {} }` ......... `static private method #foo`
|
1411
|
+
* @param {ASTNode} node The function node to get.
|
1412
|
+
* @returns {string} The name and kind of the function node.
|
1413
|
+
*/
|
1414
|
+
getFunctionNameWithKind(node) {
|
1415
|
+
const parent = node.parent;
|
1416
|
+
const tokens = [];
|
1417
|
+
|
1418
|
+
if (parent.type === "MethodDefinition" || parent.type === "PropertyDefinition") {
|
1419
|
+
|
1420
|
+
// The proposal uses `static` word consistently before visibility words: https://github.com/tc39/proposal-static-class-features
|
1421
|
+
if (parent.static) {
|
1422
|
+
tokens.push("static");
|
1423
|
+
}
|
1424
|
+
if (!parent.computed && parent.key.type === "PrivateIdentifier") {
|
1425
|
+
tokens.push("private");
|
1426
|
+
}
|
1427
|
+
}
|
1428
|
+
if (node.async) {
|
1429
|
+
tokens.push("async");
|
1430
|
+
}
|
1431
|
+
if (node.generator) {
|
1432
|
+
tokens.push("generator");
|
1433
|
+
}
|
1434
|
+
|
1435
|
+
if (parent.type === "Property" || parent.type === "MethodDefinition") {
|
1436
|
+
if (parent.kind === "constructor") {
|
1437
|
+
return "constructor";
|
1438
|
+
}
|
1439
|
+
if (parent.kind === "get") {
|
1440
|
+
tokens.push("getter");
|
1441
|
+
} else if (parent.kind === "set") {
|
1442
|
+
tokens.push("setter");
|
1443
|
+
} else {
|
1444
|
+
tokens.push("method");
|
1445
|
+
}
|
1446
|
+
} else if (parent.type === "PropertyDefinition") {
|
1447
|
+
tokens.push("method");
|
1448
|
+
} else {
|
1449
|
+
if (node.type === "ArrowFunctionExpression") {
|
1450
|
+
tokens.push("arrow");
|
1451
|
+
}
|
1452
|
+
tokens.push("function");
|
1453
|
+
}
|
1454
|
+
|
1455
|
+
if (parent.type === "Property" || parent.type === "MethodDefinition" || parent.type === "PropertyDefinition") {
|
1456
|
+
if (!parent.computed && parent.key.type === "PrivateIdentifier") {
|
1457
|
+
tokens.push(`#${parent.key.name}`);
|
1458
|
+
} else {
|
1459
|
+
const name = getStaticPropertyName(parent);
|
1460
|
+
|
1461
|
+
if (name !== null) {
|
1462
|
+
tokens.push(`'${name}'`);
|
1463
|
+
} else if (node.id) {
|
1464
|
+
tokens.push(`'${node.id.name}'`);
|
1465
|
+
}
|
1466
|
+
}
|
1467
|
+
} else if (node.id) {
|
1468
|
+
tokens.push(`'${node.id.name}'`);
|
1469
|
+
}
|
1470
|
+
|
1471
|
+
return tokens.join(" ");
|
1472
|
+
},
|
1473
|
+
|
1474
|
+
/**
|
1475
|
+
* Gets the location of the given function node for reporting.
|
1476
|
+
*
|
1477
|
+
* - `function foo() {}`
|
1478
|
+
* ^^^^^^^^^^^^
|
1479
|
+
* - `(function foo() {})`
|
1480
|
+
* ^^^^^^^^^^^^
|
1481
|
+
* - `(function() {})`
|
1482
|
+
* ^^^^^^^^
|
1483
|
+
* - `function* foo() {}`
|
1484
|
+
* ^^^^^^^^^^^^^
|
1485
|
+
* - `(function* foo() {})`
|
1486
|
+
* ^^^^^^^^^^^^^
|
1487
|
+
* - `(function*() {})`
|
1488
|
+
* ^^^^^^^^^
|
1489
|
+
* - `() => {}`
|
1490
|
+
* ^^
|
1491
|
+
* - `async () => {}`
|
1492
|
+
* ^^
|
1493
|
+
* - `({ foo: function foo() {} })`
|
1494
|
+
* ^^^^^^^^^^^^^^^^^
|
1495
|
+
* - `({ foo: function() {} })`
|
1496
|
+
* ^^^^^^^^^^^^^
|
1497
|
+
* - `({ ['foo']: function() {} })`
|
1498
|
+
* ^^^^^^^^^^^^^^^^^
|
1499
|
+
* - `({ [foo]: function() {} })`
|
1500
|
+
* ^^^^^^^^^^^^^^^
|
1501
|
+
* - `({ foo() {} })`
|
1502
|
+
* ^^^
|
1503
|
+
* - `({ foo: function* foo() {} })`
|
1504
|
+
* ^^^^^^^^^^^^^^^^^^
|
1505
|
+
* - `({ foo: function*() {} })`
|
1506
|
+
* ^^^^^^^^^^^^^^
|
1507
|
+
* - `({ ['foo']: function*() {} })`
|
1508
|
+
* ^^^^^^^^^^^^^^^^^^
|
1509
|
+
* - `({ [foo]: function*() {} })`
|
1510
|
+
* ^^^^^^^^^^^^^^^^
|
1511
|
+
* - `({ *foo() {} })`
|
1512
|
+
* ^^^^
|
1513
|
+
* - `({ foo: async function foo() {} })`
|
1514
|
+
* ^^^^^^^^^^^^^^^^^^^^^^^
|
1515
|
+
* - `({ foo: async function() {} })`
|
1516
|
+
* ^^^^^^^^^^^^^^^^^^^
|
1517
|
+
* - `({ ['foo']: async function() {} })`
|
1518
|
+
* ^^^^^^^^^^^^^^^^^^^^^^^
|
1519
|
+
* - `({ [foo]: async function() {} })`
|
1520
|
+
* ^^^^^^^^^^^^^^^^^^^^^
|
1521
|
+
* - `({ async foo() {} })`
|
1522
|
+
* ^^^^^^^^^
|
1523
|
+
* - `({ get foo() {} })`
|
1524
|
+
* ^^^^^^^
|
1525
|
+
* - `({ set foo(a) {} })`
|
1526
|
+
* ^^^^^^^
|
1527
|
+
* - `class A { constructor() {} }`
|
1528
|
+
* ^^^^^^^^^^^
|
1529
|
+
* - `class A { foo() {} }`
|
1530
|
+
* ^^^
|
1531
|
+
* - `class A { *foo() {} }`
|
1532
|
+
* ^^^^
|
1533
|
+
* - `class A { async foo() {} }`
|
1534
|
+
* ^^^^^^^^^
|
1535
|
+
* - `class A { ['foo']() {} }`
|
1536
|
+
* ^^^^^^^
|
1537
|
+
* - `class A { *['foo']() {} }`
|
1538
|
+
* ^^^^^^^^
|
1539
|
+
* - `class A { async ['foo']() {} }`
|
1540
|
+
* ^^^^^^^^^^^^^
|
1541
|
+
* - `class A { [foo]() {} }`
|
1542
|
+
* ^^^^^
|
1543
|
+
* - `class A { *[foo]() {} }`
|
1544
|
+
* ^^^^^^
|
1545
|
+
* - `class A { async [foo]() {} }`
|
1546
|
+
* ^^^^^^^^^^^
|
1547
|
+
* - `class A { get foo() {} }`
|
1548
|
+
* ^^^^^^^
|
1549
|
+
* - `class A { set foo(a) {} }`
|
1550
|
+
* ^^^^^^^
|
1551
|
+
* - `class A { static foo() {} }`
|
1552
|
+
* ^^^^^^^^^^
|
1553
|
+
* - `class A { static *foo() {} }`
|
1554
|
+
* ^^^^^^^^^^^
|
1555
|
+
* - `class A { static async foo() {} }`
|
1556
|
+
* ^^^^^^^^^^^^^^^^
|
1557
|
+
* - `class A { static get foo() {} }`
|
1558
|
+
* ^^^^^^^^^^^^^^
|
1559
|
+
* - `class A { static set foo(a) {} }`
|
1560
|
+
* ^^^^^^^^^^^^^^
|
1561
|
+
* - `class A { foo = function() {} }`
|
1562
|
+
* ^^^^^^^^^^^^^^
|
1563
|
+
* - `class A { static foo = function() {} }`
|
1564
|
+
* ^^^^^^^^^^^^^^^^^^^^^
|
1565
|
+
* - `class A { foo = (a, b) => {} }`
|
1566
|
+
* ^^^^^^
|
1567
|
+
* @param {ASTNode} node The function node to get.
|
1568
|
+
* @param {SourceCode} sourceCode The source code object to get tokens.
|
1569
|
+
* @returns {string} The location of the function node for reporting.
|
1570
|
+
*/
|
1571
|
+
getFunctionHeadLoc(node, sourceCode) {
|
1572
|
+
const parent = node.parent;
|
1573
|
+
let start = null;
|
1574
|
+
let end = null;
|
1575
|
+
|
1576
|
+
if (parent.type === "Property" || parent.type === "MethodDefinition" || parent.type === "PropertyDefinition") {
|
1577
|
+
start = parent.loc.start;
|
1578
|
+
end = getOpeningParenOfParams(node, sourceCode).loc.start;
|
1579
|
+
} else if (node.type === "ArrowFunctionExpression") {
|
1580
|
+
const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken);
|
1581
|
+
|
1582
|
+
start = arrowToken.loc.start;
|
1583
|
+
end = arrowToken.loc.end;
|
1584
|
+
} else {
|
1585
|
+
start = node.loc.start;
|
1586
|
+
end = getOpeningParenOfParams(node, sourceCode).loc.start;
|
1587
|
+
}
|
1588
|
+
|
1589
|
+
return {
|
1590
|
+
start: Object.assign({}, start),
|
1591
|
+
end: Object.assign({}, end)
|
1592
|
+
};
|
1593
|
+
},
|
1594
|
+
|
1595
|
+
/**
|
1596
|
+
* Gets next location when the result is not out of bound, otherwise returns null.
|
1597
|
+
*
|
1598
|
+
* Assumptions:
|
1599
|
+
*
|
1600
|
+
* - The given location represents a valid location in the given source code.
|
1601
|
+
* - Columns are 0-based.
|
1602
|
+
* - Lines are 1-based.
|
1603
|
+
* - Column immediately after the last character in a line (not incl. linebreaks) is considered to be a valid location.
|
1604
|
+
* - If the source code ends with a linebreak, `sourceCode.lines` array will have an extra element (empty string) at the end.
|
1605
|
+
* The start (column 0) of that extra line is considered to be a valid location.
|
1606
|
+
*
|
1607
|
+
* Examples of successive locations (line, column):
|
1608
|
+
*
|
1609
|
+
* code: foo
|
1610
|
+
* locations: (1, 0) -> (1, 1) -> (1, 2) -> (1, 3) -> null
|
1611
|
+
*
|
1612
|
+
* code: foo<LF>
|
1613
|
+
* locations: (1, 0) -> (1, 1) -> (1, 2) -> (1, 3) -> (2, 0) -> null
|
1614
|
+
*
|
1615
|
+
* code: foo<CR><LF>
|
1616
|
+
* locations: (1, 0) -> (1, 1) -> (1, 2) -> (1, 3) -> (2, 0) -> null
|
1617
|
+
*
|
1618
|
+
* code: a<LF>b
|
1619
|
+
* locations: (1, 0) -> (1, 1) -> (2, 0) -> (2, 1) -> null
|
1620
|
+
*
|
1621
|
+
* code: a<LF>b<LF>
|
1622
|
+
* locations: (1, 0) -> (1, 1) -> (2, 0) -> (2, 1) -> (3, 0) -> null
|
1623
|
+
*
|
1624
|
+
* code: a<CR><LF>b<CR><LF>
|
1625
|
+
* locations: (1, 0) -> (1, 1) -> (2, 0) -> (2, 1) -> (3, 0) -> null
|
1626
|
+
*
|
1627
|
+
* code: a<LF><LF>
|
1628
|
+
* locations: (1, 0) -> (1, 1) -> (2, 0) -> (3, 0) -> null
|
1629
|
+
*
|
1630
|
+
* code: <LF>
|
1631
|
+
* locations: (1, 0) -> (2, 0) -> null
|
1632
|
+
*
|
1633
|
+
* code:
|
1634
|
+
* locations: (1, 0) -> null
|
1635
|
+
* @param {SourceCode} sourceCode The sourceCode
|
1636
|
+
* @param {{line: number, column: number}} location The location
|
1637
|
+
* @returns {{line: number, column: number} | null} Next location
|
1638
|
+
*/
|
1639
|
+
getNextLocation(sourceCode, { line, column }) {
|
1640
|
+
if (column < sourceCode.lines[line - 1].length) {
|
1641
|
+
return {
|
1642
|
+
line,
|
1643
|
+
column: column + 1
|
1644
|
+
};
|
1645
|
+
}
|
1646
|
+
|
1647
|
+
if (line < sourceCode.lines.length) {
|
1648
|
+
return {
|
1649
|
+
line: line + 1,
|
1650
|
+
column: 0
|
1651
|
+
};
|
1652
|
+
}
|
1653
|
+
|
1654
|
+
return null;
|
1655
|
+
},
|
1656
|
+
|
1657
|
+
/**
|
1658
|
+
* Gets the parenthesized text of a node. This is similar to sourceCode.getText(node), but it also includes any parentheses
|
1659
|
+
* surrounding the node.
|
1660
|
+
* @param {SourceCode} sourceCode The source code object
|
1661
|
+
* @param {ASTNode} node An expression node
|
1662
|
+
* @returns {string} The text representing the node, with all surrounding parentheses included
|
1663
|
+
*/
|
1664
|
+
getParenthesisedText(sourceCode, node) {
|
1665
|
+
let leftToken = sourceCode.getFirstToken(node);
|
1666
|
+
let rightToken = sourceCode.getLastToken(node);
|
1667
|
+
|
1668
|
+
while (
|
1669
|
+
sourceCode.getTokenBefore(leftToken) &&
|
1670
|
+
sourceCode.getTokenBefore(leftToken).type === "Punctuator" &&
|
1671
|
+
sourceCode.getTokenBefore(leftToken).value === "(" &&
|
1672
|
+
sourceCode.getTokenAfter(rightToken) &&
|
1673
|
+
sourceCode.getTokenAfter(rightToken).type === "Punctuator" &&
|
1674
|
+
sourceCode.getTokenAfter(rightToken).value === ")"
|
1675
|
+
) {
|
1676
|
+
leftToken = sourceCode.getTokenBefore(leftToken);
|
1677
|
+
rightToken = sourceCode.getTokenAfter(rightToken);
|
1678
|
+
}
|
1679
|
+
|
1680
|
+
return sourceCode.getText().slice(leftToken.range[0], rightToken.range[1]);
|
1681
|
+
},
|
1682
|
+
|
1683
|
+
/**
|
1684
|
+
* Determine if a node has a possibility to be an Error object
|
1685
|
+
* @param {ASTNode} node ASTNode to check
|
1686
|
+
* @returns {boolean} True if there is a chance it contains an Error obj
|
1687
|
+
*/
|
1688
|
+
couldBeError(node) {
|
1689
|
+
switch (node.type) {
|
1690
|
+
case "Identifier":
|
1691
|
+
case "CallExpression":
|
1692
|
+
case "NewExpression":
|
1693
|
+
case "MemberExpression":
|
1694
|
+
case "TaggedTemplateExpression":
|
1695
|
+
case "YieldExpression":
|
1696
|
+
case "AwaitExpression":
|
1697
|
+
case "ChainExpression":
|
1698
|
+
return true; // possibly an error object.
|
1699
|
+
|
1700
|
+
case "AssignmentExpression":
|
1701
|
+
if (["=", "&&="].includes(node.operator)) {
|
1702
|
+
return module.exports.couldBeError(node.right);
|
1703
|
+
}
|
1704
|
+
|
1705
|
+
if (["||=", "??="].includes(node.operator)) {
|
1706
|
+
return module.exports.couldBeError(node.left) || module.exports.couldBeError(node.right);
|
1707
|
+
}
|
1708
|
+
|
1709
|
+
/**
|
1710
|
+
* All other assignment operators are mathematical assignment operators (arithmetic or bitwise).
|
1711
|
+
* An assignment expression with a mathematical operator can either evaluate to a primitive value,
|
1712
|
+
* or throw, depending on the operands. Thus, it cannot evaluate to an `Error` object.
|
1713
|
+
*/
|
1714
|
+
return false;
|
1715
|
+
|
1716
|
+
case "SequenceExpression": {
|
1717
|
+
const exprs = node.expressions;
|
1718
|
+
|
1719
|
+
return exprs.length !== 0 && module.exports.couldBeError(exprs[exprs.length - 1]);
|
1720
|
+
}
|
1721
|
+
|
1722
|
+
case "LogicalExpression":
|
1723
|
+
|
1724
|
+
/*
|
1725
|
+
* If the && operator short-circuits, the left side was falsy and therefore not an error, and if it
|
1726
|
+
* doesn't short-circuit, it takes the value from the right side, so the right side must always be
|
1727
|
+
* a plausible error. A future improvement could verify that the left side could be truthy by
|
1728
|
+
* excluding falsy literals.
|
1729
|
+
*/
|
1730
|
+
if (node.operator === "&&") {
|
1731
|
+
return module.exports.couldBeError(node.right);
|
1732
|
+
}
|
1733
|
+
|
1734
|
+
return module.exports.couldBeError(node.left) || module.exports.couldBeError(node.right);
|
1735
|
+
|
1736
|
+
case "ConditionalExpression":
|
1737
|
+
return module.exports.couldBeError(node.consequent) || module.exports.couldBeError(node.alternate);
|
1738
|
+
|
1739
|
+
default:
|
1740
|
+
return false;
|
1741
|
+
}
|
1742
|
+
},
|
1743
|
+
|
1744
|
+
/**
|
1745
|
+
* Check if a given node is a numeric literal or not.
|
1746
|
+
* @param {ASTNode} node The node to check.
|
1747
|
+
* @returns {boolean} `true` if the node is a number or bigint literal.
|
1748
|
+
*/
|
1749
|
+
isNumericLiteral(node) {
|
1750
|
+
return (
|
1751
|
+
node.type === "Literal" &&
|
1752
|
+
(typeof node.value === "number" || Boolean(node.bigint))
|
1753
|
+
);
|
1754
|
+
},
|
1755
|
+
|
1756
|
+
/**
|
1757
|
+
* Determines whether two tokens can safely be placed next to each other without merging into a single token
|
1758
|
+
* @param {Token|string} leftValue The left token. If this is a string, it will be tokenized and the last token will be used.
|
1759
|
+
* @param {Token|string} rightValue The right token. If this is a string, it will be tokenized and the first token will be used.
|
1760
|
+
* @returns {boolean} If the tokens cannot be safely placed next to each other, returns `false`. If the tokens can be placed
|
1761
|
+
* next to each other, behavior is undefined (although it should return `true` in most cases).
|
1762
|
+
*/
|
1763
|
+
canTokensBeAdjacent(leftValue, rightValue) {
|
1764
|
+
const espreeOptions = {
|
1765
|
+
ecmaVersion: espree.latestEcmaVersion,
|
1766
|
+
comment: true,
|
1767
|
+
range: true
|
1768
|
+
};
|
1769
|
+
|
1770
|
+
let leftToken;
|
1771
|
+
|
1772
|
+
if (typeof leftValue === "string") {
|
1773
|
+
let tokens;
|
1774
|
+
|
1775
|
+
try {
|
1776
|
+
tokens = espree.tokenize(leftValue, espreeOptions);
|
1777
|
+
} catch {
|
1778
|
+
return false;
|
1779
|
+
}
|
1780
|
+
|
1781
|
+
const comments = tokens.comments;
|
1782
|
+
|
1783
|
+
leftToken = tokens[tokens.length - 1];
|
1784
|
+
if (comments.length) {
|
1785
|
+
const lastComment = comments[comments.length - 1];
|
1786
|
+
|
1787
|
+
if (lastComment.range[0] > leftToken.range[0]) {
|
1788
|
+
leftToken = lastComment;
|
1789
|
+
}
|
1790
|
+
}
|
1791
|
+
} else {
|
1792
|
+
leftToken = leftValue;
|
1793
|
+
}
|
1794
|
+
|
1795
|
+
if (leftToken.type === "Shebang") {
|
1796
|
+
return false;
|
1797
|
+
}
|
1798
|
+
|
1799
|
+
let rightToken;
|
1800
|
+
|
1801
|
+
if (typeof rightValue === "string") {
|
1802
|
+
let tokens;
|
1803
|
+
|
1804
|
+
try {
|
1805
|
+
tokens = espree.tokenize(rightValue, espreeOptions);
|
1806
|
+
} catch {
|
1807
|
+
return false;
|
1808
|
+
}
|
1809
|
+
|
1810
|
+
const comments = tokens.comments;
|
1811
|
+
|
1812
|
+
rightToken = tokens[0];
|
1813
|
+
if (comments.length) {
|
1814
|
+
const firstComment = comments[0];
|
1815
|
+
|
1816
|
+
if (firstComment.range[0] < rightToken.range[0]) {
|
1817
|
+
rightToken = firstComment;
|
1818
|
+
}
|
1819
|
+
}
|
1820
|
+
} else {
|
1821
|
+
rightToken = rightValue;
|
1822
|
+
}
|
1823
|
+
|
1824
|
+
if (leftToken.type === "Punctuator" || rightToken.type === "Punctuator") {
|
1825
|
+
if (leftToken.type === "Punctuator" && rightToken.type === "Punctuator") {
|
1826
|
+
const PLUS_TOKENS = new Set(["+", "++"]);
|
1827
|
+
const MINUS_TOKENS = new Set(["-", "--"]);
|
1828
|
+
|
1829
|
+
return !(
|
1830
|
+
PLUS_TOKENS.has(leftToken.value) && PLUS_TOKENS.has(rightToken.value) ||
|
1831
|
+
MINUS_TOKENS.has(leftToken.value) && MINUS_TOKENS.has(rightToken.value)
|
1832
|
+
);
|
1833
|
+
}
|
1834
|
+
if (leftToken.type === "Punctuator" && leftToken.value === "/") {
|
1835
|
+
return !["Block", "Line", "RegularExpression"].includes(rightToken.type);
|
1836
|
+
}
|
1837
|
+
return true;
|
1838
|
+
}
|
1839
|
+
|
1840
|
+
if (
|
1841
|
+
leftToken.type === "String" || rightToken.type === "String" ||
|
1842
|
+
leftToken.type === "Template" || rightToken.type === "Template"
|
1843
|
+
) {
|
1844
|
+
return true;
|
1845
|
+
}
|
1846
|
+
|
1847
|
+
if (leftToken.type !== "Numeric" && rightToken.type === "Numeric" && rightToken.value.startsWith(".")) {
|
1848
|
+
return true;
|
1849
|
+
}
|
1850
|
+
|
1851
|
+
if (leftToken.type === "Block" || rightToken.type === "Block" || rightToken.type === "Line") {
|
1852
|
+
return true;
|
1853
|
+
}
|
1854
|
+
|
1855
|
+
if (rightToken.type === "PrivateIdentifier") {
|
1856
|
+
return true;
|
1857
|
+
}
|
1858
|
+
|
1859
|
+
return false;
|
1860
|
+
},
|
1861
|
+
|
1862
|
+
/**
|
1863
|
+
* Get the `loc` object of a given name in a `/*globals` directive comment.
|
1864
|
+
* @param {SourceCode} sourceCode The source code to convert index to loc.
|
1865
|
+
* @param {Comment} comment The `/*globals` directive comment which include the name.
|
1866
|
+
* @param {string} name The name to find.
|
1867
|
+
* @returns {SourceLocation} The `loc` object.
|
1868
|
+
*/
|
1869
|
+
getNameLocationInGlobalDirectiveComment(sourceCode, comment, name) {
|
1870
|
+
const namePattern = new RegExp(`[\\s,]${escapeRegExp(name)}(?:$|[\\s,:])`, "gu");
|
1871
|
+
|
1872
|
+
// To ignore the first text "global".
|
1873
|
+
namePattern.lastIndex = comment.value.indexOf("global") + 6;
|
1874
|
+
|
1875
|
+
// Search a given variable name.
|
1876
|
+
const match = namePattern.exec(comment.value);
|
1877
|
+
|
1878
|
+
// Convert the index to loc.
|
1879
|
+
const start = sourceCode.getLocFromIndex(
|
1880
|
+
comment.range[0] +
|
1881
|
+
"/*".length +
|
1882
|
+
(match ? match.index + 1 : 0)
|
1883
|
+
);
|
1884
|
+
const end = {
|
1885
|
+
line: start.line,
|
1886
|
+
column: start.column + (match ? name.length : 1)
|
1887
|
+
};
|
1888
|
+
|
1889
|
+
return { start, end };
|
1890
|
+
},
|
1891
|
+
|
1892
|
+
/**
|
1893
|
+
* Determines whether the given raw string contains an octal escape sequence
|
1894
|
+
* or a non-octal decimal escape sequence ("\8", "\9").
|
1895
|
+
*
|
1896
|
+
* "\1", "\2" ... "\7", "\8", "\9"
|
1897
|
+
* "\00", "\01" ... "\07", "\08", "\09"
|
1898
|
+
*
|
1899
|
+
* "\0", when not followed by a digit, is not an octal escape sequence.
|
1900
|
+
* @param {string} rawString A string in its raw representation.
|
1901
|
+
* @returns {boolean} `true` if the string contains at least one octal escape sequence
|
1902
|
+
* or at least one non-octal decimal escape sequence.
|
1903
|
+
*/
|
1904
|
+
hasOctalOrNonOctalDecimalEscapeSequence(rawString) {
|
1905
|
+
return OCTAL_OR_NON_OCTAL_DECIMAL_ESCAPE_PATTERN.test(rawString);
|
1906
|
+
},
|
1907
|
+
|
1908
|
+
isLogicalExpression,
|
1909
|
+
isCoalesceExpression,
|
1910
|
+
isMixedLogicalAndCoalesceExpressions,
|
1911
|
+
isNullLiteral,
|
1912
|
+
getStaticStringValue,
|
1913
|
+
getStaticPropertyName,
|
1914
|
+
skipChainExpression,
|
1915
|
+
isSpecificId,
|
1916
|
+
isSpecificMemberAccess,
|
1917
|
+
equalLiteralValue,
|
1918
|
+
isSameReference,
|
1919
|
+
isLogicalAssignmentOperator,
|
1920
|
+
getSwitchCaseColonToken,
|
1921
|
+
getModuleExportName
|
1922
|
+
};
|