create-typescript-app 1.76.0 → 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/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/isUsingCreateEngine.d.ts +3 -0
- package/lib/shared/isUsingCreateEngine.js +7 -0
- package/lib/shared/isUsingCreateEngine.js.map +1 -0
- 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/types.d.ts +7 -0
- package/lib/steps/addOwnerAsAllContributor.js.map +1 -1
- package/lib/steps/clearUnnecessaryFiles.js +0 -1
- 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/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/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 +1 -3
- 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 +31 -16
- 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 +3 -1
- package/lib/steps/writing/creation/dotGitHub/createMultiWorkflowFile.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 +4 -14
- 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 +13 -8
- 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 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":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockESLintRegexp: 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 { blockESLintRegexp };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { base } from "../base.js";
|
|
2
|
+
import { blockESLint } from "./blockESLint.js";
|
|
3
|
+
const blockESLintRegexp = base.createBlock({
|
|
4
|
+
about: {
|
|
5
|
+
name: "ESLint Regexp Plugin"
|
|
6
|
+
},
|
|
7
|
+
produce() {
|
|
8
|
+
return {
|
|
9
|
+
addons: [
|
|
10
|
+
blockESLint({
|
|
11
|
+
extensions: [`regexp.configs["flat/recommended"]`],
|
|
12
|
+
imports: [
|
|
13
|
+
{ source: "eslint-plugin-regexp", specifier: "* as regexp" }
|
|
14
|
+
]
|
|
15
|
+
})
|
|
16
|
+
]
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
blockESLintRegexp
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=blockESLintRegexp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockESLintRegexp.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintRegexp = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint Regexp Plugin\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [`regexp.configs[\"flat/recommended\"]`],\n\t\t\t\t\timports: [\n\t\t\t\t\t\t{ source: \"eslint-plugin-regexp\", specifier: \"* as regexp\" },\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,oBAAoB,KAAK,YAAY;AAAA,EACjD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,YAAY,CAAC,oCAAoC;AAAA,UACjD,SAAS;AAAA,YACR,EAAE,QAAQ,wBAAwB,WAAW,cAAc;AAAA,UAC5D;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 blockESLintYML: 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 { blockESLintYML };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { base } from "../base.js";
|
|
2
|
+
import { blockESLint } from "./blockESLint.js";
|
|
3
|
+
const blockESLintYML = base.createBlock({
|
|
4
|
+
about: {
|
|
5
|
+
name: "ESLint YML Plugin"
|
|
6
|
+
},
|
|
7
|
+
produce() {
|
|
8
|
+
return {
|
|
9
|
+
addons: [
|
|
10
|
+
blockESLint({
|
|
11
|
+
extensions: [
|
|
12
|
+
{
|
|
13
|
+
extends: [
|
|
14
|
+
'yml.configs["flat/recommended"]',
|
|
15
|
+
'yml.configs["flat/prettier"]'
|
|
16
|
+
],
|
|
17
|
+
files: ["**/*.{yml,yaml}"],
|
|
18
|
+
rules: {
|
|
19
|
+
"yml/file-extension": ["error", { extension: "yml" }],
|
|
20
|
+
"yml/sort-keys": [
|
|
21
|
+
"error",
|
|
22
|
+
{
|
|
23
|
+
order: { type: "asc" },
|
|
24
|
+
pathPattern: "^.*$"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"yml/sort-sequence-values": [
|
|
28
|
+
"error",
|
|
29
|
+
{
|
|
30
|
+
order: { type: "asc" },
|
|
31
|
+
pathPattern: "^.*$"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
imports: [{ source: "eslint-plugin-yml", specifier: "yml" }]
|
|
38
|
+
})
|
|
39
|
+
]
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
blockESLintYML
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=blockESLintYML.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockESLintYML.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintYML = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint YML 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: [\n\t\t\t\t\t\t\t\t'yml.configs[\"flat/recommended\"]',\n\t\t\t\t\t\t\t\t'yml.configs[\"flat/prettier\"]',\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tfiles: [\"**/*.{yml,yaml}\"],\n\t\t\t\t\t\t\trules: {\n\t\t\t\t\t\t\t\t\"yml/file-extension\": [\"error\", { extension: \"yml\" }],\n\t\t\t\t\t\t\t\t\"yml/sort-keys\": [\n\t\t\t\t\t\t\t\t\t\"error\",\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\t\t\t\t\t\tpathPattern: \"^.*$\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\"yml/sort-sequence-values\": [\n\t\t\t\t\t\t\t\t\t\"error\",\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\t\t\t\t\t\tpathPattern: \"^.*$\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\timports: [{ source: \"eslint-plugin-yml\", specifier: \"yml\" }],\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,iBAAiB,KAAK,YAAY;AAAA,EAC9C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,YAAY;AAAA,YACX;AAAA,cACC,SAAS;AAAA,gBACR;AAAA,gBACA;AAAA,cACD;AAAA,cACA,OAAO,CAAC,iBAAiB;AAAA,cACzB,OAAO;AAAA,gBACN,sBAAsB,CAAC,SAAS,EAAE,WAAW,MAAM,CAAC;AAAA,gBACpD,iBAAiB;AAAA,kBAChB;AAAA,kBACA;AAAA,oBACC,OAAO,EAAE,MAAM,MAAM;AAAA,oBACrB,aAAa;AAAA,kBACd;AAAA,gBACD;AAAA,gBACA,4BAA4B;AAAA,kBAC3B;AAAA,kBACA;AAAA,oBACC,OAAO,EAAE,MAAM,MAAM;AAAA,oBACrB,aAAa;AAAA,kBACd;AAAA,gBACD;AAAA,cACD;AAAA,YACD;AAAA,UACD;AAAA,UACA,SAAS,CAAC,EAAE,QAAQ,qBAAqB,WAAW,MAAM,CAAC;AAAA,QAC5D,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockFunding: 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 { blockFunding };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { formatYaml } from "../../steps/writing/creation/formatters/formatYaml.js";
|
|
2
|
+
import { base } from "../base.js";
|
|
3
|
+
const blockFunding = base.createBlock({
|
|
4
|
+
about: {
|
|
5
|
+
name: "Funding"
|
|
6
|
+
},
|
|
7
|
+
produce({ options }) {
|
|
8
|
+
return {
|
|
9
|
+
files: {
|
|
10
|
+
".github": {
|
|
11
|
+
"FUNDING.yml": options.funding && formatYaml({ github: options.funding })
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
blockFunding
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=blockFunding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockFunding.ts"],"sourcesContent":["import { formatYaml } from \"../../steps/writing/creation/formatters/formatYaml.js\";\nimport { base } from \"../base.js\";\n\nexport const blockFunding = base.createBlock({\n\tabout: {\n\t\tname: \"Funding\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"FUNDING.yml\":\n\t\t\t\t\t\toptions.funding && formatYaml({ github: options.funding }),\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AAEd,MAAM,eAAe,KAAK,YAAY;AAAA,EAC5C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ,EAAE,QAAQ,GAAG;AACpB,WAAO;AAAA,MACN,OAAO;AAAA,QACN,WAAW;AAAA,UACV,eACC,QAAQ,WAAW,WAAW,EAAE,QAAQ,QAAQ,QAAQ,CAAC;AAAA,QAC3D;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockGitHubActionsCI: create.BlockWithAddons<{
|
|
4
|
+
jobs?: {
|
|
5
|
+
name: string;
|
|
6
|
+
steps: ({
|
|
7
|
+
if?: string | undefined;
|
|
8
|
+
with?: Record<string, string> | undefined;
|
|
9
|
+
} & ({
|
|
10
|
+
run: string;
|
|
11
|
+
} | {
|
|
12
|
+
uses: string;
|
|
13
|
+
}))[];
|
|
14
|
+
}[] | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
description: string;
|
|
17
|
+
email: {
|
|
18
|
+
github: string;
|
|
19
|
+
npm: string;
|
|
20
|
+
};
|
|
21
|
+
title: string;
|
|
22
|
+
owner: string;
|
|
23
|
+
repository: string;
|
|
24
|
+
access?: "public" | "restricted" | undefined;
|
|
25
|
+
author?: string | undefined;
|
|
26
|
+
bin?: string | undefined;
|
|
27
|
+
login?: string | undefined;
|
|
28
|
+
contributors?: {
|
|
29
|
+
name: string;
|
|
30
|
+
avatar_url: string;
|
|
31
|
+
contributions: string[];
|
|
32
|
+
login: string;
|
|
33
|
+
profile: string;
|
|
34
|
+
}[] | undefined;
|
|
35
|
+
documentation?: string | undefined;
|
|
36
|
+
funding?: string | undefined;
|
|
37
|
+
guide?: {
|
|
38
|
+
href: string;
|
|
39
|
+
title: string;
|
|
40
|
+
} | undefined;
|
|
41
|
+
hideTemplatedBy?: boolean | undefined;
|
|
42
|
+
keywords?: string[] | undefined;
|
|
43
|
+
logo?: {
|
|
44
|
+
alt: string;
|
|
45
|
+
src: string;
|
|
46
|
+
} | undefined;
|
|
47
|
+
node?: {
|
|
48
|
+
minimum: string;
|
|
49
|
+
pinned?: string | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
packageData?: {
|
|
52
|
+
dependencies?: Record<string, string> | undefined;
|
|
53
|
+
devDependencies?: Record<string, string> | undefined;
|
|
54
|
+
scripts?: Record<string, string> | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
57
|
+
version?: string | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
|
|
60
|
+
export { blockGitHubActionsCI };
|