create-typescript-app 2.63.2 → 2.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +1 -1
- package/dist/base.d.mts +170 -0
- package/dist/base.mjs +162 -0
- package/dist/blocks/actions/resolveUses.d.mts +5 -0
- package/dist/blocks/actions/resolveUses.mjs +16 -0
- package/dist/blocks/actions/steps.d.mts +37 -0
- package/dist/blocks/actions/steps.mjs +19 -0
- package/dist/blocks/bin/getPrimaryBin.d.mts +4 -0
- package/dist/blocks/bin/getPrimaryBin.mjs +6 -0
- package/dist/blocks/blockAllContributors.d.mts +73 -0
- package/dist/blocks/blockAllContributors.mjs +132 -0
- package/dist/blocks/blockAreTheTypesWrong.d.mts +73 -0
- package/dist/blocks/blockAreTheTypesWrong.mjs +14 -0
- package/dist/blocks/blockBin.d.mts +75 -0
- package/dist/blocks/blockBin.mjs +27 -0
- package/dist/blocks/blockCSpell.d.mts +76 -0
- package/dist/blocks/blockCSpell.mjs +77 -0
- package/dist/blocks/blockCTATransitions.d.mts +73 -0
- package/dist/blocks/blockCTATransitions.mjs +115 -0
- package/dist/blocks/blockCodecov.d.mts +75 -0
- package/dist/blocks/blockCodecov.mjs +58 -0
- package/dist/blocks/blockContributingDocs.d.mts +73 -0
- package/dist/blocks/blockContributingDocs.mjs +112 -0
- package/dist/blocks/blockContributorCovenant.d.mts +73 -0
- package/dist/blocks/blockContributorCovenant.mjs +158 -0
- package/dist/blocks/blockDevelopmentDocs.d.mts +87 -0
- package/dist/blocks/blockDevelopmentDocs.mjs +72 -0
- package/dist/blocks/blockESLint.d.mts +97 -0
- package/dist/blocks/blockESLint.mjs +196 -0
- package/dist/blocks/blockESLintComments.d.mts +73 -0
- package/dist/blocks/blockESLintComments.mjs +21 -0
- package/dist/blocks/blockESLintJSDoc.d.mts +73 -0
- package/dist/blocks/blockESLintJSDoc.mjs +25 -0
- package/dist/blocks/blockESLintJSONC.d.mts +73 -0
- package/dist/blocks/blockESLintJSONC.mjs +20 -0
- package/dist/blocks/blockESLintMarkdown.d.mts +73 -0
- package/dist/blocks/blockESLintMarkdown.mjs +36 -0
- package/dist/blocks/blockESLintMarkdownLinks.d.mts +73 -0
- package/dist/blocks/blockESLintMarkdownLinks.mjs +20 -0
- package/dist/blocks/blockESLintMoreStyling.d.mts +74 -0
- package/dist/blocks/blockESLintMoreStyling.mjs +28 -0
- package/dist/blocks/blockESLintNode.d.mts +73 -0
- package/dist/blocks/blockESLintNode.mjs +32 -0
- package/dist/blocks/blockESLintPackageJson.d.mts +73 -0
- package/dist/blocks/blockESLintPackageJson.mjs +31 -0
- package/dist/blocks/blockESLintPerfectionist.d.mts +73 -0
- package/dist/blocks/blockESLintPerfectionist.mjs +25 -0
- package/dist/blocks/blockESLintPlugin.d.mts +75 -0
- package/dist/blocks/blockESLintPlugin.mjs +230 -0
- package/dist/blocks/blockESLintRegexp.d.mts +73 -0
- package/dist/blocks/blockESLintRegexp.mjs +21 -0
- package/dist/blocks/blockESLintYML.d.mts +73 -0
- package/dist/blocks/blockESLintYML.mjs +31 -0
- package/dist/blocks/blockExampleFiles.d.mts +76 -0
- package/dist/blocks/blockExampleFiles.mjs +23 -0
- package/dist/blocks/blockExports.d.mts +76 -0
- package/dist/blocks/blockExports.mjs +27 -0
- package/dist/blocks/blockFunding.d.mts +73 -0
- package/dist/blocks/blockFunding.mjs +15 -0
- package/dist/blocks/blockGitHubActionsCI.d.mts +88 -0
- package/dist/blocks/blockGitHubActionsCI.mjs +89 -0
- package/dist/blocks/blockGitHubApps.d.mts +78 -0
- package/dist/blocks/blockGitHubApps.mjs +16 -0
- package/dist/blocks/blockGitHubIssueTemplates.d.mts +73 -0
- package/dist/blocks/blockGitHubIssueTemplates.mjs +203 -0
- package/dist/blocks/blockGitHubPRTemplate.d.mts +73 -0
- package/dist/blocks/blockGitHubPRTemplate.mjs +23 -0
- package/dist/blocks/blockGitignore.d.mts +75 -0
- package/dist/blocks/blockGitignore.mjs +14 -0
- package/dist/blocks/blockKnip.d.mts +77 -0
- package/dist/blocks/blockKnip.mjs +70 -0
- package/dist/blocks/blockMITLicense.d.mts +73 -0
- package/dist/blocks/blockMITLicense.mjs +39 -0
- package/dist/blocks/blockNcc.d.mts +75 -0
- package/dist/blocks/blockNcc.mjs +65 -0
- package/dist/blocks/blockNvmrc.d.mts +73 -0
- package/dist/blocks/blockNvmrc.mjs +17 -0
- package/dist/blocks/blockOctoGuide.d.mts +75 -0
- package/dist/blocks/blockOctoGuide.mjs +73 -0
- package/dist/blocks/blockOctoGuideStrict.d.mts +73 -0
- package/dist/blocks/blockOctoGuideStrict.mjs +11 -0
- package/dist/blocks/blockPackageJson.d.mts +150 -0
- package/dist/blocks/blockPackageJson.mjs +86 -0
- package/dist/blocks/blockPnpmDedupe.d.mts +73 -0
- package/dist/blocks/blockPnpmDedupe.mjs +19 -0
- package/dist/blocks/blockPrettier.d.mts +83 -0
- package/dist/blocks/blockPrettier.mjs +97 -0
- package/dist/blocks/blockPrettierPluginCurly.d.mts +73 -0
- package/dist/blocks/blockPrettierPluginCurly.mjs +11 -0
- package/dist/blocks/blockPrettierPluginPackageJson.d.mts +73 -0
- package/dist/blocks/blockPrettierPluginPackageJson.mjs +11 -0
- package/dist/blocks/blockPrettierPluginPaddingLines.d.mts +73 -0
- package/dist/blocks/blockPrettierPluginPaddingLines.mjs +11 -0
- package/dist/blocks/blockPrettierPluginSentencesPerLine.d.mts +73 -0
- package/dist/blocks/blockPrettierPluginSentencesPerLine.mjs +11 -0
- package/dist/blocks/blockPrettierPluginSh.d.mts +73 -0
- package/dist/blocks/blockPrettierPluginSh.mjs +11 -0
- package/dist/blocks/blockREADME.d.mts +86 -0
- package/dist/blocks/blockREADME.mjs +74 -0
- package/dist/blocks/blockReleaseIt.d.mts +78 -0
- package/dist/blocks/blockReleaseIt.mjs +160 -0
- package/dist/blocks/blockRemoveDependencies.d.mts +75 -0
- package/dist/blocks/blockRemoveDependencies.mjs +20 -0
- package/dist/blocks/blockRemoveFiles.d.mts +75 -0
- package/dist/blocks/blockRemoveFiles.mjs +21 -0
- package/dist/blocks/blockRemoveWorkflows.d.mts +75 -0
- package/dist/blocks/blockRemoveWorkflows.mjs +17 -0
- package/dist/blocks/blockRenovate.d.mts +75 -0
- package/dist/blocks/blockRenovate.mjs +39 -0
- package/dist/blocks/blockRepositoryBranchRuleset.d.mts +75 -0
- package/dist/blocks/blockRepositoryBranchRuleset.mjs +79 -0
- package/dist/blocks/blockRepositoryLabels.d.mts +73 -0
- package/dist/blocks/blockRepositoryLabels.mjs +52 -0
- package/dist/blocks/blockRepositorySecrets.d.mts +78 -0
- package/dist/blocks/blockRepositorySecrets.mjs +16 -0
- package/dist/blocks/blockRepositorySettings.d.mts +73 -0
- package/dist/blocks/blockRepositorySettings.mjs +32 -0
- package/dist/blocks/blockSecurityDocs.d.mts +73 -0
- package/dist/blocks/blockSecurityDocs.mjs +20 -0
- package/dist/blocks/blockSideEffects.d.mts +75 -0
- package/dist/blocks/blockSideEffects.mjs +14 -0
- package/dist/blocks/blockTSDown.d.mts +77 -0
- package/dist/blocks/blockTSDown.mjs +121 -0
- package/dist/blocks/blockTemplatedWith.d.mts +73 -0
- package/dist/blocks/blockTemplatedWith.mjs +13 -0
- package/dist/blocks/blockTypeScript.d.mts +185 -0
- package/dist/blocks/blockTypeScript.mjs +136 -0
- package/dist/blocks/blockVSCode.d.mts +82 -0
- package/dist/blocks/blockVSCode.mjs +59 -0
- package/dist/blocks/blockVitest.d.mts +90 -0
- package/dist/blocks/blockVitest.mjs +208 -0
- package/dist/blocks/blockWebExt.d.mts +73 -0
- package/dist/blocks/blockWebExt.mjs +104 -0
- package/dist/blocks/codecov/findCodecovStep.d.mts +6 -0
- package/dist/blocks/codecov/findCodecovStep.mjs +7 -0
- package/dist/blocks/eslint/blockESLintIntake.d.mts +10 -0
- package/dist/blocks/eslint/blockESLintIntake.mjs +84 -0
- package/dist/blocks/eslint/blockESLintPluginIntake.d.mts +6 -0
- package/dist/blocks/eslint/blockESLintPluginIntake.mjs +27 -0
- package/dist/blocks/eslint/getScriptFileExtension.d.mts +7 -0
- package/dist/blocks/eslint/getScriptFileExtension.mjs +6 -0
- package/dist/blocks/eslint/mergeAllExtensions.d.mts +16 -0
- package/dist/blocks/eslint/mergeAllExtensions.mjs +46 -0
- package/dist/blocks/eslint/schemas.d.mts +111 -0
- package/dist/blocks/eslint/schemas.mjs +40 -0
- package/dist/blocks/files/createJobName.d.mts +4 -0
- package/dist/blocks/files/createJobName.mjs +6 -0
- package/dist/blocks/files/createMultiWorkflowFile.d.mts +24 -0
- package/dist/blocks/files/createMultiWorkflowFile.mjs +28 -0
- package/dist/blocks/files/createSoloWorkflowFile.d.mts +64 -0
- package/dist/blocks/files/createSoloWorkflowFile.mjs +19 -0
- package/dist/blocks/files/formatIgnoreFile.d.mts +4 -0
- package/dist/blocks/files/formatIgnoreFile.mjs +6 -0
- package/dist/blocks/files/formatWorkflowYaml.d.mts +4 -0
- package/dist/blocks/files/formatWorkflowYaml.mjs +10 -0
- package/dist/blocks/files/formatYaml.d.mts +4 -0
- package/dist/blocks/files/formatYaml.mjs +21 -0
- package/dist/blocks/files/removeUsesQuotes.d.mts +4 -0
- package/dist/blocks/files/removeUsesQuotes.mjs +6 -0
- package/dist/blocks/getInstallationSuggestions.d.mts +4 -0
- package/dist/blocks/getInstallationSuggestions.mjs +11 -0
- package/dist/blocks/index.d.mts +3953 -0
- package/dist/blocks/index.mjs +108 -0
- package/dist/blocks/intake/intakeFile.d.mts +5 -0
- package/dist/blocks/intake/intakeFile.mjs +11 -0
- package/dist/blocks/intake/intakeFileAsJson.d.mts +5 -0
- package/dist/blocks/intake/intakeFileAsJson.mjs +13 -0
- package/dist/blocks/intake/intakeFileAsYaml.d.mts +6 -0
- package/dist/blocks/intake/intakeFileAsYaml.mjs +16 -0
- package/dist/blocks/intake/intakeFileDefineConfig.d.mts +5 -0
- package/dist/blocks/intake/intakeFileDefineConfig.mjs +9 -0
- package/dist/blocks/intake/intakeFileExportObject.d.mts +5 -0
- package/dist/blocks/intake/intakeFileExportObject.mjs +22 -0
- package/dist/blocks/options.fakes.d.mts +25 -0
- package/dist/blocks/options.fakes.mjs +19 -0
- package/dist/blocks/outcomeLabels.d.mts +14 -0
- package/dist/blocks/outcomeLabels.mjs +93 -0
- package/dist/blocks/phases.d.mts +10 -0
- package/dist/blocks/phases.mjs +10 -0
- package/dist/constants.d.mts +9 -0
- package/dist/constants.mjs +7 -0
- package/dist/data/contributions.d.mts +4 -0
- package/dist/data/contributions.mjs +13 -0
- package/dist/data/packageData.d.mts +9 -0
- package/dist/data/packageData.mjs +17 -0
- package/dist/index.d.mts +293 -0
- package/dist/index.mjs +63 -0
- package/dist/inputs/inputFromDirectory.d.mts +7 -0
- package/dist/inputs/inputFromDirectory.mjs +11 -0
- package/dist/inputs/inputFromOctokit.d.mts +8 -0
- package/dist/inputs/inputFromOctokit.mjs +23 -0
- package/dist/options/readAccess.d.mts +5 -0
- package/dist/options/readAccess.mjs +6 -0
- package/dist/options/readAllContributors.d.mts +6 -0
- package/dist/options/readAllContributors.mjs +18 -0
- package/dist/options/readAuthor.d.mts +8 -0
- package/dist/options/readAuthor.mjs +6 -0
- package/dist/options/readBin.d.mts +5 -0
- package/dist/options/readBin.mjs +11 -0
- package/dist/options/readBundle.d.mts +5 -0
- package/dist/options/readBundle.mjs +12 -0
- package/dist/options/readCodecovToken.d.mts +5 -0
- package/dist/options/readCodecovToken.mjs +23 -0
- package/dist/options/readDescription.d.mts +5 -0
- package/dist/options/readDescription.mjs +17 -0
- package/dist/options/readDescriptionFromReadme.d.mts +4 -0
- package/dist/options/readDescriptionFromReadme.mjs +13 -0
- package/dist/options/readDevelopmentDocumentation.d.mts +5 -0
- package/dist/options/readDevelopmentDocumentation.mjs +21 -0
- package/dist/options/readDocumentation.d.mts +5 -0
- package/dist/options/readDocumentation.mjs +21 -0
- package/dist/options/readEmailFromCodeOfConduct.d.mts +5 -0
- package/dist/options/readEmailFromCodeOfConduct.mjs +8 -0
- package/dist/options/readEmailFromGit.d.mts +5 -0
- package/dist/options/readEmailFromGit.mjs +7 -0
- package/dist/options/readEmailFromNpm.d.mts +6 -0
- package/dist/options/readEmailFromNpm.mjs +6 -0
- package/dist/options/readEmails.d.mts +8 -0
- package/dist/options/readEmails.mjs +11 -0
- package/dist/options/readEmoji.d.mts +4 -0
- package/dist/options/readEmoji.mjs +10 -0
- package/dist/options/readExistingLabels.d.mts +9 -0
- package/dist/options/readExistingLabels.mjs +21 -0
- package/dist/options/readFileAsJson.d.mts +4 -0
- package/dist/options/readFileAsJson.mjs +11 -0
- package/dist/options/readFileSafe.d.mts +4 -0
- package/dist/options/readFileSafe.mjs +11 -0
- package/dist/options/readFunding.d.mts +5 -0
- package/dist/options/readFunding.mjs +8 -0
- package/dist/options/readGitDefaults.d.mts +6 -0
- package/dist/options/readGitDefaults.mjs +9 -0
- package/dist/options/readGuide.d.mts +8 -0
- package/dist/options/readGuide.mjs +14 -0
- package/dist/options/readKeywords.d.mts +5 -0
- package/dist/options/readKeywords.mjs +7 -0
- package/dist/options/readLogo.d.mts +9 -0
- package/dist/options/readLogo.mjs +19 -0
- package/dist/options/readLogoSizing.d.mts +8 -0
- package/dist/options/readLogoSizing.mjs +29 -0
- package/dist/options/readNode.d.mts +8 -0
- package/dist/options/readNode.mjs +12 -0
- package/dist/options/readNpmDefaults.d.mts +5 -0
- package/dist/options/readNpmDefaults.mjs +9 -0
- package/dist/options/readOwner.d.mts +7 -0
- package/dist/options/readOwner.mjs +7 -0
- package/dist/options/readPackageAuthor.d.mts +9 -0
- package/dist/options/readPackageAuthor.mjs +12 -0
- package/dist/options/readPackageData.d.mts +6 -0
- package/dist/options/readPackageData.mjs +8 -0
- package/dist/options/readPnpm.d.mts +5 -0
- package/dist/options/readPnpm.mjs +7 -0
- package/dist/options/readReadmeAdditional.d.mts +4 -0
- package/dist/options/readReadmeAdditional.mjs +17 -0
- package/dist/options/readReadmeExplainer.d.mts +4 -0
- package/dist/options/readReadmeExplainer.mjs +25 -0
- package/dist/options/readReadmeFootnotes.d.mts +5 -0
- package/dist/options/readReadmeFootnotes.mjs +15 -0
- package/dist/options/readReadmeUsage.d.mts +4 -0
- package/dist/options/readReadmeUsage.mjs +13 -0
- package/dist/options/readRepository.d.mts +9 -0
- package/dist/options/readRepository.mjs +6 -0
- package/dist/options/readRulesetId.d.mts +5 -0
- package/dist/options/readRulesetId.mjs +13 -0
- package/dist/options/readTitle.d.mts +4 -0
- package/dist/options/readTitle.mjs +11 -0
- package/dist/options/readWords.d.mts +5 -0
- package/dist/options/readWords.mjs +8 -0
- package/dist/options/readWorkflowsVersions.d.mts +6 -0
- package/dist/options/readWorkflowsVersions.mjs +45 -0
- package/dist/package.json.d.mts +138 -0
- package/dist/presets/common.d.mts +165 -0
- package/dist/presets/common.mjs +26 -0
- package/dist/presets/everything.d.mts +165 -0
- package/dist/presets/everything.mjs +60 -0
- package/dist/presets/index.d.mts +494 -0
- package/dist/presets/index.mjs +11 -0
- package/dist/presets/minimal.d.mts +165 -0
- package/dist/presets/minimal.mjs +68 -0
- package/dist/schemas.d.mts +121 -0
- package/dist/schemas.mjs +31 -0
- package/dist/template.d.mts +165 -0
- package/dist/template.mjs +38 -0
- package/dist/types.d.mts +41 -0
- package/dist/utils/htmlToTextSafe.d.mts +4 -0
- package/dist/utils/htmlToTextSafe.mjs +13 -0
- package/dist/utils/parseDefineConfig.d.mts +7 -0
- package/dist/utils/parseDefineConfig.mjs +22 -0
- package/dist/utils/resolveBin.d.mts +4 -0
- package/dist/utils/resolveBin.mjs +7 -0
- package/dist/utils/resolveEmails.d.mts +5 -0
- package/dist/utils/resolveEmails.mjs +9 -0
- package/dist/utils/swallowError.d.mts +4 -0
- package/dist/utils/swallowError.mjs +6 -0
- package/dist/utils/swallowErrorAsync.d.mts +4 -0
- package/dist/utils/swallowErrorAsync.mjs +10 -0
- package/dist/utils/trimPrecedingSlash.d.mts +4 -0
- package/dist/utils/trimPrecedingSlash.mjs +6 -0
- package/dist/utils/tryCatch.d.mts +4 -0
- package/dist/utils/tryCatch.mjs +10 -0
- package/package.json +8 -7
- package/lib/base.d.ts +0 -175
- package/lib/base.d.ts.map +0 -1
- package/lib/base.js +0 -162
- package/lib/base.js.map +0 -1
- package/lib/blocks/actions/resolveUses.d.ts +0 -6
- package/lib/blocks/actions/resolveUses.d.ts.map +0 -1
- package/lib/blocks/actions/resolveUses.js +0 -18
- package/lib/blocks/actions/resolveUses.js.map +0 -1
- package/lib/blocks/actions/steps.d.ts +0 -37
- package/lib/blocks/actions/steps.d.ts.map +0 -1
- package/lib/blocks/actions/steps.js +0 -20
- package/lib/blocks/actions/steps.js.map +0 -1
- package/lib/blocks/bin/getPrimaryBin.d.ts +0 -5
- package/lib/blocks/bin/getPrimaryBin.d.ts.map +0 -1
- package/lib/blocks/bin/getPrimaryBin.js +0 -8
- package/lib/blocks/bin/getPrimaryBin.js.map +0 -1
- package/lib/blocks/blockAllContributors.d.ts +0 -72
- package/lib/blocks/blockAllContributors.d.ts.map +0 -1
- package/lib/blocks/blockAllContributors.js +0 -130
- package/lib/blocks/blockAllContributors.js.map +0 -1
- package/lib/blocks/blockAreTheTypesWrong.d.ts +0 -72
- package/lib/blocks/blockAreTheTypesWrong.d.ts.map +0 -1
- package/lib/blocks/blockAreTheTypesWrong.js +0 -16
- package/lib/blocks/blockAreTheTypesWrong.js.map +0 -1
- package/lib/blocks/blockCSpell.d.ts +0 -75
- package/lib/blocks/blockCSpell.d.ts.map +0 -1
- package/lib/blocks/blockCSpell.js +0 -79
- package/lib/blocks/blockCSpell.js.map +0 -1
- package/lib/blocks/blockCTATransitions.d.ts +0 -72
- package/lib/blocks/blockCTATransitions.d.ts.map +0 -1
- package/lib/blocks/blockCTATransitions.js +0 -113
- package/lib/blocks/blockCTATransitions.js.map +0 -1
- package/lib/blocks/blockCodecov.d.ts +0 -74
- package/lib/blocks/blockCodecov.d.ts.map +0 -1
- package/lib/blocks/blockCodecov.js +0 -54
- package/lib/blocks/blockCodecov.js.map +0 -1
- package/lib/blocks/blockContributingDocs.d.ts +0 -72
- package/lib/blocks/blockContributingDocs.d.ts.map +0 -1
- package/lib/blocks/blockContributingDocs.js +0 -114
- package/lib/blocks/blockContributingDocs.js.map +0 -1
- package/lib/blocks/blockContributorCovenant.d.ts +0 -72
- package/lib/blocks/blockContributorCovenant.d.ts.map +0 -1
- package/lib/blocks/blockContributorCovenant.js +0 -159
- package/lib/blocks/blockContributorCovenant.js.map +0 -1
- package/lib/blocks/blockDevelopmentDocs.d.ts +0 -86
- package/lib/blocks/blockDevelopmentDocs.d.ts.map +0 -1
- package/lib/blocks/blockDevelopmentDocs.js +0 -74
- package/lib/blocks/blockDevelopmentDocs.js.map +0 -1
- package/lib/blocks/blockESLint.d.ts +0 -96
- package/lib/blocks/blockESLint.d.ts.map +0 -1
- package/lib/blocks/blockESLint.js +0 -198
- package/lib/blocks/blockESLint.js.map +0 -1
- package/lib/blocks/blockESLintComments.d.ts +0 -72
- package/lib/blocks/blockESLintComments.d.ts.map +0 -1
- package/lib/blocks/blockESLintComments.js +0 -23
- package/lib/blocks/blockESLintComments.js.map +0 -1
- package/lib/blocks/blockESLintJSDoc.d.ts +0 -72
- package/lib/blocks/blockESLintJSDoc.d.ts.map +0 -1
- package/lib/blocks/blockESLintJSDoc.js +0 -27
- package/lib/blocks/blockESLintJSDoc.js.map +0 -1
- package/lib/blocks/blockESLintJSONC.d.ts +0 -72
- package/lib/blocks/blockESLintJSONC.d.ts.map +0 -1
- package/lib/blocks/blockESLintJSONC.js +0 -22
- package/lib/blocks/blockESLintJSONC.js.map +0 -1
- package/lib/blocks/blockESLintMarkdown.d.ts +0 -72
- package/lib/blocks/blockESLintMarkdown.d.ts.map +0 -1
- package/lib/blocks/blockESLintMarkdown.js +0 -38
- package/lib/blocks/blockESLintMarkdown.js.map +0 -1
- package/lib/blocks/blockESLintMoreStyling.d.ts +0 -73
- package/lib/blocks/blockESLintMoreStyling.d.ts.map +0 -1
- package/lib/blocks/blockESLintMoreStyling.js +0 -30
- package/lib/blocks/blockESLintMoreStyling.js.map +0 -1
- package/lib/blocks/blockESLintNode.d.ts +0 -72
- package/lib/blocks/blockESLintNode.d.ts.map +0 -1
- package/lib/blocks/blockESLintNode.js +0 -27
- package/lib/blocks/blockESLintNode.js.map +0 -1
- package/lib/blocks/blockESLintPackageJson.d.ts +0 -72
- package/lib/blocks/blockESLintPackageJson.d.ts.map +0 -1
- package/lib/blocks/blockESLintPackageJson.js +0 -33
- package/lib/blocks/blockESLintPackageJson.js.map +0 -1
- package/lib/blocks/blockESLintPerfectionist.d.ts +0 -72
- package/lib/blocks/blockESLintPerfectionist.d.ts.map +0 -1
- package/lib/blocks/blockESLintPerfectionist.js +0 -27
- package/lib/blocks/blockESLintPerfectionist.js.map +0 -1
- package/lib/blocks/blockESLintPlugin.d.ts +0 -74
- package/lib/blocks/blockESLintPlugin.d.ts.map +0 -1
- package/lib/blocks/blockESLintPlugin.js +0 -232
- package/lib/blocks/blockESLintPlugin.js.map +0 -1
- package/lib/blocks/blockESLintRegexp.d.ts +0 -72
- package/lib/blocks/blockESLintRegexp.d.ts.map +0 -1
- package/lib/blocks/blockESLintRegexp.js +0 -23
- package/lib/blocks/blockESLintRegexp.js.map +0 -1
- package/lib/blocks/blockESLintYML.d.ts +0 -72
- package/lib/blocks/blockESLintYML.d.ts.map +0 -1
- package/lib/blocks/blockESLintYML.js +0 -33
- package/lib/blocks/blockESLintYML.js.map +0 -1
- package/lib/blocks/blockExampleFiles.d.ts +0 -75
- package/lib/blocks/blockExampleFiles.d.ts.map +0 -1
- package/lib/blocks/blockExampleFiles.js +0 -25
- package/lib/blocks/blockExampleFiles.js.map +0 -1
- package/lib/blocks/blockExports.d.ts +0 -75
- package/lib/blocks/blockExports.d.ts.map +0 -1
- package/lib/blocks/blockExports.js +0 -20
- package/lib/blocks/blockExports.js.map +0 -1
- package/lib/blocks/blockFunding.d.ts +0 -72
- package/lib/blocks/blockFunding.d.ts.map +0 -1
- package/lib/blocks/blockFunding.js +0 -13
- package/lib/blocks/blockFunding.js.map +0 -1
- package/lib/blocks/blockGitHubActionsCI.d.ts +0 -88
- package/lib/blocks/blockGitHubActionsCI.d.ts.map +0 -1
- package/lib/blocks/blockGitHubActionsCI.js +0 -91
- package/lib/blocks/blockGitHubActionsCI.js.map +0 -1
- package/lib/blocks/blockGitHubApps.d.ts +0 -77
- package/lib/blocks/blockGitHubApps.d.ts.map +0 -1
- package/lib/blocks/blockGitHubApps.js +0 -18
- package/lib/blocks/blockGitHubApps.js.map +0 -1
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +0 -72
- package/lib/blocks/blockGitHubIssueTemplates.d.ts.map +0 -1
- package/lib/blocks/blockGitHubIssueTemplates.js +0 -196
- package/lib/blocks/blockGitHubIssueTemplates.js.map +0 -1
- package/lib/blocks/blockGitHubPRTemplate.d.ts +0 -72
- package/lib/blocks/blockGitHubPRTemplate.d.ts.map +0 -1
- package/lib/blocks/blockGitHubPRTemplate.js +0 -25
- package/lib/blocks/blockGitHubPRTemplate.js.map +0 -1
- package/lib/blocks/blockGitignore.d.ts +0 -74
- package/lib/blocks/blockGitignore.d.ts.map +0 -1
- package/lib/blocks/blockGitignore.js +0 -16
- package/lib/blocks/blockGitignore.js.map +0 -1
- package/lib/blocks/blockKnip.d.ts +0 -76
- package/lib/blocks/blockKnip.d.ts.map +0 -1
- package/lib/blocks/blockKnip.js +0 -70
- package/lib/blocks/blockKnip.js.map +0 -1
- package/lib/blocks/blockMITLicense.d.ts +0 -72
- package/lib/blocks/blockMITLicense.d.ts.map +0 -1
- package/lib/blocks/blockMITLicense.js +0 -41
- package/lib/blocks/blockMITLicense.js.map +0 -1
- package/lib/blocks/blockNcc.d.ts +0 -74
- package/lib/blocks/blockNcc.d.ts.map +0 -1
- package/lib/blocks/blockNcc.js +0 -67
- package/lib/blocks/blockNcc.js.map +0 -1
- package/lib/blocks/blockNvmrc.d.ts +0 -72
- package/lib/blocks/blockNvmrc.d.ts.map +0 -1
- package/lib/blocks/blockNvmrc.js +0 -19
- package/lib/blocks/blockNvmrc.js.map +0 -1
- package/lib/blocks/blockOctoGuide.d.ts +0 -74
- package/lib/blocks/blockOctoGuide.d.ts.map +0 -1
- package/lib/blocks/blockOctoGuide.js +0 -71
- package/lib/blocks/blockOctoGuide.js.map +0 -1
- package/lib/blocks/blockOctoGuideStrict.d.ts +0 -72
- package/lib/blocks/blockOctoGuideStrict.d.ts.map +0 -1
- package/lib/blocks/blockOctoGuideStrict.js +0 -13
- package/lib/blocks/blockOctoGuideStrict.js.map +0 -1
- package/lib/blocks/blockPackageJson.d.ts +0 -149
- package/lib/blocks/blockPackageJson.d.ts.map +0 -1
- package/lib/blocks/blockPackageJson.js +0 -87
- package/lib/blocks/blockPackageJson.js.map +0 -1
- package/lib/blocks/blockPnpmDedupe.d.ts +0 -72
- package/lib/blocks/blockPnpmDedupe.d.ts.map +0 -1
- package/lib/blocks/blockPnpmDedupe.js +0 -21
- package/lib/blocks/blockPnpmDedupe.js.map +0 -1
- package/lib/blocks/blockPrettier.d.ts +0 -82
- package/lib/blocks/blockPrettier.d.ts.map +0 -1
- package/lib/blocks/blockPrettier.js +0 -97
- package/lib/blocks/blockPrettier.js.map +0 -1
- package/lib/blocks/blockPrettierPluginCurly.d.ts +0 -72
- package/lib/blocks/blockPrettierPluginCurly.d.ts.map +0 -1
- package/lib/blocks/blockPrettierPluginCurly.js +0 -13
- package/lib/blocks/blockPrettierPluginCurly.js.map +0 -1
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +0 -72
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts.map +0 -1
- package/lib/blocks/blockPrettierPluginPackageJson.js +0 -13
- package/lib/blocks/blockPrettierPluginPackageJson.js.map +0 -1
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts +0 -72
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts.map +0 -1
- package/lib/blocks/blockPrettierPluginSentencesPerLine.js +0 -13
- package/lib/blocks/blockPrettierPluginSentencesPerLine.js.map +0 -1
- package/lib/blocks/blockPrettierPluginSh.d.ts +0 -72
- package/lib/blocks/blockPrettierPluginSh.d.ts.map +0 -1
- package/lib/blocks/blockPrettierPluginSh.js +0 -13
- package/lib/blocks/blockPrettierPluginSh.js.map +0 -1
- package/lib/blocks/blockREADME.d.ts +0 -85
- package/lib/blocks/blockREADME.d.ts.map +0 -1
- package/lib/blocks/blockREADME.js +0 -76
- package/lib/blocks/blockREADME.js.map +0 -1
- package/lib/blocks/blockReleaseIt.d.ts +0 -77
- package/lib/blocks/blockReleaseIt.d.ts.map +0 -1
- package/lib/blocks/blockReleaseIt.js +0 -158
- package/lib/blocks/blockReleaseIt.js.map +0 -1
- package/lib/blocks/blockRemoveDependencies.d.ts +0 -74
- package/lib/blocks/blockRemoveDependencies.d.ts.map +0 -1
- package/lib/blocks/blockRemoveDependencies.js +0 -22
- package/lib/blocks/blockRemoveDependencies.js.map +0 -1
- package/lib/blocks/blockRemoveFiles.d.ts +0 -74
- package/lib/blocks/blockRemoveFiles.d.ts.map +0 -1
- package/lib/blocks/blockRemoveFiles.js +0 -23
- package/lib/blocks/blockRemoveFiles.js.map +0 -1
- package/lib/blocks/blockRemoveWorkflows.d.ts +0 -74
- package/lib/blocks/blockRemoveWorkflows.d.ts.map +0 -1
- package/lib/blocks/blockRemoveWorkflows.js +0 -19
- package/lib/blocks/blockRemoveWorkflows.js.map +0 -1
- package/lib/blocks/blockRenovate.d.ts +0 -74
- package/lib/blocks/blockRenovate.d.ts.map +0 -1
- package/lib/blocks/blockRenovate.js +0 -41
- package/lib/blocks/blockRenovate.js.map +0 -1
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +0 -74
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts.map +0 -1
- package/lib/blocks/blockRepositoryBranchRuleset.js +0 -81
- package/lib/blocks/blockRepositoryBranchRuleset.js.map +0 -1
- package/lib/blocks/blockRepositoryLabels.d.ts +0 -72
- package/lib/blocks/blockRepositoryLabels.d.ts.map +0 -1
- package/lib/blocks/blockRepositoryLabels.js +0 -54
- package/lib/blocks/blockRepositoryLabels.js.map +0 -1
- package/lib/blocks/blockRepositorySecrets.d.ts +0 -77
- package/lib/blocks/blockRepositorySecrets.d.ts.map +0 -1
- package/lib/blocks/blockRepositorySecrets.js +0 -18
- package/lib/blocks/blockRepositorySecrets.js.map +0 -1
- package/lib/blocks/blockRepositorySettings.d.ts +0 -72
- package/lib/blocks/blockRepositorySettings.d.ts.map +0 -1
- package/lib/blocks/blockRepositorySettings.js +0 -33
- package/lib/blocks/blockRepositorySettings.js.map +0 -1
- package/lib/blocks/blockSecurityDocs.d.ts +0 -72
- package/lib/blocks/blockSecurityDocs.d.ts.map +0 -1
- package/lib/blocks/blockSecurityDocs.js +0 -21
- package/lib/blocks/blockSecurityDocs.js.map +0 -1
- package/lib/blocks/blockSideEffects.d.ts +0 -74
- package/lib/blocks/blockSideEffects.d.ts.map +0 -1
- package/lib/blocks/blockSideEffects.js +0 -16
- package/lib/blocks/blockSideEffects.js.map +0 -1
- package/lib/blocks/blockTSDown.d.ts +0 -76
- package/lib/blocks/blockTSDown.d.ts.map +0 -1
- package/lib/blocks/blockTSDown.js +0 -108
- package/lib/blocks/blockTSDown.js.map +0 -1
- package/lib/blocks/blockTemplatedWith.d.ts +0 -72
- package/lib/blocks/blockTemplatedWith.d.ts.map +0 -1
- package/lib/blocks/blockTemplatedWith.js +0 -15
- package/lib/blocks/blockTemplatedWith.js.map +0 -1
- package/lib/blocks/blockTypeScript.d.ts +0 -184
- package/lib/blocks/blockTypeScript.d.ts.map +0 -1
- package/lib/blocks/blockTypeScript.js +0 -138
- package/lib/blocks/blockTypeScript.js.map +0 -1
- package/lib/blocks/blockVSCode.d.ts +0 -81
- package/lib/blocks/blockVSCode.d.ts.map +0 -1
- package/lib/blocks/blockVSCode.js +0 -61
- package/lib/blocks/blockVSCode.js.map +0 -1
- package/lib/blocks/blockVitest.d.ts +0 -89
- package/lib/blocks/blockVitest.d.ts.map +0 -1
- package/lib/blocks/blockVitest.js +0 -207
- package/lib/blocks/blockVitest.js.map +0 -1
- package/lib/blocks/blockWebExt.d.ts +0 -72
- package/lib/blocks/blockWebExt.d.ts.map +0 -1
- package/lib/blocks/blockWebExt.js +0 -97
- package/lib/blocks/blockWebExt.js.map +0 -1
- package/lib/blocks/eslint/blockESLintIntake.d.ts +0 -11
- package/lib/blocks/eslint/blockESLintIntake.d.ts.map +0 -1
- package/lib/blocks/eslint/blockESLintIntake.js +0 -86
- package/lib/blocks/eslint/blockESLintIntake.js.map +0 -1
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts +0 -7
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts.map +0 -1
- package/lib/blocks/eslint/blockESLintPluginIntake.js +0 -29
- package/lib/blocks/eslint/blockESLintPluginIntake.js.map +0 -1
- package/lib/blocks/eslint/getScriptFileExtension.d.ts +0 -8
- package/lib/blocks/eslint/getScriptFileExtension.d.ts.map +0 -1
- package/lib/blocks/eslint/getScriptFileExtension.js +0 -8
- package/lib/blocks/eslint/getScriptFileExtension.js.map +0 -1
- package/lib/blocks/eslint/mergeAllExtensions.d.ts +0 -17
- package/lib/blocks/eslint/mergeAllExtensions.d.ts.map +0 -1
- package/lib/blocks/eslint/mergeAllExtensions.js +0 -48
- package/lib/blocks/eslint/mergeAllExtensions.js.map +0 -1
- package/lib/blocks/eslint/schemas.d.ts +0 -112
- package/lib/blocks/eslint/schemas.d.ts.map +0 -1
- package/lib/blocks/eslint/schemas.js +0 -42
- package/lib/blocks/eslint/schemas.js.map +0 -1
- package/lib/blocks/files/createJobName.d.ts +0 -5
- package/lib/blocks/files/createJobName.d.ts.map +0 -1
- package/lib/blocks/files/createJobName.js +0 -8
- package/lib/blocks/files/createJobName.js.map +0 -1
- package/lib/blocks/files/createMultiWorkflowFile.d.ts +0 -24
- package/lib/blocks/files/createMultiWorkflowFile.d.ts.map +0 -1
- package/lib/blocks/files/createMultiWorkflowFile.js +0 -30
- package/lib/blocks/files/createMultiWorkflowFile.js.map +0 -1
- package/lib/blocks/files/createSoloWorkflowFile.d.ts +0 -65
- package/lib/blocks/files/createSoloWorkflowFile.d.ts.map +0 -1
- package/lib/blocks/files/createSoloWorkflowFile.js +0 -21
- package/lib/blocks/files/createSoloWorkflowFile.js.map +0 -1
- package/lib/blocks/files/formatIgnoreFile.d.ts +0 -5
- package/lib/blocks/files/formatIgnoreFile.d.ts.map +0 -1
- package/lib/blocks/files/formatIgnoreFile.js +0 -8
- package/lib/blocks/files/formatIgnoreFile.js.map +0 -1
- package/lib/blocks/files/formatWorkflowYaml.d.ts +0 -5
- package/lib/blocks/files/formatWorkflowYaml.d.ts.map +0 -1
- package/lib/blocks/files/formatWorkflowYaml.js +0 -9
- package/lib/blocks/files/formatWorkflowYaml.js.map +0 -1
- package/lib/blocks/files/formatYaml.d.ts +0 -5
- package/lib/blocks/files/formatYaml.d.ts.map +0 -1
- package/lib/blocks/files/formatYaml.js +0 -20
- package/lib/blocks/files/formatYaml.js.map +0 -1
- package/lib/blocks/files/removeUsesQuotes.d.ts +0 -5
- package/lib/blocks/files/removeUsesQuotes.d.ts.map +0 -1
- package/lib/blocks/files/removeUsesQuotes.js +0 -8
- package/lib/blocks/files/removeUsesQuotes.js.map +0 -1
- package/lib/blocks/getInstallationSuggestions.d.ts +0 -5
- package/lib/blocks/getInstallationSuggestions.d.ts.map +0 -1
- package/lib/blocks/getInstallationSuggestions.js +0 -13
- package/lib/blocks/getInstallationSuggestions.js.map +0 -1
- package/lib/blocks/index.d.ts +0 -3713
- package/lib/blocks/index.d.ts.map +0 -1
- package/lib/blocks/index.js +0 -106
- package/lib/blocks/index.js.map +0 -1
- package/lib/blocks/intake/intakeFile.d.ts +0 -6
- package/lib/blocks/intake/intakeFile.d.ts.map +0 -1
- package/lib/blocks/intake/intakeFile.js +0 -13
- package/lib/blocks/intake/intakeFile.js.map +0 -1
- package/lib/blocks/intake/intakeFileAsJson.d.ts +0 -6
- package/lib/blocks/intake/intakeFileAsJson.d.ts.map +0 -1
- package/lib/blocks/intake/intakeFileAsJson.js +0 -15
- package/lib/blocks/intake/intakeFileAsJson.js.map +0 -1
- package/lib/blocks/intake/intakeFileAsYaml.d.ts +0 -6
- package/lib/blocks/intake/intakeFileAsYaml.d.ts.map +0 -1
- package/lib/blocks/intake/intakeFileAsYaml.js +0 -15
- package/lib/blocks/intake/intakeFileAsYaml.js.map +0 -1
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts +0 -6
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts.map +0 -1
- package/lib/blocks/intake/intakeFileDefineConfig.js +0 -24
- package/lib/blocks/intake/intakeFileDefineConfig.js.map +0 -1
- package/lib/blocks/intake/intakeFileExportObject.d.ts +0 -6
- package/lib/blocks/intake/intakeFileExportObject.d.ts.map +0 -1
- package/lib/blocks/intake/intakeFileExportObject.js +0 -24
- package/lib/blocks/intake/intakeFileExportObject.js.map +0 -1
- package/lib/blocks/options.fakes.d.ts +0 -26
- package/lib/blocks/options.fakes.d.ts.map +0 -1
- package/lib/blocks/options.fakes.js +0 -21
- package/lib/blocks/options.fakes.js.map +0 -1
- package/lib/blocks/outcomeLabels.d.ts +0 -15
- package/lib/blocks/outcomeLabels.d.ts.map +0 -1
- package/lib/blocks/outcomeLabels.js +0 -95
- package/lib/blocks/outcomeLabels.js.map +0 -1
- package/lib/blocks/phases.d.ts +0 -11
- package/lib/blocks/phases.d.ts.map +0 -1
- package/lib/blocks/phases.js +0 -12
- package/lib/blocks/phases.js.map +0 -1
- package/lib/constants.d.ts +0 -10
- package/lib/constants.d.ts.map +0 -1
- package/lib/constants.js +0 -9
- package/lib/constants.js.map +0 -1
- package/lib/data/contributions.d.ts +0 -5
- package/lib/data/contributions.d.ts.map +0 -1
- package/lib/data/contributions.js +0 -15
- package/lib/data/contributions.js.map +0 -1
- package/lib/data/packageData.d.ts +0 -10
- package/lib/data/packageData.d.ts.map +0 -1
- package/lib/data/packageData.js +0 -19
- package/lib/data/packageData.js.map +0 -1
- package/lib/index.d.ts +0 -294
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -63
- package/lib/index.js.map +0 -1
- package/lib/inputs/inputFromDirectory.d.ts +0 -8
- package/lib/inputs/inputFromDirectory.d.ts.map +0 -1
- package/lib/inputs/inputFromDirectory.js +0 -13
- package/lib/inputs/inputFromDirectory.js.map +0 -1
- package/lib/inputs/inputFromOctokit.d.ts +0 -9
- package/lib/inputs/inputFromOctokit.d.ts.map +0 -1
- package/lib/inputs/inputFromOctokit.js +0 -25
- package/lib/inputs/inputFromOctokit.js.map +0 -1
- package/lib/options/readAccess.d.ts +0 -6
- package/lib/options/readAccess.d.ts.map +0 -1
- package/lib/options/readAccess.js +0 -8
- package/lib/options/readAccess.js.map +0 -1
- package/lib/options/readAllContributors.d.ts +0 -7
- package/lib/options/readAllContributors.d.ts.map +0 -1
- package/lib/options/readAllContributors.js +0 -20
- package/lib/options/readAllContributors.js.map +0 -1
- package/lib/options/readAuthor.d.ts +0 -9
- package/lib/options/readAuthor.d.ts.map +0 -1
- package/lib/options/readAuthor.js +0 -8
- package/lib/options/readAuthor.js.map +0 -1
- package/lib/options/readBin.d.ts +0 -6
- package/lib/options/readBin.d.ts.map +0 -1
- package/lib/options/readBin.js +0 -10
- package/lib/options/readBin.js.map +0 -1
- package/lib/options/readDescription.d.ts +0 -6
- package/lib/options/readDescription.d.ts.map +0 -1
- package/lib/options/readDescription.js +0 -19
- package/lib/options/readDescription.js.map +0 -1
- package/lib/options/readDescriptionFromReadme.d.ts +0 -5
- package/lib/options/readDescriptionFromReadme.d.ts.map +0 -1
- package/lib/options/readDescriptionFromReadme.js +0 -15
- package/lib/options/readDescriptionFromReadme.js.map +0 -1
- package/lib/options/readDevelopmentDocumentation.d.ts +0 -6
- package/lib/options/readDevelopmentDocumentation.d.ts.map +0 -1
- package/lib/options/readDevelopmentDocumentation.js +0 -23
- package/lib/options/readDevelopmentDocumentation.js.map +0 -1
- package/lib/options/readDocumentation.d.ts +0 -6
- package/lib/options/readDocumentation.d.ts.map +0 -1
- package/lib/options/readDocumentation.js +0 -23
- package/lib/options/readDocumentation.js.map +0 -1
- package/lib/options/readEmailFromCodeOfConduct.d.ts +0 -6
- package/lib/options/readEmailFromCodeOfConduct.d.ts.map +0 -1
- package/lib/options/readEmailFromCodeOfConduct.js +0 -10
- package/lib/options/readEmailFromCodeOfConduct.js.map +0 -1
- package/lib/options/readEmailFromGit.d.ts +0 -6
- package/lib/options/readEmailFromGit.d.ts.map +0 -1
- package/lib/options/readEmailFromGit.js +0 -9
- package/lib/options/readEmailFromGit.js.map +0 -1
- package/lib/options/readEmailFromNpm.d.ts +0 -7
- package/lib/options/readEmailFromNpm.d.ts.map +0 -1
- package/lib/options/readEmailFromNpm.js +0 -8
- package/lib/options/readEmailFromNpm.js.map +0 -1
- package/lib/options/readEmails.d.ts +0 -9
- package/lib/options/readEmails.d.ts.map +0 -1
- package/lib/options/readEmails.js +0 -13
- package/lib/options/readEmails.js.map +0 -1
- package/lib/options/readEmoji.d.ts +0 -5
- package/lib/options/readEmoji.d.ts.map +0 -1
- package/lib/options/readEmoji.js +0 -8
- package/lib/options/readEmoji.js.map +0 -1
- package/lib/options/readExistingLabels.d.ts +0 -10
- package/lib/options/readExistingLabels.d.ts.map +0 -1
- package/lib/options/readExistingLabels.js +0 -23
- package/lib/options/readExistingLabels.js.map +0 -1
- package/lib/options/readFileAsJson.d.ts +0 -5
- package/lib/options/readFileAsJson.d.ts.map +0 -1
- package/lib/options/readFileAsJson.js +0 -13
- package/lib/options/readFileAsJson.js.map +0 -1
- package/lib/options/readFileSafe.d.ts +0 -5
- package/lib/options/readFileSafe.d.ts.map +0 -1
- package/lib/options/readFileSafe.js +0 -13
- package/lib/options/readFileSafe.js.map +0 -1
- package/lib/options/readFunding.d.ts +0 -6
- package/lib/options/readFunding.d.ts.map +0 -1
- package/lib/options/readFunding.js +0 -10
- package/lib/options/readFunding.js.map +0 -1
- package/lib/options/readGitDefaults.d.ts +0 -7
- package/lib/options/readGitDefaults.d.ts.map +0 -1
- package/lib/options/readGitDefaults.js +0 -11
- package/lib/options/readGitDefaults.js.map +0 -1
- package/lib/options/readGuide.d.ts +0 -9
- package/lib/options/readGuide.d.ts.map +0 -1
- package/lib/options/readGuide.js +0 -16
- package/lib/options/readGuide.js.map +0 -1
- package/lib/options/readKeywords.d.ts +0 -6
- package/lib/options/readKeywords.d.ts.map +0 -1
- package/lib/options/readKeywords.js +0 -9
- package/lib/options/readKeywords.js.map +0 -1
- package/lib/options/readLogo.d.ts +0 -10
- package/lib/options/readLogo.d.ts.map +0 -1
- package/lib/options/readLogo.js +0 -21
- package/lib/options/readLogo.js.map +0 -1
- package/lib/options/readLogoSizing.d.ts +0 -9
- package/lib/options/readLogoSizing.d.ts.map +0 -1
- package/lib/options/readLogoSizing.js +0 -31
- package/lib/options/readLogoSizing.js.map +0 -1
- package/lib/options/readNode.d.ts +0 -9
- package/lib/options/readNode.d.ts.map +0 -1
- package/lib/options/readNode.js +0 -14
- package/lib/options/readNode.js.map +0 -1
- package/lib/options/readNpmDefaults.d.ts +0 -6
- package/lib/options/readNpmDefaults.d.ts.map +0 -1
- package/lib/options/readNpmDefaults.js +0 -11
- package/lib/options/readNpmDefaults.js.map +0 -1
- package/lib/options/readOwner.d.ts +0 -8
- package/lib/options/readOwner.d.ts.map +0 -1
- package/lib/options/readOwner.js +0 -9
- package/lib/options/readOwner.js.map +0 -1
- package/lib/options/readPackageAuthor.d.ts +0 -10
- package/lib/options/readPackageAuthor.d.ts.map +0 -1
- package/lib/options/readPackageAuthor.js +0 -14
- package/lib/options/readPackageAuthor.js.map +0 -1
- package/lib/options/readPackageData.d.ts +0 -7
- package/lib/options/readPackageData.d.ts.map +0 -1
- package/lib/options/readPackageData.js +0 -10
- package/lib/options/readPackageData.js.map +0 -1
- package/lib/options/readPnpm.d.ts +0 -6
- package/lib/options/readPnpm.d.ts.map +0 -1
- package/lib/options/readPnpm.js +0 -9
- package/lib/options/readPnpm.js.map +0 -1
- package/lib/options/readReadmeAdditional.d.ts +0 -5
- package/lib/options/readReadmeAdditional.d.ts.map +0 -1
- package/lib/options/readReadmeAdditional.js +0 -19
- package/lib/options/readReadmeAdditional.js.map +0 -1
- package/lib/options/readReadmeExplainer.d.ts +0 -5
- package/lib/options/readReadmeExplainer.d.ts.map +0 -1
- package/lib/options/readReadmeExplainer.js +0 -27
- package/lib/options/readReadmeExplainer.js.map +0 -1
- package/lib/options/readReadmeFootnotes.d.ts +0 -6
- package/lib/options/readReadmeFootnotes.d.ts.map +0 -1
- package/lib/options/readReadmeFootnotes.js +0 -17
- package/lib/options/readReadmeFootnotes.js.map +0 -1
- package/lib/options/readReadmeUsage.d.ts +0 -5
- package/lib/options/readReadmeUsage.d.ts.map +0 -1
- package/lib/options/readReadmeUsage.js +0 -15
- package/lib/options/readReadmeUsage.js.map +0 -1
- package/lib/options/readRepository.d.ts +0 -10
- package/lib/options/readRepository.d.ts.map +0 -1
- package/lib/options/readRepository.js +0 -8
- package/lib/options/readRepository.js.map +0 -1
- package/lib/options/readRulesetId.d.ts +0 -6
- package/lib/options/readRulesetId.d.ts.map +0 -1
- package/lib/options/readRulesetId.js +0 -15
- package/lib/options/readRulesetId.js.map +0 -1
- package/lib/options/readTitle.d.ts +0 -5
- package/lib/options/readTitle.d.ts.map +0 -1
- package/lib/options/readTitle.js +0 -13
- package/lib/options/readTitle.js.map +0 -1
- package/lib/options/readWords.d.ts +0 -6
- package/lib/options/readWords.d.ts.map +0 -1
- package/lib/options/readWords.js +0 -10
- package/lib/options/readWords.js.map +0 -1
- package/lib/options/readWorkflowsVersions.d.ts +0 -7
- package/lib/options/readWorkflowsVersions.d.ts.map +0 -1
- package/lib/options/readWorkflowsVersions.js +0 -47
- package/lib/options/readWorkflowsVersions.js.map +0 -1
- package/lib/package.json.d.ts +0 -138
- package/lib/package.json.d.ts.map +0 -1
- package/lib/presets/common.d.ts +0 -170
- package/lib/presets/common.d.ts.map +0 -1
- package/lib/presets/common.js +0 -28
- package/lib/presets/common.js.map +0 -1
- package/lib/presets/everything.d.ts +0 -170
- package/lib/presets/everything.d.ts.map +0 -1
- package/lib/presets/everything.js +0 -58
- package/lib/presets/everything.js.map +0 -1
- package/lib/presets/index.d.ts +0 -507
- package/lib/presets/index.d.ts.map +0 -1
- package/lib/presets/index.js +0 -13
- package/lib/presets/index.js.map +0 -1
- package/lib/presets/minimal.d.ts +0 -170
- package/lib/presets/minimal.d.ts.map +0 -1
- package/lib/presets/minimal.js +0 -68
- package/lib/presets/minimal.js.map +0 -1
- package/lib/schemas.d.ts +0 -111
- package/lib/schemas.d.ts.map +0 -1
- package/lib/schemas.js +0 -29
- package/lib/schemas.js.map +0 -1
- package/lib/template.d.ts +0 -170
- package/lib/template.d.ts.map +0 -1
- package/lib/template.js +0 -40
- package/lib/template.js.map +0 -1
- package/lib/types.d.ts +0 -42
- package/lib/types.d.ts.map +0 -1
- package/lib/utils/htmlToTextSafe.d.ts +0 -5
- package/lib/utils/htmlToTextSafe.d.ts.map +0 -1
- package/lib/utils/htmlToTextSafe.js +0 -15
- package/lib/utils/htmlToTextSafe.js.map +0 -1
- package/lib/utils/resolveBin.d.ts +0 -5
- package/lib/utils/resolveBin.d.ts.map +0 -1
- package/lib/utils/resolveBin.js +0 -9
- package/lib/utils/resolveBin.js.map +0 -1
- package/lib/utils/swallowError.d.ts +0 -5
- package/lib/utils/swallowError.d.ts.map +0 -1
- package/lib/utils/swallowError.js +0 -8
- package/lib/utils/swallowError.js.map +0 -1
- package/lib/utils/swallowErrorAsync.d.ts +0 -5
- package/lib/utils/swallowErrorAsync.d.ts.map +0 -1
- package/lib/utils/swallowErrorAsync.js +0 -12
- package/lib/utils/swallowErrorAsync.js.map +0 -1
- package/lib/utils/trimPrecedingSlash.d.ts +0 -5
- package/lib/utils/trimPrecedingSlash.d.ts.map +0 -1
- package/lib/utils/trimPrecedingSlash.js +0 -8
- package/lib/utils/trimPrecedingSlash.js.map +0 -1
- package/lib/utils/tryCatch.d.ts +0 -5
- package/lib/utils/tryCatch.d.ts.map +0 -1
- package/lib/utils/tryCatch.js +0 -12
- package/lib/utils/tryCatch.js.map +0 -1
- /package/{lib/_virtual/_rolldown/runtime.js → dist/_virtual/_rolldown/runtime.mjs} +0 -0
- /package/{lib/types.js → dist/types.mjs} +0 -0
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
//#region src/blocks/blockWebExt.d.ts
|
|
2
|
-
declare const blockWebExt: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
|
-
access: "public" | "restricted";
|
|
4
|
-
description: string;
|
|
5
|
-
directory: string;
|
|
6
|
-
documentation: {
|
|
7
|
-
readme: {
|
|
8
|
-
additional?: string | undefined;
|
|
9
|
-
explainer?: string | undefined;
|
|
10
|
-
footnotes?: string | undefined;
|
|
11
|
-
usage?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
development?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
email: {
|
|
16
|
-
github: string;
|
|
17
|
-
npm: string;
|
|
18
|
-
};
|
|
19
|
-
title: string;
|
|
20
|
-
node: {
|
|
21
|
-
minimum: string;
|
|
22
|
-
pinned?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
owner: string;
|
|
25
|
-
repository: string;
|
|
26
|
-
type?: "commonjs" | "module" | undefined;
|
|
27
|
-
author?: string | undefined;
|
|
28
|
-
bin?: string | Record<string, string> | undefined;
|
|
29
|
-
contributors?: {
|
|
30
|
-
avatar_url: string;
|
|
31
|
-
contributions: string[];
|
|
32
|
-
login: string;
|
|
33
|
-
name: string;
|
|
34
|
-
profile: string;
|
|
35
|
-
}[] | undefined;
|
|
36
|
-
emoji?: string | undefined;
|
|
37
|
-
existingLabels?: {
|
|
38
|
-
name: string;
|
|
39
|
-
description: string;
|
|
40
|
-
color: string;
|
|
41
|
-
}[] | undefined;
|
|
42
|
-
funding?: string | undefined;
|
|
43
|
-
guide?: {
|
|
44
|
-
href: string;
|
|
45
|
-
title: string;
|
|
46
|
-
} | undefined;
|
|
47
|
-
keywords?: string[] | undefined;
|
|
48
|
-
logo?: {
|
|
49
|
-
alt: string;
|
|
50
|
-
src: string;
|
|
51
|
-
height?: number | undefined;
|
|
52
|
-
width?: number | undefined;
|
|
53
|
-
} | undefined;
|
|
54
|
-
packageData?: {
|
|
55
|
-
dependencies?: Record<string, string> | undefined;
|
|
56
|
-
devDependencies?: Record<string, string> | undefined;
|
|
57
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
58
|
-
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
59
|
-
scripts?: Record<string, string | undefined> | undefined;
|
|
60
|
-
} | undefined;
|
|
61
|
-
pnpm?: string | undefined;
|
|
62
|
-
rulesetId?: string | undefined;
|
|
63
|
-
version?: string | undefined;
|
|
64
|
-
words?: string[] | undefined;
|
|
65
|
-
workflowsVersions?: Record<string, Record<string, {
|
|
66
|
-
pinned?: boolean | undefined;
|
|
67
|
-
hash?: string | undefined;
|
|
68
|
-
}>> | undefined;
|
|
69
|
-
}>;
|
|
70
|
-
//#endregion
|
|
71
|
-
export { blockWebExt };
|
|
72
|
-
//# sourceMappingURL=blockWebExt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockWebExt.d.ts","names":[],"sources":["../../src/blocks/blockWebExt.ts"],"mappings":";cAQa,qCAAW"}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { base } from "../base.js";
|
|
2
|
-
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.js";
|
|
3
|
-
import { blockPackageJson } from "./blockPackageJson.js";
|
|
4
|
-
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
|
|
5
|
-
import { blockCSpell } from "./blockCSpell.js";
|
|
6
|
-
import { blockGitignore } from "./blockGitignore.js";
|
|
7
|
-
import { blockPrettier } from "./blockPrettier.js";
|
|
8
|
-
//#region src/blocks/blockWebExt.ts
|
|
9
|
-
const blockWebExt = base.createBlock({
|
|
10
|
-
about: { name: "Web-ext" },
|
|
11
|
-
produce() {
|
|
12
|
-
return { addons: [
|
|
13
|
-
blockCSpell({ ignorePaths: ["assets"] }),
|
|
14
|
-
blockDevelopmentDocs({ sections: {
|
|
15
|
-
Building: {
|
|
16
|
-
contents: `
|
|
17
|
-
Run [ESBuild](https://esbuild.github.io) locally to build source files:
|
|
18
|
-
|
|
19
|
-
\`\`\`shell
|
|
20
|
-
pnpm dev
|
|
21
|
-
\`\`\`
|
|
22
|
-
|
|
23
|
-
Add \`--watch\` to run the builder in a watch mode that continuously re-builds as you save files:
|
|
24
|
-
|
|
25
|
-
\`\`\`shell
|
|
26
|
-
pnpm dev --watch
|
|
27
|
-
\`\`\`
|
|
28
|
-
`,
|
|
29
|
-
innerSections: [
|
|
30
|
-
{
|
|
31
|
-
contents: `
|
|
32
|
-
Follow Google Chrome's _[Load an unpacked extension](https://developer.chrome.com/docs/extensions/mv3/getstarted/#unpacked)_ guide to load this repository's directory as an extension locally.
|
|
33
|
-
|
|
34
|
-
> ♻️ Remember to reload the extension in \`chrome://extensions\` whenever you make changes locally!
|
|
35
|
-
`,
|
|
36
|
-
heading: "Local Development with Chrome"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
contents: `
|
|
40
|
-
Follow Firefox's _[Temporary installation in Firefox](https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox/)_ guide to load this repository's directory as an extension locally.
|
|
41
|
-
|
|
42
|
-
You'll then need to authorize the extension to run on <https://github.com>:
|
|
43
|
-
|
|
44
|
-
1. Find and select the _Extensions_ icon in the top right of Firefox
|
|
45
|
-
2. Select the _"Manage Extension"_ gear icon next to _Refined Saved Replies_
|
|
46
|
-
3. Select the _"Always Allow on github.com"_ option
|
|
47
|
-
|
|
48
|
-
> ♻️ Remember to reload the extension in \`about:debugging#/runtime/this-firefox\` whenever you make changes locally!
|
|
49
|
-
`,
|
|
50
|
-
heading: "Local Development with Firefox"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
contents: `
|
|
54
|
-
Run [\`web-ext\`](https://extensionworkshop.com) to build a production-ready \`.zip\` under \`./web-ext-artifacts/\`:
|
|
55
|
-
|
|
56
|
-
\`\`\`shell
|
|
57
|
-
pnpm build
|
|
58
|
-
\`\`\`
|
|
59
|
-
|
|
60
|
-
Then upload that \`./web-ext-artifacts/refined_saved_replies-*.zip\` file to:
|
|
61
|
-
|
|
62
|
-
- [Chrome Web Store Developer Dashboard](https://chrome.google.com/webstore/devconsole)
|
|
63
|
-
- [Firefox Add-ons Developer Hub](https://addons.mozilla.org/en-US/developers/addon/submit/distribution)
|
|
64
|
-
`,
|
|
65
|
-
heading: "Production Builds"
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
Linting: { contents: { items: [`- \`pnpm lint:web-ext\` ([web-ext](https://extensionworkshop.com)): Lints browser extension metadata after \`pnpm dev\` creates local files`] } }
|
|
70
|
-
} }),
|
|
71
|
-
blockGitHubActionsCI({ jobs: [{
|
|
72
|
-
name: "Build",
|
|
73
|
-
steps: [{ run: "pnpm build" }]
|
|
74
|
-
}, {
|
|
75
|
-
name: "Lint Web-ext",
|
|
76
|
-
steps: [{ run: "pnpm dev" }, { run: "pnpm lint:web-ext" }]
|
|
77
|
-
}] }),
|
|
78
|
-
blockGitignore({ ignores: ["*.zip", "web-ext-artifacts"] }),
|
|
79
|
-
blockPackageJson({ properties: {
|
|
80
|
-
devDependencies: {
|
|
81
|
-
esbuild: "^0.25.0",
|
|
82
|
-
"web-ext": "^8.3.0"
|
|
83
|
-
},
|
|
84
|
-
scripts: {
|
|
85
|
-
build: "web-ext build --overwrite-dest",
|
|
86
|
-
dev: "esbuild src/content-script.ts --bundle --minify --outfile=lib/content-script.js --sourcemap",
|
|
87
|
-
"lint:web-ext": "web-ext lint"
|
|
88
|
-
}
|
|
89
|
-
} }),
|
|
90
|
-
blockPrettier({ ignores: ["assets/"] })
|
|
91
|
-
] };
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
//#endregion
|
|
95
|
-
export { blockWebExt };
|
|
96
|
-
|
|
97
|
-
//# sourceMappingURL=blockWebExt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockWebExt.js","names":[],"sources":["../../src/blocks/blockWebExt.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockGitignore } from \"./blockGitignore.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockPrettier } from \"./blockPrettier.js\";\n\nexport const blockWebExt = base.createBlock({\n\tabout: {\n\t\tname: \"Web-ext\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\tignorePaths: [\"assets\"],\n\t\t\t\t}),\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tBuilding: {\n\t\t\t\t\t\t\tcontents: `\nRun [ESBuild](https://esbuild.github.io) locally to build source files:\n\n\\`\\`\\`shell\npnpm dev\n\\`\\`\\`\n\nAdd \\`--watch\\` to run the builder in a watch mode that continuously re-builds as you save files:\n\n\\`\\`\\`shell\npnpm dev --watch\n\\`\\`\\`\n`,\n\t\t\t\t\t\t\tinnerSections: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcontents: `\nFollow Google Chrome's _[Load an unpacked extension](https://developer.chrome.com/docs/extensions/mv3/getstarted/#unpacked)_ guide to load this repository's directory as an extension locally.\n\n> ♻️ Remember to reload the extension in \\`chrome://extensions\\` whenever you make changes locally!\n`,\n\t\t\t\t\t\t\t\t\theading: \"Local Development with Chrome\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcontents: `\nFollow Firefox's _[Temporary installation in Firefox](https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox/)_ guide to load this repository's directory as an extension locally.\n\nYou'll then need to authorize the extension to run on <https://github.com>:\n\n1. Find and select the _Extensions_ icon in the top right of Firefox\n2. Select the _\"Manage Extension\"_ gear icon next to _Refined Saved Replies_\n3. Select the _\"Always Allow on github.com\"_ option\n\n> ♻️ Remember to reload the extension in \\`about:debugging#/runtime/this-firefox\\` whenever you make changes locally!\n`,\n\t\t\t\t\t\t\t\t\theading: \"Local Development with Firefox\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcontents: `\nRun [\\`web-ext\\`](https://extensionworkshop.com) to build a production-ready \\`.zip\\` under \\`./web-ext-artifacts/\\`:\n\n\\`\\`\\`shell\npnpm build\n\\`\\`\\`\n\nThen upload that \\`./web-ext-artifacts/refined_saved_replies-*.zip\\` file to:\n\n- [Chrome Web Store Developer Dashboard](https://chrome.google.com/webstore/devconsole)\n- [Firefox Add-ons Developer Hub](https://addons.mozilla.org/en-US/developers/addon/submit/distribution)\n`,\n\t\t\t\t\t\t\t\t\theading: \"Production Builds\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tLinting: {\n\t\t\t\t\t\t\tcontents: {\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t`- \\`pnpm lint:web-ext\\` ([web-ext](https://extensionworkshop.com)): Lints browser extension metadata after \\`pnpm dev\\` creates local files`,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Build\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm build\" }],\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint Web-ext\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm dev\" }, { run: \"pnpm lint:web-ext\" }],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockGitignore({\n\t\t\t\t\tignores: [\"*.zip\", \"web-ext-artifacts\"],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t\tesbuild: \"^0.25.0\",\n\t\t\t\t\t\t\t\"web-ext\": \"^8.3.0\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\tbuild: \"web-ext build --overwrite-dest\",\n\t\t\t\t\t\t\tdev: \"esbuild src/content-script.ts --bundle --minify --outfile=lib/content-script.js --sourcemap\",\n\t\t\t\t\t\t\t\"lint:web-ext\": \"web-ext lint\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockPrettier({\n\t\t\t\t\tignores: [\"assets/\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;AAQA,MAAa,cAAc,KAAK,YAAY;CAC3C,OAAO,EACN,MAAM,UACP;CACA,UAAU;EACT,OAAO,EACN,QAAQ;GACP,YAAY,EACX,aAAa,CAAC,QAAQ,EACvB,CAAC;GACD,qBAAqB,EACpB,UAAU;IACT,UAAU;KACT,UAAU;;;;;;;;;;;;;KAaV,eAAe;MACd;OACC,UAAU;;;;;OAKV,SAAS;MACV;MACA;OACC,UAAU;;;;;;;;;;;OAWV,SAAS;MACV;MACA;OACC,UAAU;;;;;;;;;;;;OAYV,SAAS;MACV;KACD;IACD;IACA,SAAS,EACR,UAAU,EACT,OAAO,CACN,6IACD,EACD,EACD;GACD,EACD,CAAC;GACD,qBAAqB,EACpB,MAAM,CACL;IACC,MAAM;IACN,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC;GAC9B,GACA;IACC,MAAM;IACN,OAAO,CAAC,EAAE,KAAK,WAAW,GAAG,EAAE,KAAK,oBAAoB,CAAC;GAC1D,CACD,EACD,CAAC;GACD,eAAe,EACd,SAAS,CAAC,SAAS,mBAAmB,EACvC,CAAC;GACD,iBAAiB,EAChB,YAAY;IACX,iBAAiB;KAChB,SAAS;KACT,WAAW;IACZ;IACA,SAAS;KACR,OAAO;KACP,KAAK;KACL,gBAAgB;IACjB;GACD,EACD,CAAC;GACD,cAAc,EACb,SAAS,CAAC,SAAS,EACpB,CAAC;EACF,EACD;CACD;AACD,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region src/blocks/eslint/blockESLintIntake.d.ts
|
|
2
|
-
declare function blockESLintIntake(sourceText: string): {
|
|
3
|
-
ignores: (string | (RegExp & string))[];
|
|
4
|
-
rules: {
|
|
5
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
6
|
-
comment?: string | undefined;
|
|
7
|
-
}[];
|
|
8
|
-
} | undefined;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { blockESLintIntake };
|
|
11
|
-
//# sourceMappingURL=blockESLintIntake.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintIntake.d.ts","names":[],"sources":["../../../src/blocks/eslint/blockESLintIntake.ts"],"mappings":";iBAegB,kBAAkB;sBAAlB;;aAAA"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { tryCatch } from "../../utils/tryCatch.js";
|
|
2
|
-
import "../blockESLintMoreStyling.js";
|
|
3
|
-
import { zRuleOptions } from "./schemas.js";
|
|
4
|
-
import JSON5 from "json5";
|
|
5
|
-
import { AST_NODE_TYPES, parse } from "@typescript-eslint/typescript-estree";
|
|
6
|
-
//#region src/blocks/eslint/blockESLintIntake.ts
|
|
7
|
-
function blockESLintIntake(sourceText) {
|
|
8
|
-
const configExport = tryCatch(() => parse(sourceText, {
|
|
9
|
-
comment: true,
|
|
10
|
-
loc: true,
|
|
11
|
-
range: true
|
|
12
|
-
}))?.body.find(nodeIsConfigExport);
|
|
13
|
-
if (!configExport) return;
|
|
14
|
-
const configArguments = configExport.declaration.arguments;
|
|
15
|
-
if (configArguments.length < 2) return;
|
|
16
|
-
const ignores = getConfigIgnores(configArguments[0]);
|
|
17
|
-
if (!ignores) return;
|
|
18
|
-
const rulesObject = getConfigRulesObject(configArguments.slice(1));
|
|
19
|
-
if (!rulesObject) return;
|
|
20
|
-
const rules = collectRulesObjectGroups(sourceText, rulesObject);
|
|
21
|
-
if (!rules) return;
|
|
22
|
-
return {
|
|
23
|
-
ignores,
|
|
24
|
-
rules
|
|
25
|
-
};
|
|
26
|
-
function areArraysEqual(a, b) {
|
|
27
|
-
if (a.length !== b.length) return false;
|
|
28
|
-
for (let i = 0; i < a.length; i++) if (a[i] !== b[i]) return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function collectRuleFromProperty(property) {
|
|
32
|
-
if (property.type !== AST_NODE_TYPES.Property || property.key.type !== AST_NODE_TYPES.Literal || typeof property.key.value !== "string") return;
|
|
33
|
-
const name = property.key.value;
|
|
34
|
-
const { data } = zRuleOptions.safeParse(JSON5.parse(sourceText.slice(...property.value.range)));
|
|
35
|
-
return data && {
|
|
36
|
-
entry: data,
|
|
37
|
-
name
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function collectRulesObjectGroups(sourceText, rulesObject) {
|
|
41
|
-
let previousNode;
|
|
42
|
-
let currentGroup;
|
|
43
|
-
const groups = [];
|
|
44
|
-
for (const property of rulesObject.properties) {
|
|
45
|
-
const comment = sourceText.slice((previousNode?.range[1] ?? rulesObject.range[0]) + 1, property.range[0]).replaceAll(/\/\/ ?|\t\s*/g, "").trim() || void 0;
|
|
46
|
-
if (comment === "Stylistic concerns that don't interfere with Prettier") break;
|
|
47
|
-
const rule = collectRuleFromProperty(property);
|
|
48
|
-
if (!rule) return;
|
|
49
|
-
if (!currentGroup || comment) {
|
|
50
|
-
currentGroup = {
|
|
51
|
-
comment,
|
|
52
|
-
entries: {}
|
|
53
|
-
};
|
|
54
|
-
groups.push(currentGroup);
|
|
55
|
-
}
|
|
56
|
-
currentGroup.entries[rule.name] = rule.entry;
|
|
57
|
-
previousNode = property;
|
|
58
|
-
}
|
|
59
|
-
return groups;
|
|
60
|
-
}
|
|
61
|
-
function getConfigIgnores(node) {
|
|
62
|
-
return node.type === AST_NODE_TYPES.ObjectExpression && node.properties.length === 1 && node.properties[0].type === AST_NODE_TYPES.Property && node.properties[0].key.type === AST_NODE_TYPES.Identifier && node.properties[0].key.name === "ignores" && node.properties[0].value.type === AST_NODE_TYPES.ArrayExpression && node.properties[0].value.elements.every((element) => element?.type === AST_NODE_TYPES.Literal && typeof element.value === "string") && node.properties[0].value.elements.map((element) => element.value);
|
|
63
|
-
}
|
|
64
|
-
function getConfigRulesObject(nodes) {
|
|
65
|
-
const configObject = nodes.find((node) => node.type === AST_NODE_TYPES.ObjectExpression && areArraysEqual(node.properties.map((property) => property.type === AST_NODE_TYPES.Property && property.key.type === AST_NODE_TYPES.Identifier ? property.key.name : void 0), [
|
|
66
|
-
"extends",
|
|
67
|
-
"files",
|
|
68
|
-
"languageOptions",
|
|
69
|
-
"rules",
|
|
70
|
-
"settings"
|
|
71
|
-
]));
|
|
72
|
-
if (!configObject) return;
|
|
73
|
-
const rulesObject = configObject.properties[3];
|
|
74
|
-
return rulesObject.type === AST_NODE_TYPES.Property && rulesObject.value.type === AST_NODE_TYPES.ObjectExpression && rulesObject.value;
|
|
75
|
-
}
|
|
76
|
-
function nodeIsConfigExport(node) {
|
|
77
|
-
return node.type === AST_NODE_TYPES.ExportDefaultDeclaration && node.declaration.type === AST_NODE_TYPES.CallExpression && nodeIsConfigFunction(node.declaration.callee);
|
|
78
|
-
}
|
|
79
|
-
function nodeIsConfigFunction(node) {
|
|
80
|
-
return node.type === AST_NODE_TYPES.MemberExpression && node.object.type === AST_NODE_TYPES.Identifier && node.object.name === "tseslint" && node.property.type === AST_NODE_TYPES.Identifier && node.property.name === "config";
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
|
-
export { blockESLintIntake };
|
|
85
|
-
|
|
86
|
-
//# sourceMappingURL=blockESLintIntake.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintIntake.js","names":["parseAST"],"sources":["../../../src/blocks/eslint/blockESLintIntake.ts"],"sourcesContent":["import {\n\tAST_NODE_TYPES,\n\tparse as parseAST,\n\tTSESTree,\n} from \"@typescript-eslint/typescript-estree\";\nimport JSON5 from \"json5\";\n\nimport { tryCatch } from \"../../utils/tryCatch.js\";\nimport { stylisticComment } from \"../blockESLintMoreStyling.js\";\nimport { type ExtensionRuleGroup, zRuleOptions } from \"./schemas.js\";\n\ntype ConfigExport = TSESTree.ExportDefaultDeclaration & {\n\tdeclaration: TSESTree.CallExpression;\n};\n\nexport function blockESLintIntake(sourceText: string) {\n\tconst ast = tryCatch(() =>\n\t\tparseAST(sourceText, {\n\t\t\tcomment: true,\n\t\t\tloc: true,\n\t\t\trange: true,\n\t\t}),\n\t);\n\tconst configExport = ast?.body.find(nodeIsConfigExport);\n\tif (!configExport) {\n\t\treturn undefined;\n\t}\n\n\tconst configArguments = configExport.declaration.arguments;\n\tif (configArguments.length < 2) {\n\t\treturn undefined;\n\t}\n\n\tconst ignores = getConfigIgnores(configArguments[0]);\n\tif (!ignores) {\n\t\treturn undefined;\n\t}\n\n\tconst rulesObject = getConfigRulesObject(configArguments.slice(1));\n\tif (!rulesObject) {\n\t\treturn undefined;\n\t}\n\n\tconst rules = collectRulesObjectGroups(sourceText, rulesObject);\n\tif (!rules) {\n\t\treturn undefined;\n\t}\n\n\treturn { ignores, rules };\n\n\tfunction areArraysEqual<T>(a: T[], b: T[]) {\n\t\tif (a.length !== b.length) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfor (let i = 0; i < a.length; i++) {\n\t\t\tif (a[i] !== b[i]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tfunction collectRuleFromProperty(property: TSESTree.ObjectLiteralElement) {\n\t\tif (\n\t\t\tproperty.type !== AST_NODE_TYPES.Property ||\n\t\t\tproperty.key.type !== AST_NODE_TYPES.Literal ||\n\t\t\ttypeof property.key.value !== \"string\"\n\t\t) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tconst name = property.key.value;\n\n\t\tconst { data } = zRuleOptions.safeParse(\n\t\t\tJSON5.parse(sourceText.slice(...property.value.range)),\n\t\t);\n\n\t\treturn data && { entry: data, name };\n\t}\n\n\tfunction collectRulesObjectGroups(\n\t\tsourceText: string,\n\t\trulesObject: TSESTree.ObjectExpression,\n\t) {\n\t\tlet previousNode: TSESTree.Node | undefined;\n\t\tlet currentGroup: ExtensionRuleGroup | undefined;\n\t\tconst groups: ExtensionRuleGroup[] = [];\n\n\t\tfor (const property of rulesObject.properties) {\n\t\t\tconst precedingText = sourceText.slice(\n\t\t\t\t(previousNode?.range[1] ?? rulesObject.range[0]) + 1,\n\t\t\t\tproperty.range[0],\n\t\t\t);\n\t\t\tconst comment =\n\t\t\t\tprecedingText.replaceAll(/\\/\\/ ?|\\t\\s*/g, \"\").trim() || undefined;\n\n\t\t\t// blockESLintMoreStyling's comment always gets pushed to the end.\n\t\t\tif (comment === stylisticComment) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tconst rule = collectRuleFromProperty(property);\n\t\t\tif (!rule) {\n\t\t\t\treturn undefined;\n\t\t\t}\n\n\t\t\tif (!currentGroup || comment) {\n\t\t\t\tcurrentGroup = { comment, entries: {} };\n\t\t\t\tgroups.push(currentGroup);\n\t\t\t}\n\n\t\t\tcurrentGroup.entries[rule.name] = rule.entry;\n\t\t\tpreviousNode = property;\n\t\t}\n\n\t\treturn groups;\n\t}\n\n\tfunction getConfigIgnores(node: TSESTree.Node) {\n\t\treturn (\n\t\t\tnode.type === AST_NODE_TYPES.ObjectExpression &&\n\t\t\tnode.properties.length === 1 &&\n\t\t\tnode.properties[0].type === AST_NODE_TYPES.Property &&\n\t\t\tnode.properties[0].key.type === AST_NODE_TYPES.Identifier &&\n\t\t\tnode.properties[0].key.name === \"ignores\" &&\n\t\t\tnode.properties[0].value.type === AST_NODE_TYPES.ArrayExpression &&\n\t\t\tnode.properties[0].value.elements.every(\n\t\t\t\t(element): element is TSESTree.Literal & { value: string } =>\n\t\t\t\t\telement?.type === AST_NODE_TYPES.Literal &&\n\t\t\t\t\ttypeof element.value === \"string\",\n\t\t\t) &&\n\t\t\tnode.properties[0].value.elements.map((element) => element.value)\n\t\t);\n\t}\n\n\tfunction getConfigRulesObject(nodes: TSESTree.Node[]) {\n\t\tconst configObject = nodes.find(\n\t\t\t(node): node is TSESTree.ObjectExpression =>\n\t\t\t\tnode.type === AST_NODE_TYPES.ObjectExpression &&\n\t\t\t\tareArraysEqual(\n\t\t\t\t\tnode.properties.map((property) =>\n\t\t\t\t\t\tproperty.type === AST_NODE_TYPES.Property &&\n\t\t\t\t\t\tproperty.key.type === AST_NODE_TYPES.Identifier\n\t\t\t\t\t\t\t? property.key.name\n\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\t),\n\t\t\t\t\t[\"extends\", \"files\", \"languageOptions\", \"rules\", \"settings\"],\n\t\t\t\t),\n\t\t);\n\t\tif (!configObject) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tconst rulesObject = configObject.properties[3];\n\t\treturn (\n\t\t\trulesObject.type === AST_NODE_TYPES.Property &&\n\t\t\trulesObject.value.type === AST_NODE_TYPES.ObjectExpression &&\n\t\t\trulesObject.value\n\t\t);\n\t}\n\n\tfunction nodeIsConfigExport(node: TSESTree.Node): node is ConfigExport {\n\t\treturn (\n\t\t\tnode.type === AST_NODE_TYPES.ExportDefaultDeclaration &&\n\t\t\tnode.declaration.type === AST_NODE_TYPES.CallExpression &&\n\t\t\tnodeIsConfigFunction(node.declaration.callee)\n\t\t);\n\t}\n\n\tfunction nodeIsConfigFunction(node: TSESTree.Node) {\n\t\treturn (\n\t\t\tnode.type === AST_NODE_TYPES.MemberExpression &&\n\t\t\tnode.object.type === AST_NODE_TYPES.Identifier &&\n\t\t\tnode.object.name === \"tseslint\" &&\n\t\t\tnode.property.type === AST_NODE_TYPES.Identifier &&\n\t\t\tnode.property.name === \"config\"\n\t\t);\n\t}\n}\n"],"mappings":";;;;;;AAeA,SAAgB,kBAAkB,YAAoB;CAQrD,MAAM,eAPM,eACXA,MAAS,YAAY;EACpB,SAAS;EACT,KAAK;EACL,OAAO;CACR,CAAC,CAEqB,CAAC,EAAE,KAAK,KAAK,kBAAkB;CACtD,IAAI,CAAC,cACJ;CAGD,MAAM,kBAAkB,aAAa,YAAY;CACjD,IAAI,gBAAgB,SAAS,GAC5B;CAGD,MAAM,UAAU,iBAAiB,gBAAgB,EAAE;CACnD,IAAI,CAAC,SACJ;CAGD,MAAM,cAAc,qBAAqB,gBAAgB,MAAM,CAAC,CAAC;CACjE,IAAI,CAAC,aACJ;CAGD,MAAM,QAAQ,yBAAyB,YAAY,WAAW;CAC9D,IAAI,CAAC,OACJ;CAGD,OAAO;EAAE;EAAS;CAAM;CAExB,SAAS,eAAkB,GAAQ,GAAQ;EAC1C,IAAI,EAAE,WAAW,EAAE,QAClB,OAAO;EAGR,KAAK,IAAI,IAAI,GAAG,IAAI,EAAE,QAAQ,KAC7B,IAAI,EAAE,OAAO,EAAE,IACd,OAAO;EAIT,OAAO;CACR;CAEA,SAAS,wBAAwB,UAAyC;EACzE,IACC,SAAS,SAAS,eAAe,YACjC,SAAS,IAAI,SAAS,eAAe,WACrC,OAAO,SAAS,IAAI,UAAU,UAE9B;EAGD,MAAM,OAAO,SAAS,IAAI;EAE1B,MAAM,EAAE,SAAS,aAAa,UAC7B,MAAM,MAAM,WAAW,MAAM,GAAG,SAAS,MAAM,KAAK,CAAC,CACtD;EAEA,OAAO,QAAQ;GAAE,OAAO;GAAM;EAAK;CACpC;CAEA,SAAS,yBACR,YACA,aACC;EACD,IAAI;EACJ,IAAI;EACJ,MAAM,SAA+B,CAAC;EAEtC,KAAK,MAAM,YAAY,YAAY,YAAY;GAK9C,MAAM,UAJgB,WAAW,OAC/B,cAAc,MAAM,MAAM,YAAY,MAAM,MAAM,GACnD,SAAS,MAAM,EAGH,CAAC,CAAC,WAAW,iBAAiB,EAAE,CAAC,CAAC,KAAK,KAAK,KAAA;GAGzD,IAAI,YAAA,yDACH;GAGD,MAAM,OAAO,wBAAwB,QAAQ;GAC7C,IAAI,CAAC,MACJ;GAGD,IAAI,CAAC,gBAAgB,SAAS;IAC7B,eAAe;KAAE;KAAS,SAAS,CAAC;IAAE;IACtC,OAAO,KAAK,YAAY;GACzB;GAEA,aAAa,QAAQ,KAAK,QAAQ,KAAK;GACvC,eAAe;EAChB;EAEA,OAAO;CACR;CAEA,SAAS,iBAAiB,MAAqB;EAC9C,OACC,KAAK,SAAS,eAAe,oBAC7B,KAAK,WAAW,WAAW,KAC3B,KAAK,WAAW,EAAE,CAAC,SAAS,eAAe,YAC3C,KAAK,WAAW,EAAE,CAAC,IAAI,SAAS,eAAe,cAC/C,KAAK,WAAW,EAAE,CAAC,IAAI,SAAS,aAChC,KAAK,WAAW,EAAE,CAAC,MAAM,SAAS,eAAe,mBACjD,KAAK,WAAW,EAAE,CAAC,MAAM,SAAS,OAChC,YACA,SAAS,SAAS,eAAe,WACjC,OAAO,QAAQ,UAAU,QAC3B,KACA,KAAK,WAAW,EAAE,CAAC,MAAM,SAAS,KAAK,YAAY,QAAQ,KAAK;CAElE;CAEA,SAAS,qBAAqB,OAAwB;EACrD,MAAM,eAAe,MAAM,MACzB,SACA,KAAK,SAAS,eAAe,oBAC7B,eACC,KAAK,WAAW,KAAK,aACpB,SAAS,SAAS,eAAe,YACjC,SAAS,IAAI,SAAS,eAAe,aAClC,SAAS,IAAI,OACb,KAAA,CACJ,GACA;GAAC;GAAW;GAAS;GAAmB;GAAS;EAAU,CAC5D,CACF;EACA,IAAI,CAAC,cACJ;EAGD,MAAM,cAAc,aAAa,WAAW;EAC5C,OACC,YAAY,SAAS,eAAe,YACpC,YAAY,MAAM,SAAS,eAAe,oBAC1C,YAAY;CAEd;CAEA,SAAS,mBAAmB,MAA2C;EACtE,OACC,KAAK,SAAS,eAAe,4BAC7B,KAAK,YAAY,SAAS,eAAe,kBACzC,qBAAqB,KAAK,YAAY,MAAM;CAE9C;CAEA,SAAS,qBAAqB,MAAqB;EAClD,OACC,KAAK,SAAS,eAAe,oBAC7B,KAAK,OAAO,SAAS,eAAe,cACpC,KAAK,OAAO,SAAS,cACrB,KAAK,SAAS,SAAS,eAAe,cACtC,KAAK,SAAS,SAAS;CAEzB;AACD"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
//#region src/blocks/eslint/blockESLintPluginIntake.d.ts
|
|
2
|
-
declare function blockESLintPluginIntake(sourceText: string): {
|
|
3
|
-
configEmoji: [string, string][];
|
|
4
|
-
} | undefined;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { blockESLintPluginIntake };
|
|
7
|
-
//# sourceMappingURL=blockESLintPluginIntake.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintPluginIntake.d.ts","names":[],"sources":["../../../src/blocks/eslint/blockESLintPluginIntake.ts"],"mappings":";iBAUgB,wBAAwB;EAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { tryCatch } from "../../utils/tryCatch.js";
|
|
2
|
-
import { zConfigEmoji } from "./schemas.js";
|
|
3
|
-
import JSON5 from "json5";
|
|
4
|
-
import { AST_NODE_TYPES, parse } from "@typescript-eslint/typescript-estree";
|
|
5
|
-
//#region src/blocks/eslint/blockESLintPluginIntake.ts
|
|
6
|
-
function blockESLintPluginIntake(sourceText) {
|
|
7
|
-
const ast = tryCatch(() => parse(sourceText, {
|
|
8
|
-
comment: true,
|
|
9
|
-
loc: true,
|
|
10
|
-
range: true
|
|
11
|
-
}));
|
|
12
|
-
if (!ast) return;
|
|
13
|
-
const config = findConfig(ast.body);
|
|
14
|
-
if (!config) return;
|
|
15
|
-
const configEmoji = findConfigEmoji(config.properties);
|
|
16
|
-
if (!configEmoji) return;
|
|
17
|
-
const { data } = zConfigEmoji.safeParse(JSON5.parse(sourceText.slice(...configEmoji.range)));
|
|
18
|
-
return data && { configEmoji: data };
|
|
19
|
-
function findConfig(body) {
|
|
20
|
-
for (const node of body) if (node.type === AST_NODE_TYPES.VariableDeclaration && node.declarations[0].id.type === AST_NODE_TYPES.Identifier && node.declarations[0].id.name === "config" && node.declarations[0].init?.type === AST_NODE_TYPES.ObjectExpression) return node.declarations[0].init;
|
|
21
|
-
}
|
|
22
|
-
function findConfigEmoji(properties) {
|
|
23
|
-
for (const node of properties) if (node.type === AST_NODE_TYPES.Property && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "configEmoji" && node.value.type === AST_NODE_TYPES.ArrayExpression) return node.value;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { blockESLintPluginIntake };
|
|
28
|
-
|
|
29
|
-
//# sourceMappingURL=blockESLintPluginIntake.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintPluginIntake.js","names":["parseAST"],"sources":["../../../src/blocks/eslint/blockESLintPluginIntake.ts"],"sourcesContent":["import {\n\tAST_NODE_TYPES,\n\tparse as parseAST,\n\tTSESTree,\n} from \"@typescript-eslint/typescript-estree\";\nimport JSON5 from \"json5\";\n\nimport { tryCatch } from \"../../utils/tryCatch.js\";\nimport { zConfigEmoji } from \"./schemas.js\";\n\nexport function blockESLintPluginIntake(sourceText: string) {\n\tconst ast = tryCatch(() =>\n\t\tparseAST(sourceText, {\n\t\t\tcomment: true,\n\t\t\tloc: true,\n\t\t\trange: true,\n\t\t}),\n\t);\n\tif (!ast) {\n\t\treturn undefined;\n\t}\n\n\tconst config = findConfig(ast.body);\n\tif (!config) {\n\t\treturn undefined;\n\t}\n\n\tconst configEmoji = findConfigEmoji(config.properties);\n\tif (!configEmoji) {\n\t\treturn undefined;\n\t}\n\n\tconst { data } = zConfigEmoji.safeParse(\n\t\tJSON5.parse(sourceText.slice(...configEmoji.range)),\n\t);\n\n\treturn data && { configEmoji: data };\n\n\tfunction findConfig(body: TSESTree.ProgramStatement[]) {\n\t\tfor (const node of body) {\n\t\t\tif (\n\t\t\t\tnode.type === AST_NODE_TYPES.VariableDeclaration &&\n\t\t\t\tnode.declarations[0].id.type === AST_NODE_TYPES.Identifier &&\n\t\t\t\tnode.declarations[0].id.name === \"config\" &&\n\t\t\t\tnode.declarations[0].init?.type === AST_NODE_TYPES.ObjectExpression\n\t\t\t) {\n\t\t\t\treturn node.declarations[0].init;\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction findConfigEmoji(properties: TSESTree.ObjectLiteralElement[]) {\n\t\tfor (const node of properties) {\n\t\t\tif (\n\t\t\t\tnode.type === AST_NODE_TYPES.Property &&\n\t\t\t\tnode.key.type === AST_NODE_TYPES.Identifier &&\n\t\t\t\tnode.key.name === \"configEmoji\" &&\n\t\t\t\tnode.value.type === AST_NODE_TYPES.ArrayExpression\n\t\t\t) {\n\t\t\t\treturn node.value;\n\t\t\t}\n\t\t}\n\t}\n}\n"],"mappings":";;;;;AAUA,SAAgB,wBAAwB,YAAoB;CAC3D,MAAM,MAAM,eACXA,MAAS,YAAY;EACpB,SAAS;EACT,KAAK;EACL,OAAO;CACR,CAAC,CACF;CACA,IAAI,CAAC,KACJ;CAGD,MAAM,SAAS,WAAW,IAAI,IAAI;CAClC,IAAI,CAAC,QACJ;CAGD,MAAM,cAAc,gBAAgB,OAAO,UAAU;CACrD,IAAI,CAAC,aACJ;CAGD,MAAM,EAAE,SAAS,aAAa,UAC7B,MAAM,MAAM,WAAW,MAAM,GAAG,YAAY,KAAK,CAAC,CACnD;CAEA,OAAO,QAAQ,EAAE,aAAa,KAAK;CAEnC,SAAS,WAAW,MAAmC;EACtD,KAAK,MAAM,QAAQ,MAClB,IACC,KAAK,SAAS,eAAe,uBAC7B,KAAK,aAAa,EAAE,CAAC,GAAG,SAAS,eAAe,cAChD,KAAK,aAAa,EAAE,CAAC,GAAG,SAAS,YACjC,KAAK,aAAa,EAAE,CAAC,MAAM,SAAS,eAAe,kBAEnD,OAAO,KAAK,aAAa,EAAE,CAAC;CAG/B;CAEA,SAAS,gBAAgB,YAA6C;EACrE,KAAK,MAAM,QAAQ,YAClB,IACC,KAAK,SAAS,eAAe,YAC7B,KAAK,IAAI,SAAS,eAAe,cACjC,KAAK,IAAI,SAAS,iBAClB,KAAK,MAAM,SAAS,eAAe,iBAEnC,OAAO,KAAK;CAGf;AACD"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
//#region src/blocks/eslint/getScriptFileExtension.d.ts
|
|
2
|
-
interface ScriptFileExtensionOptions {
|
|
3
|
-
type?: "commonjs" | "module";
|
|
4
|
-
}
|
|
5
|
-
declare function getScriptFileExtension(options: ScriptFileExtensionOptions): "**/*.{js,mjs,ts}" | "**/*.{js,ts}";
|
|
6
|
-
//#endregion
|
|
7
|
-
export { ScriptFileExtensionOptions, getScriptFileExtension };
|
|
8
|
-
//# sourceMappingURL=getScriptFileExtension.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getScriptFileExtension.d.ts","names":[],"sources":["../../../src/blocks/eslint/getScriptFileExtension.ts"],"mappings":";UAAiB;EAChB;;iBAGe,uBAAuB,SAAS"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
//#region src/blocks/eslint/getScriptFileExtension.ts
|
|
2
|
-
function getScriptFileExtension(options) {
|
|
3
|
-
return options.type === "commonjs" ? "**/*.{js,mjs,ts}" : "**/*.{js,ts}";
|
|
4
|
-
}
|
|
5
|
-
//#endregion
|
|
6
|
-
export { getScriptFileExtension };
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=getScriptFileExtension.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getScriptFileExtension.js","names":[],"sources":["../../../src/blocks/eslint/getScriptFileExtension.ts"],"sourcesContent":["export interface ScriptFileExtensionOptions {\n\ttype?: \"commonjs\" | \"module\";\n}\n\nexport function getScriptFileExtension(options: ScriptFileExtensionOptions) {\n\treturn options.type === \"commonjs\" ? \"**/*.{js,mjs,ts}\" : \"**/*.{js,ts}\";\n}\n"],"mappings":";AAIA,SAAgB,uBAAuB,SAAqC;CAC3E,OAAO,QAAQ,SAAS,aAAa,qBAAqB;AAC3D"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Extension } from "./schemas.js";
|
|
2
|
-
//#region src/blocks/eslint/mergeAllExtensions.d.ts
|
|
3
|
-
declare function mergeAllExtensions(...extensions: Extension[]): {
|
|
4
|
-
files: string[];
|
|
5
|
-
plugins?: Record<string, string> | undefined;
|
|
6
|
-
settings?: Record<string, unknown> | undefined;
|
|
7
|
-
rules?: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
|
|
8
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
9
|
-
comment?: string | undefined;
|
|
10
|
-
}[] | undefined;
|
|
11
|
-
extends?: string[] | undefined;
|
|
12
|
-
languageOptions?: unknown;
|
|
13
|
-
linterOptions?: unknown;
|
|
14
|
-
}[];
|
|
15
|
-
//#endregion
|
|
16
|
-
export { mergeAllExtensions };
|
|
17
|
-
//# sourceMappingURL=mergeAllExtensions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mergeAllExtensions.d.ts","names":[],"sources":["../../../src/blocks/eslint/mergeAllExtensions.ts"],"mappings":";;iBAEgB,sBAAsB,YAAY"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
//#region src/blocks/eslint/mergeAllExtensions.ts
|
|
2
|
-
function mergeAllExtensions(...extensions) {
|
|
3
|
-
const entries = {};
|
|
4
|
-
for (const extension of extensions) {
|
|
5
|
-
const filesKey = JSON.stringify(extension.files);
|
|
6
|
-
entries[filesKey] = filesKey in entries ? mergeExtensions(entries[filesKey], extension, extension.files) : extension;
|
|
7
|
-
}
|
|
8
|
-
return Object.values(entries);
|
|
9
|
-
}
|
|
10
|
-
function mergeExtensions(a, b, files) {
|
|
11
|
-
return {
|
|
12
|
-
extends: Array.from(/* @__PURE__ */ new Set([...a.extends ?? [], ...b.extends ?? []])).sort(),
|
|
13
|
-
files,
|
|
14
|
-
languageOptions: (a.languageOptions ?? b.languageOptions) && {
|
|
15
|
-
...a.languageOptions ?? {},
|
|
16
|
-
...b.languageOptions ?? {}
|
|
17
|
-
},
|
|
18
|
-
linterOptions: (a.linterOptions ?? b.linterOptions) && {
|
|
19
|
-
...a.linterOptions ?? {},
|
|
20
|
-
...b.linterOptions ?? {}
|
|
21
|
-
},
|
|
22
|
-
plugins: (a.plugins ?? b.plugins) && {
|
|
23
|
-
...a.plugins,
|
|
24
|
-
...b.plugins
|
|
25
|
-
},
|
|
26
|
-
rules: mergeExtensionsRules(a.rules, b.rules),
|
|
27
|
-
settings: (a.settings ?? b.settings) && {
|
|
28
|
-
...a.settings,
|
|
29
|
-
...b.settings
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function mergeExtensionsRules(a, b) {
|
|
34
|
-
if (!a || !b) return a ?? b;
|
|
35
|
-
if (Array.isArray(a)) {
|
|
36
|
-
if (Array.isArray(b)) return [...a, ...b];
|
|
37
|
-
return [...a, { entries: b }];
|
|
38
|
-
}
|
|
39
|
-
if (Array.isArray(b)) return [...b, { entries: a }];
|
|
40
|
-
return {
|
|
41
|
-
...a,
|
|
42
|
-
...b
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
export { mergeAllExtensions };
|
|
47
|
-
|
|
48
|
-
//# sourceMappingURL=mergeAllExtensions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mergeAllExtensions.js","names":[],"sources":["../../../src/blocks/eslint/mergeAllExtensions.ts"],"sourcesContent":["import { Extension, ExtensionRules } from \"./schemas.js\";\n\nexport function mergeAllExtensions(...extensions: Extension[]) {\n\tconst entries: Record<string, Extension> = {};\n\n\tfor (const extension of extensions) {\n\t\tconst filesKey = JSON.stringify(extension.files);\n\n\t\tentries[filesKey] =\n\t\t\tfilesKey in entries\n\t\t\t\t? mergeExtensions(entries[filesKey], extension, extension.files)\n\t\t\t\t: extension;\n\t}\n\n\treturn Object.values(entries);\n}\n\nfunction mergeExtensions(\n\ta: Extension,\n\tb: Extension,\n\tfiles: string[],\n): Extension {\n\treturn {\n\t\textends: Array.from(\n\t\t\tnew Set([...(a.extends ?? []), ...(b.extends ?? [])]),\n\t\t).sort(),\n\t\tfiles,\n\t\tlanguageOptions: (a.languageOptions ?? b.languageOptions) && {\n\t\t\t...(a.languageOptions ?? {}),\n\t\t\t...(b.languageOptions ?? {}),\n\t\t},\n\t\tlinterOptions: (a.linterOptions ?? b.linterOptions) && {\n\t\t\t...(a.linterOptions ?? {}),\n\t\t\t...(b.linterOptions ?? {}),\n\t\t},\n\t\tplugins: (a.plugins ?? b.plugins) && { ...a.plugins, ...b.plugins },\n\t\trules: mergeExtensionsRules(a.rules, b.rules),\n\t\tsettings: (a.settings ?? b.settings) && { ...a.settings, ...b.settings },\n\t};\n}\n\nfunction mergeExtensionsRules(\n\ta: ExtensionRules | undefined,\n\tb: ExtensionRules | undefined,\n): ExtensionRules | undefined {\n\tif (!a || !b) {\n\t\treturn a ?? b;\n\t}\n\n\tif (Array.isArray(a)) {\n\t\tif (Array.isArray(b)) {\n\t\t\treturn [...a, ...b];\n\t\t}\n\n\t\treturn [...a, { entries: b }];\n\t}\n\n\tif (Array.isArray(b)) {\n\t\treturn [...b, { entries: a }];\n\t}\n\n\treturn { ...a, ...b };\n}\n"],"mappings":";AAEA,SAAgB,mBAAmB,GAAG,YAAyB;CAC9D,MAAM,UAAqC,CAAC;CAE5C,KAAK,MAAM,aAAa,YAAY;EACnC,MAAM,WAAW,KAAK,UAAU,UAAU,KAAK;EAE/C,QAAQ,YACP,YAAY,UACT,gBAAgB,QAAQ,WAAW,WAAW,UAAU,KAAK,IAC7D;CACL;CAEA,OAAO,OAAO,OAAO,OAAO;AAC7B;AAEA,SAAS,gBACR,GACA,GACA,OACY;CACZ,OAAO;EACN,SAAS,MAAM,qBACd,IAAI,IAAI,CAAC,GAAI,EAAE,WAAW,CAAC,GAAI,GAAI,EAAE,WAAW,CAAC,CAAE,CAAC,CACrD,CAAC,CAAC,KAAK;EACP;EACA,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB;GAC5D,GAAI,EAAE,mBAAmB,CAAC;GAC1B,GAAI,EAAE,mBAAmB,CAAC;EAC3B;EACA,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB;GACtD,GAAI,EAAE,iBAAiB,CAAC;GACxB,GAAI,EAAE,iBAAiB,CAAC;EACzB;EACA,UAAU,EAAE,WAAW,EAAE,YAAY;GAAE,GAAG,EAAE;GAAS,GAAG,EAAE;EAAQ;EAClE,OAAO,qBAAqB,EAAE,OAAO,EAAE,KAAK;EAC5C,WAAW,EAAE,YAAY,EAAE,aAAa;GAAE,GAAG,EAAE;GAAU,GAAG,EAAE;EAAS;CACxE;AACD;AAEA,SAAS,qBACR,GACA,GAC6B;CAC7B,IAAI,CAAC,KAAK,CAAC,GACV,OAAO,KAAK;CAGb,IAAI,MAAM,QAAQ,CAAC,GAAG;EACrB,IAAI,MAAM,QAAQ,CAAC,GAClB,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC;EAGnB,OAAO,CAAC,GAAG,GAAG,EAAE,SAAS,EAAE,CAAC;CAC7B;CAEA,IAAI,MAAM,QAAQ,CAAC,GAClB,OAAO,CAAC,GAAG,GAAG,EAAE,SAAS,EAAE,CAAC;CAG7B,OAAO;EAAE,GAAG;EAAG,GAAG;CAAE;AACrB"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
//#region src/blocks/eslint/schemas.d.ts
|
|
3
|
-
declare const zConfigEmoji: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">>;
|
|
4
|
-
declare const zRuleOptions: z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>;
|
|
5
|
-
type RuleOptions = z.infer<typeof zRuleOptions>;
|
|
6
|
-
declare const zExtensionRuleGroup: z.ZodObject<{
|
|
7
|
-
comment: z.ZodOptional<z.ZodString>;
|
|
8
|
-
entries: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
11
|
-
comment?: string | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
14
|
-
comment?: string | undefined;
|
|
15
|
-
}>;
|
|
16
|
-
type ExtensionRuleGroup = z.infer<typeof zExtensionRuleGroup>;
|
|
17
|
-
declare const zRulesArray: z.ZodArray<z.ZodObject<{
|
|
18
|
-
comment: z.ZodOptional<z.ZodString>;
|
|
19
|
-
entries: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>;
|
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
22
|
-
comment?: string | undefined;
|
|
23
|
-
}, {
|
|
24
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
25
|
-
comment?: string | undefined;
|
|
26
|
-
}>, "many">;
|
|
27
|
-
type RulesArray = z.infer<typeof zRulesArray>;
|
|
28
|
-
declare const zRulesRecord: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>;
|
|
29
|
-
type RulesRecord = z.infer<typeof zRulesRecord>;
|
|
30
|
-
declare const zExtensionRules: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
31
|
-
comment: z.ZodOptional<z.ZodString>;
|
|
32
|
-
entries: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>;
|
|
33
|
-
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
35
|
-
comment?: string | undefined;
|
|
36
|
-
}, {
|
|
37
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
38
|
-
comment?: string | undefined;
|
|
39
|
-
}>, "many">, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>]>;
|
|
40
|
-
type ExtensionRules = z.infer<typeof zExtensionRules>;
|
|
41
|
-
declare const zExtension: z.ZodObject<{
|
|
42
|
-
extends: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
43
|
-
files: z.ZodArray<z.ZodString, "many">;
|
|
44
|
-
languageOptions: z.ZodOptional<z.ZodUnknown>;
|
|
45
|
-
linterOptions: z.ZodOptional<z.ZodUnknown>;
|
|
46
|
-
plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
47
|
-
rules: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
48
|
-
comment: z.ZodOptional<z.ZodString>;
|
|
49
|
-
entries: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>;
|
|
50
|
-
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
52
|
-
comment?: string | undefined;
|
|
53
|
-
}, {
|
|
54
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
55
|
-
comment?: string | undefined;
|
|
56
|
-
}>, "many">, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>]>>;
|
|
57
|
-
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
files: string[];
|
|
60
|
-
plugins?: Record<string, string> | undefined;
|
|
61
|
-
settings?: Record<string, unknown> | undefined;
|
|
62
|
-
rules?: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
|
|
63
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
64
|
-
comment?: string | undefined;
|
|
65
|
-
}[] | undefined;
|
|
66
|
-
extends?: string[] | undefined;
|
|
67
|
-
languageOptions?: unknown;
|
|
68
|
-
linterOptions?: unknown;
|
|
69
|
-
}, {
|
|
70
|
-
files: string[];
|
|
71
|
-
plugins?: Record<string, string> | undefined;
|
|
72
|
-
settings?: Record<string, unknown> | undefined;
|
|
73
|
-
rules?: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
|
|
74
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
75
|
-
comment?: string | undefined;
|
|
76
|
-
}[] | undefined;
|
|
77
|
-
extends?: string[] | undefined;
|
|
78
|
-
languageOptions?: unknown;
|
|
79
|
-
linterOptions?: unknown;
|
|
80
|
-
}>;
|
|
81
|
-
type Extension = z.infer<typeof zExtension>;
|
|
82
|
-
declare const zPackageImport: z.ZodObject<{
|
|
83
|
-
source: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
84
|
-
packageName: z.ZodString;
|
|
85
|
-
version: z.ZodString;
|
|
86
|
-
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
version: string;
|
|
88
|
-
packageName: string;
|
|
89
|
-
}, {
|
|
90
|
-
version: string;
|
|
91
|
-
packageName: string;
|
|
92
|
-
}>]>;
|
|
93
|
-
specifier: z.ZodString;
|
|
94
|
-
types: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
-
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
source: string | {
|
|
97
|
-
version: string;
|
|
98
|
-
packageName: string;
|
|
99
|
-
};
|
|
100
|
-
specifier: string;
|
|
101
|
-
types?: boolean | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
source: string | {
|
|
104
|
-
version: string;
|
|
105
|
-
packageName: string;
|
|
106
|
-
};
|
|
107
|
-
specifier: string;
|
|
108
|
-
types?: boolean | undefined;
|
|
109
|
-
}>;
|
|
110
|
-
//#endregion
|
|
111
|
-
export { Extension, ExtensionRuleGroup, ExtensionRules, RuleOptions, RulesArray, RulesRecord, zConfigEmoji, zExtension, zExtensionRuleGroup, zExtensionRules, zPackageImport, zRuleOptions, zRulesArray, zRulesRecord };
|
|
112
|
-
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","names":[],"sources":["../../../src/blocks/eslint/schemas.ts"],"mappings":";;cAEa,cAAY,EAAA,YAAA,EAAA,SAAA,EAAA,UAAA,EAAA,WAAA,EAAA;cAIZ,cAAY,EAAA,UAAA,EAAA,qBAAA,EAAA,mBAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,sBAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,sBAAA,EAAA,YAAA,EAAA;KAYb,cAAc,EAAE,aAAa;cAE5B,qBAAmB,EAAA;;;;;;;;;;KAKpB,qBAAqB,EAAE,aAAa;cAEnC,aAAW,EAAA,SAAA,EAAA;;;;;;;;;;KAEZ,aAAa,EAAE,aAAa;cAE3B,cAAY,EAAA,UAAA,EAAA,WAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,mBAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,sBAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,sBAAA,EAAA,YAAA,EAAA;KAEb,cAAc,EAAE,aAAa;cAE5B,iBAAe,EAAA,UAAA,EAAA,SAAA,EAAA;;;;;;;;;aAAuC,EAAA,UAAA,EAAA,WAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,mBAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,sBAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,sBAAA,EAAA,YAAA,EAAA;KAEvD,iBAAiB,EAAE,aAAa;cAE/B,YAAU,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAUX,YAAY,EAAE,aAAa;cAE1B,gBAAc,EAAA"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
//#region src/blocks/eslint/schemas.ts
|
|
3
|
-
const zConfigEmoji = z.array(z.tuple([z.string(), z.string()])).optional();
|
|
4
|
-
const zRuleOptions = z.union([
|
|
5
|
-
z.literal("error"),
|
|
6
|
-
z.literal("off"),
|
|
7
|
-
z.literal("warn"),
|
|
8
|
-
z.tuple([z.union([z.literal("error"), z.literal("warn")]), z.unknown()]),
|
|
9
|
-
z.tuple([
|
|
10
|
-
z.union([z.literal("error"), z.literal("warn")]),
|
|
11
|
-
z.unknown(),
|
|
12
|
-
z.unknown()
|
|
13
|
-
])
|
|
14
|
-
]);
|
|
15
|
-
const zExtensionRuleGroup = z.object({
|
|
16
|
-
comment: z.string().optional(),
|
|
17
|
-
entries: z.record(z.string(), zRuleOptions)
|
|
18
|
-
});
|
|
19
|
-
const zRulesArray = z.array(zExtensionRuleGroup);
|
|
20
|
-
const zRulesRecord = z.record(z.string(), zRuleOptions);
|
|
21
|
-
const zExtensionRules = z.union([zRulesArray, zRulesRecord]);
|
|
22
|
-
const zExtension = z.object({
|
|
23
|
-
extends: z.array(z.string()).optional(),
|
|
24
|
-
files: z.array(z.string()),
|
|
25
|
-
languageOptions: z.unknown().optional(),
|
|
26
|
-
linterOptions: z.unknown().optional(),
|
|
27
|
-
plugins: z.record(z.string(), z.string()).optional(),
|
|
28
|
-
rules: zExtensionRules.optional(),
|
|
29
|
-
settings: z.record(z.string(), z.unknown()).optional()
|
|
30
|
-
});
|
|
31
|
-
const zPackageImport = z.object({
|
|
32
|
-
source: z.union([z.string(), z.object({
|
|
33
|
-
packageName: z.string(),
|
|
34
|
-
version: z.string()
|
|
35
|
-
})]),
|
|
36
|
-
specifier: z.string(),
|
|
37
|
-
types: z.boolean().optional()
|
|
38
|
-
});
|
|
39
|
-
//#endregion
|
|
40
|
-
export { zConfigEmoji, zExtension, zExtensionRuleGroup, zExtensionRules, zPackageImport, zRuleOptions, zRulesArray, zRulesRecord };
|
|
41
|
-
|
|
42
|
-
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","names":[],"sources":["../../../src/blocks/eslint/schemas.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const zConfigEmoji = z\n\t.array(z.tuple([z.string(), z.string()]))\n\t.optional();\n\nexport const zRuleOptions = z.union([\n\tz.literal(\"error\"),\n\tz.literal(\"off\"),\n\tz.literal(\"warn\"),\n\tz.tuple([z.union([z.literal(\"error\"), z.literal(\"warn\")]), z.unknown()]),\n\tz.tuple([\n\t\tz.union([z.literal(\"error\"), z.literal(\"warn\")]),\n\t\tz.unknown(),\n\t\tz.unknown(),\n\t]),\n]);\n\nexport type RuleOptions = z.infer<typeof zRuleOptions>;\n\nexport const zExtensionRuleGroup = z.object({\n\tcomment: z.string().optional(),\n\tentries: z.record(z.string(), zRuleOptions),\n});\n\nexport type ExtensionRuleGroup = z.infer<typeof zExtensionRuleGroup>;\n\nexport const zRulesArray = z.array(zExtensionRuleGroup);\n\nexport type RulesArray = z.infer<typeof zRulesArray>;\n\nexport const zRulesRecord = z.record(z.string(), zRuleOptions);\n\nexport type RulesRecord = z.infer<typeof zRulesRecord>;\n\nexport const zExtensionRules = z.union([zRulesArray, zRulesRecord]);\n\nexport type ExtensionRules = z.infer<typeof zExtensionRules>;\n\nexport const zExtension = z.object({\n\textends: z.array(z.string()).optional(),\n\tfiles: z.array(z.string()),\n\tlanguageOptions: z.unknown().optional(),\n\tlinterOptions: z.unknown().optional(),\n\tplugins: z.record(z.string(), z.string()).optional(),\n\trules: zExtensionRules.optional(),\n\tsettings: z.record(z.string(), z.unknown()).optional(),\n});\n\nexport type Extension = z.infer<typeof zExtension>;\n\nexport const zPackageImport = z.object({\n\tsource: z.union([\n\t\tz.string(),\n\t\tz.object({ packageName: z.string(), version: z.string() }),\n\t]),\n\tspecifier: z.string(),\n\ttypes: z.boolean().optional(),\n});\n"],"mappings":";;AAEA,MAAa,eAAe,EAC1B,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CACxC,SAAS;AAEX,MAAa,eAAe,EAAE,MAAM;CACnC,EAAE,QAAQ,OAAO;CACjB,EAAE,QAAQ,KAAK;CACf,EAAE,QAAQ,MAAM;CAChB,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,EAAE,QAAQ,OAAO,GAAG,EAAE,QAAQ,MAAM,CAAC,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;CACvE,EAAE,MAAM;EACP,EAAE,MAAM,CAAC,EAAE,QAAQ,OAAO,GAAG,EAAE,QAAQ,MAAM,CAAC,CAAC;EAC/C,EAAE,QAAQ;EACV,EAAE,QAAQ;CACX,CAAC;AACF,CAAC;AAID,MAAa,sBAAsB,EAAE,OAAO;CAC3C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS;CAC7B,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,YAAY;AAC3C,CAAC;AAID,MAAa,cAAc,EAAE,MAAM,mBAAmB;AAItD,MAAa,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,YAAY;AAI7D,MAAa,kBAAkB,EAAE,MAAM,CAAC,aAAa,YAAY,CAAC;AAIlE,MAAa,aAAa,EAAE,OAAO;CAClC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;CACtC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC;CACzB,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS;CACtC,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS;CACpC,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;CACnD,OAAO,gBAAgB,SAAS;CAChC,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS;AACtD,CAAC;AAID,MAAa,iBAAiB,EAAE,OAAO;CACtC,QAAQ,EAAE,MAAM,CACf,EAAE,OAAO,GACT,EAAE,OAAO;EAAE,aAAa,EAAE,OAAO;EAAG,SAAS,EAAE,OAAO;CAAE,CAAC,CAC1D,CAAC;CACD,WAAW,EAAE,OAAO;CACpB,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS;AAC7B,CAAC"}
|