create-typescript-app 2.64.0 → 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 -34
- 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,86 +0,0 @@
|
|
|
1
|
-
//#region src/blocks/blockDevelopmentDocs.d.ts
|
|
2
|
-
declare const blockDevelopmentDocs: import("bingo-stratum").BlockWithAddons<{
|
|
3
|
-
hints: string[];
|
|
4
|
-
sections: Record<string, {
|
|
5
|
-
contents?: string | {
|
|
6
|
-
before?: string | undefined;
|
|
7
|
-
after?: string[] | undefined;
|
|
8
|
-
items?: string[] | undefined;
|
|
9
|
-
plural?: string | undefined;
|
|
10
|
-
} | undefined;
|
|
11
|
-
innerSections?: {
|
|
12
|
-
contents: string;
|
|
13
|
-
heading: string;
|
|
14
|
-
}[] | undefined;
|
|
15
|
-
}>;
|
|
16
|
-
}, {
|
|
17
|
-
access: "public" | "restricted";
|
|
18
|
-
description: string;
|
|
19
|
-
directory: string;
|
|
20
|
-
documentation: {
|
|
21
|
-
readme: {
|
|
22
|
-
additional?: string | undefined;
|
|
23
|
-
explainer?: string | undefined;
|
|
24
|
-
footnotes?: string | undefined;
|
|
25
|
-
usage?: string | undefined;
|
|
26
|
-
};
|
|
27
|
-
development?: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
email: {
|
|
30
|
-
github: string;
|
|
31
|
-
npm: string;
|
|
32
|
-
};
|
|
33
|
-
title: string;
|
|
34
|
-
node: {
|
|
35
|
-
minimum: string;
|
|
36
|
-
pinned?: string | undefined;
|
|
37
|
-
};
|
|
38
|
-
owner: string;
|
|
39
|
-
repository: string;
|
|
40
|
-
type?: "commonjs" | "module" | undefined;
|
|
41
|
-
author?: string | undefined;
|
|
42
|
-
bin?: string | Record<string, string> | undefined;
|
|
43
|
-
contributors?: {
|
|
44
|
-
avatar_url: string;
|
|
45
|
-
contributions: string[];
|
|
46
|
-
login: string;
|
|
47
|
-
name: string;
|
|
48
|
-
profile: string;
|
|
49
|
-
}[] | undefined;
|
|
50
|
-
emoji?: string | undefined;
|
|
51
|
-
existingLabels?: {
|
|
52
|
-
name: string;
|
|
53
|
-
description: string;
|
|
54
|
-
color: string;
|
|
55
|
-
}[] | undefined;
|
|
56
|
-
funding?: string | undefined;
|
|
57
|
-
guide?: {
|
|
58
|
-
href: string;
|
|
59
|
-
title: string;
|
|
60
|
-
} | undefined;
|
|
61
|
-
keywords?: string[] | undefined;
|
|
62
|
-
logo?: {
|
|
63
|
-
alt: string;
|
|
64
|
-
src: string;
|
|
65
|
-
height?: number | undefined;
|
|
66
|
-
width?: number | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
packageData?: {
|
|
69
|
-
dependencies?: Record<string, string> | undefined;
|
|
70
|
-
devDependencies?: Record<string, string> | undefined;
|
|
71
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
72
|
-
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
73
|
-
scripts?: Record<string, string | undefined> | undefined;
|
|
74
|
-
} | undefined;
|
|
75
|
-
pnpm?: string | undefined;
|
|
76
|
-
rulesetId?: string | undefined;
|
|
77
|
-
version?: string | undefined;
|
|
78
|
-
words?: string[] | undefined;
|
|
79
|
-
workflowsVersions?: Record<string, Record<string, {
|
|
80
|
-
pinned?: boolean | undefined;
|
|
81
|
-
hash?: string | undefined;
|
|
82
|
-
}>> | undefined;
|
|
83
|
-
}>;
|
|
84
|
-
//#endregion
|
|
85
|
-
export { blockDevelopmentDocs };
|
|
86
|
-
//# sourceMappingURL=blockDevelopmentDocs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockDevelopmentDocs.d.ts","names":[],"sources":["../../src/blocks/blockDevelopmentDocs.ts"],"mappings":";cA0Da,8CAAoB"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { base } from "../base.js";
|
|
2
|
-
import { blockRemoveFiles } from "./blockRemoveFiles.js";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
//#region src/blocks/blockDevelopmentDocs.ts
|
|
5
|
-
const zInnerSection = z.object({
|
|
6
|
-
contents: z.string(),
|
|
7
|
-
heading: z.string()
|
|
8
|
-
});
|
|
9
|
-
function printInnerSection(innerSection) {
|
|
10
|
-
return [
|
|
11
|
-
`### ${innerSection.heading}`,
|
|
12
|
-
``,
|
|
13
|
-
innerSection.contents
|
|
14
|
-
];
|
|
15
|
-
}
|
|
16
|
-
const zSection = z.object({
|
|
17
|
-
contents: z.union([z.string(), z.object({
|
|
18
|
-
after: z.array(z.string()).optional(),
|
|
19
|
-
before: z.string().optional(),
|
|
20
|
-
items: z.array(z.string()).optional(),
|
|
21
|
-
plural: z.string().optional()
|
|
22
|
-
})]).optional(),
|
|
23
|
-
innerSections: z.array(zInnerSection).optional()
|
|
24
|
-
});
|
|
25
|
-
function printSection(heading, section) {
|
|
26
|
-
const innerSections = section.innerSections?.flatMap(printInnerSection) ?? [];
|
|
27
|
-
if (section.contents === void 0) return innerSections;
|
|
28
|
-
const contents = typeof section.contents === "string" ? { before: section.contents } : section.contents;
|
|
29
|
-
return [
|
|
30
|
-
`## ${heading}`,
|
|
31
|
-
``,
|
|
32
|
-
...contents.before ? [contents.before] : [],
|
|
33
|
-
...contents.items?.sort((a, b) => a.replaceAll("`", "").localeCompare(b.replaceAll("`", ""))) ?? [],
|
|
34
|
-
...contents.items?.length && contents.plural ? [``, contents.plural] : [],
|
|
35
|
-
...contents.after ?? [],
|
|
36
|
-
...innerSections
|
|
37
|
-
];
|
|
38
|
-
}
|
|
39
|
-
const blockDevelopmentDocs = base.createBlock({
|
|
40
|
-
about: { name: "Development Docs" },
|
|
41
|
-
addons: {
|
|
42
|
-
hints: z.array(z.string()).default([]),
|
|
43
|
-
sections: z.record(z.string(), zSection).default({})
|
|
44
|
-
},
|
|
45
|
-
produce({ addons, options }) {
|
|
46
|
-
return { files: { ".github": { "DEVELOPMENT.md": [
|
|
47
|
-
`# Development`,
|
|
48
|
-
``,
|
|
49
|
-
...options.guide ? [
|
|
50
|
-
`> If you'd like a more guided walkthrough, see [${options.guide.title}](${options.guide.href}).`,
|
|
51
|
-
`> It'll walk you through the common activities you'll need to contribute.`,
|
|
52
|
-
``
|
|
53
|
-
] : [],
|
|
54
|
-
`After [forking the repo from GitHub](https://help.github.com/articles/fork-a-repo) and [installing pnpm](https://pnpm.io/installation):`,
|
|
55
|
-
``,
|
|
56
|
-
`\`\`\`shell`,
|
|
57
|
-
`git clone https://github.com/(your-name-here)/${options.repository}`,
|
|
58
|
-
`cd ${options.repository}`,
|
|
59
|
-
`pnpm install`,
|
|
60
|
-
`\`\`\``,
|
|
61
|
-
``,
|
|
62
|
-
...addons.hints.length ? [...addons.hints, ``] : [],
|
|
63
|
-
...Object.entries(addons.sections).sort(([a], [b]) => a.localeCompare(b)).flatMap(([heading, section]) => printSection(heading, section)),
|
|
64
|
-
...options.documentation.development ? [options.documentation.development] : []
|
|
65
|
-
].join("\n") } } };
|
|
66
|
-
},
|
|
67
|
-
transition() {
|
|
68
|
-
return { addons: [blockRemoveFiles({ files: ["DEVELOPMENT.md"] })] };
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
//#endregion
|
|
72
|
-
export { blockDevelopmentDocs };
|
|
73
|
-
|
|
74
|
-
//# sourceMappingURL=blockDevelopmentDocs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockDevelopmentDocs.js","names":[],"sources":["../../src/blocks/blockDevelopmentDocs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\n\nconst zInnerSection = z.object({\n\tcontents: z.string(),\n\theading: z.string(),\n});\n\ntype InnerSection = z.infer<typeof zInnerSection>;\n\nfunction printInnerSection(innerSection: InnerSection) {\n\treturn [`### ${innerSection.heading}`, ``, innerSection.contents];\n}\n\nconst zSection = z.object({\n\tcontents: z\n\t\t.union([\n\t\t\tz.string(),\n\t\t\tz.object({\n\t\t\t\tafter: z.array(z.string()).optional(),\n\t\t\t\tbefore: z.string().optional(),\n\t\t\t\titems: z.array(z.string()).optional(),\n\t\t\t\tplural: z.string().optional(),\n\t\t\t}),\n\t\t])\n\t\t.optional(),\n\tinnerSections: z.array(zInnerSection).optional(),\n});\n\ntype Section = z.infer<typeof zSection>;\n\nfunction printSection(heading: string, section: Section) {\n\tconst innerSections = section.innerSections?.flatMap(printInnerSection) ?? [];\n\n\tif (section.contents === undefined) {\n\t\treturn innerSections;\n\t}\n\n\tconst contents =\n\t\ttypeof section.contents === \"string\"\n\t\t\t? { before: section.contents }\n\t\t\t: section.contents;\n\n\treturn [\n\t\t`## ${heading}`,\n\t\t``,\n\t\t...(contents.before ? [contents.before] : []),\n\t\t...(contents.items?.sort((a, b) =>\n\t\t\ta.replaceAll(\"`\", \"\").localeCompare(b.replaceAll(\"`\", \"\")),\n\t\t) ?? []),\n\t\t...(contents.items?.length && contents.plural ? [``, contents.plural] : []),\n\t\t...(contents.after ?? []),\n\t\t...innerSections,\n\t];\n}\n\nexport const blockDevelopmentDocs = base.createBlock({\n\tabout: {\n\t\tname: \"Development Docs\",\n\t},\n\taddons: {\n\t\thints: z.array(z.string()).default([]),\n\t\tsections: z.record(z.string(), zSection).default({}),\n\t},\n\tproduce({ addons, options }) {\n\t\tconst lines = [\n\t\t\t`# Development`,\n\t\t\t``,\n\t\t\t...(options.guide\n\t\t\t\t? [\n\t\t\t\t\t\t`> If you'd like a more guided walkthrough, see [${options.guide.title}](${options.guide.href}).`,\n\t\t\t\t\t\t`> It'll walk you through the common activities you'll need to contribute.`,\n\t\t\t\t\t\t``,\n\t\t\t\t\t]\n\t\t\t\t: []),\n\t\t\t`After [forking the repo from GitHub](https://help.github.com/articles/fork-a-repo) and [installing pnpm](https://pnpm.io/installation):`,\n\t\t\t``,\n\t\t\t`\\`\\`\\`shell`,\n\t\t\t`git clone https://github.com/(your-name-here)/${options.repository}`,\n\t\t\t`cd ${options.repository}`,\n\t\t\t`pnpm install`,\n\t\t\t`\\`\\`\\``,\n\t\t\t``,\n\t\t\t...(addons.hints.length ? [...addons.hints, ``] : []),\n\t\t\t...Object.entries(addons.sections)\n\t\t\t\t.sort(([a], [b]) => a.localeCompare(b))\n\t\t\t\t.flatMap(([heading, section]) => printSection(heading, section)),\n\t\t\t...(options.documentation.development\n\t\t\t\t? [options.documentation.development]\n\t\t\t\t: []),\n\t\t];\n\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"DEVELOPMENT.md\": lines.join(\"\\n\"),\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [blockRemoveFiles({ files: [\"DEVELOPMENT.md\"] })],\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAKA,MAAM,gBAAgB,EAAE,OAAO;CAC9B,UAAU,EAAE,OAAO;CACnB,SAAS,EAAE,OAAO;AACnB,CAAC;AAID,SAAS,kBAAkB,cAA4B;CACtD,OAAO;EAAC,OAAO,aAAa;EAAW;EAAI,aAAa;CAAQ;AACjE;AAEA,MAAM,WAAW,EAAE,OAAO;CACzB,UAAU,EACR,MAAM,CACN,EAAE,OAAO,GACT,EAAE,OAAO;EACR,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;EACpC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS;EAC5B,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;EACpC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS;CAC7B,CAAC,CACF,CAAC,CAAC,CACD,SAAS;CACX,eAAe,EAAE,MAAM,aAAa,CAAC,CAAC,SAAS;AAChD,CAAC;AAID,SAAS,aAAa,SAAiB,SAAkB;CACxD,MAAM,gBAAgB,QAAQ,eAAe,QAAQ,iBAAiB,KAAK,CAAC;CAE5E,IAAI,QAAQ,aAAa,KAAA,GACxB,OAAO;CAGR,MAAM,WACL,OAAO,QAAQ,aAAa,WACzB,EAAE,QAAQ,QAAQ,SAAS,IAC3B,QAAQ;CAEZ,OAAO;EACN,MAAM;EACN;EACA,GAAI,SAAS,SAAS,CAAC,SAAS,MAAM,IAAI,CAAC;EAC3C,GAAI,SAAS,OAAO,MAAM,GAAG,MAC5B,EAAE,WAAW,KAAK,EAAE,CAAC,CAAC,cAAc,EAAE,WAAW,KAAK,EAAE,CAAC,CAC1D,KAAK,CAAC;EACN,GAAI,SAAS,OAAO,UAAU,SAAS,SAAS,CAAC,IAAI,SAAS,MAAM,IAAI,CAAC;EACzE,GAAI,SAAS,SAAS,CAAC;EACvB,GAAG;CACJ;AACD;AAEA,MAAa,uBAAuB,KAAK,YAAY;CACpD,OAAO,EACN,MAAM,mBACP;CACA,QAAQ;EACP,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;EACrC,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC;CACpD;CACA,QAAQ,EAAE,QAAQ,WAAW;EA4B5B,OAAO,EACN,OAAO,EACN,WAAW,EACV,kBAAkB;GA7BpB;GACA;GACA,GAAI,QAAQ,QACT;IACA,mDAAmD,QAAQ,MAAM,MAAM,IAAI,QAAQ,MAAM,KAAK;IAC9F;IACA;GACD,IACC,CAAC;GACJ;GACA;GACA;GACA,iDAAiD,QAAQ;GACzD,MAAM,QAAQ;GACd;GACA;GACA;GACA,GAAI,OAAO,MAAM,SAAS,CAAC,GAAG,OAAO,OAAO,EAAE,IAAI,CAAC;GACnD,GAAG,OAAO,QAAQ,OAAO,QAAQ,CAAC,CAChC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,CACtC,SAAS,CAAC,SAAS,aAAa,aAAa,SAAS,OAAO,CAAC;GAChE,GAAI,QAAQ,cAAc,cACvB,CAAC,QAAQ,cAAc,WAAW,IAClC,CAAC;EAMoB,CAAC,CAAC,KAAK,IAAI,EAClC,EACD,EACD;CACD;CACA,aAAa;EACZ,OAAO,EACN,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC,EACzD;CACD;AACD,CAAC"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
//#region src/blocks/blockESLint.d.ts
|
|
2
|
-
declare const blockESLint: import("bingo-stratum").BlockWithAddons<{
|
|
3
|
-
imports: {
|
|
4
|
-
source: string | {
|
|
5
|
-
version: string;
|
|
6
|
-
packageName: string;
|
|
7
|
-
};
|
|
8
|
-
specifier: string;
|
|
9
|
-
types?: boolean | undefined;
|
|
10
|
-
}[];
|
|
11
|
-
ignores: string[];
|
|
12
|
-
extensions: {
|
|
13
|
-
files: string[];
|
|
14
|
-
rules?: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
|
|
15
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
16
|
-
comment?: string | undefined;
|
|
17
|
-
}[] | undefined;
|
|
18
|
-
plugins?: Record<string, string> | undefined;
|
|
19
|
-
settings?: Record<string, unknown> | undefined;
|
|
20
|
-
extends?: string[] | undefined;
|
|
21
|
-
languageOptions?: unknown;
|
|
22
|
-
linterOptions?: unknown;
|
|
23
|
-
}[];
|
|
24
|
-
explanations: string[];
|
|
25
|
-
beforeLint?: string | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
access: "public" | "restricted";
|
|
28
|
-
description: string;
|
|
29
|
-
directory: string;
|
|
30
|
-
documentation: {
|
|
31
|
-
readme: {
|
|
32
|
-
additional?: string | undefined;
|
|
33
|
-
explainer?: string | undefined;
|
|
34
|
-
footnotes?: string | undefined;
|
|
35
|
-
usage?: string | undefined;
|
|
36
|
-
};
|
|
37
|
-
development?: string | undefined;
|
|
38
|
-
};
|
|
39
|
-
email: {
|
|
40
|
-
github: string;
|
|
41
|
-
npm: string;
|
|
42
|
-
};
|
|
43
|
-
title: string;
|
|
44
|
-
node: {
|
|
45
|
-
minimum: string;
|
|
46
|
-
pinned?: string | undefined;
|
|
47
|
-
};
|
|
48
|
-
owner: string;
|
|
49
|
-
repository: string;
|
|
50
|
-
type?: "commonjs" | "module" | undefined;
|
|
51
|
-
author?: string | undefined;
|
|
52
|
-
bin?: string | Record<string, string> | undefined;
|
|
53
|
-
contributors?: {
|
|
54
|
-
avatar_url: string;
|
|
55
|
-
contributions: string[];
|
|
56
|
-
login: string;
|
|
57
|
-
name: string;
|
|
58
|
-
profile: string;
|
|
59
|
-
}[] | undefined;
|
|
60
|
-
emoji?: string | undefined;
|
|
61
|
-
existingLabels?: {
|
|
62
|
-
name: string;
|
|
63
|
-
description: string;
|
|
64
|
-
color: string;
|
|
65
|
-
}[] | undefined;
|
|
66
|
-
funding?: string | undefined;
|
|
67
|
-
guide?: {
|
|
68
|
-
href: string;
|
|
69
|
-
title: string;
|
|
70
|
-
} | undefined;
|
|
71
|
-
keywords?: string[] | undefined;
|
|
72
|
-
logo?: {
|
|
73
|
-
alt: string;
|
|
74
|
-
src: string;
|
|
75
|
-
height?: number | undefined;
|
|
76
|
-
width?: number | undefined;
|
|
77
|
-
} | undefined;
|
|
78
|
-
packageData?: {
|
|
79
|
-
dependencies?: Record<string, string> | undefined;
|
|
80
|
-
devDependencies?: Record<string, string> | undefined;
|
|
81
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
82
|
-
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
83
|
-
scripts?: Record<string, string | undefined> | undefined;
|
|
84
|
-
} | undefined;
|
|
85
|
-
pnpm?: string | undefined;
|
|
86
|
-
rulesetId?: string | undefined;
|
|
87
|
-
version?: string | undefined;
|
|
88
|
-
words?: string[] | undefined;
|
|
89
|
-
workflowsVersions?: Record<string, Record<string, {
|
|
90
|
-
pinned?: boolean | undefined;
|
|
91
|
-
hash?: string | undefined;
|
|
92
|
-
}>> | undefined;
|
|
93
|
-
}>;
|
|
94
|
-
//#endregion
|
|
95
|
-
export { blockESLint };
|
|
96
|
-
//# sourceMappingURL=blockESLint.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLint.d.ts","names":[],"sources":["../../src/blocks/blockESLint.ts"],"mappings":";cA2Ba,qCAAW"}
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import { getPackageDependencies } from "../data/packageData.js";
|
|
2
|
-
import { base } from "../base.js";
|
|
3
|
-
import { intakeFile } from "./intake/intakeFile.js";
|
|
4
|
-
import { CommandPhase } from "./phases.js";
|
|
5
|
-
import { blockRemoveFiles } from "./blockRemoveFiles.js";
|
|
6
|
-
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.js";
|
|
7
|
-
import { blockPackageJson } from "./blockPackageJson.js";
|
|
8
|
-
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
|
|
9
|
-
import { blockRemoveWorkflows } from "./blockRemoveWorkflows.js";
|
|
10
|
-
import { blockVSCode } from "./blockVSCode.js";
|
|
11
|
-
import { blockRemoveDependencies } from "./blockRemoveDependencies.js";
|
|
12
|
-
import { getScriptFileExtension } from "./eslint/getScriptFileExtension.js";
|
|
13
|
-
import { zExtension, zPackageImport } from "./eslint/schemas.js";
|
|
14
|
-
import { blockESLintIntake } from "./eslint/blockESLintIntake.js";
|
|
15
|
-
import { mergeAllExtensions } from "./eslint/mergeAllExtensions.js";
|
|
16
|
-
import { z } from "zod";
|
|
17
|
-
import sortKeys from "sort-keys";
|
|
18
|
-
import { parse } from "parse-package-name";
|
|
19
|
-
//#region src/blocks/blockESLint.ts
|
|
20
|
-
const blockESLint = base.createBlock({
|
|
21
|
-
about: { name: "ESLint" },
|
|
22
|
-
addons: {
|
|
23
|
-
beforeLint: z.string().optional(),
|
|
24
|
-
explanations: z.array(z.string()).default([]),
|
|
25
|
-
extensions: z.array(zExtension).default([]),
|
|
26
|
-
ignores: z.array(z.string()).default([]),
|
|
27
|
-
imports: z.array(zPackageImport).default([])
|
|
28
|
-
},
|
|
29
|
-
intake({ files }) {
|
|
30
|
-
const eslintConfigRaw = intakeFile(files, [[
|
|
31
|
-
"eslint.config.ts",
|
|
32
|
-
"eslint.config.mts",
|
|
33
|
-
"eslint.config.js",
|
|
34
|
-
"eslint.config.mjs"
|
|
35
|
-
]]);
|
|
36
|
-
return eslintConfigRaw ? blockESLintIntake(eslintConfigRaw[0]) : void 0;
|
|
37
|
-
},
|
|
38
|
-
produce({ addons, options }) {
|
|
39
|
-
const { explanations, extensions, ignores, imports } = addons;
|
|
40
|
-
const configFileName = options.type === "commonjs" ? "eslint.config.mts" : "eslint.config.ts";
|
|
41
|
-
const explanation = explanations.length > 0 ? `${explanations.map((explanation) => `/*\n${explanation}\n*/\n`).join("")}\n` : "";
|
|
42
|
-
const importLines = [
|
|
43
|
-
"import eslint from \"@eslint/js\";",
|
|
44
|
-
"import { defineConfig, globalIgnores } from \"eslint/config\";",
|
|
45
|
-
"import tseslint from \"typescript-eslint\";",
|
|
46
|
-
...imports.map((packageImport) => `import ${packageImport.specifier} from "${typeof packageImport.source === "string" ? packageImport.source : packageImport.source.packageName}"`)
|
|
47
|
-
].sort((a, b) => a.replace(/.+from/, "").localeCompare(b.replace(/.+from/, "")));
|
|
48
|
-
const ignoreLines = Array.from(new Set([
|
|
49
|
-
"lib",
|
|
50
|
-
"node_modules",
|
|
51
|
-
"pnpm-lock.yaml",
|
|
52
|
-
...ignores
|
|
53
|
-
].map((ignore) => JSON.stringify(ignore)))).sort();
|
|
54
|
-
const extensionLines = mergeAllExtensions({
|
|
55
|
-
extends: [
|
|
56
|
-
"eslint.configs.recommended",
|
|
57
|
-
"tseslint.configs.strictTypeChecked",
|
|
58
|
-
"tseslint.configs.stylisticTypeChecked"
|
|
59
|
-
],
|
|
60
|
-
files: [getScriptFileExtension(options)],
|
|
61
|
-
languageOptions: { parserOptions: { projectService: { allowDefaultProject: Array.from(new Set(["*.config.*s", ...typeof options.bin === "object" ? Object.values(options.bin) : [options.bin]].filter(Boolean).sort())) } } }
|
|
62
|
-
}, ...extensions, ...options.type === "commonjs" ? [{
|
|
63
|
-
files: ["*.mjs"],
|
|
64
|
-
languageOptions: { sourceType: "module" }
|
|
65
|
-
}] : []).sort((a, b) => processForSort(a.files).localeCompare(processForSort(b.files))).map(printExtension);
|
|
66
|
-
return {
|
|
67
|
-
addons: [
|
|
68
|
-
blockDevelopmentDocs({ sections: { Linting: { contents: {
|
|
69
|
-
after: [`
|
|
70
|
-
For example, ESLint can be run with \`--fix\` to auto-fix some lint rule complaints:
|
|
71
|
-
|
|
72
|
-
\`\`\`shell
|
|
73
|
-
pnpm run lint --fix
|
|
74
|
-
\`\`\`
|
|
75
|
-
`, ...addons.beforeLint ? [addons.beforeLint] : []],
|
|
76
|
-
before: `
|
|
77
|
-
This package includes several forms of linting to enforce consistent code quality and styling.
|
|
78
|
-
Each should be shown in VS Code, and can be run manually on the command-line:
|
|
79
|
-
`,
|
|
80
|
-
items: [`- \`pnpm lint\` ([ESLint](https://eslint.org) with [typescript-eslint](https://typescript-eslint.io)): Lints source files, including JavaScript, Markdown, and TypeScript`],
|
|
81
|
-
plural: `Read the individual documentation for each linter to understand how it can be configured and used best.`
|
|
82
|
-
} } } }),
|
|
83
|
-
blockGitHubActionsCI({ jobs: [{
|
|
84
|
-
name: "Lint",
|
|
85
|
-
steps: [...options.bin ? [{ run: "pnpm build" }] : [], { run: "pnpm lint" }]
|
|
86
|
-
}] }),
|
|
87
|
-
blockPackageJson({ properties: {
|
|
88
|
-
devDependencies: {
|
|
89
|
-
...getPackageDependencies("@eslint/js", "@types/node", "eslint", "typescript-eslint", ...imports.filter((imported) => typeof imported.source === "string").flatMap(({ source, types }) => {
|
|
90
|
-
const { name } = parse(source);
|
|
91
|
-
return types ? [name, `@types/${name}`] : [name];
|
|
92
|
-
})),
|
|
93
|
-
...Object.fromEntries(imports.filter((imported) => typeof imported.source === "object").map((imported) => [imported.source.packageName, imported.source.version]))
|
|
94
|
-
},
|
|
95
|
-
scripts: { lint: "eslint . --max-warnings 0" }
|
|
96
|
-
} }),
|
|
97
|
-
blockVSCode({
|
|
98
|
-
extensions: ["dbaeumer.vscode-eslint"],
|
|
99
|
-
settings: {
|
|
100
|
-
"editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit" },
|
|
101
|
-
"eslint.probe": [
|
|
102
|
-
"javascript",
|
|
103
|
-
"javascriptreact",
|
|
104
|
-
"json",
|
|
105
|
-
"jsonc",
|
|
106
|
-
"markdown",
|
|
107
|
-
"typescript",
|
|
108
|
-
"typescriptreact",
|
|
109
|
-
"yaml"
|
|
110
|
-
],
|
|
111
|
-
"eslint.rules.customizations": [{
|
|
112
|
-
rule: "*",
|
|
113
|
-
severity: "warn"
|
|
114
|
-
}]
|
|
115
|
-
}
|
|
116
|
-
})
|
|
117
|
-
],
|
|
118
|
-
files: { [configFileName]: `${explanation}${importLines.join("\n")}
|
|
119
|
-
|
|
120
|
-
export default defineConfig(
|
|
121
|
-
globalIgnores( [${ignoreLines.join(", ")}], "Global Ignores" ),
|
|
122
|
-
{ linterOptions: { reportUnusedDisableDirectives: "error" } },
|
|
123
|
-
${extensionLines.join(",")}
|
|
124
|
-
);` },
|
|
125
|
-
scripts: [{
|
|
126
|
-
commands: ["pnpm lint --fix"],
|
|
127
|
-
phase: CommandPhase.Process
|
|
128
|
-
}]
|
|
129
|
-
};
|
|
130
|
-
},
|
|
131
|
-
transition({ options }) {
|
|
132
|
-
return { addons: [
|
|
133
|
-
blockRemoveDependencies({ dependencies: [
|
|
134
|
-
"@types/eslint",
|
|
135
|
-
"@typescript-eslint/eslint-plugin",
|
|
136
|
-
"@typescript-eslint/parser",
|
|
137
|
-
"eslint-plugin-deprecation",
|
|
138
|
-
"eslint-plugin-eslint-comments",
|
|
139
|
-
"eslint-plugin-no-only-tests",
|
|
140
|
-
"yaml-eslint-parser"
|
|
141
|
-
] }),
|
|
142
|
-
blockRemoveFiles({ files: [
|
|
143
|
-
".eslintrc*",
|
|
144
|
-
".eslintignore",
|
|
145
|
-
options.type === "commonjs" ? "eslint.config.{cjs,js}" : "eslint.config.{cjs,mjs}"
|
|
146
|
-
] }),
|
|
147
|
-
blockRemoveWorkflows({ workflows: ["eslint", "lint"] })
|
|
148
|
-
] };
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
function groupByComment(rulesGroups) {
|
|
152
|
-
const byComment = /* @__PURE__ */ new Map();
|
|
153
|
-
const grouped = [];
|
|
154
|
-
for (const group of rulesGroups) {
|
|
155
|
-
const existing = byComment.get(group.comment);
|
|
156
|
-
if (existing) {
|
|
157
|
-
existing.entries = {
|
|
158
|
-
...existing.entries,
|
|
159
|
-
...group.entries
|
|
160
|
-
};
|
|
161
|
-
continue;
|
|
162
|
-
} else {
|
|
163
|
-
byComment.set(group.comment, group);
|
|
164
|
-
grouped.push(group);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
return grouped;
|
|
168
|
-
}
|
|
169
|
-
function printExtension(extension) {
|
|
170
|
-
return [
|
|
171
|
-
"{",
|
|
172
|
-
extension.extends && `extends: [${extension.extends.join(", ")}],`,
|
|
173
|
-
`files: [${extension.files.map((glob) => JSON.stringify(glob)).join(", ")}],`,
|
|
174
|
-
extension.languageOptions && `languageOptions: ${JSON.stringify(extension.languageOptions).replace("\"import.meta.dirname\"", "import.meta.dirname")},`,
|
|
175
|
-
extension.linterOptions && `linterOptions: ${JSON.stringify(extension.linterOptions)}`,
|
|
176
|
-
extension.rules && `rules: ${printExtensionRules(extension.rules)},`,
|
|
177
|
-
extension.settings && `settings: ${JSON.stringify(sortKeys(extension.settings))},`,
|
|
178
|
-
"}"
|
|
179
|
-
].filter(Boolean).join(" ");
|
|
180
|
-
}
|
|
181
|
-
function printExtensionRules(rules) {
|
|
182
|
-
if (!Array.isArray(rules)) return JSON.stringify(rules);
|
|
183
|
-
return [
|
|
184
|
-
"{",
|
|
185
|
-
...groupByComment(rules).flatMap((group) => [printGroupComment(group.comment), ...Object.entries(group.entries).map(([ruleName, options]) => `"${ruleName}": ${JSON.stringify(options)},`)]),
|
|
186
|
-
"}"
|
|
187
|
-
].join("");
|
|
188
|
-
}
|
|
189
|
-
function printGroupComment(comment) {
|
|
190
|
-
return comment ? `\n\n// ${comment.replaceAll("\n", "\n// ")}\n` : "";
|
|
191
|
-
}
|
|
192
|
-
function processForSort(files) {
|
|
193
|
-
return files.join("").replaceAll("{", "");
|
|
194
|
-
}
|
|
195
|
-
//#endregion
|
|
196
|
-
export { blockESLint };
|
|
197
|
-
|
|
198
|
-
//# sourceMappingURL=blockESLint.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLint.js","names":["parsePackageName"],"sources":["../../src/blocks/blockESLint.ts"],"sourcesContent":["// @ts-expect-error -- https://github.com/egoist/parse-package-name/issues/30\nimport { parse as parsePackageName } from \"parse-package-name\";\nimport sortKeys from \"sort-keys\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRemoveDependencies } from \"./blockRemoveDependencies.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { blockESLintIntake } from \"./eslint/blockESLintIntake.js\";\nimport { getScriptFileExtension } from \"./eslint/getScriptFileExtension.js\";\nimport { mergeAllExtensions } from \"./eslint/mergeAllExtensions.js\";\nimport {\n\tExtension,\n\tExtensionRuleGroup,\n\tExtensionRules,\n\tzExtension,\n\tzPackageImport,\n} from \"./eslint/schemas.js\";\nimport { intakeFile } from \"./intake/intakeFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockESLint = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint\",\n\t},\n\taddons: {\n\t\tbeforeLint: z.string().optional(),\n\t\texplanations: z.array(z.string()).default([]),\n\t\textensions: z.array(zExtension).default([]),\n\t\tignores: z.array(z.string()).default([]),\n\t\timports: z.array(zPackageImport).default([]),\n\t},\n\tintake({ files }) {\n\t\tconst eslintConfigRaw = intakeFile(files, [\n\t\t\t[\n\t\t\t\t\"eslint.config.ts\",\n\t\t\t\t\"eslint.config.mts\",\n\t\t\t\t\"eslint.config.js\",\n\t\t\t\t\"eslint.config.mjs\",\n\t\t\t],\n\t\t]);\n\n\t\treturn eslintConfigRaw ? blockESLintIntake(eslintConfigRaw[0]) : undefined;\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { explanations, extensions, ignores, imports } = addons;\n\n\t\tconst configFileName =\n\t\t\toptions.type === \"commonjs\" ? \"eslint.config.mts\" : \"eslint.config.ts\";\n\n\t\tconst explanation =\n\t\t\texplanations.length > 0\n\t\t\t\t? `${explanations\n\t\t\t\t\t\t.map((explanation) => `/*\\n${explanation}\\n*/\\n`)\n\t\t\t\t\t\t.join(\"\")}\\n`\n\t\t\t\t: \"\";\n\n\t\tconst importLines = [\n\t\t\t'import eslint from \"@eslint/js\";',\n\t\t\t'import { defineConfig, globalIgnores } from \"eslint/config\";',\n\t\t\t'import tseslint from \"typescript-eslint\";',\n\t\t\t...imports.map(\n\t\t\t\t(packageImport) =>\n\t\t\t\t\t`import ${packageImport.specifier} from \"${typeof packageImport.source === \"string\" ? packageImport.source : packageImport.source.packageName}\"`,\n\t\t\t),\n\t\t].sort((a, b) =>\n\t\t\ta.replace(/.+from/, \"\").localeCompare(b.replace(/.+from/, \"\")),\n\t\t);\n\n\t\tconst ignoreLines = Array.from(\n\t\t\tnew Set(\n\t\t\t\t[\"lib\", \"node_modules\", \"pnpm-lock.yaml\", ...ignores].map((ignore) =>\n\t\t\t\t\tJSON.stringify(ignore),\n\t\t\t\t),\n\t\t\t),\n\t\t).sort();\n\n\t\tconst extensionEntries = mergeAllExtensions(\n\t\t\t{\n\t\t\t\textends: [\n\t\t\t\t\t\"eslint.configs.recommended\",\n\t\t\t\t\t\"tseslint.configs.strictTypeChecked\",\n\t\t\t\t\t\"tseslint.configs.stylisticTypeChecked\",\n\t\t\t\t],\n\t\t\t\tfiles: [getScriptFileExtension(options)],\n\t\t\t\tlanguageOptions: {\n\t\t\t\t\tparserOptions: {\n\t\t\t\t\t\tprojectService: {\n\t\t\t\t\t\t\tallowDefaultProject: Array.from(\n\t\t\t\t\t\t\t\tnew Set(\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t\"*.config.*s\",\n\t\t\t\t\t\t\t\t\t\t...(typeof options.bin === \"object\"\n\t\t\t\t\t\t\t\t\t\t\t? Object.values(options.bin)\n\t\t\t\t\t\t\t\t\t\t\t: [options.bin]),\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t.filter(Boolean)\n\t\t\t\t\t\t\t\t\t\t.sort(),\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},\n\t\t\t...extensions,\n\t\t\t...(options.type === \"commonjs\"\n\t\t\t\t? [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfiles: [\"*.mjs\"],\n\t\t\t\t\t\t\tlanguageOptions: { sourceType: \"module\" },\n\t\t\t\t\t\t},\n\t\t\t\t\t]\n\t\t\t\t: []),\n\t\t);\n\n\t\tconst extensionLines = extensionEntries\n\t\t\t.sort((a, b) =>\n\t\t\t\tprocessForSort(a.files).localeCompare(processForSort(b.files)),\n\t\t\t)\n\t\t\t.map(printExtension);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tLinting: {\n\t\t\t\t\t\t\tcontents: {\n\t\t\t\t\t\t\t\tafter: [\n\t\t\t\t\t\t\t\t\t`\nFor example, ESLint can be run with \\`--fix\\` to auto-fix some lint rule complaints:\n\n\\`\\`\\`shell\npnpm run lint --fix\n\\`\\`\\`\n`,\n\t\t\t\t\t\t\t\t\t...(addons.beforeLint ? [addons.beforeLint] : []),\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tbefore: `\nThis package includes several forms of linting to enforce consistent code quality and styling.\nEach should be shown in VS Code, and can be run manually on the command-line:\n`,\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t`- \\`pnpm lint\\` ([ESLint](https://eslint.org) with [typescript-eslint](https://typescript-eslint.io)): Lints source files, including JavaScript, Markdown, and TypeScript`,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tplural: `Read the individual documentation for each linter to understand how it can be configured and used best.`,\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: \"Lint\",\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t...(options.bin ? [{ run: \"pnpm build\" }] : []),\n\t\t\t\t\t\t\t\t{ run: \"pnpm lint\" },\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\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t\t...getPackageDependencies(\n\t\t\t\t\t\t\t\t\"@eslint/js\",\n\t\t\t\t\t\t\t\t\"@types/node\",\n\t\t\t\t\t\t\t\t\"eslint\",\n\t\t\t\t\t\t\t\t\"typescript-eslint\",\n\t\t\t\t\t\t\t\t...imports\n\t\t\t\t\t\t\t\t\t.filter((imported) => typeof imported.source === \"string\")\n\t\t\t\t\t\t\t\t\t.flatMap(({ source, types }) => {\n\t\t\t\t\t\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-call -- https://github.com/egoist/parse-package-name/issues/30\n\t\t\t\t\t\t\t\t\t\tconst { name } = parsePackageName(source) as {\n\t\t\t\t\t\t\t\t\t\t\tname: string;\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\treturn types ? [name, `@types/${name}`] : [name];\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t...Object.fromEntries(\n\t\t\t\t\t\t\t\timports\n\t\t\t\t\t\t\t\t\t.filter(\n\t\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\timported,\n\t\t\t\t\t\t\t\t\t\t): imported is typeof imported & { source: object } =>\n\t\t\t\t\t\t\t\t\t\t\ttypeof imported.source === \"object\",\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t.map((imported) => [\n\t\t\t\t\t\t\t\t\t\timported.source.packageName,\n\t\t\t\t\t\t\t\t\t\timported.source.version,\n\t\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\tscripts: {\n\t\t\t\t\t\t\tlint: \"eslint . --max-warnings 0\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVSCode({\n\t\t\t\t\textensions: [\"dbaeumer.vscode-eslint\"],\n\t\t\t\t\tsettings: {\n\t\t\t\t\t\t\"editor.codeActionsOnSave\": {\n\t\t\t\t\t\t\t\"source.fixAll.eslint\": \"explicit\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"eslint.probe\": [\n\t\t\t\t\t\t\t\"javascript\",\n\t\t\t\t\t\t\t\"javascriptreact\",\n\t\t\t\t\t\t\t\"json\",\n\t\t\t\t\t\t\t\"jsonc\",\n\t\t\t\t\t\t\t\"markdown\",\n\t\t\t\t\t\t\t\"typescript\",\n\t\t\t\t\t\t\t\"typescriptreact\",\n\t\t\t\t\t\t\t\"yaml\",\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"eslint.rules.customizations\": [{ rule: \"*\", severity: \"warn\" }],\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t[configFileName]: `${explanation}${importLines.join(\"\\n\")}\n\nexport default defineConfig(\n\tglobalIgnores( [${ignoreLines.join(\", \")}], \"Global Ignores\" ),\n\t{ linterOptions: { reportUnusedDisableDirectives: \"error\" } },\n\t${extensionLines.join(\",\")}\n);`,\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"pnpm lint --fix\"],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\ttransition({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveDependencies({\n\t\t\t\t\tdependencies: [\n\t\t\t\t\t\t\"@types/eslint\",\n\t\t\t\t\t\t\"@typescript-eslint/eslint-plugin\",\n\t\t\t\t\t\t\"@typescript-eslint/parser\",\n\t\t\t\t\t\t\"eslint-plugin-deprecation\",\n\t\t\t\t\t\t\"eslint-plugin-eslint-comments\",\n\t\t\t\t\t\t\"eslint-plugin-no-only-tests\",\n\t\t\t\t\t\t\"yaml-eslint-parser\",\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockRemoveFiles({\n\t\t\t\t\tfiles: [\n\t\t\t\t\t\t\".eslintrc*\",\n\t\t\t\t\t\t\".eslintignore\",\n\t\t\t\t\t\toptions.type === \"commonjs\"\n\t\t\t\t\t\t\t? \"eslint.config.{cjs,js}\"\n\t\t\t\t\t\t\t: \"eslint.config.{cjs,mjs}\",\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockRemoveWorkflows({\n\t\t\t\t\tworkflows: [\"eslint\", \"lint\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n\nfunction groupByComment(rulesGroups: ExtensionRuleGroup[]) {\n\tconst byComment = new Map<string | undefined, ExtensionRuleGroup>();\n\tconst grouped: typeof rulesGroups = [];\n\n\tfor (const group of rulesGroups) {\n\t\tconst existing = byComment.get(group.comment);\n\n\t\tif (existing) {\n\t\t\texisting.entries = {\n\t\t\t\t...existing.entries,\n\t\t\t\t...group.entries,\n\t\t\t};\n\t\t\tcontinue;\n\t\t} else {\n\t\t\tbyComment.set(group.comment, group);\n\t\t\tgrouped.push(group);\n\t\t}\n\t}\n\n\treturn grouped;\n}\n\nfunction printExtension(extension: Extension) {\n\treturn [\n\t\t\"{\",\n\t\textension.extends && `extends: [${extension.extends.join(\", \")}],`,\n\t\t`files: [${extension.files.map((glob) => JSON.stringify(glob)).join(\", \")}],`,\n\t\textension.languageOptions &&\n\t\t\t`languageOptions: ${JSON.stringify(extension.languageOptions).replace('\"import.meta.dirname\"', \"import.meta.dirname\")},`,\n\t\textension.linterOptions &&\n\t\t\t`linterOptions: ${JSON.stringify(extension.linterOptions)}`,\n\t\textension.rules && `rules: ${printExtensionRules(extension.rules)},`,\n\t\textension.settings &&\n\t\t\t`settings: ${JSON.stringify(sortKeys(extension.settings))},`,\n\t\t\"}\",\n\t]\n\t\t.filter(Boolean)\n\t\t.join(\" \");\n}\n\nfunction printExtensionRules(rules: ExtensionRules) {\n\tif (!Array.isArray(rules)) {\n\t\treturn JSON.stringify(rules);\n\t}\n\n\treturn [\n\t\t\"{\",\n\t\t...groupByComment(rules).flatMap((group) => [\n\t\t\tprintGroupComment(group.comment),\n\t\t\t...Object.entries(group.entries).map(\n\t\t\t\t([ruleName, options]) => `\"${ruleName}\": ${JSON.stringify(options)},`,\n\t\t\t),\n\t\t]),\n\t\t\"}\",\n\t].join(\"\");\n}\n\nfunction printGroupComment(comment: string | undefined) {\n\treturn comment ? `\\n\\n// ${comment.replaceAll(\"\\n\", \"\\n// \")}\\n` : \"\";\n}\n\nfunction processForSort(files: string[]) {\n\treturn files.join(\"\").replaceAll(\"{\", \"\");\n}\n"],"mappings":"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"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
//#region src/blocks/blockESLintComments.d.ts
|
|
2
|
-
declare const blockESLintComments: 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 { blockESLintComments };
|
|
72
|
-
//# sourceMappingURL=blockESLintComments.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintComments.d.ts","names":[],"sources":["../../src/blocks/blockESLintComments.ts"],"mappings":";cAIa,6CAAmB"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { base } from "../base.js";
|
|
2
|
-
import { getScriptFileExtension } from "./eslint/getScriptFileExtension.js";
|
|
3
|
-
import { blockESLint } from "./blockESLint.js";
|
|
4
|
-
//#region src/blocks/blockESLintComments.ts
|
|
5
|
-
const blockESLintComments = base.createBlock({
|
|
6
|
-
about: { name: "ESLint Comments Plugin" },
|
|
7
|
-
produce({ options }) {
|
|
8
|
-
return { addons: [blockESLint({
|
|
9
|
-
extensions: [{
|
|
10
|
-
extends: ["comments.recommended"],
|
|
11
|
-
files: [getScriptFileExtension(options)]
|
|
12
|
-
}],
|
|
13
|
-
imports: [{
|
|
14
|
-
source: "@eslint-community/eslint-plugin-eslint-comments/configs",
|
|
15
|
-
specifier: "comments"
|
|
16
|
-
}]
|
|
17
|
-
})] };
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
//#endregion
|
|
21
|
-
export { blockESLintComments };
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=blockESLintComments.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintComments.js","names":[],"sources":["../../src/blocks/blockESLintComments.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\nimport { getScriptFileExtension } from \"./eslint/getScriptFileExtension.js\";\n\nexport const blockESLintComments = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint Comments Plugin\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\textends: [\"comments.recommended\"],\n\t\t\t\t\t\t\tfiles: [getScriptFileExtension(options)],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\timports: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsource: \"@eslint-community/eslint-plugin-eslint-comments/configs\",\n\t\t\t\t\t\t\tspecifier: \"comments\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAIA,MAAa,sBAAsB,KAAK,YAAY;CACnD,OAAO,EACN,MAAM,yBACP;CACA,QAAQ,EAAE,WAAW;EACpB,OAAO,EACN,QAAQ,CACP,YAAY;GACX,YAAY,CACX;IACC,SAAS,CAAC,sBAAsB;IAChC,OAAO,CAAC,uBAAuB,OAAO,CAAC;GACxC,CACD;GACA,SAAS,CACR;IACC,QAAQ;IACR,WAAW;GACZ,CACD;EACD,CAAC,CACF,EACD;CACD;AACD,CAAC"}
|