create-typescript-app 1.75.1 → 1.77.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/README.md +1 -1
- package/lib/bin/help.js +35 -35
- package/lib/bin/help.js.map +1 -1
- package/lib/bin/promptForMode.js +6 -6
- package/lib/bin/promptForMode.js.map +1 -1
- package/lib/create/createWithOptions.js +12 -13
- package/lib/create/createWithOptions.js.map +1 -1
- package/lib/index.d.ts +45 -0
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/lib/next/base.d.ts +101 -0
- package/lib/next/base.js +140 -0
- package/lib/next/base.js.map +1 -0
- package/lib/next/blocks/blockAllContributors.d.ts +48 -0
- package/lib/next/blocks/blockAllContributors.js +59 -0
- package/lib/next/blocks/blockAllContributors.js.map +1 -0
- package/lib/next/blocks/blockAreTheTypesWrong.d.ts +48 -0
- package/lib/next/blocks/blockAreTheTypesWrong.js +29 -0
- package/lib/next/blocks/blockAreTheTypesWrong.js.map +1 -0
- package/lib/next/blocks/blockCSpell.d.ts +51 -0
- package/lib/next/blocks/blockCSpell.js +77 -0
- package/lib/next/blocks/blockCSpell.js.map +1 -0
- package/lib/next/blocks/blockContributingDocs.d.ts +48 -0
- package/lib/next/blocks/blockContributingDocs.js +116 -0
- package/lib/next/blocks/blockContributingDocs.js.map +1 -0
- package/lib/next/blocks/blockContributorCovenant.d.ts +48 -0
- package/lib/next/blocks/blockContributorCovenant.js +151 -0
- package/lib/next/blocks/blockContributorCovenant.js.map +1 -0
- package/lib/next/blocks/blockDevelopmentDocs.d.ts +62 -0
- package/lib/next/blocks/blockDevelopmentDocs.js +86 -0
- package/lib/next/blocks/blockDevelopmentDocs.js.map +1 -0
- package/lib/next/blocks/blockESLint.d.ts +73 -0
- package/lib/next/blocks/blockESLint.js +225 -0
- package/lib/next/blocks/blockESLint.js.map +1 -0
- package/lib/next/blocks/blockESLintComments.d.ts +48 -0
- package/lib/next/blocks/blockESLintComments.js +26 -0
- package/lib/next/blocks/blockESLintComments.js.map +1 -0
- package/lib/next/blocks/blockESLintJSDoc.d.ts +48 -0
- package/lib/next/blocks/blockESLintJSDoc.js +25 -0
- package/lib/next/blocks/blockESLintJSDoc.js.map +1 -0
- package/lib/next/blocks/blockESLintJSONC.d.ts +48 -0
- package/lib/next/blocks/blockESLintJSONC.js +21 -0
- package/lib/next/blocks/blockESLintJSONC.js.map +1 -0
- package/lib/next/blocks/blockESLintMarkdown.d.ts +48 -0
- package/lib/next/blocks/blockESLintMarkdown.js +27 -0
- package/lib/next/blocks/blockESLintMarkdown.js.map +1 -0
- package/lib/next/blocks/blockESLintMoreStyling.d.ts +48 -0
- package/lib/next/blocks/blockESLintMoreStyling.js +34 -0
- package/lib/next/blocks/blockESLintMoreStyling.js.map +1 -0
- package/lib/next/blocks/blockESLintNode.d.ts +48 -0
- package/lib/next/blocks/blockESLintNode.js +33 -0
- package/lib/next/blocks/blockESLintNode.js.map +1 -0
- package/lib/next/blocks/blockESLintPackageJson.d.ts +48 -0
- package/lib/next/blocks/blockESLintPackageJson.js +26 -0
- package/lib/next/blocks/blockESLintPackageJson.js.map +1 -0
- package/lib/next/blocks/blockESLintPerfectionist.d.ts +48 -0
- package/lib/next/blocks/blockESLintPerfectionist.js +32 -0
- package/lib/next/blocks/blockESLintPerfectionist.js.map +1 -0
- package/lib/next/blocks/blockESLintRegexp.d.ts +48 -0
- package/lib/next/blocks/blockESLintRegexp.js +23 -0
- package/lib/next/blocks/blockESLintRegexp.js.map +1 -0
- package/lib/next/blocks/blockESLintYML.d.ts +48 -0
- package/lib/next/blocks/blockESLintYML.js +46 -0
- package/lib/next/blocks/blockESLintYML.js.map +1 -0
- package/lib/next/blocks/blockFunding.d.ts +48 -0
- package/lib/next/blocks/blockFunding.js +20 -0
- package/lib/next/blocks/blockFunding.js.map +1 -0
- package/lib/next/blocks/blockGitHubActionsCI.d.ts +60 -0
- package/lib/next/blocks/blockGitHubActionsCI.js +122 -0
- package/lib/next/blocks/blockGitHubActionsCI.js.map +1 -0
- package/lib/next/blocks/blockGitHubIssueTemplates.d.ts +48 -0
- package/lib/next/blocks/blockGitHubIssueTemplates.js +217 -0
- package/lib/next/blocks/blockGitHubIssueTemplates.js.map +1 -0
- package/lib/next/blocks/blockGitHubPRTemplate.d.ts +48 -0
- package/lib/next/blocks/blockGitHubPRTemplate.js +32 -0
- package/lib/next/blocks/blockGitHubPRTemplate.js.map +1 -0
- package/lib/next/blocks/blockGitignore.d.ts +50 -0
- package/lib/next/blocks/blockGitignore.js +23 -0
- package/lib/next/blocks/blockGitignore.js.map +1 -0
- package/lib/next/blocks/blockKnip.d.ts +48 -0
- package/lib/next/blocks/blockKnip.js +58 -0
- package/lib/next/blocks/blockKnip.js.map +1 -0
- package/lib/next/blocks/blockMITLicense.d.ts +48 -0
- package/lib/next/blocks/blockMITLicense.js +46 -0
- package/lib/next/blocks/blockMITLicense.js.map +1 -0
- package/lib/next/blocks/blockMarkdownlint.d.ts +50 -0
- package/lib/next/blocks/blockMarkdownlint.js +77 -0
- package/lib/next/blocks/blockMarkdownlint.js.map +1 -0
- package/lib/next/blocks/blockNvmrc.d.ts +48 -0
- package/lib/next/blocks/blockNvmrc.js +26 -0
- package/lib/next/blocks/blockNvmrc.js.map +1 -0
- package/lib/next/blocks/blockPRCompliance.d.ts +48 -0
- package/lib/next/blocks/blockPRCompliance.js +48 -0
- package/lib/next/blocks/blockPRCompliance.js.map +1 -0
- package/lib/next/blocks/blockPackageJson.d.ts +56 -0
- package/lib/next/blocks/blockPackageJson.js +81 -0
- package/lib/next/blocks/blockPackageJson.js.map +1 -0
- package/lib/next/blocks/blockPnpmDedupe.d.ts +48 -0
- package/lib/next/blocks/blockPnpmDedupe.js +51 -0
- package/lib/next/blocks/blockPnpmDedupe.js.map +1 -0
- package/lib/next/blocks/blockPrettier.d.ts +57 -0
- package/lib/next/blocks/blockPrettier.js +104 -0
- package/lib/next/blocks/blockPrettier.js.map +1 -0
- package/lib/next/blocks/blockPrettierPluginCurly.d.ts +48 -0
- package/lib/next/blocks/blockPrettierPluginCurly.js +20 -0
- package/lib/next/blocks/blockPrettierPluginCurly.js.map +1 -0
- package/lib/next/blocks/blockPrettierPluginPackageJson.d.ts +48 -0
- package/lib/next/blocks/blockPrettierPluginPackageJson.js +20 -0
- package/lib/next/blocks/blockPrettierPluginPackageJson.js.map +1 -0
- package/lib/next/blocks/blockPrettierPluginSh.d.ts +48 -0
- package/lib/next/blocks/blockPrettierPluginSh.js +20 -0
- package/lib/next/blocks/blockPrettierPluginSh.js.map +1 -0
- package/lib/next/blocks/blockREADME.d.ts +50 -0
- package/lib/next/blocks/blockREADME.js +63 -0
- package/lib/next/blocks/blockREADME.js.map +1 -0
- package/lib/next/blocks/blockReleaseIt.d.ts +48 -0
- package/lib/next/blocks/blockReleaseIt.js +126 -0
- package/lib/next/blocks/blockReleaseIt.js.map +1 -0
- package/lib/next/blocks/blockRenovate.d.ts +48 -0
- package/lib/next/blocks/blockRenovate.js +34 -0
- package/lib/next/blocks/blockRenovate.js.map +1 -0
- package/lib/next/blocks/blockSecurityDocs.d.ts +48 -0
- package/lib/next/blocks/blockSecurityDocs.js +28 -0
- package/lib/next/blocks/blockSecurityDocs.js.map +1 -0
- package/lib/next/blocks/blockTSup.d.ts +50 -0
- package/lib/next/blocks/blockTSup.js +78 -0
- package/lib/next/blocks/blockTSup.js.map +1 -0
- package/lib/next/blocks/blockTemplatedBy.d.ts +50 -0
- package/lib/next/blocks/blockTemplatedBy.js +34 -0
- package/lib/next/blocks/blockTemplatedBy.js.map +1 -0
- package/lib/next/blocks/blockTypeScript.d.ts +48 -0
- package/lib/next/blocks/blockTypeScript.js +109 -0
- package/lib/next/blocks/blockTypeScript.js.map +1 -0
- package/lib/next/blocks/blockVSCode.d.ts +57 -0
- package/lib/next/blocks/blockVSCode.js +87 -0
- package/lib/next/blocks/blockVSCode.js.map +1 -0
- package/lib/next/blocks/blockVitest.d.ts +55 -0
- package/lib/next/blocks/blockVitest.js +154 -0
- package/lib/next/blocks/blockVitest.js.map +1 -0
- package/lib/next/blocks/index.d.ts +43 -0
- package/lib/next/blocks/index.js +43 -0
- package/lib/next/blocks/index.js.map +1 -0
- package/lib/next/blocks/options.fakes.d.ts +13 -0
- package/lib/next/blocks/options.fakes.js +15 -0
- package/lib/next/blocks/options.fakes.js.map +1 -0
- package/lib/next/blocks/packageData.d.ts +5 -0
- package/lib/next/blocks/packageData.js +25 -0
- package/lib/next/blocks/packageData.js.map +1 -0
- package/lib/next/presetCommon.d.ts +99 -0
- package/lib/next/presetCommon.js +21 -0
- package/lib/next/presetCommon.js.map +1 -0
- package/lib/next/presetEverything.d.ts +99 -0
- package/lib/next/presetEverything.js +59 -0
- package/lib/next/presetEverything.js.map +1 -0
- package/lib/next/presetMinimal.d.ts +99 -0
- package/lib/next/presetMinimal.js +45 -0
- package/lib/next/presetMinimal.js.map +1 -0
- package/lib/next/template.d.ts +99 -0
- package/lib/next/template.js +21 -0
- package/lib/next/template.js.map +1 -0
- package/lib/next/utils/removeTrailingSlash.d.ts +3 -0
- package/lib/next/utils/removeTrailingSlash.js +7 -0
- package/lib/next/utils/removeTrailingSlash.js.map +1 -0
- package/lib/next/utils/sortObject.d.ts +5 -0
- package/lib/next/utils/sortObject.js +9 -0
- package/lib/next/utils/sortObject.js.map +1 -0
- package/lib/next/utils/swallowError.d.ts +3 -0
- package/lib/next/utils/swallowError.js +7 -0
- package/lib/next/utils/swallowError.js.map +1 -0
- package/lib/shared/cli/spinners.d.ts +1 -1
- package/lib/shared/cli/spinners.js.map +1 -1
- package/lib/shared/isUsingCreateEngine.d.ts +3 -0
- package/lib/shared/isUsingCreateEngine.js +7 -0
- package/lib/shared/isUsingCreateEngine.js.map +1 -0
- package/lib/shared/options/args.d.ts +39 -13
- package/lib/shared/options/args.js +5 -0
- package/lib/shared/options/args.js.map +1 -1
- package/lib/shared/options/augmentOptionsWithExcludes.js +2 -2
- package/lib/shared/options/augmentOptionsWithExcludes.js.map +1 -1
- package/lib/shared/options/createOptionDefaults/index.d.ts +2 -4
- package/lib/shared/options/createOptionDefaults/index.js +4 -13
- package/lib/shared/options/createOptionDefaults/index.js.map +1 -1
- package/lib/shared/options/createOptionDefaults/readDefaultsFromReadme.js +4 -1
- package/lib/shared/options/createOptionDefaults/readDefaultsFromReadme.js.map +1 -1
- package/lib/shared/options/createOptionDefaults/readEmails.d.ts +11 -0
- package/lib/shared/options/createOptionDefaults/readEmails.js +14 -0
- package/lib/shared/options/createOptionDefaults/readEmails.js.map +1 -0
- package/lib/shared/options/createOptionDefaults/readFunding.d.ts +3 -0
- package/lib/shared/options/createOptionDefaults/readFunding.js +11 -0
- package/lib/shared/options/createOptionDefaults/readFunding.js.map +1 -0
- package/lib/shared/options/createOptionDefaults/readGuide.d.ts +6 -0
- package/lib/shared/options/createOptionDefaults/readGuide.js +18 -0
- package/lib/shared/options/createOptionDefaults/readGuide.js.map +1 -0
- package/lib/shared/options/ensureRepositoryExists.js +1 -1
- package/lib/shared/options/ensureRepositoryExists.js.map +1 -1
- package/lib/shared/options/exclusionKeys.d.ts +1 -1
- package/lib/shared/options/exclusionKeys.js +6 -0
- package/lib/shared/options/exclusionKeys.js.map +1 -1
- package/lib/shared/options/optionsSchema.d.ts +6 -2
- package/lib/shared/options/optionsSchema.js +1 -0
- package/lib/shared/options/optionsSchema.js.map +1 -1
- package/lib/shared/options/readOptions.d.ts +1 -1
- package/lib/shared/options/readOptions.js +1 -0
- package/lib/shared/options/readOptions.js.map +1 -1
- package/lib/shared/types.d.ts +32 -24
- package/lib/steps/addOwnerAsAllContributor.js +2 -2
- package/lib/steps/addOwnerAsAllContributor.js.map +1 -1
- package/lib/steps/clearUnnecessaryFiles.js +3 -4
- package/lib/steps/clearUnnecessaryFiles.js.map +1 -1
- package/lib/steps/finalizeDependencies.js +47 -44
- package/lib/steps/finalizeDependencies.js.map +1 -1
- package/lib/steps/populateCSpellDictionary.js +7 -7
- package/lib/steps/populateCSpellDictionary.js.map +1 -1
- package/lib/steps/removeSetupScripts.js +9 -3
- package/lib/steps/removeSetupScripts.js.map +1 -1
- package/lib/steps/uninstallPackages.js +10 -3
- package/lib/steps/uninstallPackages.js.map +1 -1
- package/lib/steps/updateReadme.d.ts +1 -1
- package/lib/steps/updateReadme.js +1 -1
- package/lib/steps/updateReadme.js.map +1 -1
- package/lib/steps/writeReadme/index.js +19 -19
- package/lib/steps/writeReadme/index.js.map +1 -1
- package/lib/steps/writing/creation/createCSpellConfig.d.ts +7 -0
- package/lib/steps/writing/creation/createCSpellConfig.js +27 -0
- package/lib/steps/writing/creation/createCSpellConfig.js.map +1 -0
- package/lib/steps/writing/creation/createDotGitignore.js +7 -5
- package/lib/steps/writing/creation/createDotGitignore.js.map +1 -1
- package/lib/steps/writing/creation/createESLintConfig.js +22 -46
- package/lib/steps/writing/creation/createESLintConfig.js.map +1 -1
- package/lib/steps/writing/creation/createTsupConfig.js +10 -10
- package/lib/steps/writing/creation/createTsupConfig.js.map +1 -1
- package/lib/steps/writing/creation/dotGitHub/createDevelopment/index.js +57 -41
- package/lib/steps/writing/creation/dotGitHub/createDevelopment/index.js.map +1 -1
- package/lib/steps/writing/creation/dotGitHub/createDevelopment/splitIntoSections.js +1 -1
- package/lib/steps/writing/creation/dotGitHub/createDevelopment/splitIntoSections.js.map +1 -1
- package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.js +5 -5
- package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.js.map +1 -1
- package/lib/steps/writing/creation/dotGitHub/createMultiWorkflowFile.d.ts +11 -9
- package/lib/steps/writing/creation/dotGitHub/createMultiWorkflowFile.js.map +1 -1
- package/lib/steps/writing/creation/dotGitHub/createSoloWorkflowFile.d.ts +16 -16
- package/lib/steps/writing/creation/dotGitHub/createSoloWorkflowFile.js.map +1 -1
- package/lib/steps/writing/creation/dotGitHub/createWorkflows.js +5 -1
- package/lib/steps/writing/creation/dotGitHub/createWorkflows.js.map +1 -1
- package/lib/steps/writing/creation/formatters/formatIgnoreFile.d.ts +1 -1
- package/lib/steps/writing/creation/formatters/formatIgnoreFile.js +1 -1
- package/lib/steps/writing/creation/formatters/formatIgnoreFile.js.map +1 -1
- package/lib/steps/writing/creation/formatters/formatTypeScript.js +1 -1
- package/lib/steps/writing/creation/formatters/formatTypeScript.js.map +1 -1
- package/lib/steps/writing/creation/formatters/formatYaml.js +3 -1
- package/lib/steps/writing/creation/formatters/formatYaml.js.map +1 -1
- package/lib/steps/writing/creation/index.d.ts +1 -1
- package/lib/steps/writing/creation/index.js +49 -1
- package/lib/steps/writing/creation/index.js.map +1 -1
- package/lib/steps/writing/creation/rootFiles.js +5 -15
- package/lib/steps/writing/creation/rootFiles.js.map +1 -1
- package/lib/steps/writing/creation/writePackageJson.js +69 -62
- package/lib/steps/writing/creation/writePackageJson.js.map +1 -1
- package/lib/steps/writing/types.d.ts +1 -1
- package/lib/steps/writing/writeStructure.js +9 -1
- package/lib/steps/writing/writeStructure.js.map +1 -1
- package/lib/steps/writing/writeStructureWorker.js +1 -1
- package/lib/steps/writing/writeStructureWorker.js.map +1 -1
- package/package.json +57 -52
- package/lib/shared/options/createOptionDefaults/readDefaultsFromDevelopment.d.ts +0 -8
- package/lib/shared/options/createOptionDefaults/readDefaultsFromDevelopment.js +0 -22
- package/lib/shared/options/createOptionDefaults/readDefaultsFromDevelopment.js.map +0 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockESLintComments: create.BlockWithoutAddons<{
|
|
4
|
+
description: string;
|
|
5
|
+
email: {
|
|
6
|
+
github: string;
|
|
7
|
+
npm: string;
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
owner: string;
|
|
11
|
+
repository: string;
|
|
12
|
+
access?: "public" | "restricted" | undefined;
|
|
13
|
+
author?: string | undefined;
|
|
14
|
+
bin?: string | undefined;
|
|
15
|
+
login?: string | undefined;
|
|
16
|
+
contributors?: {
|
|
17
|
+
name: string;
|
|
18
|
+
avatar_url: string;
|
|
19
|
+
contributions: string[];
|
|
20
|
+
login: string;
|
|
21
|
+
profile: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
documentation?: string | undefined;
|
|
24
|
+
funding?: string | undefined;
|
|
25
|
+
guide?: {
|
|
26
|
+
href: string;
|
|
27
|
+
title: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
hideTemplatedBy?: boolean | undefined;
|
|
30
|
+
keywords?: string[] | undefined;
|
|
31
|
+
logo?: {
|
|
32
|
+
alt: string;
|
|
33
|
+
src: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
node?: {
|
|
36
|
+
minimum: string;
|
|
37
|
+
pinned?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
packageData?: {
|
|
40
|
+
dependencies?: Record<string, string> | undefined;
|
|
41
|
+
devDependencies?: Record<string, string> | undefined;
|
|
42
|
+
scripts?: Record<string, string> | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
export { blockESLintComments };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { base } from "../base.js";
|
|
2
|
+
import { blockESLint } from "./blockESLint.js";
|
|
3
|
+
const blockESLintComments = base.createBlock({
|
|
4
|
+
about: {
|
|
5
|
+
name: "ESLint Comments Plugin"
|
|
6
|
+
},
|
|
7
|
+
produce() {
|
|
8
|
+
return {
|
|
9
|
+
addons: [
|
|
10
|
+
blockESLint({
|
|
11
|
+
extensions: ["comments.recommended"],
|
|
12
|
+
imports: [
|
|
13
|
+
{
|
|
14
|
+
source: "@eslint-community/eslint-plugin-eslint-comments/configs",
|
|
15
|
+
specifier: "comments"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
})
|
|
19
|
+
]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
blockESLintComments
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=blockESLintComments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockESLintComments.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintComments = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint Comments Plugin\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [\"comments.recommended\"],\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":"AAAA,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAErB,MAAM,sBAAsB,KAAK,YAAY;AAAA,EACnD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,YAAY,CAAC,sBAAsB;AAAA,UACnC,SAAS;AAAA,YACR;AAAA,cACC,QAAQ;AAAA,cACR,WAAW;AAAA,YACZ;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockESLintJSDoc: create.BlockWithoutAddons<{
|
|
4
|
+
description: string;
|
|
5
|
+
email: {
|
|
6
|
+
github: string;
|
|
7
|
+
npm: string;
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
owner: string;
|
|
11
|
+
repository: string;
|
|
12
|
+
access?: "public" | "restricted" | undefined;
|
|
13
|
+
author?: string | undefined;
|
|
14
|
+
bin?: string | undefined;
|
|
15
|
+
login?: string | undefined;
|
|
16
|
+
contributors?: {
|
|
17
|
+
name: string;
|
|
18
|
+
avatar_url: string;
|
|
19
|
+
contributions: string[];
|
|
20
|
+
login: string;
|
|
21
|
+
profile: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
documentation?: string | undefined;
|
|
24
|
+
funding?: string | undefined;
|
|
25
|
+
guide?: {
|
|
26
|
+
href: string;
|
|
27
|
+
title: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
hideTemplatedBy?: boolean | undefined;
|
|
30
|
+
keywords?: string[] | undefined;
|
|
31
|
+
logo?: {
|
|
32
|
+
alt: string;
|
|
33
|
+
src: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
node?: {
|
|
36
|
+
minimum: string;
|
|
37
|
+
pinned?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
packageData?: {
|
|
40
|
+
dependencies?: Record<string, string> | undefined;
|
|
41
|
+
devDependencies?: Record<string, string> | undefined;
|
|
42
|
+
scripts?: Record<string, string> | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
export { blockESLintJSDoc };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { base } from "../base.js";
|
|
2
|
+
import { blockESLint } from "./blockESLint.js";
|
|
3
|
+
const blockESLintJSDoc = base.createBlock({
|
|
4
|
+
about: {
|
|
5
|
+
name: "ESLint JSDoc Plugin"
|
|
6
|
+
},
|
|
7
|
+
produce() {
|
|
8
|
+
return {
|
|
9
|
+
addons: [
|
|
10
|
+
blockESLint({
|
|
11
|
+
extensions: [
|
|
12
|
+
'jsdoc.configs["flat/contents-typescript-error"]',
|
|
13
|
+
'jsdoc.configs["flat/logical-typescript-error"]',
|
|
14
|
+
'jsdoc.configs["flat/stylistic-typescript-error"]'
|
|
15
|
+
],
|
|
16
|
+
imports: [{ source: "eslint-plugin-jsdoc", specifier: "jsdoc" }]
|
|
17
|
+
})
|
|
18
|
+
]
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
blockESLintJSDoc
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=blockESLintJSDoc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockESLintJSDoc.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintJSDoc = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint JSDoc 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'jsdoc.configs[\"flat/contents-typescript-error\"]',\n\t\t\t\t\t\t'jsdoc.configs[\"flat/logical-typescript-error\"]',\n\t\t\t\t\t\t'jsdoc.configs[\"flat/stylistic-typescript-error\"]',\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":"AAAA,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAErB,MAAM,mBAAmB,KAAK,YAAY;AAAA,EAChD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,YAAY;AAAA,YACX;AAAA,YACA;AAAA,YACA;AAAA,UACD;AAAA,UACA,SAAS,CAAC,EAAE,QAAQ,uBAAuB,WAAW,QAAQ,CAAC;AAAA,QAChE,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockESLintJSONC: create.BlockWithoutAddons<{
|
|
4
|
+
description: string;
|
|
5
|
+
email: {
|
|
6
|
+
github: string;
|
|
7
|
+
npm: string;
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
owner: string;
|
|
11
|
+
repository: string;
|
|
12
|
+
access?: "public" | "restricted" | undefined;
|
|
13
|
+
author?: string | undefined;
|
|
14
|
+
bin?: string | undefined;
|
|
15
|
+
login?: string | undefined;
|
|
16
|
+
contributors?: {
|
|
17
|
+
name: string;
|
|
18
|
+
avatar_url: string;
|
|
19
|
+
contributions: string[];
|
|
20
|
+
login: string;
|
|
21
|
+
profile: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
documentation?: string | undefined;
|
|
24
|
+
funding?: string | undefined;
|
|
25
|
+
guide?: {
|
|
26
|
+
href: string;
|
|
27
|
+
title: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
hideTemplatedBy?: boolean | undefined;
|
|
30
|
+
keywords?: string[] | undefined;
|
|
31
|
+
logo?: {
|
|
32
|
+
alt: string;
|
|
33
|
+
src: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
node?: {
|
|
36
|
+
minimum: string;
|
|
37
|
+
pinned?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
packageData?: {
|
|
40
|
+
dependencies?: Record<string, string> | undefined;
|
|
41
|
+
devDependencies?: Record<string, string> | undefined;
|
|
42
|
+
scripts?: Record<string, string> | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
export { blockESLintJSONC };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { base } from "../base.js";
|
|
2
|
+
import { blockESLint } from "./blockESLint.js";
|
|
3
|
+
const blockESLintJSONC = base.createBlock({
|
|
4
|
+
about: {
|
|
5
|
+
name: "ESLint JSONC Plugin"
|
|
6
|
+
},
|
|
7
|
+
produce() {
|
|
8
|
+
return {
|
|
9
|
+
addons: [
|
|
10
|
+
blockESLint({
|
|
11
|
+
extensions: [`jsonc.configs["flat/recommended-with-json"]`],
|
|
12
|
+
imports: [{ source: "eslint-plugin-jsonc", specifier: "jsonc" }]
|
|
13
|
+
})
|
|
14
|
+
]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
blockESLintJSONC
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=blockESLintJSONC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/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: [`jsonc.configs[\"flat/recommended-with-json\"]`],\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":"AAAA,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAErB,MAAM,mBAAmB,KAAK,YAAY;AAAA,EAChD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,YAAY,CAAC,6CAA6C;AAAA,UAC1D,SAAS,CAAC,EAAE,QAAQ,uBAAuB,WAAW,QAAQ,CAAC;AAAA,QAChE,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockESLintMarkdown: create.BlockWithoutAddons<{
|
|
4
|
+
description: string;
|
|
5
|
+
email: {
|
|
6
|
+
github: string;
|
|
7
|
+
npm: string;
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
owner: string;
|
|
11
|
+
repository: string;
|
|
12
|
+
access?: "public" | "restricted" | undefined;
|
|
13
|
+
author?: string | undefined;
|
|
14
|
+
bin?: string | undefined;
|
|
15
|
+
login?: string | undefined;
|
|
16
|
+
contributors?: {
|
|
17
|
+
name: string;
|
|
18
|
+
avatar_url: string;
|
|
19
|
+
contributions: string[];
|
|
20
|
+
login: string;
|
|
21
|
+
profile: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
documentation?: string | undefined;
|
|
24
|
+
funding?: string | undefined;
|
|
25
|
+
guide?: {
|
|
26
|
+
href: string;
|
|
27
|
+
title: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
hideTemplatedBy?: boolean | undefined;
|
|
30
|
+
keywords?: string[] | undefined;
|
|
31
|
+
logo?: {
|
|
32
|
+
alt: string;
|
|
33
|
+
src: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
node?: {
|
|
36
|
+
minimum: string;
|
|
37
|
+
pinned?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
packageData?: {
|
|
40
|
+
dependencies?: Record<string, string> | undefined;
|
|
41
|
+
devDependencies?: Record<string, string> | undefined;
|
|
42
|
+
scripts?: Record<string, string> | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
export { blockESLintMarkdown };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { base } from "../base.js";
|
|
2
|
+
import { blockESLint } from "./blockESLint.js";
|
|
3
|
+
const blockESLintMarkdown = base.createBlock({
|
|
4
|
+
about: {
|
|
5
|
+
name: "ESLint Markdown Plugin"
|
|
6
|
+
},
|
|
7
|
+
produce() {
|
|
8
|
+
return {
|
|
9
|
+
addons: [
|
|
10
|
+
blockESLint({
|
|
11
|
+
extensions: ["markdown.configs.recommended"],
|
|
12
|
+
imports: [
|
|
13
|
+
{
|
|
14
|
+
source: "eslint-plugin-markdown",
|
|
15
|
+
specifier: "markdown",
|
|
16
|
+
types: true
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
})
|
|
20
|
+
]
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
blockESLintMarkdown
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=blockESLintMarkdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockESLintMarkdown.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintMarkdown = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint Markdown Plugin\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [\"markdown.configs.recommended\"],\n\t\t\t\t\timports: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsource: \"eslint-plugin-markdown\",\n\t\t\t\t\t\t\tspecifier: \"markdown\",\n\t\t\t\t\t\t\ttypes: true,\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":"AAAA,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAErB,MAAM,sBAAsB,KAAK,YAAY;AAAA,EACnD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,YAAY,CAAC,8BAA8B;AAAA,UAC3C,SAAS;AAAA,YACR;AAAA,cACC,QAAQ;AAAA,cACR,WAAW;AAAA,cACX,OAAO;AAAA,YACR;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockESLintMoreStyling: create.BlockWithoutAddons<{
|
|
4
|
+
description: string;
|
|
5
|
+
email: {
|
|
6
|
+
github: string;
|
|
7
|
+
npm: string;
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
owner: string;
|
|
11
|
+
repository: string;
|
|
12
|
+
access?: "public" | "restricted" | undefined;
|
|
13
|
+
author?: string | undefined;
|
|
14
|
+
bin?: string | undefined;
|
|
15
|
+
login?: string | undefined;
|
|
16
|
+
contributors?: {
|
|
17
|
+
name: string;
|
|
18
|
+
avatar_url: string;
|
|
19
|
+
contributions: string[];
|
|
20
|
+
login: string;
|
|
21
|
+
profile: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
documentation?: string | undefined;
|
|
24
|
+
funding?: string | undefined;
|
|
25
|
+
guide?: {
|
|
26
|
+
href: string;
|
|
27
|
+
title: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
hideTemplatedBy?: boolean | undefined;
|
|
30
|
+
keywords?: string[] | undefined;
|
|
31
|
+
logo?: {
|
|
32
|
+
alt: string;
|
|
33
|
+
src: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
node?: {
|
|
36
|
+
minimum: string;
|
|
37
|
+
pinned?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
packageData?: {
|
|
40
|
+
dependencies?: Record<string, string> | undefined;
|
|
41
|
+
devDependencies?: Record<string, string> | undefined;
|
|
42
|
+
scripts?: Record<string, string> | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
export { blockESLintMoreStyling };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { base } from "../base.js";
|
|
2
|
+
import { blockESLint } from "./blockESLint.js";
|
|
3
|
+
const blockESLintMoreStyling = base.createBlock({
|
|
4
|
+
about: {
|
|
5
|
+
name: "ESLint More Styling"
|
|
6
|
+
},
|
|
7
|
+
produce() {
|
|
8
|
+
return {
|
|
9
|
+
addons: [
|
|
10
|
+
blockESLint({
|
|
11
|
+
rules: [
|
|
12
|
+
{
|
|
13
|
+
comment: "Stylistic concerns that don't interfere with Prettier",
|
|
14
|
+
entries: {
|
|
15
|
+
"logical-assignment-operators": [
|
|
16
|
+
"error",
|
|
17
|
+
"always",
|
|
18
|
+
{ enforceForIfStatements: true }
|
|
19
|
+
],
|
|
20
|
+
"no-useless-rename": "error",
|
|
21
|
+
"object-shorthand": "error",
|
|
22
|
+
"operator-assignment": "error"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
})
|
|
27
|
+
]
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
blockESLintMoreStyling
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=blockESLintMoreStyling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockESLintMoreStyling.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintMoreStyling = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint More Styling\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockESLint({\n\t\t\t\t\trules: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcomment: \"Stylistic concerns that don't interfere with Prettier\",\n\t\t\t\t\t\t\tentries: {\n\t\t\t\t\t\t\t\t\"logical-assignment-operators\": [\n\t\t\t\t\t\t\t\t\t\"error\",\n\t\t\t\t\t\t\t\t\t\"always\",\n\t\t\t\t\t\t\t\t\t{ enforceForIfStatements: true },\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\"no-useless-rename\": \"error\",\n\t\t\t\t\t\t\t\t\"object-shorthand\": \"error\",\n\t\t\t\t\t\t\t\t\"operator-assignment\": \"error\",\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};\n\t},\n});\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAErB,MAAM,yBAAyB,KAAK,YAAY;AAAA,EACtD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,OAAO;AAAA,YACN;AAAA,cACC,SAAS;AAAA,cACT,SAAS;AAAA,gBACR,gCAAgC;AAAA,kBAC/B;AAAA,kBACA;AAAA,kBACA,EAAE,wBAAwB,KAAK;AAAA,gBAChC;AAAA,gBACA,qBAAqB;AAAA,gBACrB,oBAAoB;AAAA,gBACpB,uBAAuB;AAAA,cACxB;AAAA,YACD;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockESLintNode: create.BlockWithoutAddons<{
|
|
4
|
+
description: string;
|
|
5
|
+
email: {
|
|
6
|
+
github: string;
|
|
7
|
+
npm: string;
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
owner: string;
|
|
11
|
+
repository: string;
|
|
12
|
+
access?: "public" | "restricted" | undefined;
|
|
13
|
+
author?: string | undefined;
|
|
14
|
+
bin?: string | undefined;
|
|
15
|
+
login?: string | undefined;
|
|
16
|
+
contributors?: {
|
|
17
|
+
name: string;
|
|
18
|
+
avatar_url: string;
|
|
19
|
+
contributions: string[];
|
|
20
|
+
login: string;
|
|
21
|
+
profile: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
documentation?: string | undefined;
|
|
24
|
+
funding?: string | undefined;
|
|
25
|
+
guide?: {
|
|
26
|
+
href: string;
|
|
27
|
+
title: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
hideTemplatedBy?: boolean | undefined;
|
|
30
|
+
keywords?: string[] | undefined;
|
|
31
|
+
logo?: {
|
|
32
|
+
alt: string;
|
|
33
|
+
src: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
node?: {
|
|
36
|
+
minimum: string;
|
|
37
|
+
pinned?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
packageData?: {
|
|
40
|
+
dependencies?: Record<string, string> | undefined;
|
|
41
|
+
devDependencies?: Record<string, string> | undefined;
|
|
42
|
+
scripts?: Record<string, string> | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
export { blockESLintNode };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { base } from "../base.js";
|
|
2
|
+
import { blockESLint } from "./blockESLint.js";
|
|
3
|
+
const blockESLintNode = base.createBlock({
|
|
4
|
+
about: {
|
|
5
|
+
name: "ESLint Node Plugin"
|
|
6
|
+
},
|
|
7
|
+
produce({ options }) {
|
|
8
|
+
return {
|
|
9
|
+
addons: [
|
|
10
|
+
blockESLint({
|
|
11
|
+
extensions: [
|
|
12
|
+
'n.configs["flat/recommended"]',
|
|
13
|
+
{
|
|
14
|
+
extends: ["tseslint.configs.disableTypeChecked"],
|
|
15
|
+
files: ["**/*.md/*.ts"],
|
|
16
|
+
rules: {
|
|
17
|
+
"n/no-missing-import": [
|
|
18
|
+
"error",
|
|
19
|
+
{ allowModules: [options.repository] }
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
imports: [{ source: "eslint-plugin-n", specifier: "n" }]
|
|
25
|
+
})
|
|
26
|
+
]
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
blockESLintNode
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=blockESLintNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockESLintNode.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintNode = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint Node 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.configs[\"flat/recommended\"]',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\textends: [\"tseslint.configs.disableTypeChecked\"],\n\t\t\t\t\t\t\tfiles: [\"**/*.md/*.ts\"],\n\t\t\t\t\t\t\trules: {\n\t\t\t\t\t\t\t\t\"n/no-missing-import\": [\n\t\t\t\t\t\t\t\t\t\"error\",\n\t\t\t\t\t\t\t\t\t{ allowModules: [options.repository] },\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\timports: [{ source: \"eslint-plugin-n\", specifier: \"n\" }],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAErB,MAAM,kBAAkB,KAAK,YAAY;AAAA,EAC/C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ,EAAE,QAAQ,GAAG;AACpB,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,YAAY;AAAA,YACX;AAAA,YACA;AAAA,cACC,SAAS,CAAC,qCAAqC;AAAA,cAC/C,OAAO,CAAC,cAAc;AAAA,cACtB,OAAO;AAAA,gBACN,uBAAuB;AAAA,kBACtB;AAAA,kBACA,EAAE,cAAc,CAAC,QAAQ,UAAU,EAAE;AAAA,gBACtC;AAAA,cACD;AAAA,YACD;AAAA,UACD;AAAA,UACA,SAAS,CAAC,EAAE,QAAQ,mBAAmB,WAAW,IAAI,CAAC;AAAA,QACxD,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockESLintPackageJson: create.BlockWithoutAddons<{
|
|
4
|
+
description: string;
|
|
5
|
+
email: {
|
|
6
|
+
github: string;
|
|
7
|
+
npm: string;
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
owner: string;
|
|
11
|
+
repository: string;
|
|
12
|
+
access?: "public" | "restricted" | undefined;
|
|
13
|
+
author?: string | undefined;
|
|
14
|
+
bin?: string | undefined;
|
|
15
|
+
login?: string | undefined;
|
|
16
|
+
contributors?: {
|
|
17
|
+
name: string;
|
|
18
|
+
avatar_url: string;
|
|
19
|
+
contributions: string[];
|
|
20
|
+
login: string;
|
|
21
|
+
profile: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
documentation?: string | undefined;
|
|
24
|
+
funding?: string | undefined;
|
|
25
|
+
guide?: {
|
|
26
|
+
href: string;
|
|
27
|
+
title: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
hideTemplatedBy?: boolean | undefined;
|
|
30
|
+
keywords?: string[] | undefined;
|
|
31
|
+
logo?: {
|
|
32
|
+
alt: string;
|
|
33
|
+
src: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
node?: {
|
|
36
|
+
minimum: string;
|
|
37
|
+
pinned?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
packageData?: {
|
|
40
|
+
dependencies?: Record<string, string> | undefined;
|
|
41
|
+
devDependencies?: Record<string, string> | undefined;
|
|
42
|
+
scripts?: Record<string, string> | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
export { blockESLintPackageJson };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { base } from "../base.js";
|
|
2
|
+
import { blockESLint } from "./blockESLint.js";
|
|
3
|
+
const blockESLintPackageJson = base.createBlock({
|
|
4
|
+
about: {
|
|
5
|
+
name: "ESLint package.json Plugin"
|
|
6
|
+
},
|
|
7
|
+
produce() {
|
|
8
|
+
return {
|
|
9
|
+
addons: [
|
|
10
|
+
blockESLint({
|
|
11
|
+
extensions: ["packageJson"],
|
|
12
|
+
imports: [
|
|
13
|
+
{
|
|
14
|
+
source: "eslint-plugin-package-json/configs/recommended",
|
|
15
|
+
specifier: "packageJson"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
})
|
|
19
|
+
]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
blockESLintPackageJson
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=blockESLintPackageJson.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockESLintPackageJson.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintPackageJson = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint package.json Plugin\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [\"packageJson\"],\n\t\t\t\t\timports: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsource: \"eslint-plugin-package-json/configs/recommended\",\n\t\t\t\t\t\t\tspecifier: \"packageJson\",\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":"AAAA,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAErB,MAAM,yBAAyB,KAAK,YAAY;AAAA,EACtD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,YAAY,CAAC,aAAa;AAAA,UAC1B,SAAS;AAAA,YACR;AAAA,cACC,QAAQ;AAAA,cACR,WAAW;AAAA,YACZ;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockESLintPerfectionist: create.BlockWithoutAddons<{
|
|
4
|
+
description: string;
|
|
5
|
+
email: {
|
|
6
|
+
github: string;
|
|
7
|
+
npm: string;
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
owner: string;
|
|
11
|
+
repository: string;
|
|
12
|
+
access?: "public" | "restricted" | undefined;
|
|
13
|
+
author?: string | undefined;
|
|
14
|
+
bin?: string | undefined;
|
|
15
|
+
login?: string | undefined;
|
|
16
|
+
contributors?: {
|
|
17
|
+
name: string;
|
|
18
|
+
avatar_url: string;
|
|
19
|
+
contributions: string[];
|
|
20
|
+
login: string;
|
|
21
|
+
profile: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
documentation?: string | undefined;
|
|
24
|
+
funding?: string | undefined;
|
|
25
|
+
guide?: {
|
|
26
|
+
href: string;
|
|
27
|
+
title: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
hideTemplatedBy?: boolean | undefined;
|
|
30
|
+
keywords?: string[] | undefined;
|
|
31
|
+
logo?: {
|
|
32
|
+
alt: string;
|
|
33
|
+
src: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
node?: {
|
|
36
|
+
minimum: string;
|
|
37
|
+
pinned?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
packageData?: {
|
|
40
|
+
dependencies?: Record<string, string> | undefined;
|
|
41
|
+
devDependencies?: Record<string, string> | undefined;
|
|
42
|
+
scripts?: Record<string, string> | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
export { blockESLintPerfectionist };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { base } from "../base.js";
|
|
2
|
+
import { blockESLint } from "./blockESLint.js";
|
|
3
|
+
const blockESLintPerfectionist = base.createBlock({
|
|
4
|
+
about: {
|
|
5
|
+
name: "ESLint Perfectionist Plugin"
|
|
6
|
+
},
|
|
7
|
+
produce() {
|
|
8
|
+
return {
|
|
9
|
+
addons: [
|
|
10
|
+
blockESLint({
|
|
11
|
+
extensions: [`perfectionist.configs["recommended-natural"]`],
|
|
12
|
+
imports: [
|
|
13
|
+
{
|
|
14
|
+
source: "eslint-plugin-perfectionist",
|
|
15
|
+
specifier: "perfectionist"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
settings: {
|
|
19
|
+
perfectionist: {
|
|
20
|
+
partitionByComment: true,
|
|
21
|
+
type: "natural"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
blockESLintPerfectionist
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=blockESLintPerfectionist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockESLintPerfectionist.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintPerfectionist = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint Perfectionist Plugin\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [`perfectionist.configs[\"recommended-natural\"]`],\n\t\t\t\t\timports: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsource: \"eslint-plugin-perfectionist\",\n\t\t\t\t\t\t\tspecifier: \"perfectionist\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\tsettings: {\n\t\t\t\t\t\tperfectionist: {\n\t\t\t\t\t\t\tpartitionByComment: true,\n\t\t\t\t\t\t\ttype: \"natural\",\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":"AAAA,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAErB,MAAM,2BAA2B,KAAK,YAAY;AAAA,EACxD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,YAAY,CAAC,8CAA8C;AAAA,UAC3D,SAAS;AAAA,YACR;AAAA,cACC,QAAQ;AAAA,cACR,WAAW;AAAA,YACZ;AAAA,UACD;AAAA,UACA,UAAU;AAAA,YACT,eAAe;AAAA,cACd,oBAAoB;AAAA,cACpB,MAAM;AAAA,YACP;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|