create-typescript-app 2.65.0 → 2.65.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base.d.mts +18 -109
- package/dist/base.mjs +3 -2
- package/dist/blocks/actions/steps.d.mts +3 -19
- package/dist/blocks/blockAllContributors.d.mts +6 -5
- package/dist/blocks/blockAreTheTypesWrong.d.mts +6 -5
- package/dist/blocks/blockBin.d.mts +6 -5
- package/dist/blocks/blockCSpell.d.mts +7 -6
- package/dist/blocks/blockCTATransitions.d.mts +6 -5
- package/dist/blocks/blockCodecov.d.mts +6 -5
- package/dist/blocks/blockContributingDocs.d.mts +6 -5
- package/dist/blocks/blockContributorCovenant.d.mts +6 -5
- package/dist/blocks/blockDevelopmentDocs.d.mts +6 -5
- package/dist/blocks/blockESLint.d.mts +9 -8
- package/dist/blocks/blockESLint.mjs +2 -2
- package/dist/blocks/blockESLintComments.d.mts +6 -5
- package/dist/blocks/blockESLintJSDoc.d.mts +6 -5
- package/dist/blocks/blockESLintJSONC.d.mts +6 -5
- package/dist/blocks/blockESLintMarkdown.d.mts +6 -5
- package/dist/blocks/blockESLintMarkdownLinks.d.mts +6 -5
- package/dist/blocks/blockESLintMoreStyling.d.mts +6 -5
- package/dist/blocks/blockESLintNode.d.mts +6 -5
- package/dist/blocks/blockESLintPackageJson.d.mts +6 -5
- package/dist/blocks/blockESLintPerfectionist.d.mts +6 -5
- package/dist/blocks/blockESLintPlugin.d.mts +6 -5
- package/dist/blocks/blockESLintRegexp.d.mts +6 -5
- package/dist/blocks/blockESLintYML.d.mts +6 -5
- package/dist/blocks/blockExampleFiles.d.mts +7 -6
- package/dist/blocks/blockExampleFiles.mjs +1 -1
- package/dist/blocks/blockExports.d.mts +6 -5
- package/dist/blocks/blockExports.mjs +10 -3
- package/dist/blocks/blockFunding.d.mts +6 -5
- package/dist/blocks/blockGitHubActionsCI.d.mts +7 -6
- package/dist/blocks/blockGitHubApps.d.mts +6 -5
- package/dist/blocks/blockGitHubIssueTemplates.d.mts +6 -5
- package/dist/blocks/blockGitHubPRTemplate.d.mts +6 -5
- package/dist/blocks/blockGitignore.d.mts +6 -5
- package/dist/blocks/blockKnip.d.mts +6 -5
- package/dist/blocks/blockKnip.mjs +2 -1
- package/dist/blocks/blockMITLicense.d.mts +6 -5
- package/dist/blocks/blockNcc.d.mts +6 -5
- package/dist/blocks/blockNvmrc.d.mts +6 -5
- package/dist/blocks/blockOctoGuide.d.mts +6 -5
- package/dist/blocks/blockOctoGuideStrict.d.mts +6 -5
- package/dist/blocks/blockPackageJson.d.mts +93 -45
- package/dist/blocks/blockPnpmDedupe.d.mts +6 -5
- package/dist/blocks/blockPrettier.d.mts +8 -7
- package/dist/blocks/blockPrettier.mjs +1 -5
- package/dist/blocks/blockPrettierPluginCurly.d.mts +6 -5
- package/dist/blocks/blockPrettierPluginPackageJson.d.mts +6 -5
- package/dist/blocks/blockPrettierPluginPaddingLines.d.mts +6 -5
- package/dist/blocks/blockPrettierPluginSentencesPerLine.d.mts +6 -5
- package/dist/blocks/blockPrettierPluginSh.d.mts +6 -5
- package/dist/blocks/blockREADME.d.mts +8 -7
- package/dist/blocks/blockReleaseIt.d.mts +7 -6
- package/dist/blocks/blockRemoveDependencies.d.mts +6 -5
- package/dist/blocks/blockRemoveFiles.d.mts +6 -5
- package/dist/blocks/blockRemoveWorkflows.d.mts +6 -5
- package/dist/blocks/blockRenovate.d.mts +6 -5
- package/dist/blocks/blockRepositoryBranchRuleset.d.mts +6 -5
- package/dist/blocks/blockRepositoryLabels.d.mts +6 -5
- package/dist/blocks/blockRepositorySecrets.d.mts +7 -6
- package/dist/blocks/blockRepositorySettings.d.mts +6 -5
- package/dist/blocks/blockSecurityDocs.d.mts +6 -5
- package/dist/blocks/blockSideEffects.d.mts +6 -5
- package/dist/blocks/blockTSDown.d.mts +7 -6
- package/dist/blocks/blockTSDown.mjs +1 -1
- package/dist/blocks/blockTemplatedWith.d.mts +6 -5
- package/dist/blocks/blockTypeScript.d.mts +11 -10
- package/dist/blocks/blockVSCode.d.mts +7 -6
- package/dist/blocks/blockVitest.d.mts +8 -7
- package/dist/blocks/blockWebExt.d.mts +6 -5
- package/dist/blocks/eslint/blockESLintIntake.d.mts +1 -1
- package/dist/blocks/eslint/mergeAllExtensions.d.mts +2 -2
- package/dist/blocks/eslint/schemas.d.mts +19 -85
- package/dist/blocks/index.d.mts +412 -314
- package/dist/index.d.mts +26 -116
- package/dist/options/readFunding.mjs +4 -1
- package/dist/presets/common.d.mts +18 -109
- package/dist/presets/everything.d.mts +18 -109
- package/dist/presets/index.d.mts +54 -327
- package/dist/presets/minimal.d.mts +18 -109
- package/dist/schemas.d.mts +9 -81
- package/dist/schemas.mjs +2 -2
- package/dist/template.d.mts +18 -109
- package/package.json +14 -14
|
@@ -15,7 +15,7 @@ import { z } from "zod";
|
|
|
15
15
|
import removeUndefinedObjects from "remove-undefined-objects";
|
|
16
16
|
//#region src/blocks/blockTSDown.ts
|
|
17
17
|
const zEntry = z.array(z.string());
|
|
18
|
-
const zProperties = z.record(z.unknown());
|
|
18
|
+
const zProperties = z.record(z.string(), z.unknown());
|
|
19
19
|
const defaultEntries = /* @__PURE__ */ new Set(["src/**/*.ts", "src/index.ts"]);
|
|
20
20
|
function hasJsEntryPoint(files) {
|
|
21
21
|
const packageData = intakeFileAsJson(files, ["package.json"]);
|
|
@@ -16,14 +16,13 @@ declare const blockTemplatedWith: import("bingo-stratum").BlockWithoutAddons<{
|
|
|
16
16
|
github: string;
|
|
17
17
|
npm: string;
|
|
18
18
|
};
|
|
19
|
-
title: string;
|
|
20
19
|
node: {
|
|
21
20
|
minimum: string;
|
|
22
21
|
pinned?: string | undefined;
|
|
23
22
|
};
|
|
24
23
|
owner: string;
|
|
25
24
|
repository: string;
|
|
26
|
-
|
|
25
|
+
title: string;
|
|
27
26
|
author?: string | undefined;
|
|
28
27
|
bin?: string | Record<string, string> | undefined;
|
|
29
28
|
bundle?: boolean | undefined;
|
|
@@ -37,9 +36,9 @@ declare const blockTemplatedWith: import("bingo-stratum").BlockWithoutAddons<{
|
|
|
37
36
|
}[] | undefined;
|
|
38
37
|
emoji?: string | undefined;
|
|
39
38
|
existingLabels?: {
|
|
40
|
-
name: string;
|
|
41
|
-
description: string;
|
|
42
39
|
color: string;
|
|
40
|
+
description: string;
|
|
41
|
+
name: string;
|
|
43
42
|
}[] | undefined;
|
|
44
43
|
funding?: string | undefined;
|
|
45
44
|
guide?: {
|
|
@@ -56,17 +55,19 @@ declare const blockTemplatedWith: import("bingo-stratum").BlockWithoutAddons<{
|
|
|
56
55
|
packageData?: {
|
|
57
56
|
dependencies?: Record<string, string> | undefined;
|
|
58
57
|
devDependencies?: Record<string, string> | undefined;
|
|
58
|
+
main?: string | undefined;
|
|
59
59
|
peerDependencies?: Record<string, string> | undefined;
|
|
60
60
|
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
61
61
|
scripts?: Record<string, string | undefined> | undefined;
|
|
62
62
|
} | undefined;
|
|
63
63
|
pnpm?: string | undefined;
|
|
64
64
|
rulesetId?: string | undefined;
|
|
65
|
+
type?: "commonjs" | "module" | undefined;
|
|
65
66
|
version?: string | undefined;
|
|
66
67
|
words?: string[] | undefined;
|
|
67
68
|
workflowsVersions?: Record<string, Record<string, {
|
|
68
|
-
pinned?: boolean | undefined;
|
|
69
69
|
hash?: string | undefined;
|
|
70
|
+
pinned?: boolean | undefined;
|
|
70
71
|
}>> | undefined;
|
|
71
72
|
}>;
|
|
72
73
|
//#endregion
|
|
@@ -36,16 +36,16 @@ declare const blockTypeScript: import("bingo-stratum").BlockWithAddons<{
|
|
|
36
36
|
inlineSources?: boolean | undefined;
|
|
37
37
|
isolatedDeclarations?: boolean | undefined;
|
|
38
38
|
isolatedModules?: boolean | undefined;
|
|
39
|
-
jsx?: "
|
|
39
|
+
jsx?: "none" | "preserve" | "react" | "react-jsx" | "react-jsxdev" | "react-native" | undefined;
|
|
40
40
|
keyofStringsOnly?: boolean | undefined;
|
|
41
41
|
lib?: string[] | undefined;
|
|
42
42
|
libReplacement?: boolean | undefined;
|
|
43
43
|
locale?: string | undefined;
|
|
44
44
|
mapRoot?: string | undefined;
|
|
45
45
|
maxNodeModuleJsDepth?: number | undefined;
|
|
46
|
-
module?: "
|
|
47
|
-
moduleDetection?: "
|
|
48
|
-
moduleResolution?: "node16" | "Node16" | "nodenext" | "NodeNext" | "bundler" | "Bundler" | "classic" | "Classic" | "
|
|
46
|
+
module?: "commonjs" | "none" | "preserve" | "amd" | "AMD" | "CommonJS" | "es2015" | "ES2015" | "es2020" | "ES2020" | "es2022" | "ES2022" | "es6" | "ES6" | "esnext" | "ESNext" | "node16" | "Node16" | "node18" | "Node18" | "nodenext" | "NodeNext" | "None" | "Preserve" | "system" | "System" | "umd" | "UMD" | undefined;
|
|
47
|
+
moduleDetection?: "force" | "legacy" | "auto" | undefined;
|
|
48
|
+
moduleResolution?: "node" | "node16" | "Node16" | "nodenext" | "NodeNext" | "bundler" | "Bundler" | "classic" | "Classic" | "Node" | "node10" | "Node10" | "NodeJs" | undefined;
|
|
49
49
|
moduleSuffixes?: string[] | undefined;
|
|
50
50
|
newLine?: "crlf" | "lf" | undefined;
|
|
51
51
|
noCheck?: boolean | undefined;
|
|
@@ -103,7 +103,7 @@ declare const blockTypeScript: import("bingo-stratum").BlockWithAddons<{
|
|
|
103
103
|
noUncheckedSideEffectImports?: boolean | undefined;
|
|
104
104
|
resolveJsonModule?: boolean | undefined;
|
|
105
105
|
suppressImplicitAnyIndexErrors?: boolean | undefined;
|
|
106
|
-
target?: "es2015" | "ES2015" | "es2020" | "ES2020" | "es2022" | "ES2022" | "esnext" | "ESNext" | "es2016" | "ES2016" | "es2017" | "ES2017" | "es2018" | "ES2018" | "es2019" | "ES2019" | "es2021" | "ES2021" | "es2023" | "ES2023" | "es2024" | "ES2024" | "es3" | "ES3" | "es5" | "ES5" | "
|
|
106
|
+
target?: "json" | "latest" | "es2015" | "ES2015" | "es2020" | "ES2020" | "es2022" | "ES2022" | "esnext" | "ESNext" | "es2016" | "ES2016" | "es2017" | "ES2017" | "es2018" | "ES2018" | "es2019" | "ES2019" | "es2021" | "ES2021" | "es2023" | "ES2023" | "es2024" | "ES2024" | "es3" | "ES3" | "es5" | "ES5" | "JSON" | "Latest" | undefined;
|
|
107
107
|
traceResolution?: boolean | undefined;
|
|
108
108
|
typeRoots?: string[] | undefined;
|
|
109
109
|
types?: string[] | undefined;
|
|
@@ -128,14 +128,13 @@ declare const blockTypeScript: import("bingo-stratum").BlockWithAddons<{
|
|
|
128
128
|
github: string;
|
|
129
129
|
npm: string;
|
|
130
130
|
};
|
|
131
|
-
title: string;
|
|
132
131
|
node: {
|
|
133
132
|
minimum: string;
|
|
134
133
|
pinned?: string | undefined;
|
|
135
134
|
};
|
|
136
135
|
owner: string;
|
|
137
136
|
repository: string;
|
|
138
|
-
|
|
137
|
+
title: string;
|
|
139
138
|
author?: string | undefined;
|
|
140
139
|
bin?: string | Record<string, string> | undefined;
|
|
141
140
|
bundle?: boolean | undefined;
|
|
@@ -149,9 +148,9 @@ declare const blockTypeScript: import("bingo-stratum").BlockWithAddons<{
|
|
|
149
148
|
}[] | undefined;
|
|
150
149
|
emoji?: string | undefined;
|
|
151
150
|
existingLabels?: {
|
|
152
|
-
name: string;
|
|
153
|
-
description: string;
|
|
154
151
|
color: string;
|
|
152
|
+
description: string;
|
|
153
|
+
name: string;
|
|
155
154
|
}[] | undefined;
|
|
156
155
|
funding?: string | undefined;
|
|
157
156
|
guide?: {
|
|
@@ -168,17 +167,19 @@ declare const blockTypeScript: import("bingo-stratum").BlockWithAddons<{
|
|
|
168
167
|
packageData?: {
|
|
169
168
|
dependencies?: Record<string, string> | undefined;
|
|
170
169
|
devDependencies?: Record<string, string> | undefined;
|
|
170
|
+
main?: string | undefined;
|
|
171
171
|
peerDependencies?: Record<string, string> | undefined;
|
|
172
172
|
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
173
173
|
scripts?: Record<string, string | undefined> | undefined;
|
|
174
174
|
} | undefined;
|
|
175
175
|
pnpm?: string | undefined;
|
|
176
176
|
rulesetId?: string | undefined;
|
|
177
|
+
type?: "commonjs" | "module" | undefined;
|
|
177
178
|
version?: string | undefined;
|
|
178
179
|
words?: string[] | undefined;
|
|
179
180
|
workflowsVersions?: Record<string, Record<string, {
|
|
180
|
-
pinned?: boolean | undefined;
|
|
181
181
|
hash?: string | undefined;
|
|
182
|
+
pinned?: boolean | undefined;
|
|
182
183
|
}>> | undefined;
|
|
183
184
|
}>;
|
|
184
185
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
//#region src/blocks/blockVSCode.d.ts
|
|
2
2
|
declare const blockVSCode: import("bingo-stratum").BlockWithAddons<{
|
|
3
3
|
settings: Record<string, unknown>;
|
|
4
|
-
extensions?: string[] | undefined;
|
|
5
4
|
debuggers?: (Record<string, unknown> & {
|
|
6
5
|
name: string;
|
|
7
6
|
})[] | undefined;
|
|
7
|
+
extensions?: string[] | undefined;
|
|
8
8
|
tasks?: ({
|
|
9
9
|
detail: string;
|
|
10
10
|
} & Record<string, unknown>)[] | undefined;
|
|
@@ -25,14 +25,13 @@ declare const blockVSCode: import("bingo-stratum").BlockWithAddons<{
|
|
|
25
25
|
github: string;
|
|
26
26
|
npm: string;
|
|
27
27
|
};
|
|
28
|
-
title: string;
|
|
29
28
|
node: {
|
|
30
29
|
minimum: string;
|
|
31
30
|
pinned?: string | undefined;
|
|
32
31
|
};
|
|
33
32
|
owner: string;
|
|
34
33
|
repository: string;
|
|
35
|
-
|
|
34
|
+
title: string;
|
|
36
35
|
author?: string | undefined;
|
|
37
36
|
bin?: string | Record<string, string> | undefined;
|
|
38
37
|
bundle?: boolean | undefined;
|
|
@@ -46,9 +45,9 @@ declare const blockVSCode: import("bingo-stratum").BlockWithAddons<{
|
|
|
46
45
|
}[] | undefined;
|
|
47
46
|
emoji?: string | undefined;
|
|
48
47
|
existingLabels?: {
|
|
49
|
-
name: string;
|
|
50
|
-
description: string;
|
|
51
48
|
color: string;
|
|
49
|
+
description: string;
|
|
50
|
+
name: string;
|
|
52
51
|
}[] | undefined;
|
|
53
52
|
funding?: string | undefined;
|
|
54
53
|
guide?: {
|
|
@@ -65,17 +64,19 @@ declare const blockVSCode: import("bingo-stratum").BlockWithAddons<{
|
|
|
65
64
|
packageData?: {
|
|
66
65
|
dependencies?: Record<string, string> | undefined;
|
|
67
66
|
devDependencies?: Record<string, string> | undefined;
|
|
67
|
+
main?: string | undefined;
|
|
68
68
|
peerDependencies?: Record<string, string> | undefined;
|
|
69
69
|
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
70
70
|
scripts?: Record<string, string | undefined> | undefined;
|
|
71
71
|
} | undefined;
|
|
72
72
|
pnpm?: string | undefined;
|
|
73
73
|
rulesetId?: string | undefined;
|
|
74
|
+
type?: "commonjs" | "module" | undefined;
|
|
74
75
|
version?: string | undefined;
|
|
75
76
|
words?: string[] | undefined;
|
|
76
77
|
workflowsVersions?: Record<string, Record<string, {
|
|
77
|
-
pinned?: boolean | undefined;
|
|
78
78
|
hash?: string | undefined;
|
|
79
|
+
pinned?: boolean | undefined;
|
|
79
80
|
}>> | undefined;
|
|
80
81
|
}>;
|
|
81
82
|
//#endregion
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
//#region src/blocks/blockVitest.d.ts
|
|
2
2
|
declare const blockVitest: import("bingo-stratum").BlockWithAddons<{
|
|
3
|
-
exclude: string[];
|
|
4
3
|
actionSteps: ({
|
|
5
|
-
with?: Record<string, string> | undefined;
|
|
6
4
|
env?: Record<string, string> | undefined;
|
|
7
5
|
if?: string | undefined;
|
|
6
|
+
with?: Record<string, string> | undefined;
|
|
8
7
|
} & ({
|
|
9
8
|
run: string;
|
|
10
9
|
} | {
|
|
@@ -14,6 +13,7 @@ declare const blockVitest: import("bingo-stratum").BlockWithAddons<{
|
|
|
14
13
|
exclude?: string[] | undefined;
|
|
15
14
|
include?: string[] | undefined;
|
|
16
15
|
};
|
|
16
|
+
exclude: string[];
|
|
17
17
|
flags: string[];
|
|
18
18
|
environment?: string | undefined;
|
|
19
19
|
}, {
|
|
@@ -33,14 +33,13 @@ declare const blockVitest: import("bingo-stratum").BlockWithAddons<{
|
|
|
33
33
|
github: string;
|
|
34
34
|
npm: string;
|
|
35
35
|
};
|
|
36
|
-
title: string;
|
|
37
36
|
node: {
|
|
38
37
|
minimum: string;
|
|
39
38
|
pinned?: string | undefined;
|
|
40
39
|
};
|
|
41
40
|
owner: string;
|
|
42
41
|
repository: string;
|
|
43
|
-
|
|
42
|
+
title: string;
|
|
44
43
|
author?: string | undefined;
|
|
45
44
|
bin?: string | Record<string, string> | undefined;
|
|
46
45
|
bundle?: boolean | undefined;
|
|
@@ -54,9 +53,9 @@ declare const blockVitest: import("bingo-stratum").BlockWithAddons<{
|
|
|
54
53
|
}[] | undefined;
|
|
55
54
|
emoji?: string | undefined;
|
|
56
55
|
existingLabels?: {
|
|
57
|
-
name: string;
|
|
58
|
-
description: string;
|
|
59
56
|
color: string;
|
|
57
|
+
description: string;
|
|
58
|
+
name: string;
|
|
60
59
|
}[] | undefined;
|
|
61
60
|
funding?: string | undefined;
|
|
62
61
|
guide?: {
|
|
@@ -73,17 +72,19 @@ declare const blockVitest: import("bingo-stratum").BlockWithAddons<{
|
|
|
73
72
|
packageData?: {
|
|
74
73
|
dependencies?: Record<string, string> | undefined;
|
|
75
74
|
devDependencies?: Record<string, string> | undefined;
|
|
75
|
+
main?: string | undefined;
|
|
76
76
|
peerDependencies?: Record<string, string> | undefined;
|
|
77
77
|
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
78
78
|
scripts?: Record<string, string | undefined> | undefined;
|
|
79
79
|
} | undefined;
|
|
80
80
|
pnpm?: string | undefined;
|
|
81
81
|
rulesetId?: string | undefined;
|
|
82
|
+
type?: "commonjs" | "module" | undefined;
|
|
82
83
|
version?: string | undefined;
|
|
83
84
|
words?: string[] | undefined;
|
|
84
85
|
workflowsVersions?: Record<string, Record<string, {
|
|
85
|
-
pinned?: boolean | undefined;
|
|
86
86
|
hash?: string | undefined;
|
|
87
|
+
pinned?: boolean | undefined;
|
|
87
88
|
}>> | undefined;
|
|
88
89
|
}>;
|
|
89
90
|
//#endregion
|
|
@@ -16,14 +16,13 @@ declare const blockWebExt: import("bingo-stratum").BlockWithoutAddons<{
|
|
|
16
16
|
github: string;
|
|
17
17
|
npm: string;
|
|
18
18
|
};
|
|
19
|
-
title: string;
|
|
20
19
|
node: {
|
|
21
20
|
minimum: string;
|
|
22
21
|
pinned?: string | undefined;
|
|
23
22
|
};
|
|
24
23
|
owner: string;
|
|
25
24
|
repository: string;
|
|
26
|
-
|
|
25
|
+
title: string;
|
|
27
26
|
author?: string | undefined;
|
|
28
27
|
bin?: string | Record<string, string> | undefined;
|
|
29
28
|
bundle?: boolean | undefined;
|
|
@@ -37,9 +36,9 @@ declare const blockWebExt: import("bingo-stratum").BlockWithoutAddons<{
|
|
|
37
36
|
}[] | undefined;
|
|
38
37
|
emoji?: string | undefined;
|
|
39
38
|
existingLabels?: {
|
|
40
|
-
name: string;
|
|
41
|
-
description: string;
|
|
42
39
|
color: string;
|
|
40
|
+
description: string;
|
|
41
|
+
name: string;
|
|
43
42
|
}[] | undefined;
|
|
44
43
|
funding?: string | undefined;
|
|
45
44
|
guide?: {
|
|
@@ -56,17 +55,19 @@ declare const blockWebExt: import("bingo-stratum").BlockWithoutAddons<{
|
|
|
56
55
|
packageData?: {
|
|
57
56
|
dependencies?: Record<string, string> | undefined;
|
|
58
57
|
devDependencies?: Record<string, string> | undefined;
|
|
58
|
+
main?: string | undefined;
|
|
59
59
|
peerDependencies?: Record<string, string> | undefined;
|
|
60
60
|
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
61
61
|
scripts?: Record<string, string | undefined> | undefined;
|
|
62
62
|
} | undefined;
|
|
63
63
|
pnpm?: string | undefined;
|
|
64
64
|
rulesetId?: string | undefined;
|
|
65
|
+
type?: "commonjs" | "module" | undefined;
|
|
65
66
|
version?: string | undefined;
|
|
66
67
|
words?: string[] | undefined;
|
|
67
68
|
workflowsVersions?: Record<string, Record<string, {
|
|
68
|
-
pinned?: boolean | undefined;
|
|
69
69
|
hash?: string | undefined;
|
|
70
|
+
pinned?: boolean | undefined;
|
|
70
71
|
}>> | undefined;
|
|
71
72
|
}>;
|
|
72
73
|
//#endregion
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
declare function blockESLintIntake(sourceText: string): {
|
|
3
3
|
ignores: (string | (RegExp & string))[];
|
|
4
4
|
rules: {
|
|
5
|
-
entries: Record<string, "
|
|
5
|
+
entries: Record<string, "error" | "off" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
6
6
|
comment?: string | undefined;
|
|
7
7
|
}[];
|
|
8
8
|
} | undefined;
|
|
@@ -6,8 +6,8 @@ declare function mergeAllExtensions(...extensions: Extension[]): {
|
|
|
6
6
|
languageOptions?: unknown;
|
|
7
7
|
linterOptions?: unknown;
|
|
8
8
|
plugins?: Record<string, string> | undefined;
|
|
9
|
-
rules?: Record<string, "
|
|
10
|
-
entries: Record<string, "
|
|
9
|
+
rules?: Record<string, "error" | "off" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
|
|
10
|
+
entries: Record<string, "error" | "off" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
11
11
|
comment?: string | undefined;
|
|
12
12
|
}[] | undefined;
|
|
13
13
|
settings?: Record<string, unknown> | undefined;
|
|
@@ -1,111 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/blocks/eslint/schemas.d.ts
|
|
3
|
-
declare const zConfigEmoji: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null
|
|
4
|
-
declare const zRuleOptions: z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>;
|
|
3
|
+
declare const zConfigEmoji: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>>;
|
|
4
|
+
declare const zRuleOptions: z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>;
|
|
5
5
|
type RuleOptions = z.infer<typeof zRuleOptions>;
|
|
6
6
|
declare const zExtensionRuleGroup: z.ZodObject<{
|
|
7
7
|
comment: z.ZodOptional<z.ZodString>;
|
|
8
|
-
entries: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>;
|
|
9
|
-
},
|
|
10
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
11
|
-
comment?: string | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
14
|
-
comment?: string | undefined;
|
|
15
|
-
}>;
|
|
8
|
+
entries: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
16
10
|
type ExtensionRuleGroup = z.infer<typeof zExtensionRuleGroup>;
|
|
17
11
|
declare const zRulesArray: z.ZodArray<z.ZodObject<{
|
|
18
12
|
comment: z.ZodOptional<z.ZodString>;
|
|
19
|
-
entries: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>;
|
|
20
|
-
},
|
|
21
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
22
|
-
comment?: string | undefined;
|
|
23
|
-
}, {
|
|
24
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
25
|
-
comment?: string | undefined;
|
|
26
|
-
}>, "many">;
|
|
13
|
+
entries: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
27
15
|
type RulesArray = z.infer<typeof zRulesArray>;
|
|
28
|
-
declare const zRulesRecord: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>;
|
|
16
|
+
declare const zRulesRecord: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>;
|
|
29
17
|
type RulesRecord = z.infer<typeof zRulesRecord>;
|
|
30
|
-
declare const zExtensionRules: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
18
|
+
declare const zExtensionRules: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
31
19
|
comment: z.ZodOptional<z.ZodString>;
|
|
32
|
-
entries: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>;
|
|
33
|
-
},
|
|
34
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
35
|
-
comment?: string | undefined;
|
|
36
|
-
}, {
|
|
37
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
38
|
-
comment?: string | undefined;
|
|
39
|
-
}>, "many">, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>]>;
|
|
20
|
+
entries: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>;
|
|
21
|
+
}, z.core.$strip>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>]>;
|
|
40
22
|
type ExtensionRules = z.infer<typeof zExtensionRules>;
|
|
41
23
|
declare const zExtension: z.ZodObject<{
|
|
42
|
-
extends: z.ZodOptional<z.ZodArray<z.ZodString
|
|
43
|
-
files: z.ZodArray<z.ZodString
|
|
24
|
+
extends: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
|
+
files: z.ZodArray<z.ZodString>;
|
|
44
26
|
languageOptions: z.ZodOptional<z.ZodUnknown>;
|
|
45
27
|
linterOptions: z.ZodOptional<z.ZodUnknown>;
|
|
46
28
|
plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
47
|
-
rules: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
29
|
+
rules: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
48
30
|
comment: z.ZodOptional<z.ZodString>;
|
|
49
|
-
entries: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>;
|
|
50
|
-
},
|
|
51
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
52
|
-
comment?: string | undefined;
|
|
53
|
-
}, {
|
|
54
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
55
|
-
comment?: string | undefined;
|
|
56
|
-
}>, "many">, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>]>>;
|
|
31
|
+
entries: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>;
|
|
32
|
+
}, z.core.$strip>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>>]>>;
|
|
57
33
|
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
58
|
-
},
|
|
59
|
-
files: string[];
|
|
60
|
-
extends?: string[] | undefined;
|
|
61
|
-
languageOptions?: unknown;
|
|
62
|
-
linterOptions?: unknown;
|
|
63
|
-
plugins?: Record<string, string> | undefined;
|
|
64
|
-
rules?: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
|
|
65
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
66
|
-
comment?: string | undefined;
|
|
67
|
-
}[] | undefined;
|
|
68
|
-
settings?: Record<string, unknown> | undefined;
|
|
69
|
-
}, {
|
|
70
|
-
files: string[];
|
|
71
|
-
extends?: string[] | undefined;
|
|
72
|
-
languageOptions?: unknown;
|
|
73
|
-
linterOptions?: unknown;
|
|
74
|
-
plugins?: Record<string, string> | undefined;
|
|
75
|
-
rules?: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
|
|
76
|
-
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
77
|
-
comment?: string | undefined;
|
|
78
|
-
}[] | undefined;
|
|
79
|
-
settings?: Record<string, unknown> | undefined;
|
|
80
|
-
}>;
|
|
34
|
+
}, z.core.$strip>;
|
|
81
35
|
type Extension = z.infer<typeof zExtension>;
|
|
82
36
|
declare const zPackageImport: z.ZodObject<{
|
|
83
|
-
source: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
37
|
+
source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
84
38
|
packageName: z.ZodString;
|
|
85
39
|
version: z.ZodString;
|
|
86
|
-
},
|
|
87
|
-
version: string;
|
|
88
|
-
packageName: string;
|
|
89
|
-
}, {
|
|
90
|
-
version: string;
|
|
91
|
-
packageName: string;
|
|
92
|
-
}>]>;
|
|
40
|
+
}, z.core.$strip>]>;
|
|
93
41
|
specifier: z.ZodString;
|
|
94
42
|
types: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
-
},
|
|
96
|
-
source: string | {
|
|
97
|
-
version: string;
|
|
98
|
-
packageName: string;
|
|
99
|
-
};
|
|
100
|
-
specifier: string;
|
|
101
|
-
types?: boolean | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
source: string | {
|
|
104
|
-
version: string;
|
|
105
|
-
packageName: string;
|
|
106
|
-
};
|
|
107
|
-
specifier: string;
|
|
108
|
-
types?: boolean | undefined;
|
|
109
|
-
}>;
|
|
43
|
+
}, z.core.$strip>;
|
|
110
44
|
//#endregion
|
|
111
45
|
export { Extension, ExtensionRuleGroup, ExtensionRules, RuleOptions, RulesArray, RulesRecord, zConfigEmoji, zExtension, zExtensionRuleGroup, zExtensionRules, zPackageImport, zRuleOptions, zRulesArray, zRulesRecord };
|