create-typescript-app 2.40.0 → 2.40.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.
Files changed (79) hide show
  1. package/lib/base.d.ts +11 -11
  2. package/lib/base.js +1 -1
  3. package/lib/blocks/blockAllContributors.d.ts +1 -1
  4. package/lib/blocks/blockAreTheTypesWrong.d.ts +1 -1
  5. package/lib/blocks/blockCSpell.d.ts +1 -1
  6. package/lib/blocks/blockCTATransitions.d.ts +1 -1
  7. package/lib/blocks/blockCodecov.d.ts +1 -1
  8. package/lib/blocks/blockContributingDocs.d.ts +1 -1
  9. package/lib/blocks/blockContributorCovenant.d.ts +1 -1
  10. package/lib/blocks/blockDevelopmentDocs.d.ts +1 -1
  11. package/lib/blocks/blockESLint.d.ts +1 -1
  12. package/lib/blocks/blockESLintComments.d.ts +1 -1
  13. package/lib/blocks/blockESLintJSDoc.d.ts +1 -1
  14. package/lib/blocks/blockESLintJSONC.d.ts +1 -1
  15. package/lib/blocks/blockESLintMarkdown.d.ts +1 -1
  16. package/lib/blocks/blockESLintMoreStyling.d.ts +1 -1
  17. package/lib/blocks/blockESLintNode.d.ts +1 -1
  18. package/lib/blocks/blockESLintPackageJson.d.ts +1 -1
  19. package/lib/blocks/blockESLintPerfectionist.d.ts +1 -1
  20. package/lib/blocks/blockESLintPlugin.d.ts +1 -1
  21. package/lib/blocks/blockESLintPlugin.js +46 -5
  22. package/lib/blocks/blockESLintRegexp.d.ts +1 -1
  23. package/lib/blocks/blockESLintYML.d.ts +1 -1
  24. package/lib/blocks/blockExampleFiles.d.ts +2 -1
  25. package/lib/blocks/blockExampleFiles.js +9 -1
  26. package/lib/blocks/blockFunding.d.ts +1 -1
  27. package/lib/blocks/blockGitHubActionsCI.d.ts +1 -1
  28. package/lib/blocks/blockGitHubApps.d.ts +1 -1
  29. package/lib/blocks/blockGitHubIssueTemplates.d.ts +1 -1
  30. package/lib/blocks/blockGitHubPRTemplate.d.ts +1 -1
  31. package/lib/blocks/blockGitignore.d.ts +1 -1
  32. package/lib/blocks/blockKnip.d.ts +1 -1
  33. package/lib/blocks/blockMITLicense.d.ts +1 -1
  34. package/lib/blocks/blockMain.d.ts +1 -1
  35. package/lib/blocks/blockMarkdownlint.d.ts +1 -1
  36. package/lib/blocks/blockNcc.d.ts +1 -1
  37. package/lib/blocks/blockNvmrc.d.ts +1 -1
  38. package/lib/blocks/blockPRCompliance.d.ts +1 -1
  39. package/lib/blocks/blockPackageJson.d.ts +1 -1
  40. package/lib/blocks/blockPnpmDedupe.d.ts +1 -1
  41. package/lib/blocks/blockPrettier.d.ts +1 -1
  42. package/lib/blocks/blockPrettierPluginCurly.d.ts +1 -1
  43. package/lib/blocks/blockPrettierPluginPackageJson.d.ts +1 -1
  44. package/lib/blocks/blockPrettierPluginSh.d.ts +1 -1
  45. package/lib/blocks/blockREADME.d.ts +2 -1
  46. package/lib/blocks/blockREADME.js +3 -2
  47. package/lib/blocks/blockReleaseIt.d.ts +1 -1
  48. package/lib/blocks/blockRemoveDependencies.d.ts +1 -1
  49. package/lib/blocks/blockRemoveFiles.d.ts +1 -1
  50. package/lib/blocks/blockRemoveWorkflows.d.ts +1 -1
  51. package/lib/blocks/blockRenovate.d.ts +1 -1
  52. package/lib/blocks/blockRepositoryBranchRuleset.d.ts +1 -1
  53. package/lib/blocks/blockRepositoryLabels.d.ts +1 -1
  54. package/lib/blocks/blockRepositorySecrets.d.ts +1 -1
  55. package/lib/blocks/blockRepositorySettings.d.ts +1 -1
  56. package/lib/blocks/blockSecurityDocs.d.ts +1 -1
  57. package/lib/blocks/blockTSup.d.ts +1 -1
  58. package/lib/blocks/blockTemplatedWith.d.ts +1 -1
  59. package/lib/blocks/blockTypeScript.d.ts +1 -1
  60. package/lib/blocks/blockTypeScript.js +11 -1
  61. package/lib/blocks/blockVSCode.d.ts +1 -1
  62. package/lib/blocks/blockVitest.d.ts +1 -1
  63. package/lib/blocks/blockWebExt.d.ts +1 -1
  64. package/lib/blocks/index.d.ts +48 -47
  65. package/lib/data/packageData.d.ts +1 -1
  66. package/lib/index.d.ts +6 -6
  67. package/lib/options/readDocumentation.d.ts +1 -1
  68. package/lib/options/readReadmeUsage.d.ts +1 -1
  69. package/lib/options/readReadmeUsage.js +14 -10
  70. package/lib/presets/common.d.ts +5 -5
  71. package/lib/presets/everything.d.ts +5 -5
  72. package/lib/presets/index.d.ts +15 -15
  73. package/lib/presets/minimal.d.ts +5 -5
  74. package/lib/schemas.d.ts +10 -10
  75. package/lib/schemas.js +1 -1
  76. package/lib/template.d.ts +5 -5
  77. package/package.json +1 -1
  78. package/lib/options/readUsageFromReadme.d.ts +0 -3
  79. package/lib/options/readUsageFromReadme.js +0 -17
