create-typescript-app 2.48.0 → 2.50.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.
Files changed (128) hide show
  1. package/lib/base.d.ts +4 -4
  2. package/lib/base.d.ts.map +1 -1
  3. package/lib/blocks/blockAllContributors.d.ts +3 -3
  4. package/lib/blocks/blockAreTheTypesWrong.d.ts +3 -3
  5. package/lib/blocks/blockCSpell.d.ts +3 -3
  6. package/lib/blocks/blockCTATransitions.d.ts +3 -3
  7. package/lib/blocks/blockCTATransitions.d.ts.map +1 -1
  8. package/lib/blocks/blockCodecov.d.ts +3 -3
  9. package/lib/blocks/blockContributingDocs.d.ts +3 -3
  10. package/lib/blocks/blockContributorCovenant.d.ts +3 -3
  11. package/lib/blocks/blockContributorCovenant.d.ts.map +1 -1
  12. package/lib/blocks/blockContributorCovenant.js +14 -11
  13. package/lib/blocks/blockContributorCovenant.js.map +1 -1
  14. package/lib/blocks/blockDevelopmentDocs.d.ts +3 -3
  15. package/lib/blocks/blockDevelopmentDocs.d.ts.map +1 -1
  16. package/lib/blocks/blockESLint.d.ts +16 -16
  17. package/lib/blocks/blockESLint.d.ts.map +1 -1
  18. package/lib/blocks/blockESLint.js +2 -1
  19. package/lib/blocks/blockESLint.js.map +1 -1
  20. package/lib/blocks/blockESLintComments.d.ts +3 -3
  21. package/lib/blocks/blockESLintComments.d.ts.map +1 -1
  22. package/lib/blocks/blockESLintJSDoc.d.ts +3 -3
  23. package/lib/blocks/blockESLintJSDoc.d.ts.map +1 -1
  24. package/lib/blocks/blockESLintJSONC.d.ts +3 -3
  25. package/lib/blocks/blockESLintMarkdown.d.ts +3 -3
  26. package/lib/blocks/blockESLintMoreStyling.d.ts +3 -3
  27. package/lib/blocks/blockESLintNode.d.ts +3 -3
  28. package/lib/blocks/blockESLintPackageJson.d.ts +3 -3
  29. package/lib/blocks/blockESLintPerfectionist.d.ts +3 -3
  30. package/lib/blocks/blockESLintPlugin.d.ts +3 -3
  31. package/lib/blocks/blockESLintRegexp.d.ts +3 -3
  32. package/lib/blocks/blockESLintYML.d.ts +3 -3
  33. package/lib/blocks/blockExampleFiles.d.ts +3 -3
  34. package/lib/blocks/blockFunding.d.ts +3 -3
  35. package/lib/blocks/blockGitHubActionsCI.d.ts +4 -4
  36. package/lib/blocks/blockGitHubActionsCI.d.ts.map +1 -1
  37. package/lib/blocks/blockGitHubApps.d.ts +3 -3
  38. package/lib/blocks/blockGitHubApps.d.ts.map +1 -1
  39. package/lib/blocks/blockGitHubIssueTemplates.d.ts +3 -3
  40. package/lib/blocks/blockGitHubIssueTemplates.d.ts.map +1 -1
  41. package/lib/blocks/blockGitHubPRTemplate.d.ts +3 -3
  42. package/lib/blocks/blockGitHubPRTemplate.d.ts.map +1 -1
  43. package/lib/blocks/blockGitignore.d.ts +3 -3
  44. package/lib/blocks/blockGitignore.d.ts.map +1 -1
  45. package/lib/blocks/blockKnip.d.ts +3 -3
  46. package/lib/blocks/blockKnip.d.ts.map +1 -1
  47. package/lib/blocks/blockMITLicense.d.ts +3 -3
  48. package/lib/blocks/blockMITLicense.d.ts.map +1 -1
  49. package/lib/blocks/blockMain.d.ts +3 -3
  50. package/lib/blocks/blockMain.d.ts.map +1 -1
  51. package/lib/blocks/blockMarkdownlint.d.ts +3 -3
  52. package/lib/blocks/blockMarkdownlint.d.ts.map +1 -1
  53. package/lib/blocks/blockMarkdownlint.js +2 -2
  54. package/lib/blocks/blockMarkdownlint.js.map +1 -1
  55. package/lib/blocks/blockNcc.d.ts +3 -3
  56. package/lib/blocks/blockNcc.d.ts.map +1 -1
  57. package/lib/blocks/blockNvmrc.d.ts +3 -3
  58. package/lib/blocks/blockNvmrc.d.ts.map +1 -1
  59. package/lib/blocks/blockOctoGuide.d.ts +3 -3
  60. package/lib/blocks/blockOctoGuide.d.ts.map +1 -1
  61. package/lib/blocks/blockOctoGuideStrict.d.ts +3 -3
  62. package/lib/blocks/blockPackageJson.d.ts +14 -14
  63. package/lib/blocks/blockPackageJson.d.ts.map +1 -1
  64. package/lib/blocks/blockPnpmDedupe.d.ts +3 -3
  65. package/lib/blocks/blockPrettier.d.ts +5 -5
  66. package/lib/blocks/blockPrettier.d.ts.map +1 -1
  67. package/lib/blocks/blockPrettierPluginCurly.d.ts +3 -3
  68. package/lib/blocks/blockPrettierPluginPackageJson.d.ts +3 -3
  69. package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts +75 -0
  70. package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts.map +1 -0
  71. package/lib/blocks/blockPrettierPluginSentencesPerLine.js +14 -0
  72. package/lib/blocks/blockPrettierPluginSentencesPerLine.js.map +1 -0
  73. package/lib/blocks/blockPrettierPluginSh.d.ts +3 -3
  74. package/lib/blocks/blockREADME.d.ts +3 -3
  75. package/lib/blocks/blockReleaseIt.d.ts +3 -3
  76. package/lib/blocks/blockRemoveDependencies.d.ts +3 -3
  77. package/lib/blocks/blockRemoveFiles.d.ts +3 -3
  78. package/lib/blocks/blockRemoveWorkflows.d.ts +3 -3
  79. package/lib/blocks/blockRenovate.d.ts +3 -3
  80. package/lib/blocks/blockRenovate.d.ts.map +1 -1
  81. package/lib/blocks/blockRepositoryBranchRuleset.d.ts +3 -3
  82. package/lib/blocks/blockRepositoryBranchRuleset.d.ts.map +1 -1
  83. package/lib/blocks/blockRepositoryLabels.d.ts +3 -3
  84. package/lib/blocks/blockRepositoryLabels.d.ts.map +1 -1
  85. package/lib/blocks/blockRepositorySecrets.d.ts +3 -3
  86. package/lib/blocks/blockRepositorySecrets.d.ts.map +1 -1
  87. package/lib/blocks/blockRepositorySettings.d.ts +3 -3
  88. package/lib/blocks/blockRepositorySettings.d.ts.map +1 -1
  89. package/lib/blocks/blockSecurityDocs.d.ts +3 -3
  90. package/lib/blocks/blockSecurityDocs.d.ts.map +1 -1
  91. package/lib/blocks/blockTSDown.d.ts +3 -3
  92. package/lib/blocks/blockTSDown.d.ts.map +1 -1
  93. package/lib/blocks/blockTemplatedWith.d.ts +3 -3
  94. package/lib/blocks/blockTemplatedWith.d.ts.map +1 -1
  95. package/lib/blocks/blockTypeScript.d.ts +3 -3
  96. package/lib/blocks/blockTypeScript.d.ts.map +1 -1
  97. package/lib/blocks/blockVSCode.d.ts +4 -4
  98. package/lib/blocks/blockVSCode.d.ts.map +1 -1
  99. package/lib/blocks/blockVitest.d.ts +3 -3
  100. package/lib/blocks/blockVitest.d.ts.map +1 -1
  101. package/lib/blocks/blockWebExt.d.ts +3 -3
  102. package/lib/blocks/blockWebExt.d.ts.map +1 -1
  103. package/lib/blocks/eslint/schemas.d.ts +4 -4
  104. package/lib/blocks/eslint/schemas.d.ts.map +1 -1
  105. package/lib/blocks/index.d.ts +194 -125
  106. package/lib/blocks/index.d.ts.map +1 -1
  107. package/lib/blocks/index.js +3 -1
  108. package/lib/blocks/index.js.map +1 -1
  109. package/lib/data/packageData.d.ts +2 -2
  110. package/lib/index.d.ts +77 -76
  111. package/lib/index.d.ts.map +1 -1
  112. package/lib/index.js +2 -1
  113. package/lib/index.js.map +1 -1
  114. package/lib/inputs/inputFromDirectory.d.ts +2 -2
  115. package/lib/inputs/inputFromOctokit.d.ts +2 -2
  116. package/lib/options/readNpmDefaults.d.ts +2 -2
  117. package/lib/presets/common.d.ts +71 -71
  118. package/lib/presets/everything.d.ts +71 -71
  119. package/lib/presets/everything.d.ts.map +1 -1
  120. package/lib/presets/everything.js +2 -0
  121. package/lib/presets/everything.js.map +1 -1
  122. package/lib/presets/index.d.ts +209 -209
  123. package/lib/presets/minimal.d.ts +71 -71
  124. package/lib/schemas.d.ts +6 -6
  125. package/lib/schemas.d.ts.map +1 -1
  126. package/lib/template.d.ts +71 -71
  127. package/lib/template.d.ts.map +1 -1
  128. package/package.json +3 -3
package/lib/base.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import * as bingo_stratum0 from "bingo-stratum";
1
+ import * as bingo_stratum1056 from "bingo-stratum";
2
2
  import { BaseOptionsFor } from "bingo-stratum";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/base.d.ts
