create-typescript-app 2.62.0 → 2.63.1
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/README.md +1 -1
- package/lib/_virtual/_rolldown/runtime.js +14 -0
- package/lib/base.d.ts +175 -0
- package/lib/base.d.ts.map +1 -0
- package/lib/base.js +3 -3
- package/lib/base.js.map +1 -0
- package/lib/blocks/actions/resolveUses.d.ts +6 -0
- package/lib/blocks/actions/resolveUses.d.ts.map +1 -0
- package/lib/blocks/actions/resolveUses.js +3 -3
- package/lib/blocks/actions/resolveUses.js.map +1 -0
- package/lib/blocks/actions/steps.d.ts +37 -0
- package/lib/blocks/actions/steps.d.ts.map +1 -0
- package/lib/blocks/actions/steps.js +3 -3
- package/lib/blocks/actions/steps.js.map +1 -0
- package/lib/blocks/bin/getPrimaryBin.d.ts +5 -0
- package/lib/blocks/bin/getPrimaryBin.d.ts.map +1 -0
- package/lib/blocks/bin/getPrimaryBin.js +3 -2
- package/lib/blocks/bin/getPrimaryBin.js.map +1 -0
- package/lib/blocks/blockAllContributors.d.ts +72 -0
- package/lib/blocks/blockAllContributors.d.ts.map +1 -0
- package/lib/blocks/blockAllContributors.js +3 -3
- package/lib/blocks/blockAllContributors.js.map +1 -0
- package/lib/blocks/blockAreTheTypesWrong.d.ts +72 -0
- package/lib/blocks/blockAreTheTypesWrong.d.ts.map +1 -0
- package/lib/blocks/blockAreTheTypesWrong.js +3 -3
- package/lib/blocks/blockAreTheTypesWrong.js.map +1 -0
- package/lib/blocks/blockCSpell.d.ts +75 -0
- package/lib/blocks/blockCSpell.d.ts.map +1 -0
- package/lib/blocks/blockCSpell.js +7 -7
- package/lib/blocks/blockCSpell.js.map +1 -0
- package/lib/blocks/blockCTATransitions.d.ts +72 -0
- package/lib/blocks/blockCTATransitions.d.ts.map +1 -0
- package/lib/blocks/blockCTATransitions.js +3 -3
- package/lib/blocks/blockCTATransitions.js.map +1 -0
- package/lib/blocks/blockCodecov.d.ts +74 -0
- package/lib/blocks/blockCodecov.d.ts.map +1 -0
- package/lib/blocks/blockCodecov.js +4 -4
- package/lib/blocks/blockCodecov.js.map +1 -0
- package/lib/blocks/blockContributingDocs.d.ts +72 -0
- package/lib/blocks/blockContributingDocs.d.ts.map +1 -0
- package/lib/blocks/blockContributingDocs.js +5 -4
- package/lib/blocks/blockContributingDocs.js.map +1 -0
- package/lib/blocks/blockContributorCovenant.d.ts +72 -0
- package/lib/blocks/blockContributorCovenant.d.ts.map +1 -0
- package/lib/blocks/blockContributorCovenant.js +3 -3
- package/lib/blocks/blockContributorCovenant.js.map +1 -0
- package/lib/blocks/blockDevelopmentDocs.d.ts +86 -0
- package/lib/blocks/blockDevelopmentDocs.d.ts.map +1 -0
- package/lib/blocks/blockDevelopmentDocs.js +5 -6
- package/lib/blocks/blockDevelopmentDocs.js.map +1 -0
- package/lib/blocks/blockESLint.d.ts +96 -0
- package/lib/blocks/blockESLint.d.ts.map +1 -0
- package/lib/blocks/blockESLint.js +4 -4
- package/lib/blocks/blockESLint.js.map +1 -0
- package/lib/blocks/blockESLintComments.d.ts +72 -0
- package/lib/blocks/blockESLintComments.d.ts.map +1 -0
- package/lib/blocks/blockESLintComments.js +3 -3
- package/lib/blocks/blockESLintComments.js.map +1 -0
- package/lib/blocks/blockESLintJSDoc.d.ts +72 -0
- package/lib/blocks/blockESLintJSDoc.d.ts.map +1 -0
- package/lib/blocks/blockESLintJSDoc.js +3 -3
- package/lib/blocks/blockESLintJSDoc.js.map +1 -0
- package/lib/blocks/blockESLintJSONC.d.ts +72 -0
- package/lib/blocks/blockESLintJSONC.d.ts.map +1 -0
- package/lib/blocks/blockESLintJSONC.js +3 -3
- package/lib/blocks/blockESLintJSONC.js.map +1 -0
- package/lib/blocks/blockESLintMarkdown.d.ts +72 -0
- package/lib/blocks/blockESLintMarkdown.d.ts.map +1 -0
- package/lib/blocks/blockESLintMarkdown.js +3 -3
- package/lib/blocks/blockESLintMarkdown.js.map +1 -0
- package/lib/blocks/blockESLintMoreStyling.d.ts +73 -0
- package/lib/blocks/blockESLintMoreStyling.d.ts.map +1 -0
- package/lib/blocks/blockESLintMoreStyling.js +3 -3
- package/lib/blocks/blockESLintMoreStyling.js.map +1 -0
- package/lib/blocks/blockESLintNode.d.ts +72 -0
- package/lib/blocks/blockESLintNode.d.ts.map +1 -0
- package/lib/blocks/blockESLintNode.js +4 -8
- package/lib/blocks/blockESLintNode.js.map +1 -0
- package/lib/blocks/blockESLintPackageJson.d.ts +72 -0
- package/lib/blocks/blockESLintPackageJson.d.ts.map +1 -0
- package/lib/blocks/blockESLintPackageJson.js +3 -3
- package/lib/blocks/blockESLintPackageJson.js.map +1 -0
- package/lib/blocks/blockESLintPerfectionist.d.ts +72 -0
- package/lib/blocks/blockESLintPerfectionist.d.ts.map +1 -0
- package/lib/blocks/blockESLintPerfectionist.js +3 -3
- package/lib/blocks/blockESLintPerfectionist.js.map +1 -0
- package/lib/blocks/blockESLintPlugin.d.ts +74 -0
- package/lib/blocks/blockESLintPlugin.d.ts.map +1 -0
- package/lib/blocks/blockESLintPlugin.js +3 -3
- package/lib/blocks/blockESLintPlugin.js.map +1 -0
- package/lib/blocks/blockESLintRegexp.d.ts +72 -0
- package/lib/blocks/blockESLintRegexp.d.ts.map +1 -0
- package/lib/blocks/blockESLintRegexp.js +3 -3
- package/lib/blocks/blockESLintRegexp.js.map +1 -0
- package/lib/blocks/blockESLintYML.d.ts +72 -0
- package/lib/blocks/blockESLintYML.d.ts.map +1 -0
- package/lib/blocks/blockESLintYML.js +3 -3
- package/lib/blocks/blockESLintYML.js.map +1 -0
- package/lib/blocks/blockExampleFiles.d.ts +75 -0
- package/lib/blocks/blockExampleFiles.d.ts.map +1 -0
- package/lib/blocks/blockExampleFiles.js +3 -3
- package/lib/blocks/blockExampleFiles.js.map +1 -0
- package/lib/blocks/blockExports.d.ts +75 -0
- package/lib/blocks/blockExports.d.ts.map +1 -0
- package/lib/blocks/blockExports.js +3 -3
- package/lib/blocks/blockExports.js.map +1 -0
- package/lib/blocks/blockFunding.d.ts +72 -0
- package/lib/blocks/blockFunding.d.ts.map +1 -0
- package/lib/blocks/blockFunding.js +3 -3
- package/lib/blocks/blockFunding.js.map +1 -0
- package/lib/blocks/blockGitHubActionsCI.d.ts +88 -0
- package/lib/blocks/blockGitHubActionsCI.d.ts.map +1 -0
- package/lib/blocks/blockGitHubActionsCI.js +3 -3
- package/lib/blocks/blockGitHubActionsCI.js.map +1 -0
- package/lib/blocks/blockGitHubApps.d.ts +77 -0
- package/lib/blocks/blockGitHubApps.d.ts.map +1 -0
- package/lib/blocks/blockGitHubApps.js +3 -3
- package/lib/blocks/blockGitHubApps.js.map +1 -0
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +72 -0
- package/lib/blocks/blockGitHubIssueTemplates.d.ts.map +1 -0
- package/lib/blocks/blockGitHubIssueTemplates.js +3 -3
- package/lib/blocks/blockGitHubIssueTemplates.js.map +1 -0
- package/lib/blocks/blockGitHubPRTemplate.d.ts +72 -0
- package/lib/blocks/blockGitHubPRTemplate.d.ts.map +1 -0
- package/lib/blocks/blockGitHubPRTemplate.js +3 -3
- package/lib/blocks/blockGitHubPRTemplate.js.map +1 -0
- package/lib/blocks/blockGitignore.d.ts +74 -0
- package/lib/blocks/blockGitignore.d.ts.map +1 -0
- package/lib/blocks/blockGitignore.js +3 -3
- package/lib/blocks/blockGitignore.js.map +1 -0
- package/lib/blocks/blockKnip.d.ts +76 -0
- package/lib/blocks/blockKnip.d.ts.map +1 -0
- package/lib/blocks/blockKnip.js +3 -3
- package/lib/blocks/blockKnip.js.map +1 -0
- package/lib/blocks/blockMITLicense.d.ts +72 -0
- package/lib/blocks/blockMITLicense.d.ts.map +1 -0
- package/lib/blocks/blockMITLicense.js +3 -3
- package/lib/blocks/blockMITLicense.js.map +1 -0
- package/lib/blocks/blockNcc.d.ts +74 -0
- package/lib/blocks/blockNcc.d.ts.map +1 -0
- package/lib/blocks/blockNcc.js +3 -3
- package/lib/blocks/blockNcc.js.map +1 -0
- package/lib/blocks/blockNvmrc.d.ts +72 -0
- package/lib/blocks/blockNvmrc.d.ts.map +1 -0
- package/lib/blocks/blockNvmrc.js +3 -3
- package/lib/blocks/blockNvmrc.js.map +1 -0
- package/lib/blocks/blockOctoGuide.d.ts +74 -0
- package/lib/blocks/blockOctoGuide.d.ts.map +1 -0
- package/lib/blocks/blockOctoGuide.js +3 -3
- package/lib/blocks/blockOctoGuide.js.map +1 -0
- package/lib/blocks/blockOctoGuideStrict.d.ts +72 -0
- package/lib/blocks/blockOctoGuideStrict.d.ts.map +1 -0
- package/lib/blocks/blockOctoGuideStrict.js +3 -3
- package/lib/blocks/blockOctoGuideStrict.js.map +1 -0
- package/lib/blocks/blockPackageJson.d.ts +149 -0
- package/lib/blocks/blockPackageJson.d.ts.map +1 -0
- package/lib/blocks/blockPackageJson.js +3 -3
- package/lib/blocks/blockPackageJson.js.map +1 -0
- package/lib/blocks/blockPnpmDedupe.d.ts +72 -0
- package/lib/blocks/blockPnpmDedupe.d.ts.map +1 -0
- package/lib/blocks/blockPnpmDedupe.js +3 -3
- package/lib/blocks/blockPnpmDedupe.js.map +1 -0
- package/lib/blocks/blockPrettier.d.ts +82 -0
- package/lib/blocks/blockPrettier.d.ts.map +1 -0
- package/lib/blocks/blockPrettier.js +3 -3
- package/lib/blocks/blockPrettier.js.map +1 -0
- package/lib/blocks/blockPrettierPluginCurly.d.ts +72 -0
- package/lib/blocks/blockPrettierPluginCurly.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginCurly.js +3 -3
- package/lib/blocks/blockPrettierPluginCurly.js.map +1 -0
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +72 -0
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginPackageJson.js +3 -3
- package/lib/blocks/blockPrettierPluginPackageJson.js.map +1 -0
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts +72 -0
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginSentencesPerLine.js +3 -3
- package/lib/blocks/blockPrettierPluginSentencesPerLine.js.map +1 -0
- package/lib/blocks/blockPrettierPluginSh.d.ts +72 -0
- package/lib/blocks/blockPrettierPluginSh.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginSh.js +3 -3
- package/lib/blocks/blockPrettierPluginSh.js.map +1 -0
- package/lib/blocks/blockREADME.d.ts +85 -0
- package/lib/blocks/blockREADME.d.ts.map +1 -0
- package/lib/blocks/blockREADME.js +3 -3
- package/lib/blocks/blockREADME.js.map +1 -0
- package/lib/blocks/blockReleaseIt.d.ts +77 -0
- package/lib/blocks/blockReleaseIt.d.ts.map +1 -0
- package/lib/blocks/blockReleaseIt.js +3 -3
- package/lib/blocks/blockReleaseIt.js.map +1 -0
- package/lib/blocks/blockRemoveDependencies.d.ts +74 -0
- package/lib/blocks/blockRemoveDependencies.d.ts.map +1 -0
- package/lib/blocks/blockRemoveDependencies.js +3 -3
- package/lib/blocks/blockRemoveDependencies.js.map +1 -0
- package/lib/blocks/blockRemoveFiles.d.ts +74 -0
- package/lib/blocks/blockRemoveFiles.d.ts.map +1 -0
- package/lib/blocks/blockRemoveFiles.js +3 -3
- package/lib/blocks/blockRemoveFiles.js.map +1 -0
- package/lib/blocks/blockRemoveWorkflows.d.ts +74 -0
- package/lib/blocks/blockRemoveWorkflows.d.ts.map +1 -0
- package/lib/blocks/blockRemoveWorkflows.js +3 -3
- package/lib/blocks/blockRemoveWorkflows.js.map +1 -0
- package/lib/blocks/blockRenovate.d.ts +74 -0
- package/lib/blocks/blockRenovate.d.ts.map +1 -0
- package/lib/blocks/blockRenovate.js +4 -4
- package/lib/blocks/blockRenovate.js.map +1 -0
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +74 -0
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts.map +1 -0
- package/lib/blocks/blockRepositoryBranchRuleset.js +3 -3
- package/lib/blocks/blockRepositoryBranchRuleset.js.map +1 -0
- package/lib/blocks/blockRepositoryLabels.d.ts +72 -0
- package/lib/blocks/blockRepositoryLabels.d.ts.map +1 -0
- package/lib/blocks/blockRepositoryLabels.js +3 -3
- package/lib/blocks/blockRepositoryLabels.js.map +1 -0
- package/lib/blocks/blockRepositorySecrets.d.ts +77 -0
- package/lib/blocks/blockRepositorySecrets.d.ts.map +1 -0
- package/lib/blocks/blockRepositorySecrets.js +3 -3
- package/lib/blocks/blockRepositorySecrets.js.map +1 -0
- package/lib/blocks/blockRepositorySettings.d.ts +72 -0
- package/lib/blocks/blockRepositorySettings.d.ts.map +1 -0
- package/lib/blocks/blockRepositorySettings.js +3 -3
- package/lib/blocks/blockRepositorySettings.js.map +1 -0
- package/lib/blocks/blockSecurityDocs.d.ts +72 -0
- package/lib/blocks/blockSecurityDocs.d.ts.map +1 -0
- package/lib/blocks/blockSecurityDocs.js +3 -3
- package/lib/blocks/blockSecurityDocs.js.map +1 -0
- package/lib/blocks/blockSideEffects.d.ts +74 -0
- package/lib/blocks/blockSideEffects.d.ts.map +1 -0
- package/lib/blocks/blockSideEffects.js +3 -3
- package/lib/blocks/blockSideEffects.js.map +1 -0
- package/lib/blocks/blockTSDown.d.ts +76 -0
- package/lib/blocks/blockTSDown.d.ts.map +1 -0
- package/lib/blocks/blockTSDown.js +4 -6
- package/lib/blocks/blockTSDown.js.map +1 -0
- package/lib/blocks/blockTemplatedWith.d.ts +72 -0
- package/lib/blocks/blockTemplatedWith.d.ts.map +1 -0
- package/lib/blocks/blockTemplatedWith.js +3 -3
- package/lib/blocks/blockTemplatedWith.js.map +1 -0
- package/lib/blocks/blockTypeScript.d.ts +184 -0
- package/lib/blocks/blockTypeScript.d.ts.map +1 -0
- package/lib/blocks/blockTypeScript.js +3 -3
- package/lib/blocks/blockTypeScript.js.map +1 -0
- package/lib/blocks/blockVSCode.d.ts +81 -0
- package/lib/blocks/blockVSCode.d.ts.map +1 -0
- package/lib/blocks/blockVSCode.js +3 -3
- package/lib/blocks/blockVSCode.js.map +1 -0
- package/lib/blocks/blockVitest.d.ts +89 -0
- package/lib/blocks/blockVitest.d.ts.map +1 -0
- package/lib/blocks/blockVitest.js +5 -5
- package/lib/blocks/blockVitest.js.map +1 -0
- package/lib/blocks/blockWebExt.d.ts +72 -0
- package/lib/blocks/blockWebExt.d.ts.map +1 -0
- package/lib/blocks/blockWebExt.js +3 -3
- package/lib/blocks/blockWebExt.js.map +1 -0
- package/lib/blocks/eslint/blockESLintIntake.d.ts +11 -0
- package/lib/blocks/eslint/blockESLintIntake.d.ts.map +1 -0
- package/lib/blocks/eslint/blockESLintIntake.js +10 -10
- package/lib/blocks/eslint/blockESLintIntake.js.map +1 -0
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts +7 -0
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts.map +1 -0
- package/lib/blocks/eslint/blockESLintPluginIntake.js +3 -3
- package/lib/blocks/eslint/blockESLintPluginIntake.js.map +1 -0
- package/lib/blocks/eslint/getScriptFileExtension.d.ts +8 -0
- package/lib/blocks/eslint/getScriptFileExtension.d.ts.map +1 -0
- package/lib/blocks/eslint/getScriptFileExtension.js +3 -2
- package/lib/blocks/eslint/getScriptFileExtension.js.map +1 -0
- package/lib/blocks/eslint/mergeAllExtensions.d.ts +17 -0
- package/lib/blocks/eslint/mergeAllExtensions.d.ts.map +1 -0
- package/lib/blocks/eslint/mergeAllExtensions.js +4 -3
- package/lib/blocks/eslint/mergeAllExtensions.js.map +1 -0
- package/lib/blocks/eslint/schemas.d.ts +112 -0
- package/lib/blocks/eslint/schemas.d.ts.map +1 -0
- package/lib/blocks/eslint/schemas.js +3 -3
- package/lib/blocks/eslint/schemas.js.map +1 -0
- package/lib/blocks/files/createJobName.d.ts +5 -0
- package/lib/blocks/files/createJobName.d.ts.map +1 -0
- package/lib/blocks/files/createJobName.js +3 -2
- package/lib/blocks/files/createJobName.js.map +1 -0
- package/lib/blocks/files/createMultiWorkflowFile.d.ts +24 -0
- package/lib/blocks/files/createMultiWorkflowFile.d.ts.map +1 -0
- package/lib/blocks/files/createMultiWorkflowFile.js +3 -3
- package/lib/blocks/files/createMultiWorkflowFile.js.map +1 -0
- package/lib/blocks/files/createSoloWorkflowFile.d.ts +65 -0
- package/lib/blocks/files/createSoloWorkflowFile.d.ts.map +1 -0
- package/lib/blocks/files/createSoloWorkflowFile.js +3 -3
- package/lib/blocks/files/createSoloWorkflowFile.js.map +1 -0
- package/lib/blocks/files/formatIgnoreFile.d.ts +5 -0
- package/lib/blocks/files/formatIgnoreFile.d.ts.map +1 -0
- package/lib/blocks/files/formatIgnoreFile.js +3 -2
- package/lib/blocks/files/formatIgnoreFile.js.map +1 -0
- package/lib/blocks/files/formatWorkflowYaml.d.ts +5 -0
- package/lib/blocks/files/formatWorkflowYaml.d.ts.map +1 -0
- package/lib/blocks/files/formatWorkflowYaml.js +3 -3
- package/lib/blocks/files/formatWorkflowYaml.js.map +1 -0
- package/lib/blocks/files/formatYaml.d.ts +5 -0
- package/lib/blocks/files/formatYaml.d.ts.map +1 -0
- package/lib/blocks/files/formatYaml.js +3 -3
- package/lib/blocks/files/formatYaml.js.map +1 -0
- package/lib/blocks/files/removeUsesQuotes.d.ts +5 -0
- package/lib/blocks/files/removeUsesQuotes.d.ts.map +1 -0
- package/lib/blocks/files/removeUsesQuotes.js +3 -2
- package/lib/blocks/files/removeUsesQuotes.js.map +1 -0
- package/lib/blocks/getInstallationSuggestions.d.ts +5 -0
- package/lib/blocks/getInstallationSuggestions.d.ts.map +1 -0
- package/lib/blocks/getInstallationSuggestions.js +3 -2
- package/lib/blocks/getInstallationSuggestions.js.map +1 -0
- package/lib/blocks/index.d.ts +3713 -0
- package/lib/blocks/index.d.ts.map +1 -0
- package/lib/blocks/index.js +3 -3
- package/lib/blocks/index.js.map +1 -0
- package/lib/blocks/intake/intakeFile.d.ts +6 -0
- package/lib/blocks/intake/intakeFile.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFile.js +3 -2
- package/lib/blocks/intake/intakeFile.js.map +1 -0
- package/lib/blocks/intake/intakeFileAsJson.d.ts +6 -0
- package/lib/blocks/intake/intakeFileAsJson.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileAsJson.js +3 -3
- package/lib/blocks/intake/intakeFileAsJson.js.map +1 -0
- package/lib/blocks/intake/intakeFileAsYaml.d.ts +6 -0
- package/lib/blocks/intake/intakeFileAsYaml.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileAsYaml.js +3 -3
- package/lib/blocks/intake/intakeFileAsYaml.js.map +1 -0
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts +6 -0
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileDefineConfig.js +3 -3
- package/lib/blocks/intake/intakeFileDefineConfig.js.map +1 -0
- package/lib/blocks/intake/intakeFileExportObject.d.ts +6 -0
- package/lib/blocks/intake/intakeFileExportObject.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileExportObject.js +3 -3
- package/lib/blocks/intake/intakeFileExportObject.js.map +1 -0
- package/lib/blocks/options.fakes.d.ts +26 -0
- package/lib/blocks/options.fakes.d.ts.map +1 -0
- package/lib/blocks/options.fakes.js +3 -2
- package/lib/blocks/options.fakes.js.map +1 -0
- package/lib/blocks/outcomeLabels.d.ts +15 -0
- package/lib/blocks/outcomeLabels.d.ts.map +1 -0
- package/lib/blocks/outcomeLabels.js +3 -2
- package/lib/blocks/outcomeLabels.js.map +1 -0
- package/lib/blocks/phases.d.ts +11 -0
- package/lib/blocks/phases.d.ts.map +1 -0
- package/lib/blocks/phases.js +3 -2
- package/lib/blocks/phases.js.map +1 -0
- package/lib/constants.d.ts +10 -0
- package/lib/constants.d.ts.map +1 -0
- package/lib/constants.js +3 -2
- package/lib/constants.js.map +1 -0
- package/lib/data/contributions.d.ts +5 -0
- package/lib/data/contributions.d.ts.map +1 -0
- package/lib/data/contributions.js +3 -2
- package/lib/data/contributions.js.map +1 -0
- package/lib/data/packageData.d.ts +10 -0
- package/lib/data/packageData.d.ts.map +1 -0
- package/lib/data/packageData.js +4 -6
- package/lib/data/packageData.js.map +1 -0
- package/lib/index.d.ts +294 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -0
- package/lib/inputs/inputFromDirectory.d.ts +8 -0
- package/lib/inputs/inputFromDirectory.d.ts.map +1 -0
- package/lib/inputs/inputFromDirectory.js +3 -3
- package/lib/inputs/inputFromDirectory.js.map +1 -0
- package/lib/inputs/inputFromOctokit.d.ts +9 -0
- package/lib/inputs/inputFromOctokit.d.ts.map +1 -0
- package/lib/inputs/inputFromOctokit.js +3 -3
- package/lib/inputs/inputFromOctokit.js.map +1 -0
- package/lib/options/readAccess.d.ts +6 -0
- package/lib/options/readAccess.d.ts.map +1 -0
- package/lib/options/readAccess.js +3 -2
- package/lib/options/readAccess.js.map +1 -0
- package/lib/options/readAllContributors.d.ts +7 -0
- package/lib/options/readAllContributors.d.ts.map +1 -0
- package/lib/options/readAllContributors.js +3 -3
- package/lib/options/readAllContributors.js.map +1 -0
- package/lib/options/readAuthor.d.ts +9 -0
- package/lib/options/readAuthor.d.ts.map +1 -0
- package/lib/options/readAuthor.js +3 -2
- package/lib/options/readAuthor.js.map +1 -0
- package/lib/options/readBin.d.ts +6 -0
- package/lib/options/readBin.d.ts.map +1 -0
- package/lib/options/readBin.js +3 -3
- package/lib/options/readBin.js.map +1 -0
- package/lib/options/readDescription.d.ts +6 -0
- package/lib/options/readDescription.d.ts.map +1 -0
- package/lib/options/readDescription.js +3 -3
- package/lib/options/readDescription.js.map +1 -0
- package/lib/options/readDescriptionFromReadme.d.ts +5 -0
- package/lib/options/readDescriptionFromReadme.d.ts.map +1 -0
- package/lib/options/readDescriptionFromReadme.js +3 -2
- package/lib/options/readDescriptionFromReadme.js.map +1 -0
- package/lib/options/readDevelopmentDocumentation.d.ts +6 -0
- package/lib/options/readDevelopmentDocumentation.d.ts.map +1 -0
- package/lib/options/readDevelopmentDocumentation.js +4 -4
- package/lib/options/readDevelopmentDocumentation.js.map +1 -0
- package/lib/options/readDocumentation.d.ts +6 -0
- package/lib/options/readDocumentation.d.ts.map +1 -0
- package/lib/options/readDocumentation.js +3 -2
- package/lib/options/readDocumentation.js.map +1 -0
- package/lib/options/readEmailFromCodeOfConduct.d.ts +6 -0
- package/lib/options/readEmailFromCodeOfConduct.d.ts.map +1 -0
- package/lib/options/readEmailFromCodeOfConduct.js +3 -3
- package/lib/options/readEmailFromCodeOfConduct.js.map +1 -0
- package/lib/options/readEmailFromGit.d.ts +6 -0
- package/lib/options/readEmailFromGit.d.ts.map +1 -0
- package/lib/options/readEmailFromGit.js +3 -3
- package/lib/options/readEmailFromGit.js.map +1 -0
- package/lib/options/readEmailFromNpm.d.ts +7 -0
- package/lib/options/readEmailFromNpm.d.ts.map +1 -0
- package/lib/options/readEmailFromNpm.js +3 -2
- package/lib/options/readEmailFromNpm.js.map +1 -0
- package/lib/options/readEmails.d.ts +9 -0
- package/lib/options/readEmails.d.ts.map +1 -0
- package/lib/options/readEmails.js +3 -2
- package/lib/options/readEmails.js.map +1 -0
- package/lib/options/readEmoji.d.ts +5 -0
- package/lib/options/readEmoji.d.ts.map +1 -0
- package/lib/options/readEmoji.js +3 -2
- package/lib/options/readEmoji.js.map +1 -0
- package/lib/options/readExistingLabels.d.ts +10 -0
- package/lib/options/readExistingLabels.d.ts.map +1 -0
- package/lib/options/readExistingLabels.js +3 -3
- package/lib/options/readExistingLabels.js.map +1 -0
- package/lib/options/readFileAsJson.d.ts +5 -0
- package/lib/options/readFileAsJson.d.ts.map +1 -0
- package/lib/options/readFileAsJson.js +3 -3
- package/lib/options/readFileAsJson.js.map +1 -0
- package/lib/options/readFileSafe.d.ts +5 -0
- package/lib/options/readFileSafe.d.ts.map +1 -0
- package/lib/options/readFileSafe.js +3 -3
- package/lib/options/readFileSafe.js.map +1 -0
- package/lib/options/readFunding.d.ts +6 -0
- package/lib/options/readFunding.d.ts.map +1 -0
- package/lib/options/readFunding.js +3 -3
- package/lib/options/readFunding.js.map +1 -0
- package/lib/options/readGitDefaults.d.ts +7 -0
- package/lib/options/readGitDefaults.d.ts.map +1 -0
- package/lib/options/readGitDefaults.js +3 -3
- package/lib/options/readGitDefaults.js.map +1 -0
- package/lib/options/readGuide.d.ts +9 -0
- package/lib/options/readGuide.d.ts.map +1 -0
- package/lib/options/readGuide.js +3 -3
- package/lib/options/readGuide.js.map +1 -0
- package/lib/options/readKeywords.d.ts +6 -0
- package/lib/options/readKeywords.d.ts.map +1 -0
- package/lib/options/readKeywords.js +3 -2
- package/lib/options/readKeywords.js.map +1 -0
- package/lib/options/readLogo.d.ts +10 -0
- package/lib/options/readLogo.d.ts.map +1 -0
- package/lib/options/readLogo.js +5 -4
- package/lib/options/readLogo.js.map +1 -0
- package/lib/options/readLogoSizing.d.ts +9 -0
- package/lib/options/readLogoSizing.d.ts.map +1 -0
- package/lib/options/readLogoSizing.js +3 -3
- package/lib/options/readLogoSizing.js.map +1 -0
- package/lib/options/readNode.d.ts +9 -0
- package/lib/options/readNode.d.ts.map +1 -0
- package/lib/options/readNode.js +3 -3
- package/lib/options/readNode.js.map +1 -0
- package/lib/options/readNpmDefaults.d.ts +6 -0
- package/lib/options/readNpmDefaults.d.ts.map +1 -0
- package/lib/options/readNpmDefaults.js +3 -3
- package/lib/options/readNpmDefaults.js.map +1 -0
- package/lib/options/readOwner.d.ts +8 -0
- package/lib/options/readOwner.d.ts.map +1 -0
- package/lib/options/readOwner.js +3 -3
- package/lib/options/readOwner.js.map +1 -0
- package/lib/options/readPackageAuthor.d.ts +10 -0
- package/lib/options/readPackageAuthor.d.ts.map +1 -0
- package/lib/options/readPackageAuthor.js +3 -3
- package/lib/options/readPackageAuthor.js.map +1 -0
- package/lib/options/readPackageData.d.ts +7 -0
- package/lib/options/readPackageData.d.ts.map +1 -0
- package/lib/options/readPackageData.js +3 -3
- package/lib/options/readPackageData.js.map +1 -0
- package/lib/options/readPnpm.d.ts +6 -0
- package/lib/options/readPnpm.d.ts.map +1 -0
- package/lib/options/readPnpm.js +3 -2
- package/lib/options/readPnpm.js.map +1 -0
- package/lib/options/readReadmeAdditional.d.ts +5 -0
- package/lib/options/readReadmeAdditional.d.ts.map +1 -0
- package/lib/options/readReadmeAdditional.js +3 -3
- package/lib/options/readReadmeAdditional.js.map +1 -0
- package/lib/options/readReadmeExplainer.d.ts +5 -0
- package/lib/options/readReadmeExplainer.d.ts.map +1 -0
- package/lib/options/readReadmeExplainer.js +3 -2
- package/lib/options/readReadmeExplainer.js.map +1 -0
- package/lib/options/readReadmeFootnotes.d.ts +6 -0
- package/lib/options/readReadmeFootnotes.d.ts.map +1 -0
- package/lib/options/readReadmeFootnotes.js +3 -2
- package/lib/options/readReadmeFootnotes.js.map +1 -0
- package/lib/options/readReadmeUsage.d.ts +5 -0
- package/lib/options/readReadmeUsage.d.ts.map +1 -0
- package/lib/options/readReadmeUsage.js +3 -2
- package/lib/options/readReadmeUsage.js.map +1 -0
- package/lib/options/readRepository.d.ts +10 -0
- package/lib/options/readRepository.d.ts.map +1 -0
- package/lib/options/readRepository.js +3 -2
- package/lib/options/readRepository.js.map +1 -0
- package/lib/options/readRulesetId.d.ts +6 -0
- package/lib/options/readRulesetId.d.ts.map +1 -0
- package/lib/options/readRulesetId.js +3 -3
- package/lib/options/readRulesetId.js.map +1 -0
- package/lib/options/readTitle.d.ts +5 -0
- package/lib/options/readTitle.d.ts.map +1 -0
- package/lib/options/readTitle.js +3 -3
- package/lib/options/readTitle.js.map +1 -0
- package/lib/options/readWords.d.ts +6 -0
- package/lib/options/readWords.d.ts.map +1 -0
- package/lib/options/readWords.js +3 -3
- package/lib/options/readWords.js.map +1 -0
- package/lib/options/readWorkflowsVersions.d.ts +7 -0
- package/lib/options/readWorkflowsVersions.d.ts.map +1 -0
- package/lib/options/readWorkflowsVersions.js +3 -3
- package/lib/options/readWorkflowsVersions.js.map +1 -0
- package/lib/package.json.d.ts +138 -0
- package/lib/package.json.d.ts.map +1 -0
- package/lib/presets/common.d.ts +170 -0
- package/lib/presets/common.d.ts.map +1 -0
- package/lib/presets/common.js +3 -3
- package/lib/presets/common.js.map +1 -0
- package/lib/presets/everything.d.ts +170 -0
- package/lib/presets/everything.d.ts.map +1 -0
- package/lib/presets/everything.js +3 -3
- package/lib/presets/everything.js.map +1 -0
- package/lib/presets/index.d.ts +507 -0
- package/lib/presets/index.d.ts.map +1 -0
- package/lib/presets/index.js +3 -3
- package/lib/presets/index.js.map +1 -0
- package/lib/presets/minimal.d.ts +170 -0
- package/lib/presets/minimal.d.ts.map +1 -0
- package/lib/presets/minimal.js +3 -3
- package/lib/presets/minimal.js.map +1 -0
- package/lib/schemas.d.ts +111 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +3 -3
- package/lib/schemas.js.map +1 -0
- package/lib/template.d.ts +170 -0
- package/lib/template.d.ts.map +1 -0
- package/lib/template.js +3 -3
- package/lib/template.js.map +1 -0
- package/lib/types.d.ts +42 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +1 -1
- package/lib/utils/htmlToTextSafe.d.ts +5 -0
- package/lib/utils/htmlToTextSafe.d.ts.map +1 -0
- package/lib/utils/htmlToTextSafe.js +3 -3
- package/lib/utils/htmlToTextSafe.js.map +1 -0
- package/lib/utils/resolveBin.d.ts +5 -0
- package/lib/utils/resolveBin.d.ts.map +1 -0
- package/lib/utils/resolveBin.js +3 -3
- package/lib/utils/resolveBin.js.map +1 -0
- package/lib/utils/swallowError.d.ts +5 -0
- package/lib/utils/swallowError.d.ts.map +1 -0
- package/lib/utils/swallowError.js +3 -2
- package/lib/utils/swallowError.js.map +1 -0
- package/lib/utils/swallowErrorAsync.d.ts +5 -0
- package/lib/utils/swallowErrorAsync.d.ts.map +1 -0
- package/lib/utils/swallowErrorAsync.js +3 -2
- package/lib/utils/swallowErrorAsync.js.map +1 -0
- package/lib/utils/trimPrecedingSlash.d.ts +5 -0
- package/lib/utils/trimPrecedingSlash.d.ts.map +1 -0
- package/lib/utils/trimPrecedingSlash.js +3 -2
- package/lib/utils/trimPrecedingSlash.js.map +1 -0
- package/lib/utils/tryCatch.d.ts +5 -0
- package/lib/utils/tryCatch.d.ts.map +1 -0
- package/lib/utils/tryCatch.js +3 -2
- package/lib/utils/tryCatch.js.map +1 -0
- package/package.json +40 -40
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
//#region src/blocks/blockDevelopmentDocs.d.ts
|
|
2
|
+
declare const blockDevelopmentDocs: import("bingo-stratum").BlockWithAddons<{
|
|
3
|
+
sections: Record<string, {
|
|
4
|
+
contents?: string | {
|
|
5
|
+
before?: string | undefined;
|
|
6
|
+
after?: string[] | undefined;
|
|
7
|
+
items?: string[] | undefined;
|
|
8
|
+
plural?: string | undefined;
|
|
9
|
+
} | undefined;
|
|
10
|
+
innerSections?: {
|
|
11
|
+
contents: string;
|
|
12
|
+
heading: string;
|
|
13
|
+
}[] | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
hints: string[];
|
|
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
|
+
hash?: string | undefined;
|
|
81
|
+
pinned?: boolean | undefined;
|
|
82
|
+
}>> | undefined;
|
|
83
|
+
}>;
|
|
84
|
+
//#endregion
|
|
85
|
+
export { blockDevelopmentDocs };
|
|
86
|
+
//# sourceMappingURL=blockDevelopmentDocs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockDevelopmentDocs.d.ts","names":[],"sources":["../../src/blocks/blockDevelopmentDocs.ts"],"mappings":";cA0Da,8CAAoB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { base } from "../base.js";
|
|
2
2
|
import { blockRemoveFiles } from "./blockRemoveFiles.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
|
|
5
4
|
//#region src/blocks/blockDevelopmentDocs.ts
|
|
6
5
|
const zInnerSection = z.object({
|
|
7
6
|
contents: z.string(),
|
|
@@ -44,7 +43,7 @@ const blockDevelopmentDocs = base.createBlock({
|
|
|
44
43
|
sections: z.record(z.string(), zSection).default({})
|
|
45
44
|
},
|
|
46
45
|
produce({ addons, options }) {
|
|
47
|
-
|
|
46
|
+
return { files: { ".github": { "DEVELOPMENT.md": [
|
|
48
47
|
`# Development`,
|
|
49
48
|
``,
|
|
50
49
|
...options.guide ? [
|
|
@@ -63,13 +62,13 @@ const blockDevelopmentDocs = base.createBlock({
|
|
|
63
62
|
...addons.hints.length ? [...addons.hints, ``] : [],
|
|
64
63
|
...Object.entries(addons.sections).sort(([a], [b]) => a.localeCompare(b)).flatMap(([heading, section]) => printSection(heading, section)),
|
|
65
64
|
...options.documentation.development ? [options.documentation.development] : []
|
|
66
|
-
];
|
|
67
|
-
return { files: { ".github": { "DEVELOPMENT.md": lines.join("\n") } } };
|
|
65
|
+
].join("\n") } } };
|
|
68
66
|
},
|
|
69
67
|
transition() {
|
|
70
68
|
return { addons: [blockRemoveFiles({ files: ["DEVELOPMENT.md"] })] };
|
|
71
69
|
}
|
|
72
70
|
});
|
|
73
|
-
|
|
74
71
|
//#endregion
|
|
75
|
-
export { blockDevelopmentDocs };
|
|
72
|
+
export { blockDevelopmentDocs };
|
|
73
|
+
|
|
74
|
+
//# sourceMappingURL=blockDevelopmentDocs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
settings?: Record<string, unknown> | undefined;
|
|
19
|
+
extends?: string[] | undefined;
|
|
20
|
+
languageOptions?: unknown;
|
|
21
|
+
linterOptions?: unknown;
|
|
22
|
+
plugins?: Record<string, string> | undefined;
|
|
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
|
+
hash?: string | undefined;
|
|
91
|
+
pinned?: boolean | undefined;
|
|
92
|
+
}>> | undefined;
|
|
93
|
+
}>;
|
|
94
|
+
//#endregion
|
|
95
|
+
export { blockESLint };
|
|
96
|
+
//# sourceMappingURL=blockESLint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockESLint.d.ts","names":[],"sources":["../../src/blocks/blockESLint.ts"],"mappings":";cA2Ba,qCAAW"}
|
|
@@ -16,7 +16,6 @@ import { mergeAllExtensions } from "./eslint/mergeAllExtensions.js";
|
|
|
16
16
|
import { z } from "zod";
|
|
17
17
|
import sortKeys from "sort-keys";
|
|
18
18
|
import { parse } from "parse-package-name";
|
|
19
|
-
|
|
20
19
|
//#region src/blocks/blockESLint.ts
|
|
21
20
|
const blockESLint = base.createBlock({
|
|
22
21
|
about: { name: "ESLint" },
|
|
@@ -39,7 +38,7 @@ const blockESLint = base.createBlock({
|
|
|
39
38
|
produce({ addons, options }) {
|
|
40
39
|
const { explanations, extensions, ignores, imports } = addons;
|
|
41
40
|
const configFileName = options.type === "commonjs" ? "eslint.config.mts" : "eslint.config.ts";
|
|
42
|
-
const explanation = explanations.length > 0 ? `${explanations.map((explanation
|
|
41
|
+
const explanation = explanations.length > 0 ? `${explanations.map((explanation) => `/*\n${explanation}\n*/\n`).join("")}\n` : "";
|
|
43
42
|
const importLines = [
|
|
44
43
|
"import eslint from \"@eslint/js\";",
|
|
45
44
|
"import { defineConfig, globalIgnores } from \"eslint/config\";",
|
|
@@ -193,6 +192,7 @@ function printGroupComment(comment) {
|
|
|
193
192
|
function processForSort(files) {
|
|
194
193
|
return files.join("").replaceAll("{", "");
|
|
195
194
|
}
|
|
196
|
-
|
|
197
195
|
//#endregion
|
|
198
|
-
export { blockESLint };
|
|
196
|
+
export { blockESLint };
|
|
197
|
+
|
|
198
|
+
//# sourceMappingURL=blockESLint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":";;;;;;;;;;;;;;;;;;;AA2BA,MAAa,cAAc,KAAK,YAAY;CAC3C,OAAO,EACN,MAAM,SACP;CACA,QAAQ;EACP,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS;EAChC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;EAC5C,YAAY,EAAE,MAAM,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC;EAC1C,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;EACvC,SAAS,EAAE,MAAM,cAAc,CAAC,CAAC,QAAQ,CAAC,CAAC;CAC5C;CACA,OAAO,EAAE,SAAS;EACjB,MAAM,kBAAkB,WAAW,OAAO,CACzC;GACC;GACA;GACA;GACA;EACD,CACD,CAAC;EAED,OAAO,kBAAkB,kBAAkB,gBAAgB,EAAE,IAAI,KAAA;CAClE;CACA,QAAQ,EAAE,QAAQ,WAAW;EAC5B,MAAM,EAAE,cAAc,YAAY,SAAS,YAAY;EAEvD,MAAM,iBACL,QAAQ,SAAS,aAAa,sBAAsB;EAErD,MAAM,cACL,aAAa,SAAS,IACnB,GAAG,aACF,KAAK,gBAAgB,OAAO,YAAY,OAAO,CAAC,CAChD,KAAK,EAAE,EAAE,MACV;EAEJ,MAAM,cAAc;GACnB;GACA;GACA;GACA,GAAG,QAAQ,KACT,kBACA,UAAU,cAAc,UAAU,SAAS,OAAO,cAAc,WAAW,WAAW,cAAc,SAAS,cAAc,OAAO,YAAY,EAChJ;EACD,CAAC,CAAC,MAAM,GAAG,MACV,EAAE,QAAQ,UAAU,EAAE,CAAC,CAAC,cAAc,EAAE,QAAQ,UAAU,EAAE,CAAC,CAC9D;EAEA,MAAM,cAAc,MAAM,KACzB,IAAI,IACH;GAAC;GAAO;GAAgB;GAAkB,GAAG;EAAO,CAAC,CAAC,KAAK,WAC1D,KAAK,UAAU,MAAM,CACtB,CACD,CACD,CAAC,CAAC,KAAK;EAwCP,MAAM,iBAtCmB,mBACxB;GACC,SAAS;IACR;IACA;IACA;GACD;GACA,OAAO,CAAC,uBAAuB,OAAO,CAAC;GACvC,iBAAiB,EAChB,eAAe,EACd,gBAAgB,EACf,qBAAqB,MAAM,KAC1B,IAAI,IACH,CACC,eACA,GAAI,OAAO,QAAQ,QAAQ,WACxB,OAAO,OAAO,QAAQ,GAAG,IACzB,CAAC,QAAQ,GAAG,CAChB,CAAC,CACC,OAAO,OAAO,CAAC,CACf,KAAK,CACR,CACD,EACD,EACD,EACD;EACD,GACA,GAAG,YACH,GAAI,QAAQ,SAAS,aAClB,CACA;GACC,OAAO,CAAC,OAAO;GACf,iBAAiB,EAAE,YAAY,SAAS;EACzC,CACD,IACC,CAAC,CAGiC,CAAC,CACrC,MAAM,GAAG,MACT,eAAe,EAAE,KAAK,CAAC,CAAC,cAAc,eAAe,EAAE,KAAK,CAAC,CAC9D,CAAC,CACA,IAAI,cAAc;EAEpB,OAAO;GACN,QAAQ;IACP,qBAAqB,EACpB,UAAU,EACT,SAAS,EACR,UAAU;KACT,OAAO,CACN;;;;;;GAOA,GAAI,OAAO,aAAa,CAAC,OAAO,UAAU,IAAI,CAAC,CAChD;KACA,QAAQ;;;;KAIR,OAAO,CACN,2KACD;KACA,QAAQ;IACT,EACD,EACD,EACD,CAAC;IACD,qBAAqB,EACpB,MAAM,CACL;KACC,MAAM;KACN,OAAO,CACN,GAAI,QAAQ,MAAM,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAC7C,EAAE,KAAK,YAAY,CACpB;IACD,CACD,EACD,CAAC;IACD,iBAAiB,EAChB,YAAY;KACX,iBAAiB;MAChB,GAAG,uBACF,cACA,eACA,UACA,qBACA,GAAG,QACD,QAAQ,aAAa,OAAO,SAAS,WAAW,QAAQ,CAAC,CACzD,SAAS,EAAE,QAAQ,YAAY;OAE/B,MAAM,EAAE,SAASA,MAAiB,MAAM;OAGxC,OAAO,QAAQ,CAAC,MAAM,UAAU,MAAM,IAAI,CAAC,IAAI;MAChD,CAAC,CACH;MACA,GAAG,OAAO,YACT,QACE,QAEC,aAEA,OAAO,SAAS,WAAW,QAC7B,CAAC,CACA,KAAK,aAAa,CAClB,SAAS,OAAO,aAChB,SAAS,OAAO,OACjB,CAAC,CACH;KACD;KACA,SAAS,EACR,MAAM,4BACP;IACD,EACD,CAAC;IACD,YAAY;KACX,YAAY,CAAC,wBAAwB;KACrC,UAAU;MACT,4BAA4B,EAC3B,wBAAwB,WACzB;MACA,gBAAgB;OACf;OACA;OACA;OACA;OACA;OACA;OACA;OACA;MACD;MACA,+BAA+B,CAAC;OAAE,MAAM;OAAK,UAAU;MAAO,CAAC;KAChE;IACD,CAAC;GACF;GACA,OAAO,GACL,iBAAiB,GAAG,cAAc,YAAY,KAAK,IAAI,EAAE;;;mBAG3C,YAAY,KAAK,IAAI,EAAE;;GAEvC,eAAe,KAAK,GAAG,EAAE;IAEzB;GACA,SAAS,CACR;IACC,UAAU,CAAC,iBAAiB;IAC5B,OAAO,aAAa;GACrB,CACD;EACD;CACD;CACA,WAAW,EAAE,WAAW;EACvB,OAAO,EACN,QAAQ;GACP,wBAAwB,EACvB,cAAc;IACb;IACA;IACA;IACA;IACA;IACA;IACA;GACD,EACD,CAAC;GACD,iBAAiB,EAChB,OAAO;IACN;IACA;IACA,QAAQ,SAAS,aACd,2BACA;GACJ,EACD,CAAC;GACD,qBAAqB,EACpB,WAAW,CAAC,UAAU,MAAM,EAC7B,CAAC;EACF,EACD;CACD;AACD,CAAC;AAED,SAAS,eAAe,aAAmC;CAC1D,MAAM,4BAAY,IAAI,IAA4C;CAClE,MAAM,UAA8B,CAAC;CAErC,KAAK,MAAM,SAAS,aAAa;EAChC,MAAM,WAAW,UAAU,IAAI,MAAM,OAAO;EAE5C,IAAI,UAAU;GACb,SAAS,UAAU;IAClB,GAAG,SAAS;IACZ,GAAG,MAAM;GACV;GACA;EACD,OAAO;GACN,UAAU,IAAI,MAAM,SAAS,KAAK;GAClC,QAAQ,KAAK,KAAK;EACnB;CACD;CAEA,OAAO;AACR;AAEA,SAAS,eAAe,WAAsB;CAC7C,OAAO;EACN;EACA,UAAU,WAAW,aAAa,UAAU,QAAQ,KAAK,IAAI,EAAE;EAC/D,WAAW,UAAU,MAAM,KAAK,SAAS,KAAK,UAAU,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE;EAC1E,UAAU,mBACT,oBAAoB,KAAK,UAAU,UAAU,eAAe,CAAC,CAAC,QAAQ,2BAAyB,qBAAqB,EAAE;EACvH,UAAU,iBACT,kBAAkB,KAAK,UAAU,UAAU,aAAa;EACzD,UAAU,SAAS,UAAU,oBAAoB,UAAU,KAAK,EAAE;EAClE,UAAU,YACT,aAAa,KAAK,UAAU,SAAS,UAAU,QAAQ,CAAC,EAAE;EAC3D;CACD,CAAC,CACC,OAAO,OAAO,CAAC,CACf,KAAK,GAAG;AACX;AAEA,SAAS,oBAAoB,OAAuB;CACnD,IAAI,CAAC,MAAM,QAAQ,KAAK,GACvB,OAAO,KAAK,UAAU,KAAK;CAG5B,OAAO;EACN;EACA,GAAG,eAAe,KAAK,CAAC,CAAC,SAAS,UAAU,CAC3C,kBAAkB,MAAM,OAAO,GAC/B,GAAG,OAAO,QAAQ,MAAM,OAAO,CAAC,CAAC,KAC/B,CAAC,UAAU,aAAa,IAAI,SAAS,KAAK,KAAK,UAAU,OAAO,EAAE,EACpE,CACD,CAAC;EACD;CACD,CAAC,CAAC,KAAK,EAAE;AACV;AAEA,SAAS,kBAAkB,SAA6B;CACvD,OAAO,UAAU,UAAU,QAAQ,WAAW,MAAM,OAAO,EAAE,MAAM;AACpE;AAEA,SAAS,eAAe,OAAiB;CACxC,OAAO,MAAM,KAAK,EAAE,CAAC,CAAC,WAAW,KAAK,EAAE;AACzC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
hash?: string | undefined;
|
|
67
|
+
pinned?: boolean | undefined;
|
|
68
|
+
}>> | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { blockESLintComments };
|
|
72
|
+
//# sourceMappingURL=blockESLintComments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockESLintComments.d.ts","names":[],"sources":["../../src/blocks/blockESLintComments.ts"],"mappings":";cAIa,6CAAmB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { base } from "../base.js";
|
|
2
2
|
import { getScriptFileExtension } from "./eslint/getScriptFileExtension.js";
|
|
3
3
|
import { blockESLint } from "./blockESLint.js";
|
|
4
|
-
|
|
5
4
|
//#region src/blocks/blockESLintComments.ts
|
|
6
5
|
const blockESLintComments = base.createBlock({
|
|
7
6
|
about: { name: "ESLint Comments Plugin" },
|
|
@@ -18,6 +17,7 @@ const blockESLintComments = base.createBlock({
|
|
|
18
17
|
})] };
|
|
19
18
|
}
|
|
20
19
|
});
|
|
21
|
-
|
|
22
20
|
//#endregion
|
|
23
|
-
export { blockESLintComments };
|
|
21
|
+
export { blockESLintComments };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=blockESLintComments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//#region src/blocks/blockESLintJSDoc.d.ts
|
|
2
|
+
declare const blockESLintJSDoc: 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
|
+
hash?: string | undefined;
|
|
67
|
+
pinned?: boolean | undefined;
|
|
68
|
+
}>> | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { blockESLintJSDoc };
|
|
72
|
+
//# sourceMappingURL=blockESLintJSDoc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockESLintJSDoc.d.ts","names":[],"sources":["../../src/blocks/blockESLintJSDoc.ts"],"mappings":";cAIa,0CAAgB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { base } from "../base.js";
|
|
2
2
|
import { getScriptFileExtension } from "./eslint/getScriptFileExtension.js";
|
|
3
3
|
import { blockESLint } from "./blockESLint.js";
|
|
4
|
-
|
|
5
4
|
//#region src/blocks/blockESLintJSDoc.ts
|
|
6
5
|
const blockESLintJSDoc = base.createBlock({
|
|
7
6
|
about: { name: "ESLint JSDoc Plugin" },
|
|
@@ -22,6 +21,7 @@ const blockESLintJSDoc = base.createBlock({
|
|
|
22
21
|
})] };
|
|
23
22
|
}
|
|
24
23
|
});
|
|
25
|
-
|
|
26
24
|
//#endregion
|
|
27
|
-
export { blockESLintJSDoc };
|
|
25
|
+
export { blockESLintJSDoc };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=blockESLintJSDoc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockESLintJSDoc.js","names":[],"sources":["../../src/blocks/blockESLintJSDoc.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\nimport { getScriptFileExtension } from \"./eslint/getScriptFileExtension.js\";\n\nexport const blockESLintJSDoc = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint JSDoc 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: [\n\t\t\t\t\t\t\t\t'jsdoc.configs[\"flat/contents-typescript-error\"]',\n\t\t\t\t\t\t\t\t'jsdoc.configs[\"flat/logical-typescript-error\"]',\n\t\t\t\t\t\t\t\t'jsdoc.configs[\"flat/stylistic-typescript-error\"]',\n\t\t\t\t\t\t\t],\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: [{ source: \"eslint-plugin-jsdoc\", specifier: \"jsdoc\" }],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAIA,MAAa,mBAAmB,KAAK,YAAY;CAChD,OAAO,EACN,MAAM,sBACP;CACA,QAAQ,EAAE,WAAW;EACpB,OAAO,EACN,QAAQ,CACP,YAAY;GACX,YAAY,CACX;IACC,SAAS;KACR;KACA;KACA;IACD;IACA,OAAO,CAAC,uBAAuB,OAAO,CAAC;GACxC,CACD;GACA,SAAS,CAAC;IAAE,QAAQ;IAAuB,WAAW;GAAQ,CAAC;EAChE,CAAC,CACF,EACD;CACD;AACD,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//#region src/blocks/blockESLintJSONC.d.ts
|
|
2
|
+
declare const blockESLintJSONC: 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
|
+
hash?: string | undefined;
|
|
67
|
+
pinned?: boolean | undefined;
|
|
68
|
+
}>> | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { blockESLintJSONC };
|
|
72
|
+
//# sourceMappingURL=blockESLintJSONC.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockESLintJSONC.d.ts","names":[],"sources":["../../src/blocks/blockESLintJSONC.ts"],"mappings":";cAGa,0CAAgB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { base } from "../base.js";
|
|
2
2
|
import { blockESLint } from "./blockESLint.js";
|
|
3
|
-
|
|
4
3
|
//#region src/blocks/blockESLintJSONC.ts
|
|
5
4
|
const blockESLintJSONC = base.createBlock({
|
|
6
5
|
about: { name: "ESLint JSONC Plugin" },
|
|
@@ -17,6 +16,7 @@ const blockESLintJSONC = base.createBlock({
|
|
|
17
16
|
})] };
|
|
18
17
|
}
|
|
19
18
|
});
|
|
20
|
-
|
|
21
19
|
//#endregion
|
|
22
|
-
export { blockESLintJSONC };
|
|
20
|
+
export { blockESLintJSONC };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=blockESLintJSONC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockESLintJSONC.js","names":[],"sources":["../../src/blocks/blockESLintJSONC.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintJSONC = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint JSONC Plugin\",\n\t},\n\tproduce() {\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: [`jsonc.configs[\"flat/recommended-with-json\"]`],\n\t\t\t\t\t\t\tfiles: [\"**/*.json\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\timports: [{ source: \"eslint-plugin-jsonc\", specifier: \"jsonc\" }],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;AAGA,MAAa,mBAAmB,KAAK,YAAY;CAChD,OAAO,EACN,MAAM,sBACP;CACA,UAAU;EACT,OAAO,EACN,QAAQ,CACP,YAAY;GACX,YAAY,CACX;IACC,SAAS,CAAC,6CAA6C;IACvD,OAAO,CAAC,WAAW;GACpB,CACD;GACA,SAAS,CAAC;IAAE,QAAQ;IAAuB,WAAW;GAAQ,CAAC;EAChE,CAAC,CACF,EACD;CACD;AACD,CAAC"}
|