package/lib/base.d.ts CHANGED
@@ -13,16 +13,16 @@ declare const base: bingo_stratum.Base<{
13
13
  name: z.ZodString;
14
14
  profile: z.ZodString;
15
15
  }, "strip", z.ZodTypeAny, {
16
+ name: string;
16
17
  avatar_url: string;
17
18
  contributions: string[];
18
19
  login: string;
19
- name: string;
20
20
  profile: string;
21
21
  }, {
22
+ name: string;
22
23
  avatar_url: string;
23
24
  contributions: string[];
24
25
  login: string;
25
- name: string;
26
26
  profile: string;
27
27
  }>, "many">>;
28
28
  description: z.ZodDefault<z.ZodString>;
@@ -33,32 +33,32 @@ declare const base: bingo_stratum.Base<{
33
33
  additional: z.ZodOptional<z.ZodString>;
34
34
  explainer: z.ZodOptional<z.ZodString>;
35
35
  footnotes: z.ZodOptional<z.ZodString>;
36
- usage: z.ZodString;
36
+ usage: z.ZodOptional<z.ZodString>;
37
37
  }, "strip", z.ZodTypeAny, {
38
- usage: string;
39
38
  additional?: string | undefined;
40
39
  explainer?: string | undefined;
41
40
  footnotes?: string | undefined;
41
+ usage?: string | undefined;
42
42
  }, {
43
- usage: string;
44
43
  additional?: string | undefined;
45
44
  explainer?: string | undefined;
46
45
  footnotes?: string | undefined;
46
+ usage?: string | undefined;
47
47
  }>;
48
48
  }, "strip", z.ZodTypeAny, {
49
49
  readme: {
50
- usage: string;
51
50
  additional?: string | undefined;
52
51
  explainer?: string | undefined;
53
52
  footnotes?: string | undefined;
53
+ usage?: string | undefined;
54
54
  };
55
55
  development?: string | undefined;
56
56
  }, {
57
57
  readme: {
58
- usage: string;
59
58
  additional?: string | undefined;
60
59
  explainer?: string | undefined;
61
60
  footnotes?: string | undefined;
61
+ usage?: string | undefined;
62
62
  };
63
63
  development?: string | undefined;
64
64
  }>;