6
- declare const base: bingo_stratum0.Base<{
6
+ declare const base: bingo_stratum1056.Base<{
7
7
  access: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"restricted">]>;
8
8
  author: z.ZodOptional<z.ZodString>;
9
9
  bin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
@@ -162,11 +162,11 @@ declare const base: bingo_stratum0.Base<{
162
162
  hash: z.ZodOptional<z.ZodString>;
163
163
  pinned: z.ZodOptional<z.ZodBoolean>;
164
164
  }, "strip", z.ZodTypeAny, {
165
- hash?: string | undefined;
166
165
  pinned?: boolean | undefined;
167
- }, {
168
166
  hash?: string | undefined;
167
+ }, {
169
168
  pinned?: boolean | undefined;
169
+ hash?: string | undefined;
170
170
  }>>>>;
171
171
  }>;
172
172
  type BaseOptions = BaseOptionsFor<typeof base> & {
package/lib/base.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","names":[],"sources":["../src/base.ts"],"sourcesContent":[],"mappings":";;;;;cA0Ca,qBAAI;sBAuTf,CAAA,CAAA;;EAvTW,GAAA,eAuTX,WAAA,CAAA,YAAA,aAAA,YAAA,aAAA,CAAA,CAAA,CAAA,CAAA;EAAA,YAAA,eAAA,WAAA,YAAA,CAAA;IAAA,UAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAvTe,CAAA,QAAA,CAAA,MAAA,EAAA,MAAA,CAAA,GAAA,SAAA;IAAA,oBAAA,CAAA,QAAA,CAAA,MAAA,EAAA,OAAA,CAAA,GAAA,SAAA;IAyTL,OAAA,CAAA,QAAW,CAAA,MAAA,EAAA,MAAA,GAAA,SAAA,CAAA,GAAA,SAAA;EAAA,CAAA,CAAA,CAAA;EAAA,IAAyB,eAAA,YAAA,CAAA;EAAI,UAA1B,aAAA;EAAc,SAAA,eAAA,YAAA,CAAA;;;;;;;;;;;;;;;;KAA5B,WAAA,GAAc,sBAAsB"}
1
+ {"version":3,"file":"base.d.ts","names":[],"sources":["../src/base.ts"],"sourcesContent":[],"mappings":";;;;;cA0Ca,wBAAI;sBAuTf,CAAA,CAAA;;EAvTW,GAAA,eAuTX,WAAA,CAAA,YAAA,aAAA,YAAA,aAAA,CAAA,CAAA,CAAA,CAAA;EAAA,YAAA,eAAA,WAAA,YAAA,CAAA;IAAA,UAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAvTe,QAAA,CAAA,MAAA,EAAA,MAAA,CAAA,GAAA,SAAA;IAAA,oBAAA,CAAA,QAAA,CAAA,MAAA,EAAA,OAAA,CAAA,GAAA,SAAA;IAyTL,OAAA,CAAA,QAAW,CAAA,MAAA,EAAA,MAAA,GAAA,SAAA,CAAA,GAAA,SAAA;EAAA,CAAA,CAAA,CAAA;EAAA,IAAyB,eAAA,YAAA,CAAA;EAAI,UAA1B,aAAA;EAAc,SAAA,eAAA,YAAA,CAAA;;;;;;;;;;;;;;;;KAA5B,WAAA,GAAc,sBAAsB"}
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum273 from "bingo-stratum";
1
+ import * as bingo_stratum133 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockAllContributors.d.ts
4
- declare const blockAllContributors: bingo_stratum273.BlockWithoutAddons<{
4
+ declare const blockAllContributors: bingo_stratum133.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -65,8 +65,8 @@ declare const blockAllContributors: bingo_stratum273.BlockWithoutAddons<{
65
65
  version?: string | undefined;
66
66
  words?: string[] | undefined;
67
67
  workflowsVersions?: Record<string, Record<string, {
68
- hash?: string | undefined;
69
68
  pinned?: boolean | undefined;
69
+ hash?: string | undefined;
70
70
  }>> | undefined;
71
71
  }>;
72
72
  //# sourceMappingURL=blockAllContributors.d.ts.map
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum275 from "bingo-stratum";
1
+ import * as bingo_stratum134 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockAreTheTypesWrong.d.ts
4
- declare const blockAreTheTypesWrong: bingo_stratum275.BlockWithoutAddons<{
4
+ declare const blockAreTheTypesWrong: bingo_stratum134.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -65,8 +65,8 @@ declare const blockAreTheTypesWrong: bingo_stratum275.BlockWithoutAddons<{
65
65
  version?: string | undefined;
66
66
  words?: string[] | undefined;
67
67
  workflowsVersions?: Record<string, Record<string, {
68
- hash?: string | undefined;
69
68
  pinned?: boolean | undefined;
69
+ hash?: string | undefined;
70
70
  }>> | undefined;
71
71
  }>;
72
72
  //# sourceMappingURL=blockAreTheTypesWrong.d.ts.map
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum278 from "bingo-stratum";
1
+ import * as bingo_stratum265 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockCSpell.d.ts
4
- declare const blockCSpell: bingo_stratum278.BlockWithAddons<{
4
+ declare const blockCSpell: bingo_stratum265.BlockWithAddons<{
5
5
  words: string[];
6
6
  ignorePaths: string[];
7
7
  }, {
@@ -68,8 +68,8 @@ declare const blockCSpell: bingo_stratum278.BlockWithAddons<{
68
68
  version?: string | undefined;
69
69
  words?: string[] | undefined;
70
70
  workflowsVersions?: Record<string, Record<string, {
71
- hash?: string | undefined;
72
71
  pinned?: boolean | undefined;
72
+ hash?: string | undefined;
73
73
  }>> | undefined;
74
74
  }>;
75
75
  //# sourceMappingURL=blockCSpell.d.ts.map
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum280 from "bingo-stratum";
1
+ import * as bingo_stratum0 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockCTATransitions.d.ts
4
- declare const blockCTATransitions: bingo_stratum280.BlockWithoutAddons<{
4
+ declare const blockCTATransitions: bingo_stratum0.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -65,8 +65,8 @@ declare const blockCTATransitions: bingo_stratum280.BlockWithoutAddons<{
65
65
  version?: string | undefined;
66
66
  words?: string[] | undefined;
67
67
  workflowsVersions?: Record<string, Record<string, {
68
- hash?: string | undefined;
69
68
  pinned?: boolean | undefined;
69
+ hash?: string | undefined;
70
70
  }>> | undefined;
71
71
  }>;
72
72
  //# sourceMappingURL=blockCTATransitions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blockCTATransitions.d.ts","names":[],"sources":["../../src/blocks/blockCTATransitions.ts"],"sourcesContent":[],"mappings":";;;cAQa,sCAAmB;;;EAAnB,SAAA,EAAA,MAAA;EA6JX,aAAA,EAAA;IAAA,MAAA,EAAA;;;;;;;;;IA7J8B,MAAA,EAAA,MAAA;;;;;;;;;;;;iBA6J9B"}
1
+ {"version":3,"file":"blockCTATransitions.d.ts","names":[],"sources":["../../src/blocks/blockCTATransitions.ts"],"sourcesContent":[],"mappings":";;;cAQa,oCAAmB;;;EAAnB,SAAA,EAAA,MAAA;EA6JX,aAAA,EAAA;IAAA,MAAA,EAAA;;;;;;;;;IA7J8B,MAAA,EAAA,MAAA;;;;;;;;;;;;iBA6J9B"}
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum282 from "bingo-stratum";
1
+ import * as bingo_stratum267 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockCodecov.d.ts
4
- declare const blockCodecov: bingo_stratum282.BlockWithAddons<{
4
+ declare const blockCodecov: bingo_stratum267.BlockWithAddons<{
5
5
  env?: Record<string, string> | undefined;
6
6
  }, {
7
7
  access: "public" | "restricted";
@@ -67,8 +67,8 @@ declare const blockCodecov: bingo_stratum282.BlockWithAddons<{
67
67
  version?: string | undefined;
68
68
  words?: string[] | undefined;
69
69
  workflowsVersions?: Record<string, Record<string, {
70
- hash?: string | undefined;
71
70
  pinned?: boolean | undefined;
71
+ hash?: string | undefined;
72
72
  }>> | undefined;
73
73
  }>;
74
74
  //# sourceMappingURL=blockCodecov.d.ts.map
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum332 from "bingo-stratum";
1
+ import * as bingo_stratum399 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockContributingDocs.d.ts
4
- declare const blockContributingDocs: bingo_stratum332.BlockWithoutAddons<{
4
+ declare const blockContributingDocs: bingo_stratum399.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -65,8 +65,8 @@ declare const blockContributingDocs: bingo_stratum332.BlockWithoutAddons<{
65
65
  version?: string | undefined;
66
66
  words?: string[] | undefined;
67
67
  workflowsVersions?: Record<string, Record<string, {
68
- hash?: string | undefined;
69
68
  pinned?: boolean | undefined;
69
+ hash?: string | undefined;
70
70
  }>> | undefined;
71
71
  }>;
72
72
  //# sourceMappingURL=blockContributingDocs.d.ts.map
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum334 from "bingo-stratum";
1
+ import * as bingo_stratum920 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockContributorCovenant.d.ts
4
- declare const blockContributorCovenant: bingo_stratum334.BlockWithoutAddons<{
4
+ declare const blockContributorCovenant: bingo_stratum920.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -65,8 +65,8 @@ declare const blockContributorCovenant: bingo_stratum334.BlockWithoutAddons<{
65
65
  version?: string | undefined;
66
66
  words?: string[] | undefined;
67
67
  workflowsVersions?: Record<string, Record<string, {
68
- hash?: string | undefined;
69
68
  pinned?: boolean | undefined;
69
+ hash?: string | undefined;
70
70
  }>> | undefined;
71
71
  }>;
72
72
  //# sourceMappingURL=blockContributorCovenant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blockContributorCovenant.d.ts","names":[],"sources":["../../src/blocks/blockContributorCovenant.ts"],"sourcesContent":[],"mappings":";;;cAKa,2CAAwB;;;EAAxB,SAAA,EAAA,MAAA;EAoKX,aAAA,EAAA;IAAA,MAAA,EAAA;;;;;;;;;IApKmC,MAAA,EAAA,MAAA;;;;;;;;;;;;iBAoKnC"}
1
+ {"version":3,"file":"blockContributorCovenant.d.ts","names":[],"sources":["../../src/blocks/blockContributorCovenant.ts"],"sourcesContent":[],"mappings":";;;cAKa,2CAAwB;;;EAAxB,SAAA,EAAA,MAAA;EAuKX,aAAA,EAAA;IAAA,MAAA,EAAA;;;;;;;;;IAvKmC,MAAA,EAAA,MAAA;;;;;;;;;;;;iBAuKnC"}
@@ -93,19 +93,20 @@ unprofessional or unwelcome in the community.
93
93
 
94
94
  **Consequence**: A private, written warning from community leaders, providing
95
95
  clarity around the nature of the violation and an explanation of why the
96
- behavior was inappropriate. A public apology may be requested.
96
+ behavior was inappropriate.
97
+ A public apology may be requested.
97
98
 
98
99
  ### 2. Warning
99
100
 
100
101
  **Community Impact**: A violation through a single incident or series of
101
102
  actions.
102
103
 
103
- **Consequence**: A warning with consequences for continued behavior. No
104
- interaction with the people involved, including unsolicited interaction with
105
- those enforcing the Code of Conduct, for a specified period of time. This
106
- includes avoiding interactions in community spaces as well as external channels
107
- like social media. Violating these terms may lead to a temporary or permanent
108
- ban.
104
+ **Consequence**: A warning with consequences for continued behavior.
105
+ No interaction with the people involved, including unsolicited interaction with
106
+ those enforcing the Code of Conduct, for a specified period of time.
107
+ This includes avoiding interactions in community spaces as well as external
108
+ channels like social media.
109
+ Violating these terms may lead to a temporary or permanent ban.
109
110
 
110
111
  ### 3. Temporary Ban
111
112
 
@@ -113,9 +114,10 @@ ban.
113
114
  sustained inappropriate behavior.
114
115
 
115
116
  **Consequence**: A temporary ban from any sort of interaction or public
116
- communication with the community for a specified period of time. No public or
117
- private interaction with the people involved, including unsolicited interaction
118
- with those enforcing the Code of Conduct, is allowed during this period.
117
+ communication with the community for a specified period of time.
118
+ No public or private interaction with the people involved, including unsolicited
119
+ interaction with those enforcing the Code of Conduct, is allowed during this
120
+ period.
119
121
  Violating these terms may lead to a permanent ban.
120
122
 
121
123
  ### 4. Permanent Ban
@@ -137,7 +139,8 @@ Community Impact Guidelines were inspired by
137
139
  [Mozilla's code of conduct enforcement ladder][mozilla coc].
138
140
 
139
141
  For answers to common questions about this code of conduct, see the FAQ at
140
- [https://www.contributor-covenant.org/faq][faq]. Translations are available at
142
+ [https://www.contributor-covenant.org/faq][faq].
143
+ Translations are available at
141
144
  [https://www.contributor-covenant.org/translations][translations].
142
145
 
143
146
  [homepage]: https://www.contributor-covenant.org
@@ -1 +1 @@
1
- {"version":3,"file":"blockContributorCovenant.js","names":[],"sources":["../../src/blocks/blockContributorCovenant.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockMarkdownlint } from \"./blockMarkdownlint.js\";\nimport { blockREADME } from \"./blockREADME.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\n\nexport const blockContributorCovenant = base.createBlock({\n\tabout: {\n\t\tname: \"Contributor Covenant\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockMarkdownlint({\n\t\t\t\t\tignores: [\".github/CODE_OF_CONDUCT.md\"],\n\t\t\t\t}),\n\t\t\t\tblockREADME({\n\t\t\t\t\tbadges: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\talt: \"🤝 Code of Conduct: Kept\",\n\t\t\t\t\t\t\thref: `https://github.com/${options.owner}/${options.repository}/blob/main/.github/CODE_OF_CONDUCT.md`,\n\t\t\t\t\t\t\tsrc: \"https://img.shields.io/badge/%F0%9F%A4%9D_code_of_conduct-kept-21bb42\",\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\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"CODE_OF_CONDUCT.md\": `# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nWe as members, contributors, and leaders pledge to make participation in our\ncommunity a harassment-free experience for everyone, regardless of age, body\nsize, visible or invisible disability, ethnicity, sex characteristics, gender\nidentity and expression, level of experience, education, socio-economic status,\nnationality, personal appearance, race, caste, color, religion, or sexual\nidentity and orientation.\n\nWe pledge to act and interact in ways that contribute to an open, welcoming,\ndiverse, inclusive, and healthy community.\n\n## Our Standards\n\nExamples of behavior that contributes to a positive environment for our\ncommunity include:\n\n- Demonstrating empathy and kindness toward other people\n- Being respectful of differing opinions, viewpoints, and experiences\n- Giving and gracefully accepting constructive feedback\n- Accepting responsibility and apologizing to those affected by our mistakes,\n and learning from the experience\n- Focusing on what is best not just for us as individuals, but for the overall\n community\n\nExamples of unacceptable behavior include:\n\n- The use of sexualized language or imagery, and sexual attention or advances of\nany kind\n- Trolling, insulting or derogatory comments, and personal or political attacks\n- Public or private harassment\n- Publishing others' private information, such as a physical or email address,\nwithout their explicit permission\n- Other conduct which could reasonably be considered inappropriate in a\nprofessional setting\n\n## Enforcement Responsibilities\n\nCommunity leaders are responsible for clarifying and enforcing our standards of\nacceptable behavior and will take appropriate and fair corrective action in\nresponse to any behavior that they deem inappropriate, threatening, offensive,\nor harmful.\n\nCommunity leaders have the right and responsibility to remove, edit, or reject\ncomments, commits, code, wiki edits, issues, and other contributions that are\nnot aligned to this Code of Conduct, and will communicate reasons for moderation\ndecisions when appropriate.\n\n## Scope\n\nThis Code of Conduct applies within all community spaces, and also applies when\nan individual is officially representing the community in public spaces.\nExamples of representing our community include using an official e-mail address,\nposting via an official social media account, or acting as an appointed\nrepresentative at an online or offline event.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be\nreported to the community leaders responsible for enforcement at\n${options.email.github}.\nAll complaints will be reviewed and investigated promptly and fairly.\n\nAll community leaders are obligated to respect the privacy and security of the\nreporter of any incident.\n\n## Enforcement Guidelines\n\nCommunity leaders will follow these Community Impact Guidelines in determining\nthe consequences for any action they deem in violation of this Code of Conduct:\n\n### 1. Correction\n\n**Community Impact**: Use of inappropriate language or other behavior deemed\nunprofessional or unwelcome in the community.\n\n**Consequence**: A private, written warning from community leaders, providing\nclarity around the nature of the violation and an explanation of why the\nbehavior was inappropriate. A public apology may be requested.\n\n### 2. Warning\n\n**Community Impact**: A violation through a single incident or series of\nactions.\n\n**Consequence**: A warning with consequences for continued behavior. No\ninteraction with the people involved, including unsolicited interaction with\nthose enforcing the Code of Conduct, for a specified period of time. This\nincludes avoiding interactions in community spaces as well as external channels\nlike social media. Violating these terms may lead to a temporary or permanent\nban.\n\n### 3. Temporary Ban\n\n**Community Impact**: A serious violation of community standards, including\nsustained inappropriate behavior.\n\n**Consequence**: A temporary ban from any sort of interaction or public\ncommunication with the community for a specified period of time. No public or\nprivate interaction with the people involved, including unsolicited interaction\nwith those enforcing the Code of Conduct, is allowed during this period.\nViolating these terms may lead to a permanent ban.\n\n### 4. Permanent Ban\n\n**Community Impact**: Demonstrating a pattern of violation of community\nstandards, including sustained inappropriate behavior, harassment of an\nindividual, or aggression toward or disparagement of classes of individuals.\n\n**Consequence**: A permanent ban from any sort of public interaction within the\ncommunity.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage],\nversion 2.1, available at\n[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].\n\nCommunity Impact Guidelines were inspired by\n[Mozilla's code of conduct enforcement ladder][mozilla coc].\n\nFor answers to common questions about this code of conduct, see the FAQ at\n[https://www.contributor-covenant.org/faq][faq]. Translations are available at\n[https://www.contributor-covenant.org/translations][translations].\n\n[homepage]: https://www.contributor-covenant.org\n[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html\n[mozilla coc]: https://github.com/mozilla/diversity\n[faq]: https://www.contributor-covenant.org/faq\n[translations]: https://www.contributor-covenant.org/translations\n`,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [blockRemoveFiles({ files: [\"CODE_OF_CONDUCT.md\"] })],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;AAKA,MAAa,2BAA2B,KAAK,YAAY;CACxD,OAAO,EACN,MAAM,uBACN;CACD,QAAQ,EAAE,SAAS,EAAE;AACpB,SAAO;GACN,QAAQ,CACP,kBAAkB,EACjB,SAAS,CAAC,4BAA6B,EACvC,EAAC,EACF,YAAY,EACX,QAAQ,CACP;IACC,KAAK;IACL,OAAO,qBAAqB,QAAQ,MAAM,GAAG,QAAQ,WAAW;IAChE,KAAK;GACL,CACD,EACD,EAAC,AACF;GACD,OAAO,EACN,WAAW,EACV,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8D1B,QAAQ,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuElB,EACD;EACD;CACD;CACD,aAAa;AACZ,SAAO,EACN,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC,oBAAqB,EAAE,EAAC,AAAC,EAC7D;CACD;AACD,EAAC"}
1
+ {"version":3,"file":"blockContributorCovenant.js","names":[],"sources":["../../src/blocks/blockContributorCovenant.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockMarkdownlint } from \"./blockMarkdownlint.js\";\nimport { blockREADME } from \"./blockREADME.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\n\nexport const blockContributorCovenant = base.createBlock({\n\tabout: {\n\t\tname: \"Contributor Covenant\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockMarkdownlint({\n\t\t\t\t\tignores: [\".github/CODE_OF_CONDUCT.md\"],\n\t\t\t\t}),\n\t\t\t\tblockREADME({\n\t\t\t\t\tbadges: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\talt: \"🤝 Code of Conduct: Kept\",\n\t\t\t\t\t\t\thref: `https://github.com/${options.owner}/${options.repository}/blob/main/.github/CODE_OF_CONDUCT.md`,\n\t\t\t\t\t\t\tsrc: \"https://img.shields.io/badge/%F0%9F%A4%9D_code_of_conduct-kept-21bb42\",\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\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"CODE_OF_CONDUCT.md\": `# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nWe as members, contributors, and leaders pledge to make participation in our\ncommunity a harassment-free experience for everyone, regardless of age, body\nsize, visible or invisible disability, ethnicity, sex characteristics, gender\nidentity and expression, level of experience, education, socio-economic status,\nnationality, personal appearance, race, caste, color, religion, or sexual\nidentity and orientation.\n\nWe pledge to act and interact in ways that contribute to an open, welcoming,\ndiverse, inclusive, and healthy community.\n\n## Our Standards\n\nExamples of behavior that contributes to a positive environment for our\ncommunity include:\n\n- Demonstrating empathy and kindness toward other people\n- Being respectful of differing opinions, viewpoints, and experiences\n- Giving and gracefully accepting constructive feedback\n- Accepting responsibility and apologizing to those affected by our mistakes,\n and learning from the experience\n- Focusing on what is best not just for us as individuals, but for the overall\n community\n\nExamples of unacceptable behavior include:\n\n- The use of sexualized language or imagery, and sexual attention or advances of\nany kind\n- Trolling, insulting or derogatory comments, and personal or political attacks\n- Public or private harassment\n- Publishing others' private information, such as a physical or email address,\nwithout their explicit permission\n- Other conduct which could reasonably be considered inappropriate in a\nprofessional setting\n\n## Enforcement Responsibilities\n\nCommunity leaders are responsible for clarifying and enforcing our standards of\nacceptable behavior and will take appropriate and fair corrective action in\nresponse to any behavior that they deem inappropriate, threatening, offensive,\nor harmful.\n\nCommunity leaders have the right and responsibility to remove, edit, or reject\ncomments, commits, code, wiki edits, issues, and other contributions that are\nnot aligned to this Code of Conduct, and will communicate reasons for moderation\ndecisions when appropriate.\n\n## Scope\n\nThis Code of Conduct applies within all community spaces, and also applies when\nan individual is officially representing the community in public spaces.\nExamples of representing our community include using an official e-mail address,\nposting via an official social media account, or acting as an appointed\nrepresentative at an online or offline event.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be\nreported to the community leaders responsible for enforcement at\n${options.email.github}.\nAll complaints will be reviewed and investigated promptly and fairly.\n\nAll community leaders are obligated to respect the privacy and security of the\nreporter of any incident.\n\n## Enforcement Guidelines\n\nCommunity leaders will follow these Community Impact Guidelines in determining\nthe consequences for any action they deem in violation of this Code of Conduct:\n\n### 1. Correction\n\n**Community Impact**: Use of inappropriate language or other behavior deemed\nunprofessional or unwelcome in the community.\n\n**Consequence**: A private, written warning from community leaders, providing\nclarity around the nature of the violation and an explanation of why the\nbehavior was inappropriate.\nA public apology may be requested.\n\n### 2. Warning\n\n**Community Impact**: A violation through a single incident or series of\nactions.\n\n**Consequence**: A warning with consequences for continued behavior.\nNo interaction with the people involved, including unsolicited interaction with\nthose enforcing the Code of Conduct, for a specified period of time.\nThis includes avoiding interactions in community spaces as well as external\nchannels like social media.\nViolating these terms may lead to a temporary or permanent ban.\n\n### 3. Temporary Ban\n\n**Community Impact**: A serious violation of community standards, including\nsustained inappropriate behavior.\n\n**Consequence**: A temporary ban from any sort of interaction or public\ncommunication with the community for a specified period of time.\nNo public or private interaction with the people involved, including unsolicited\ninteraction with those enforcing the Code of Conduct, is allowed during this\nperiod.\nViolating these terms may lead to a permanent ban.\n\n### 4. Permanent Ban\n\n**Community Impact**: Demonstrating a pattern of violation of community\nstandards, including sustained inappropriate behavior, harassment of an\nindividual, or aggression toward or disparagement of classes of individuals.\n\n**Consequence**: A permanent ban from any sort of public interaction within the\ncommunity.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage],\nversion 2.1, available at\n[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].\n\nCommunity Impact Guidelines were inspired by\n[Mozilla's code of conduct enforcement ladder][mozilla coc].\n\nFor answers to common questions about this code of conduct, see the FAQ at\n[https://www.contributor-covenant.org/faq][faq].\nTranslations are available at\n[https://www.contributor-covenant.org/translations][translations].\n\n[homepage]: https://www.contributor-covenant.org\n[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html\n[mozilla coc]: https://github.com/mozilla/diversity\n[faq]: https://www.contributor-covenant.org/faq\n[translations]: https://www.contributor-covenant.org/translations\n`,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [blockRemoveFiles({ files: [\"CODE_OF_CONDUCT.md\"] })],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;AAKA,MAAa,2BAA2B,KAAK,YAAY;CACxD,OAAO,EACN,MAAM,uBACN;CACD,QAAQ,EAAE,SAAS,EAAE;AACpB,SAAO;GACN,QAAQ,CACP,kBAAkB,EACjB,SAAS,CAAC,4BAA6B,EACvC,EAAC,EACF,YAAY,EACX,QAAQ,CACP;IACC,KAAK;IACL,OAAO,qBAAqB,QAAQ,MAAM,GAAG,QAAQ,WAAW;IAChE,KAAK;GACL,CACD,EACD,EAAC,AACF;GACD,OAAO,EACN,WAAW,EACV,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8D1B,QAAQ,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0ElB,EACD;EACD;CACD;CACD,aAAa;AACZ,SAAO,EACN,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC,oBAAqB,EAAE,EAAC,AAAC,EAC7D;CACD;AACD,EAAC"}
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum335 from "bingo-stratum";
1
+ import * as bingo_stratum1051 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockDevelopmentDocs.d.ts
4
- declare const blockDevelopmentDocs: bingo_stratum335.BlockWithAddons<{
4
+ declare const blockDevelopmentDocs: bingo_stratum1051.BlockWithAddons<{
5
5
  hints: string[];
6
6
  sections: Record<string, {
7
7
  contents?: string | {
@@ -79,8 +79,8 @@ declare const blockDevelopmentDocs: bingo_stratum335.BlockWithAddons<{
79
79
  version?: string | undefined;
80
80
  words?: string[] | undefined;
81
81
  workflowsVersions?: Record<string, Record<string, {
82
- hash?: string | undefined;
83
82
  pinned?: boolean | undefined;
83
+ hash?: string | undefined;
84
84
  }>> | undefined;
85
85
  }>;
86
86
  //# sourceMappingURL=blockDevelopmentDocs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blockDevelopmentDocs.d.ts","names":[],"sources":["../../src/blocks/blockDevelopmentDocs.ts"],"sourcesContent":[],"mappings":";;;cA0Da,uCAAoB;;YAiD/B;IAjDW,QAAA,CAAA,EAAA,MAAA,GAiDX;MAAA,MAAA,CAAA,EAAA,MAAA,GAAA,SAAA;MAAA,KAAA,CAAA,EAAA,MAAA,EAAA,GAAA,SAAA;;;;;;;;;;EAjD+B,MAAA,EAAA,QAAA,GAAA,YAAA"}
1
+ {"version":3,"file":"blockDevelopmentDocs.d.ts","names":[],"sources":["../../src/blocks/blockDevelopmentDocs.ts"],"sourcesContent":[],"mappings":";;;cA0Da,wCAAoB;;YAiD/B;IAjDW,QAAA,CAAA,EAAA,MAAA,GAiDX;MAAA,MAAA,CAAA,EAAA,MAAA,GAAA,SAAA;MAAA,KAAA,CAAA,EAAA,MAAA,EAAA,GAAA,SAAA;;;;;;;;;;EAjD+B,MAAA,EAAA,QAAA,GAAA,YAAA"}
@@ -1,35 +1,35 @@
1
- import * as bingo_stratum337 from "bingo-stratum";
1
+ import * as bingo_stratum1053 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockESLint.d.ts
4
- declare const blockESLint: bingo_stratum337.BlockWithAddons<{
5
- explanations: string[];
4
+ declare const blockESLint: bingo_stratum1053.BlockWithAddons<{
5
+ imports: {
6
+ source: string | {
7
+ version: string;
8
+ packageName: string;
9
+ };
10
+ specifier: string;
11
+ types?: boolean | undefined;
12
+ }[];
13
+ ignores: string[];
6
14
  extensions: (string | {
7
15
  files?: string[] | undefined;
8
16
  rules?: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
9
17
  entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
10
18
  comment?: string | undefined;
11
19
  }[] | undefined;
20
+ plugins?: Record<string, string> | undefined;
21
+ settings?: Record<string, unknown> | undefined;
12
22
  extends?: string[] | undefined;
13
23
  languageOptions?: unknown;
14
24
  linterOptions?: unknown;
15
- plugins?: Record<string, string> | undefined;
16
- settings?: Record<string, unknown> | undefined;
17
25
  })[];
18
- ignores: string[];
19
- imports: {
20
- source: string | {
21
- version: string;
22
- packageName: string;
23
- };
24
- specifier: string;
25
- types?: boolean | undefined;
26
- }[];
26
+ explanations: string[];
27
27
  rules?: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
28
28
  entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
29
29
  comment?: string | undefined;
30
30
  }[] | undefined;
31
- beforeLint?: string | undefined;
32
31
  settings?: Record<string, unknown> | undefined;
32
+ beforeLint?: string | undefined;
33
33
  }, {
34
34
  access: "public" | "restricted";
35
35
  description: string;
@@ -94,8 +94,8 @@ declare const blockESLint: bingo_stratum337.BlockWithAddons<{
94
94
  version?: string | undefined;
95
95
  words?: string[] | undefined;
96
96
  workflowsVersions?: Record<string, Record<string, {
97
- hash?: string | undefined;
98
97
  pinned?: boolean | undefined;
98
+ hash?: string | undefined;
99
99
  }>> | undefined;
100
100
  }>;
101
101
  //# sourceMappingURL=blockESLint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blockESLint.d.ts","names":[],"sources":["../../src/blocks/blockESLint.ts"],"sourcesContent":[],"mappings":";;;cA0Ba,8BAAW;;;IAAX,KAAA,CAAA,EAAA,MAmPX,EAAA,GAAA,SAAA;IAAA,KAAA,CAAA,EAAA,MAAA,CAAA,MAAA,EAAA,KAAA,GAAA,OAAA,GAAA,MAAA,GAAA,CAAA,OAAA,GAAA,MAAA,EAAA,OAAA,CAAA,GAAA,CAAA,OAAA,GAAA,MAAA,EAAA,OAAA,EAAA,OAAA,CAAA,CAAA,GAAA;MAAA,OAAA,QAAA,CAAA,MAAA,EAAA,KAAA,GAAA,OAAA,GAAA,MAAA,GAAA,CAAA,OAAA,GAAA,MAAA,EAAA,OAAA,CAAA,GAAA,CAAA,OAAA,GAAA,MAAA,EAAA,OAAA,EAAA,OAAA,CAAA,CAAA;;;;;;;;;;;;;;;qBAnPsB;IAAA,KAAA,CAAA,EAAA,OAAA,GAAA,SAAA"}
1
+ {"version":3,"file":"blockESLint.d.ts","names":[],"sources":["../../src/blocks/blockESLint.ts"],"sourcesContent":[],"mappings":";;;cA0Ba,+BAAW;;;MAAX,OAoPX,EAAA,MAAA;MAAA,WAAA,EAAA,MAAA;IAAA,CAAA;;;;;;;YAAA;;;;;;;;2BApPsB;EAAA,CAAA,CAAA,EAAA"}
@@ -37,6 +37,7 @@ const blockESLint = base.createBlock({
37
37
  const explanation = explanations.length > 0 ? `${explanations.map((explanation$1) => `/*\n${explanation$1}\n*/\n`).join("")}\n` : "";
38
38
  const importLines = [
39
39
  "import eslint from \"@eslint/js\";",
40
+ "import { defineConfig } from \"eslint/config\";",
40
41
  "import tseslint from \"typescript-eslint\";",
41
42
  ...imports.map((packageImport) => `import ${packageImport.specifier} from "${typeof packageImport.source === "string" ? packageImport.source : packageImport.source.packageName}"`)
42
43
  ].sort((a, b) => a.replace(/.+from/, "").localeCompare(b.replace(/.+from/, "")));
@@ -114,7 +115,7 @@ Each should be shown in VS Code, and can be run manually on the command-line:
114
115
  ],
115
116
  files: { [configFileName]: `${explanation}${importLines.join("\n")}
116
117
 
117
- export default tseslint.config(
118
+ export default defineConfig(
118
119
  { ignores: [${ignoreLines.join(", ")}] },
119
120
  ${printExtension({ linterOptions: { reportUnusedDisableDirectives: "error" } })},
120
121
  eslint.configs.recommended,
@@ -1 +1 @@
1
- {"version":3,"file":"blockESLint.js","names":["explanation","rulesGroups: ExtensionRuleGroup[]","grouped: typeof rulesGroups","extension: Extension","rules: ExtensionRules","comment: string | undefined","line: string"],"sources":["../../src/blocks/blockESLint.ts"],"sourcesContent":["// @ts-expect-error -- https://github.com/egoist/parse-package-name/issues/30\nimport { parse as parsePackageName } from \"parse-package-name\";\nimport sortKeys from \"sort-keys\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRemoveDependencies } from \"./blockRemoveDependencies.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { blockESLintIntake } from \"./eslint/blockESLintIntake.js\";\nimport {\n\tExtension,\n\tExtensionRuleGroup,\n\tExtensionRules,\n\tzExtension,\n\tzExtensionRules,\n\tzPackageImport,\n} from \"./eslint/schemas.js\";\nimport { intakeFile } from \"./intake/intakeFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockESLint = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint\",\n\t},\n\taddons: {\n\t\tbeforeLint: z.string().optional(),\n\t\texplanations: z.array(z.string()).default([]),\n\t\textensions: z.array(z.union([z.string(), zExtension])).default([]),\n\t\tignores: z.array(z.string()).default([]),\n\t\timports: z.array(zPackageImport).default([]),\n\t\trules: zExtensionRules.optional(),\n\t\tsettings: z.record(z.string(), z.unknown()).optional(),\n\t},\n\tintake({ files }) {\n\t\tconst eslintConfigRaw = intakeFile(files, [\n\t\t\t[\"eslint.config.js\", \"eslint.config.mjs\"],\n\t\t]);\n\n\t\treturn eslintConfigRaw ? blockESLintIntake(eslintConfigRaw[0]) : undefined;\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { explanations, extensions, ignores, imports, rules, settings } =\n\t\t\taddons;\n\n\t\tconst [configFileName, fileExtensions] =\n\t\t\toptions.type === \"commonjs\"\n\t\t\t\t? [\"eslint.config.mjs\", \"js,mjs,ts\"]\n\t\t\t\t: [\"eslint.config.js\", \"js,ts\"];\n\n\t\tconst explanation =\n\t\t\texplanations.length > 0\n\t\t\t\t? `${explanations\n\t\t\t\t\t\t.map((explanation) => `/*\\n${explanation}\\n*/\\n`)\n\t\t\t\t\t\t.join(\"\")}\\n`\n\t\t\t\t: \"\";\n\n\t\tconst importLines = [\n\t\t\t'import eslint from \"@eslint/js\";',\n\t\t\t'import tseslint from \"typescript-eslint\";',\n\t\t\t...imports.map(\n\t\t\t\t(packageImport) =>\n\t\t\t\t\t`import ${packageImport.specifier} from \"${typeof packageImport.source === \"string\" ? packageImport.source : packageImport.source.packageName}\"`,\n\t\t\t),\n\t\t].sort((a, b) =>\n\t\t\ta.replace(/.+from/, \"\").localeCompare(b.replace(/.+from/, \"\")),\n\t\t);\n\n\t\tconst ignoreLines = Array.from(\n\t\t\tnew Set(\n\t\t\t\t[\"lib\", \"node_modules\", \"pnpm-lock.yaml\", ...ignores].map((ignore) =>\n\t\t\t\t\tJSON.stringify(ignore),\n\t\t\t\t),\n\t\t\t),\n\t\t).sort();\n\n\t\tconst extensionLines = [\n\t\t\tprintExtension({\n\t\t\t\textends: [\n\t\t\t\t\t\"tseslint.configs.strictTypeChecked\",\n\t\t\t\t\t\"tseslint.configs.stylisticTypeChecked\",\n\t\t\t\t],\n\t\t\t\tfiles: [`**/*.{${fileExtensions}}`],\n\t\t\t\tlanguageOptions: {\n\t\t\t\t\tparserOptions: {\n\t\t\t\t\t\tprojectService: {\n\t\t\t\t\t\t\tallowDefaultProject: Array.from(\n\t\t\t\t\t\t\t\tnew Set(\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t\"*.config.*s\",\n\t\t\t\t\t\t\t\t\t\t...(typeof options.bin === \"object\"\n\t\t\t\t\t\t\t\t\t\t\t? Object.values(options.bin)\n\t\t\t\t\t\t\t\t\t\t\t: [options.bin]),\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t.filter(Boolean)\n\t\t\t\t\t\t\t\t\t\t.sort(),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t...(rules && { rules }),\n\t\t\t\t...(settings && { settings }),\n\t\t\t}),\n\t\t\t...(options.type === \"commonjs\"\n\t\t\t\t? [\n\t\t\t\t\t\tprintExtension({\n\t\t\t\t\t\t\tfiles: [\"*.mjs\"],\n\t\t\t\t\t\t\tlanguageOptions: { sourceType: \"module\" },\n\t\t\t\t\t\t}),\n\t\t\t\t\t]\n\t\t\t\t: []),\n\t\t\t...extensions.map((extension) =>\n\t\t\t\ttypeof extension === \"string\" ? extension : printExtension(extension),\n\t\t\t),\n\t\t]\n\t\t\t.sort((a, b) => processForSort(a).localeCompare(processForSort(b)))\n\t\t\t.map((t) => t);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tLinting: {\n\t\t\t\t\t\t\tcontents: {\n\t\t\t\t\t\t\t\tafter: [\n\t\t\t\t\t\t\t\t\t`\nFor example, ESLint can be run with \\`--fix\\` to auto-fix some lint rule complaints:\n\n\\`\\`\\`shell\npnpm run lint --fix\n\\`\\`\\`\n`,\n\t\t\t\t\t\t\t\t\t...(addons.beforeLint ? [addons.beforeLint] : []),\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tbefore: `\nThis package includes several forms of linting to enforce consistent code quality and styling.\nEach should be shown in VS Code, and can be run manually on the command-line:\n`,\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t`- \\`pnpm lint\\` ([ESLint](https://eslint.org) with [typescript-eslint](https://typescript-eslint.io)): Lints JavaScript and TypeScript source files`,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tplural: `Read the individual documentation for each linter to understand how it can be configured and used best.`,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint\",\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t...(options.bin ? [{ run: \"pnpm build\" }] : []),\n\t\t\t\t\t\t\t\t{ run: \"pnpm lint\" },\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t\t...getPackageDependencies(\n\t\t\t\t\t\t\t\t\"@eslint/js\",\n\t\t\t\t\t\t\t\t\"@types/node\",\n\t\t\t\t\t\t\t\t\"eslint\",\n\t\t\t\t\t\t\t\t\"typescript-eslint\",\n\t\t\t\t\t\t\t\t...imports\n\t\t\t\t\t\t\t\t\t.filter((imported) => typeof imported.source === \"string\")\n\t\t\t\t\t\t\t\t\t.flatMap(({ source, types }) => {\n\t\t\t\t\t\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-call -- https://github.com/egoist/parse-package-name/issues/30\n\t\t\t\t\t\t\t\t\t\tconst { name } = parsePackageName(source) as {\n\t\t\t\t\t\t\t\t\t\t\tname: string;\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\treturn types ? [name, `@types/${name}`] : [name];\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t...Object.fromEntries(\n\t\t\t\t\t\t\t\timports\n\t\t\t\t\t\t\t\t\t.filter(\n\t\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\timported,\n\t\t\t\t\t\t\t\t\t\t): imported is typeof imported & { source: object } =>\n\t\t\t\t\t\t\t\t\t\t\ttypeof imported.source === \"object\",\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t.map((imported) => [\n\t\t\t\t\t\t\t\t\t\timported.source.packageName,\n\t\t\t\t\t\t\t\t\t\timported.source.version,\n\t\t\t\t\t\t\t\t\t]),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\tlint: \"eslint . --max-warnings 0\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVSCode({\n\t\t\t\t\textensions: [\"dbaeumer.vscode-eslint\"],\n\t\t\t\t\tsettings: {\n\t\t\t\t\t\t\"editor.codeActionsOnSave\": {\n\t\t\t\t\t\t\t\"source.fixAll.eslint\": \"explicit\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"eslint.probe\": [\n\t\t\t\t\t\t\t\"javascript\",\n\t\t\t\t\t\t\t\"javascriptreact\",\n\t\t\t\t\t\t\t\"json\",\n\t\t\t\t\t\t\t\"jsonc\",\n\t\t\t\t\t\t\t\"markdown\",\n\t\t\t\t\t\t\t\"typescript\",\n\t\t\t\t\t\t\t\"typescriptreact\",\n\t\t\t\t\t\t\t\"yaml\",\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"eslint.rules.customizations\": [{ rule: \"*\", severity: \"warn\" }],\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t[configFileName]: `${explanation}${importLines.join(\"\\n\")}\n\nexport default tseslint.config(\n\t{ ignores: [${ignoreLines.join(\", \")}] },\n\t${printExtension({\n\t\tlinterOptions: { reportUnusedDisableDirectives: \"error\" },\n\t})},\n\teslint.configs.recommended,\n\t${extensionLines.join(\",\")}\n);`,\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"pnpm lint --fix\"],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\ttransition({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveDependencies({\n\t\t\t\t\tdependencies: [\n\t\t\t\t\t\t\"@types/eslint\",\n\t\t\t\t\t\t\"@typescript-eslint/eslint-plugin\",\n\t\t\t\t\t\t\"@typescript-eslint/parser\",\n\t\t\t\t\t\t\"eslint-plugin-deprecation\",\n\t\t\t\t\t\t\"eslint-plugin-eslint-comments\",\n\t\t\t\t\t\t\"eslint-plugin-no-only-tests\",\n\t\t\t\t\t\t\"yaml-eslint-parser\",\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockRemoveFiles({\n\t\t\t\t\tfiles: [\n\t\t\t\t\t\t\".eslintrc*\",\n\t\t\t\t\t\t\".eslintignore\",\n\t\t\t\t\t\toptions.type === \"commonjs\"\n\t\t\t\t\t\t\t? \"eslint.config.{cjs,js}\"\n\t\t\t\t\t\t\t: \"eslint.config.{cjs,mjs}\",\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockRemoveWorkflows({\n\t\t\t\t\tworkflows: [\"eslint\", \"lint\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n\nfunction groupByComment(rulesGroups: ExtensionRuleGroup[]) {\n\tconst byComment = new Map<string | undefined, ExtensionRuleGroup>();\n\tconst grouped: typeof rulesGroups = [];\n\n\tfor (const group of rulesGroups) {\n\t\tconst existing = byComment.get(group.comment);\n\n\t\tif (existing) {\n\t\t\texisting.entries = {\n\t\t\t\t...existing.entries,\n\t\t\t\t...group.entries,\n\t\t\t};\n\t\t\tcontinue;\n\t\t} else {\n\t\t\tbyComment.set(group.comment, group);\n\t\t\tgrouped.push(group);\n\t\t}\n\t}\n\n\treturn grouped;\n}\n\nfunction printExtension(extension: Extension) {\n\treturn [\n\t\t\"{\",\n\t\textension.extends && `extends: [${extension.extends.join(\", \")}],`,\n\t\textension.files &&\n\t\t\t`files: [${extension.files.map((glob) => JSON.stringify(glob)).join(\", \")}],`,\n\t\textension.languageOptions &&\n\t\t\t`languageOptions: ${JSON.stringify(extension.languageOptions).replace('\"import.meta.dirname\"', \"import.meta.dirname\")},`,\n\t\textension.linterOptions &&\n\t\t\t`linterOptions: ${JSON.stringify(extension.linterOptions)}`,\n\t\textension.rules && `rules: ${printExtensionRules(extension.rules)},`,\n\t\textension.settings &&\n\t\t\t`settings: ${JSON.stringify(sortKeys(extension.settings))},`,\n\t\t\"}\",\n\t]\n\t\t.filter(Boolean)\n\t\t.join(\" \");\n}\n\nfunction printExtensionRules(rules: ExtensionRules) {\n\tif (!Array.isArray(rules)) {\n\t\treturn JSON.stringify(rules);\n\t}\n\n\treturn [\n\t\t\"{\",\n\t\t...groupByComment(rules).flatMap((group) => [\n\t\t\tprintGroupComment(group.comment),\n\t\t\t...Object.entries(group.entries).map(\n\t\t\t\t([ruleName, options]) => `\"${ruleName}\": ${JSON.stringify(options)},`,\n\t\t\t),\n\t\t]),\n\t\t\"}\",\n\t].join(\"\");\n}\n\nfunction printGroupComment(comment: string | undefined) {\n\treturn comment ? `\\n\\n// ${comment.replaceAll(\"\\n\", \"\\n// \")}\\n` : \"\";\n}\n\nfunction processForSort(line: string) {\n\tif (line.startsWith(\"...\") || /\\w+/.test(line[0])) {\n\t\treturn `A\\n${line.replaceAll(/\\W+/g, \"\")}`;\n\t}\n\n\treturn `B\\n${(/files: (.+)/.exec(line)?.[1] ?? line).replaceAll(/\\W+/g, \"\")}`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AA0BA,MAAa,cAAc,K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AAG;AACV;AAED,SAAS,kBAAkBC,SAA6B;AACvD,QAAO,WAAW,SAAS,QAAQ,WAAW,MAAM,QAAQ,CAAC,MAAM;AACnE;AAED,SAAS,eAAeC,MAAc;AACrC,KAAI,KAAK,WAAW,MAAM,IAAI,MAAM,KAAK,KAAK,GAAG,CAChD,SAAQ,KAAK,KAAK,WAAW,QAAQ,GAAG,CAAC;AAG1C,SAAQ,KAAK,CAAC,cAAc,KAAK,KAAK,GAAG,MAAM,MAAM,WAAW,QAAQ,GAAG,CAAC;AAC5E"}
1
+ {"version":3,"file":"blockESLint.js","names":["explanation","rulesGroups: ExtensionRuleGroup[]","grouped: typeof rulesGroups","extension: Extension","rules: ExtensionRules","comment: string | undefined","line: string"],"sources":["../../src/blocks/blockESLint.ts"],"sourcesContent":["// @ts-expect-error -- https://github.com/egoist/parse-package-name/issues/30\nimport { parse as parsePackageName } from \"parse-package-name\";\nimport sortKeys from \"sort-keys\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRemoveDependencies } from \"./blockRemoveDependencies.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { blockESLintIntake } from \"./eslint/blockESLintIntake.js\";\nimport {\n\tExtension,\n\tExtensionRuleGroup,\n\tExtensionRules,\n\tzExtension,\n\tzExtensionRules,\n\tzPackageImport,\n} from \"./eslint/schemas.js\";\nimport { intakeFile } from \"./intake/intakeFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockESLint = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint\",\n\t},\n\taddons: {\n\t\tbeforeLint: z.string().optional(),\n\t\texplanations: z.array(z.string()).default([]),\n\t\textensions: z.array(z.union([z.string(), zExtension])).default([]),\n\t\tignores: z.array(z.string()).default([]),\n\t\timports: z.array(zPackageImport).default([]),\n\t\trules: zExtensionRules.optional(),\n\t\tsettings: z.record(z.string(), z.unknown()).optional(),\n\t},\n\tintake({ files }) {\n\t\tconst eslintConfigRaw = intakeFile(files, [\n\t\t\t[\"eslint.config.js\", \"eslint.config.mjs\"],\n\t\t]);\n\n\t\treturn eslintConfigRaw ? blockESLintIntake(eslintConfigRaw[0]) : undefined;\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { explanations, extensions, ignores, imports, rules, settings } =\n\t\t\taddons;\n\n\t\tconst [configFileName, fileExtensions] =\n\t\t\toptions.type === \"commonjs\"\n\t\t\t\t? [\"eslint.config.mjs\", \"js,mjs,ts\"]\n\t\t\t\t: [\"eslint.config.js\", \"js,ts\"];\n\n\t\tconst explanation =\n\t\t\texplanations.length > 0\n\t\t\t\t? `${explanations\n\t\t\t\t\t\t.map((explanation) => `/*\\n${explanation}\\n*/\\n`)\n\t\t\t\t\t\t.join(\"\")}\\n`\n\t\t\t\t: \"\";\n\n\t\tconst importLines = [\n\t\t\t'import eslint from \"@eslint/js\";',\n\t\t\t'import { defineConfig } from \"eslint/config\";',\n\t\t\t'import tseslint from \"typescript-eslint\";',\n\t\t\t...imports.map(\n\t\t\t\t(packageImport) =>\n\t\t\t\t\t`import ${packageImport.specifier} from \"${typeof packageImport.source === \"string\" ? packageImport.source : packageImport.source.packageName}\"`,\n\t\t\t),\n\t\t].sort((a, b) =>\n\t\t\ta.replace(/.+from/, \"\").localeCompare(b.replace(/.+from/, \"\")),\n\t\t);\n\n\t\tconst ignoreLines = Array.from(\n\t\t\tnew Set(\n\t\t\t\t[\"lib\", \"node_modules\", \"pnpm-lock.yaml\", ...ignores].map((ignore) =>\n\t\t\t\t\tJSON.stringify(ignore),\n\t\t\t\t),\n\t\t\t),\n\t\t).sort();\n\n\t\tconst extensionLines = [\n\t\t\tprintExtension({\n\t\t\t\textends: [\n\t\t\t\t\t\"tseslint.configs.strictTypeChecked\",\n\t\t\t\t\t\"tseslint.configs.stylisticTypeChecked\",\n\t\t\t\t],\n\t\t\t\tfiles: [`**/*.{${fileExtensions}}`],\n\t\t\t\tlanguageOptions: {\n\t\t\t\t\tparserOptions: {\n\t\t\t\t\t\tprojectService: {\n\t\t\t\t\t\t\tallowDefaultProject: Array.from(\n\t\t\t\t\t\t\t\tnew Set(\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t\"*.config.*s\",\n\t\t\t\t\t\t\t\t\t\t...(typeof options.bin === \"object\"\n\t\t\t\t\t\t\t\t\t\t\t? Object.values(options.bin)\n\t\t\t\t\t\t\t\t\t\t\t: [options.bin]),\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t.filter(Boolean)\n\t\t\t\t\t\t\t\t\t\t.sort(),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t...(rules && { rules }),\n\t\t\t\t...(settings && { settings }),\n\t\t\t}),\n\t\t\t...(options.type === \"commonjs\"\n\t\t\t\t? [\n\t\t\t\t\t\tprintExtension({\n\t\t\t\t\t\t\tfiles: [\"*.mjs\"],\n\t\t\t\t\t\t\tlanguageOptions: { sourceType: \"module\" },\n\t\t\t\t\t\t}),\n\t\t\t\t\t]\n\t\t\t\t: []),\n\t\t\t...extensions.map((extension) =>\n\t\t\t\ttypeof extension === \"string\" ? extension : printExtension(extension),\n\t\t\t),\n\t\t]\n\t\t\t.sort((a, b) => processForSort(a).localeCompare(processForSort(b)))\n\t\t\t.map((t) => t);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tLinting: {\n\t\t\t\t\t\t\tcontents: {\n\t\t\t\t\t\t\t\tafter: [\n\t\t\t\t\t\t\t\t\t`\nFor example, ESLint can be run with \\`--fix\\` to auto-fix some lint rule complaints:\n\n\\`\\`\\`shell\npnpm run lint --fix\n\\`\\`\\`\n`,\n\t\t\t\t\t\t\t\t\t...(addons.beforeLint ? [addons.beforeLint] : []),\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tbefore: `\nThis package includes several forms of linting to enforce consistent code quality and styling.\nEach should be shown in VS Code, and can be run manually on the command-line:\n`,\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t`- \\`pnpm lint\\` ([ESLint](https://eslint.org) with [typescript-eslint](https://typescript-eslint.io)): Lints JavaScript and TypeScript source files`,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tplural: `Read the individual documentation for each linter to understand how it can be configured and used best.`,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint\",\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t...(options.bin ? [{ run: \"pnpm build\" }] : []),\n\t\t\t\t\t\t\t\t{ run: \"pnpm lint\" },\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t\t...getPackageDependencies(\n\t\t\t\t\t\t\t\t\"@eslint/js\",\n\t\t\t\t\t\t\t\t\"@types/node\",\n\t\t\t\t\t\t\t\t\"eslint\",\n\t\t\t\t\t\t\t\t\"typescript-eslint\",\n\t\t\t\t\t\t\t\t...imports\n\t\t\t\t\t\t\t\t\t.filter((imported) => typeof imported.source === \"string\")\n\t\t\t\t\t\t\t\t\t.flatMap(({ source, types }) => {\n\t\t\t\t\t\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-call -- https://github.com/egoist/parse-package-name/issues/30\n\t\t\t\t\t\t\t\t\t\tconst { name } = parsePackageName(source) as {\n\t\t\t\t\t\t\t\t\t\t\tname: string;\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\treturn types ? [name, `@types/${name}`] : [name];\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t...Object.fromEntries(\n\t\t\t\t\t\t\t\timports\n\t\t\t\t\t\t\t\t\t.filter(\n\t\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\timported,\n\t\t\t\t\t\t\t\t\t\t): imported is typeof imported & { source: object } =>\n\t\t\t\t\t\t\t\t\t\t\ttypeof imported.source === \"object\",\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t.map((imported) => [\n\t\t\t\t\t\t\t\t\t\timported.source.packageName,\n\t\t\t\t\t\t\t\t\t\timported.source.version,\n\t\t\t\t\t\t\t\t\t]),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\tlint: \"eslint . --max-warnings 0\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVSCode({\n\t\t\t\t\textensions: [\"dbaeumer.vscode-eslint\"],\n\t\t\t\t\tsettings: {\n\t\t\t\t\t\t\"editor.codeActionsOnSave\": {\n\t\t\t\t\t\t\t\"source.fixAll.eslint\": \"explicit\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"eslint.probe\": [\n\t\t\t\t\t\t\t\"javascript\",\n\t\t\t\t\t\t\t\"javascriptreact\",\n\t\t\t\t\t\t\t\"json\",\n\t\t\t\t\t\t\t\"jsonc\",\n\t\t\t\t\t\t\t\"markdown\",\n\t\t\t\t\t\t\t\"typescript\",\n\t\t\t\t\t\t\t\"typescriptreact\",\n\t\t\t\t\t\t\t\"yaml\",\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"eslint.rules.customizations\": [{ rule: \"*\", severity: \"warn\" }],\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t[configFileName]: `${explanation}${importLines.join(\"\\n\")}\n\nexport default defineConfig(\n\t{ ignores: [${ignoreLines.join(\", \")}] },\n\t${printExtension({\n\t\tlinterOptions: { reportUnusedDisableDirectives: \"error\" },\n\t})},\n\teslint.configs.recommended,\n\t${extensionLines.join(\",\")}\n);`,\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"pnpm lint --fix\"],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\ttransition({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveDependencies({\n\t\t\t\t\tdependencies: [\n\t\t\t\t\t\t\"@types/eslint\",\n\t\t\t\t\t\t\"@typescript-eslint/eslint-plugin\",\n\t\t\t\t\t\t\"@typescript-eslint/parser\",\n\t\t\t\t\t\t\"eslint-plugin-deprecation\",\n\t\t\t\t\t\t\"eslint-plugin-eslint-comments\",\n\t\t\t\t\t\t\"eslint-plugin-no-only-tests\",\n\t\t\t\t\t\t\"yaml-eslint-parser\",\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockRemoveFiles({\n\t\t\t\t\tfiles: [\n\t\t\t\t\t\t\".eslintrc*\",\n\t\t\t\t\t\t\".eslintignore\",\n\t\t\t\t\t\toptions.type === \"commonjs\"\n\t\t\t\t\t\t\t? \"eslint.config.{cjs,js}\"\n\t\t\t\t\t\t\t: \"eslint.config.{cjs,mjs}\",\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockRemoveWorkflows({\n\t\t\t\t\tworkflows: [\"eslint\", \"lint\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n\nfunction groupByComment(rulesGroups: ExtensionRuleGroup[]) {\n\tconst byComment = new Map<string | undefined, ExtensionRuleGroup>();\n\tconst grouped: typeof rulesGroups = [];\n\n\tfor (const group of rulesGroups) {\n\t\tconst existing = byComment.get(group.comment);\n\n\t\tif (existing) {\n\t\t\texisting.entries = {\n\t\t\t\t...existing.entries,\n\t\t\t\t...group.entries,\n\t\t\t};\n\t\t\tcontinue;\n\t\t} else {\n\t\t\tbyComment.set(group.comment, group);\n\t\t\tgrouped.push(group);\n\t\t}\n\t}\n\n\treturn grouped;\n}\n\nfunction printExtension(extension: Extension) {\n\treturn [\n\t\t\"{\",\n\t\textension.extends && `extends: [${extension.extends.join(\", \")}],`,\n\t\textension.files &&\n\t\t\t`files: [${extension.files.map((glob) => JSON.stringify(glob)).join(\", \")}],`,\n\t\textension.languageOptions &&\n\t\t\t`languageOptions: ${JSON.stringify(extension.languageOptions).replace('\"import.meta.dirname\"', \"import.meta.dirname\")},`,\n\t\textension.linterOptions &&\n\t\t\t`linterOptions: ${JSON.stringify(extension.linterOptions)}`,\n\t\textension.rules && `rules: ${printExtensionRules(extension.rules)},`,\n\t\textension.settings &&\n\t\t\t`settings: ${JSON.stringify(sortKeys(extension.settings))},`,\n\t\t\"}\",\n\t]\n\t\t.filter(Boolean)\n\t\t.join(\" \");\n}\n\nfunction printExtensionRules(rules: ExtensionRules) {\n\tif (!Array.isArray(rules)) {\n\t\treturn JSON.stringify(rules);\n\t}\n\n\treturn [\n\t\t\"{\",\n\t\t...groupByComment(rules).flatMap((group) => [\n\t\t\tprintGroupComment(group.comment),\n\t\t\t...Object.entries(group.entries).map(\n\t\t\t\t([ruleName, options]) => `\"${ruleName}\": ${JSON.stringify(options)},`,\n\t\t\t),\n\t\t]),\n\t\t\"}\",\n\t].join(\"\");\n}\n\nfunction printGroupComment(comment: string | undefined) {\n\treturn comment ? `\\n\\n// ${comment.replaceAll(\"\\n\", \"\\n// \")}\\n` : \"\";\n}\n\nfunction processForSort(line: string) {\n\tif (line.startsW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AAQ,CAAC,UAAU,CAC3C,kBAAkB,MAAM,QAAQ,EAChC,GAAG,OAAO,QAAQ,MAAM,QAAQ,CAAC,IAChC,CAAC,CAAC,UAAU,QAAQ,MAAM,GAAG,SAAS,KAAK,KAAK,UAAU,QAAQ,CAAC,GACnE,AACD,EAAC;EACF;CACA,EAAC,KAAK,GAAG;AACV;AAED,SAAS,kBAAkBC,SAA6B;AACvD,QAAO,WAAW,SAAS,QAAQ,WAAW,MAAM,QAAQ,CAAC,MAAM;AACnE;AAED,SAAS,eAAeC,MAAc;AACrC,KAAI,KAAK,WAAW,MAAM,IAAI,MAAM,KAAK,KAAK,GAAG,CAChD,SAAQ,KAAK,KAAK,WAAW,QAAQ,GAAG,CAAC;AAG1C,SAAQ,KAAK,CAAC,cAAc,KAAK,KAAK,GAAG,MAAM,MAAM,WAAW,QAAQ,GAAG,CAAC;AAC5E"}
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum339 from "bingo-stratum";
1
+ import * as bingo_stratum1054 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockESLintComments.d.ts
4
- declare const blockESLintComments: bingo_stratum339.BlockWithoutAddons<{
4
+ declare const blockESLintComments: bingo_stratum1054.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -65,8 +65,8 @@ declare const blockESLintComments: bingo_stratum339.BlockWithoutAddons<{
65
65
  version?: string | undefined;
66
66
  words?: string[] | undefined;
67
67
  workflowsVersions?: Record<string, Record<string, {
68
- hash?: string | undefined;
69
68
  pinned?: boolean | undefined;
69
+ hash?: string | undefined;
70
70
  }>> | undefined;
71
71
  }>;
72
72
  //# sourceMappingURL=blockESLintComments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blockESLintComments.d.ts","names":[],"sources":["../../src/blocks/blockESLintComments.ts"],"sourcesContent":[],"mappings":";;;cAGa,sCAAmB;;;EAAnB,SAAA,EAAA,MAAA;EAmBX,aAAA,EAAA;IAAA,MAAA,EAAA;;;;;;;;;IAnB8B,MAAA,EAAA,MAAA;;;;;;;;;;;;iBAmB9B"}
1
+ {"version":3,"file":"blockESLintComments.d.ts","names":[],"sources":["../../src/blocks/blockESLintComments.ts"],"sourcesContent":[],"mappings":";;;cAGa,uCAAmB;;;EAAnB,SAAA,EAAA,MAAA;EAmBX,aAAA,EAAA;IAAA,MAAA,EAAA;;;;;;;;;IAnB8B,MAAA,EAAA,MAAA;;;;;;;;;;;;iBAmB9B"}
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum342 from "bingo-stratum";
1
+ import * as bingo_stratum1055 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockESLintJSDoc.d.ts
4
- declare const blockESLintJSDoc: bingo_stratum342.BlockWithoutAddons<{
4
+ declare const blockESLintJSDoc: bingo_stratum1055.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -65,8 +65,8 @@ declare const blockESLintJSDoc: bingo_stratum342.BlockWithoutAddons<{
65
65
  version?: string | undefined;
66
66
  words?: string[] | undefined;
67
67
  workflowsVersions?: Record<string, Record<string, {
68
- hash?: string | undefined;
69
68
  pinned?: boolean | undefined;
69
+ hash?: string | undefined;
70
70
  }>> | undefined;
71
71
  }>;
72
72
  //# sourceMappingURL=blockESLintJSDoc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blockESLintJSDoc.d.ts","names":[],"sources":["../../src/blocks/blockESLintJSDoc.ts"],"sourcesContent":[],"mappings":";;;cAGa,mCAAgB;;;EAAhB,SAAA,EAAA,MAAA;EAkBX,aAAA,EAAA;IAAA,MAAA,EAAA;;;;;;;;;IAlB2B,MAAA,EAAA,MAAA;;;;;;;;;;;;iBAkB3B"}
1
+ {"version":3,"file":"blockESLintJSDoc.d.ts","names":[],"sources":["../../src/blocks/blockESLintJSDoc.ts"],"sourcesContent":[],"mappings":";;;cAGa,oCAAgB;;;EAAhB,SAAA,EAAA,MAAA;EAkBX,aAAA,EAAA;IAAA,MAAA,EAAA;;;;;;;;;IAlB2B,MAAA,EAAA,MAAA;;;;;;;;;;;;iBAkB3B"}
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum1137 from "bingo-stratum";
1
+ import * as bingo_stratum1057 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockESLintJSONC.d.ts
4
- declare const blockESLintJSONC: bingo_stratum1137.BlockWithoutAddons<{
4
+ declare const blockESLintJSONC: bingo_stratum1057.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -65,8 +65,8 @@ declare const blockESLintJSONC: bingo_stratum1137.BlockWithoutAddons<{
65
65
  version?: string | undefined;
66
66
  words?: string[] | undefined;
67
67
  workflowsVersions?: Record<string, Record<string, {
68
- hash?: string | undefined;
69
68
  pinned?: boolean | undefined;
69
+ hash?: string | undefined;
70
70
  }>> | undefined;
71
71
  }>;
72
72
  //# sourceMappingURL=blockESLintJSONC.d.ts.map
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum1139 from "bingo-stratum";
1
+ import * as bingo_stratum1060 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockESLintMarkdown.d.ts
4
- declare const blockESLintMarkdown: bingo_stratum1139.BlockWithoutAddons<{
4
+ declare const blockESLintMarkdown: bingo_stratum1060.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -65,8 +65,8 @@ declare const blockESLintMarkdown: bingo_stratum1139.BlockWithoutAddons<{
65
65
  version?: string | undefined;
66
66
  words?: string[] | undefined;
67
67
  workflowsVersions?: Record<string, Record<string, {
68
- hash?: string | undefined;
69
68
  pinned?: boolean | undefined;
69
+ hash?: string | undefined;
70
70
  }>> | undefined;
71
71
  }>;
72
72
  //# sourceMappingURL=blockESLintMarkdown.d.ts.map
@@ -1,8 +1,8 @@
1
- import * as bingo_stratum1140 from "bingo-stratum";
1
+ import * as bingo_stratum1062 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockESLintMoreStyling.d.ts
4
4
  declare const stylisticComment = "Stylistic concerns that don't interfere with Prettier";
5
- declare const blockESLintMoreStyling: bingo_stratum1140.BlockWithoutAddons<{
5
+ declare const blockESLintMoreStyling: bingo_stratum1062.BlockWithoutAddons<{
6
6
  access: "public" | "restricted";
7
7
  description: string;
8
8
  directory: string;
@@ -66,8 +66,8 @@ declare const blockESLintMoreStyling: bingo_stratum1140.BlockWithoutAddons<{
66
66
  version?: string | undefined;
67
67
  words?: string[] | undefined;
68
68
  workflowsVersions?: Record<string, Record<string, {
69
- hash?: string | undefined;
70
69
  pinned?: boolean | undefined;
70
+ hash?: string | undefined;
71
71
  }>> | undefined;
72
72
  }>;
73
73
  //# sourceMappingURL=blockESLintMoreStyling.d.ts.map
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum1142 from "bingo-stratum";
1
+ import * as bingo_stratum1064 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockESLintNode.d.ts
4
- declare const blockESLintNode: bingo_stratum1142.BlockWithoutAddons<{
4
+ declare const blockESLintNode: bingo_stratum1064.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -65,8 +65,8 @@ declare const blockESLintNode: bingo_stratum1142.BlockWithoutAddons<{
65
65
  version?: string | undefined;
66
66
  words?: string[] | undefined;
67
67
  workflowsVersions?: Record<string, Record<string, {
68
- hash?: string | undefined;
69
68
  pinned?: boolean | undefined;
69
+ hash?: string | undefined;
70
70
  }>> | undefined;
71
71
  }>;
72
72
  //# sourceMappingURL=blockESLintNode.d.ts.map
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum1144 from "bingo-stratum";
1
+ import * as bingo_stratum1066 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockESLintPackageJson.d.ts
4
- declare const blockESLintPackageJson: bingo_stratum1144.BlockWithoutAddons<{
4
+ declare const blockESLintPackageJson: bingo_stratum1066.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -65,8 +65,8 @@ declare const blockESLintPackageJson: bingo_stratum1144.BlockWithoutAddons<{
65
65
  version?: string | undefined;
66
66
  words?: string[] | undefined;
67
67
  workflowsVersions?: Record<string, Record<string, {
68
- hash?: string | undefined;
69
68
  pinned?: boolean | undefined;
69
+ hash?: string | undefined;
70
70
  }>> | undefined;
71
71
  }>;
72
72
  //# sourceMappingURL=blockESLintPackageJson.d.ts.map