@@ -97,11 +97,11 @@ declare const base: bingo_stratum.Base<{
97
97
  href: z.ZodString;
98
98
  title: z.ZodString;
99
99
  }, "strip", z.ZodTypeAny, {
100
- href: string;
101
100
  title: string;
102
- }, {
103
101
  href: string;
102
+ }, {
104
103
  title: string;
104
+ href: string;
105
105
  }>>;
106
106
  keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
107
107
  logo: z.ZodOptional<z.ZodObject<{
@@ -140,15 +140,15 @@ declare const base: bingo_stratum.Base<{
140
140
  }, "strip", z.ZodTypeAny, {
141
141
  dependencies?: Record<string, string> | undefined;
142
142
  devDependencies?: Record<string, string> | undefined;
143
+ scripts?: Record<string, string | undefined> | undefined;
143
144
  peerDependencies?: Record<string, string> | undefined;
144
145
  peerDependenciesMeta?: Record<string, unknown> | undefined;
145
- scripts?: Record<string, string | undefined> | undefined;
146
146
  }, {
147
147
  dependencies?: Record<string, string> | undefined;
148
148
  devDependencies?: Record<string, string> | undefined;
149
+ scripts?: Record<string, string | undefined> | undefined;
149
150
  peerDependencies?: Record<string, string> | undefined;
150
151
  peerDependenciesMeta?: Record<string, unknown> | undefined;
151
- scripts?: Record<string, string | undefined> | undefined;
152
152
  }>>;
153
153
  pnpm: z.ZodOptional<z.ZodString>;
154
154
  repository: z.ZodString;
package/lib/base.js CHANGED
@@ -190,7 +190,7 @@ const base = createBase({
190
190
  async () => await readReadmeFootnotes(getReadme)
191
191
  );
192
192
  const getReadmeUsage = lazyValue(
193
- async () => await readReadmeUsage(getEmoji, getReadme, getRepository)
193
+ async () => await readReadmeUsage(getReadme)
194
194
  );
195
195
  const getRepository = lazyValue(
196
196
  async () => await readRepository(getGitDefaults, getPackageData, options)
@@ -6,10 +6,10 @@ declare const blockAllContributors: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -6,10 +6,10 @@ declare const blockAreTheTypesWrong: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -9,10 +9,10 @@ declare const blockCSpell: bingo_stratum.BlockWithAddons<{
9
9
  directory: string;
10
10
  documentation: {
11
11
  readme: {
12
- usage: string;
13
12
  additional?: string | undefined;
14
13
  explainer?: string | undefined;
15
14
  footnotes?: string | undefined;
15
+ usage?: string | undefined;
16
16
  };
17
17
  development?: string | undefined;
18
18
  };
@@ -6,10 +6,10 @@ declare const blockCTATransitions: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -8,10 +8,10 @@ declare const blockCodecov: bingo_stratum.BlockWithAddons<{
8
8
  directory: string;
9
9
  documentation: {
10
10
  readme: {
11
- usage: string;
12
11
  additional?: string | undefined;
13
12
  explainer?: string | undefined;
14
13
  footnotes?: string | undefined;
14
+ usage?: string | undefined;
15
15
  };
16
16
  development?: string | undefined;
17
17
  };
@@ -6,10 +6,10 @@ declare const blockContributingDocs: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -6,10 +6,10 @@ declare const blockContributorCovenant: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -20,10 +20,10 @@ declare const blockDevelopmentDocs: bingo_stratum.BlockWithAddons<{
20
20
  directory: string;
21
21
  documentation: {
22
22
  readme: {
23
- usage: string;
24
23
  additional?: string | undefined;
25
24
  explainer?: string | undefined;
26
25
  footnotes?: string | undefined;
26
+ usage?: string | undefined;
27
27
  };
28
28
  development?: string | undefined;
29
29
  };
@@ -35,10 +35,10 @@ declare const blockESLint: bingo_stratum.BlockWithAddons<{
35
35
  directory: string;
36
36
  documentation: {
37
37
  readme: {
38
- usage: string;
39
38
  additional?: string | undefined;
40
39
  explainer?: string | undefined;
41
40
  footnotes?: string | undefined;
41
+ usage?: string | undefined;
42
42
  };
43
43
  development?: string | undefined;
44
44
  };
@@ -6,10 +6,10 @@ declare const blockESLintComments: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -6,10 +6,10 @@ declare const blockESLintJSDoc: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -6,10 +6,10 @@ declare const blockESLintJSONC: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -6,10 +6,10 @@ declare const blockESLintMarkdown: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -7,10 +7,10 @@ declare const blockESLintMoreStyling: bingo_stratum.BlockWithoutAddons<{
7
7
  directory: string;
8
8
  documentation: {
9
9
  readme: {
10
- usage: string;
11
10
  additional?: string | undefined;
12
11
  explainer?: string | undefined;
13
12
  footnotes?: string | undefined;
13
+ usage?: string | undefined;
14
14
  };
15
15
  development?: string | undefined;
16
16
  };
@@ -6,10 +6,10 @@ declare const blockESLintNode: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -6,10 +6,10 @@ declare const blockESLintPackageJson: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -6,10 +6,10 @@ declare const blockESLintPerfectionist: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -8,10 +8,10 @@ declare const blockESLintPlugin: bingo_stratum.BlockWithAddons<{
8
8
  directory: string;
9
9
  documentation: {
10
10
  readme: {
11
- usage: string;
12
11
  additional?: string | undefined;
13
12
  explainer?: string | undefined;
14
13
  footnotes?: string | undefined;
14
+ usage?: string | undefined;
15
15
  };
16
16
  development?: string | undefined;
17
17
  };
@@ -4,10 +4,12 @@ import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
4
4
  import { blockESLint } from "./blockESLint.js";
5
5
  import { blockGitHubActionsCI } from "./blockGitHubActionsCI.js";
6
6
  import { blockPackageJson } from "./blockPackageJson.js";
7
+ import { blockREADME } from "./blockREADME.js";
7
8
  import { blockVitest } from "./blockVitest.js";
8
9
  import { blockESLintPluginIntake } from "./eslint/blockESLintPluginIntake.js";
9
10
  import { zConfigEmoji } from "./eslint/schemas.js";
10
11
  import { intakeFile } from "./intake/intakeFile.js";
12
+ import { CommandPhase } from "./phases.js";
11
13
  const blockESLintPlugin = base.createBlock({
12
14
  about: {
13
15
  name: "ESLint Plugin"
@@ -24,6 +26,7 @@ const blockESLintPlugin = base.createBlock({
24
26
  produce({ addons, options }) {
25
27
  const { configEmoji } = addons;
26
28
  const configFileName = `.eslint-doc-generatorrc.${options.type === "commonjs" ? "mjs" : "js"}`;
29
+ const pluginName = options.repository.replace(/^eslint-plugin-/, "").replaceAll(/-\w/g, (matched) => matched[1].toUpperCase());
27
30
  return {
28
31
  addons: [
29
32
  blockCSpell({
@@ -78,9 +81,37 @@ pnpm build:docs
78
81
  }
79
82
  ]
80
83
  }),
84
+ blockREADME({
85
+ defaultUsage: [
86
+ `Add this plugin to the list of plugins in your [ESLint configuration file](https://eslint.org/docs/latest/use/configure/configuration-files):
87
+
88
+ \`\`\`shell
89
+ npm i ${options.repository} -D
90
+ \`\`\`
91
+
92
+ \`\`\`ts
93
+ import ${pluginName} from "${options.repository}";
94
+
95
+ export default [
96
+ // (other plugins)
97
+ ${pluginName}.configs.recommended, // \u{1F448}
98
+ ];
99
+ \`\`\`
100
+
101
+ ### Rules
102
+
103
+ These are all set to \`"error"\` in the recommended config:
104
+
105
+ <!-- begin auto-generated rules list --><!-- end auto-generated rules list -->`
106
+ ]
107
+ }),
81
108
  blockPackageJson({
82
109
  properties: {
110
+ dependencies: {
111
+ "@typescript-eslint/utils": "^8.29.0"
112
+ },
83
113
  devDependencies: {
114
+ "@typescript-eslint/rule-tester": "8.29.1",
84
115
  "eslint-doc-generator": "2.1.0",
85
116
  "eslint-plugin-eslint-plugin": "6.4.0"
86
117
  },
@@ -112,7 +143,17 @@ const config = {
112
143
 
113
144
  export default config;
114
145
  `
115
- }
146
+ },
147
+ scripts: [
148
+ {
149
+ commands: ["pnpm build"],
150
+ phase: CommandPhase.Build
151
+ },
152
+ {
153
+ commands: ["pnpm eslint-doc-generator --init-rule-docs"],
154
+ phase: CommandPhase.Process
155
+ }
156
+ ]
116
157
  };
117
158
  },
118
159
  setup({ options }) {
@@ -154,7 +195,7 @@ export { rules };
154
195
  export default plugin;
155
196
  `,
156
197
  rules: {
157
- "example.test.ts": `import { rule } from "./enums.js";
198
+ "enums.test.ts": `import { rule } from "./enums.js";
158
199
  import { ruleTester } from "./ruleTester.js";
159
200
 
160
201
  ruleTester.run("enums", rule, {
@@ -175,7 +216,7 @@ ruleTester.run("enums", rule, {
175
216
  valid: [\`const Values = {};\`, \`const Values = {} as const;\`],
176
217
  });
177
218
  `,
178
- "example.ts": `import { createRule } from "../utils.js";
219
+ "enums.ts": `import { createRule } from "../utils.js";
179
220
 
180
221
  export const rule = createRule({
181
222
  create(context) {
@@ -202,10 +243,10 @@ export const rule = createRule({
202
243
  name: "enums",
203
244
  });
204
245
  `,
205
- "index.ts": `import { rule as example } from "./example.js";
246
+ "index.ts": `import { rule as enums } from "./enums.js";
206
247
 
207
248
  export const rules = {
208
- example,
249
+ enums,
209
250
  };
210
251
  `,
211
252
  "ruleTester.ts": `import { RuleTester } from "@typescript-eslint/rule-tester";
@@ -6,10 +6,10 @@ declare const blockESLintRegexp: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -6,10 +6,10 @@ declare const blockESLintYML: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -1,6 +1,7 @@
1
1
  import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
3
  declare const blockExampleFiles: bingo_stratum.BlockWithAddons<{
4
+ usage: string[];
4
5
  files: Record<string, string>;
5
6
  }, {
6
7
  access: "public" | "restricted";
@@ -8,10 +9,10 @@ declare const blockExampleFiles: bingo_stratum.BlockWithAddons<{
8
9
  directory: string;
9
10
  documentation: {
10
11
  readme: {
11
- usage: string;
12
12
  additional?: string | undefined;
13
13
  explainer?: string | undefined;
14
14
  footnotes?: string | undefined;
15
+ usage?: string | undefined;
15
16
  };
16
17
  development?: string | undefined;
17
18
  };
@@ -1,14 +1,22 @@
1
1
  import { z } from "zod";
2
2
  import { base } from "../base.js";
3
+ import { blockREADME } from "./blockREADME.js";
3
4
  const blockExampleFiles = base.createBlock({
4
5
  about: {
5
6
  name: "Example Files"
6
7
  },
7
8
  addons: {
8
- files: z.record(z.string()).default({})
9
+ files: z.record(z.string()).default({}),
10
+ usage: z.array(z.string()).default([])
9
11
  },
10
12
  setup({ addons }) {
13
+ const { usage } = addons;
11
14
  return {
15
+ addons: [
16
+ blockREADME({
17
+ defaultUsage: usage
18
+ })
19
+ ],
12
20
  files: {
13
21
  src: addons.files
14
22
  }
@@ -6,10 +6,10 @@ declare const blockFunding: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -48,10 +48,10 @@ declare const blockGitHubActionsCI: bingo_stratum.BlockWithAddons<{
48
48
  directory: string;
49
49
  documentation: {
50
50
  readme: {
51
- usage: string;
52
51
  additional?: string | undefined;
53
52
  explainer?: string | undefined;
54
53
  footnotes?: string | undefined;
54
+ usage?: string | undefined;
55
55
  };
56
56
  development?: string | undefined;
57
57
  };
@@ -11,10 +11,10 @@ declare const blockGitHubApps: bingo_stratum.BlockWithAddons<{
11
11
  directory: string;
12
12
  documentation: {
13
13
  readme: {
14
- usage: string;
15
14
  additional?: string | undefined;
16
15
  explainer?: string | undefined;
17
16
  footnotes?: string | undefined;
17
+ usage?: string | undefined;
18
18
  };
19
19
  development?: string | undefined;
20
20
  };
@@ -6,10 +6,10 @@ declare const blockGitHubIssueTemplates: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -6,10 +6,10 @@ declare const blockGitHubPRTemplate: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -8,10 +8,10 @@ declare const blockGitignore: bingo_stratum.BlockWithAddons<{
8
8
  directory: string;
9
9
  documentation: {
10
10
  readme: {
11
- usage: string;
12
11
  additional?: string | undefined;
13
12
  explainer?: string | undefined;
14
13
  footnotes?: string | undefined;
14
+ usage?: string | undefined;
15
15
  };
16
16
  development?: string | undefined;
17
17
  };
@@ -10,10 +10,10 @@ declare const blockKnip: bingo_stratum.BlockWithAddons<{
10
10
  directory: string;
11
11
  documentation: {
12
12
  readme: {
13
- usage: string;
14
13
  additional?: string | undefined;
15
14
  explainer?: string | undefined;
16
15
  footnotes?: string | undefined;
16
+ usage?: string | undefined;
17
17
  };
18
18
  development?: string | undefined;
19
19
  };
@@ -6,10 +6,10 @@ declare const blockMITLicense: bingo_stratum.BlockWithoutAddons<{
6
6
  directory: string;
7
7
  documentation: {
8
8
  readme: {
9
- usage: string;
10
9
  additional?: string | undefined;
11
10
  explainer?: string | undefined;
12
11
  footnotes?: string | undefined;
12
+ usage?: string | undefined;
13
13
  };
14
14
  development?: string | undefined;
15
15
  };
@@ -9,10 +9,10 @@ declare const blockMain: bingo_stratum.BlockWithAddons<{
9
9
  directory: string;
10
10
  documentation: {
11
11
  readme: {
12
- usage: string;
13
12
  additional?: string | undefined;
14
13
  explainer?: string | undefined;
15
14
  footnotes?: string | undefined;
15
+ usage?: string | undefined;
16
16
  };
17
17
  development?: string | undefined;
18
18
  };
@@ -8,10 +8,10 @@ declare const blockMarkdownlint: bingo_stratum.BlockWithAddons<{
8
8
  directory: string;
9
9
  documentation: {
10
10
  readme: {
11
- usage: string;
12
11
  additional?: string | undefined;
13
12
  explainer?: string | undefined;
14
13
  footnotes?: string | undefined;
14
+ usage?: string | undefined;
15
15
  };
16
16
  development?: string | undefined;
17
17
  };
@@ -8,10 +8,10 @@ declare const blockNcc: bingo_stratum.BlockWithAddons<{
8
8
  directory: string;
9
9
  documentation: {
10
10
  readme: {
11
- usage: string;
12
11
  additional?: string | undefined;
13
12
  explainer?: string | undefined;
14
13
  footnotes?: string | undefined;
14
+ usage?: string | undefined;
15
15
  };
16
16
  development?: string | undefined;
17
17
  };