@next-vibe/checker 1.0.21 → 1.0.23
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/README.md +264 -331
- package/.dist/bin/vibe-runtime.js +4710 -3981
- package/.dist/bin/vibe-runtime.js.map +41 -35
- package/README.md +264 -331
- package/check.config.ts +1 -1
- package/package.json +4 -3
- package/src/app/api/[locale]/system/check/config/create/definition.ts +282 -0
- package/src/app/api/[locale]/system/check/config/create/i18n/de/index.ts +151 -0
- package/src/app/api/[locale]/system/check/config/create/i18n/en/index.ts +151 -0
- package/src/app/api/[locale]/system/check/config/create/i18n/pl/index.ts +148 -0
- package/src/app/api/[locale]/system/check/config/create/repository.ts +281 -0
- package/src/app/api/[locale]/system/check/config/create/route.ts +21 -0
- package/src/app/api/[locale]/system/check/config/repository.ts +1 -11
- package/src/app/api/[locale]/system/check/i18n/de/index.ts +4 -0
- package/src/app/api/[locale]/system/check/i18n/en/index.ts +4 -0
- package/src/app/api/[locale]/system/check/i18n/pl/index.ts +4 -0
- package/src/app/api/[locale]/system/check/lint/definition.ts +0 -12
- package/src/app/api/[locale]/system/check/lint/repository.ts +2 -2
- package/src/app/api/[locale]/system/check/oxlint/definition.ts +0 -12
- package/src/app/api/[locale]/system/check/oxlint/repository.ts +2 -2
- package/src/app/api/[locale]/system/check/test-project/.vscode/settings.json +48 -0
- package/src/app/api/[locale]/system/check/test-project/check.config.ts +1 -1
- package/src/app/api/[locale]/system/check/test-project/package.json +1 -0
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/eslint-issues.tsx +1 -1
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/react-issues.tsx +1 -1
- package/src/app/api/[locale]/system/check/test-project/tsconfig.tsbuildinfo +1 -1
- package/src/app/api/[locale]/system/check/typecheck/definition.ts +0 -12
- package/src/app/api/[locale]/system/check/typecheck/repository.ts +1 -1
- package/src/app/api/[locale]/system/check/vibe-check/definition.ts +0 -13
- package/src/app/api/[locale]/system/check/vibe-check/i18n/de/index.ts +1 -1
- package/src/app/api/[locale]/system/check/vibe-check/i18n/en/index.ts +1 -1
- package/src/app/api/[locale]/system/check/vibe-check/i18n/pl/index.ts +1 -1
- package/src/app/api/[locale]/system/check/vibe-check/repository.ts +10 -11
- package/src/app/api/[locale]/system/generated/endpoint.ts +12 -2
- package/src/app/api/[locale]/system/generated/endpoints.ts +22 -16
- package/src/app/api/[locale]/system/generated/route-handlers.ts +10 -2
- package/src/app/api/[locale]/system/help/list/repository.ts +4 -3
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/grouped-list.ts +5 -1
- package/src/app/api/[locale]/system/unified-interface/mcp/converter.ts +4 -3
package/check.config.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-vibe/checker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"main": "./.dist/bin/vibe-runtime.js",
|
|
5
5
|
"author": "Max Brandstätter",
|
|
6
6
|
"description": "TypeScript code quality checker with CLI and MCP support",
|
|
@@ -110,12 +110,13 @@
|
|
|
110
110
|
],
|
|
111
111
|
"repository": {
|
|
112
112
|
"type": "git",
|
|
113
|
-
"url": "git+https://github.com/techfreaque/next-vibe.git"
|
|
113
|
+
"url": "git+https://github.com/techfreaque/next-vibe.git",
|
|
114
|
+
"directory": "vibe-check"
|
|
114
115
|
},
|
|
115
116
|
"bugs": {
|
|
116
117
|
"url": "https://github.com/techfreaque/next-vibe/issues"
|
|
117
118
|
},
|
|
118
|
-
"homepage": "https://github.com/techfreaque/next-vibe#readme",
|
|
119
|
+
"homepage": "https://github.com/techfreaque/next-vibe/tree/vibe-check#readme",
|
|
119
120
|
"engines": {
|
|
120
121
|
"node": ">=18.0.0"
|
|
121
122
|
}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config Create Command Endpoint Definition
|
|
3
|
+
* Creates check.config.ts with optional MCP, VSCode, and rule configurations
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
|
|
8
|
+
import { createEndpoint } from "@/app/api/[locale]/system/unified-interface/shared/endpoints/definition/create";
|
|
9
|
+
import {
|
|
10
|
+
objectField,
|
|
11
|
+
requestDataField,
|
|
12
|
+
responseField,
|
|
13
|
+
} from "@/app/api/[locale]/system/unified-interface/shared/field/utils";
|
|
14
|
+
import {
|
|
15
|
+
EndpointErrorTypes,
|
|
16
|
+
FieldDataType,
|
|
17
|
+
LayoutType,
|
|
18
|
+
Methods,
|
|
19
|
+
WidgetType,
|
|
20
|
+
} from "@/app/api/[locale]/system/unified-interface/shared/types/enums";
|
|
21
|
+
|
|
22
|
+
import { UserRole } from "../../../../user/user-roles/enum";
|
|
23
|
+
|
|
24
|
+
const { POST } = createEndpoint({
|
|
25
|
+
method: Methods.POST,
|
|
26
|
+
path: ["system", "check", "config", "create"],
|
|
27
|
+
title: "app.api.system.check.config.create.title",
|
|
28
|
+
description: "app.api.system.check.config.create.description",
|
|
29
|
+
category: "app.api.system.check.vibeCheck.category",
|
|
30
|
+
tags: ["app.api.system.check.vibeCheck.tag"],
|
|
31
|
+
icon: "wrench",
|
|
32
|
+
allowedRoles: [
|
|
33
|
+
UserRole.ADMIN,
|
|
34
|
+
UserRole.WEB_OFF,
|
|
35
|
+
UserRole.PRODUCTION_OFF,
|
|
36
|
+
UserRole.AI_TOOL_OFF,
|
|
37
|
+
UserRole.MCP_OFF,
|
|
38
|
+
UserRole.CLI_AUTH_BYPASS,
|
|
39
|
+
],
|
|
40
|
+
aliases: ["config-create"],
|
|
41
|
+
|
|
42
|
+
fields: objectField(
|
|
43
|
+
{
|
|
44
|
+
type: WidgetType.CONTAINER,
|
|
45
|
+
title: "app.api.system.check.config.create.title",
|
|
46
|
+
description: "app.api.system.check.config.create.description",
|
|
47
|
+
layoutType: LayoutType.GRID,
|
|
48
|
+
columns: 12,
|
|
49
|
+
},
|
|
50
|
+
{ request: "data", response: true },
|
|
51
|
+
{
|
|
52
|
+
// === REQUEST FIELDS ===
|
|
53
|
+
createMcpConfig: requestDataField(
|
|
54
|
+
{
|
|
55
|
+
type: WidgetType.FORM_FIELD,
|
|
56
|
+
fieldType: FieldDataType.BOOLEAN,
|
|
57
|
+
label:
|
|
58
|
+
"app.api.system.check.config.create.fields.createMcpConfig.label",
|
|
59
|
+
description:
|
|
60
|
+
"app.api.system.check.config.create.fields.createMcpConfig.description",
|
|
61
|
+
columns: 6,
|
|
62
|
+
},
|
|
63
|
+
z.boolean().optional(),
|
|
64
|
+
),
|
|
65
|
+
|
|
66
|
+
updateVscodeSettings: requestDataField(
|
|
67
|
+
{
|
|
68
|
+
type: WidgetType.FORM_FIELD,
|
|
69
|
+
fieldType: FieldDataType.BOOLEAN,
|
|
70
|
+
label:
|
|
71
|
+
"app.api.system.check.config.create.fields.updateVscodeSettings.label",
|
|
72
|
+
description:
|
|
73
|
+
"app.api.system.check.config.create.fields.updateVscodeSettings.description",
|
|
74
|
+
columns: 6,
|
|
75
|
+
},
|
|
76
|
+
z.boolean().optional(),
|
|
77
|
+
),
|
|
78
|
+
|
|
79
|
+
updatePackageJson: requestDataField(
|
|
80
|
+
{
|
|
81
|
+
type: WidgetType.FORM_FIELD,
|
|
82
|
+
fieldType: FieldDataType.BOOLEAN,
|
|
83
|
+
label:
|
|
84
|
+
"app.api.system.check.config.create.fields.updatePackageJson.label",
|
|
85
|
+
description:
|
|
86
|
+
"app.api.system.check.config.create.fields.updatePackageJson.description",
|
|
87
|
+
columns: 6,
|
|
88
|
+
},
|
|
89
|
+
z.boolean().optional(),
|
|
90
|
+
),
|
|
91
|
+
|
|
92
|
+
enableReactRules: requestDataField(
|
|
93
|
+
{
|
|
94
|
+
type: WidgetType.FORM_FIELD,
|
|
95
|
+
fieldType: FieldDataType.BOOLEAN,
|
|
96
|
+
label:
|
|
97
|
+
"app.api.system.check.config.create.fields.enableReactRules.label",
|
|
98
|
+
description:
|
|
99
|
+
"app.api.system.check.config.create.fields.enableReactRules.description",
|
|
100
|
+
columns: 4,
|
|
101
|
+
},
|
|
102
|
+
z.boolean().optional(),
|
|
103
|
+
),
|
|
104
|
+
|
|
105
|
+
enableNextjsRules: requestDataField(
|
|
106
|
+
{
|
|
107
|
+
type: WidgetType.FORM_FIELD,
|
|
108
|
+
fieldType: FieldDataType.BOOLEAN,
|
|
109
|
+
label:
|
|
110
|
+
"app.api.system.check.config.create.fields.enableNextjsRules.label",
|
|
111
|
+
description:
|
|
112
|
+
"app.api.system.check.config.create.fields.enableNextjsRules.description",
|
|
113
|
+
columns: 4,
|
|
114
|
+
},
|
|
115
|
+
z.boolean().optional(),
|
|
116
|
+
),
|
|
117
|
+
|
|
118
|
+
enableI18nRules: requestDataField(
|
|
119
|
+
{
|
|
120
|
+
type: WidgetType.FORM_FIELD,
|
|
121
|
+
fieldType: FieldDataType.BOOLEAN,
|
|
122
|
+
label:
|
|
123
|
+
"app.api.system.check.config.create.fields.enableI18nRules.label",
|
|
124
|
+
description:
|
|
125
|
+
"app.api.system.check.config.create.fields.enableI18nRules.description",
|
|
126
|
+
columns: 4,
|
|
127
|
+
},
|
|
128
|
+
z.boolean().optional(),
|
|
129
|
+
),
|
|
130
|
+
|
|
131
|
+
jsxCapitalization: requestDataField(
|
|
132
|
+
{
|
|
133
|
+
type: WidgetType.FORM_FIELD,
|
|
134
|
+
fieldType: FieldDataType.BOOLEAN,
|
|
135
|
+
label:
|
|
136
|
+
"app.api.system.check.config.create.fields.jsxCapitalization.label",
|
|
137
|
+
description:
|
|
138
|
+
"app.api.system.check.config.create.fields.jsxCapitalization.description",
|
|
139
|
+
columns: 4,
|
|
140
|
+
},
|
|
141
|
+
z.boolean().optional(),
|
|
142
|
+
),
|
|
143
|
+
|
|
144
|
+
enablePedanticRules: requestDataField(
|
|
145
|
+
{
|
|
146
|
+
type: WidgetType.FORM_FIELD,
|
|
147
|
+
fieldType: FieldDataType.BOOLEAN,
|
|
148
|
+
label:
|
|
149
|
+
"app.api.system.check.config.create.fields.enablePedanticRules.label",
|
|
150
|
+
description:
|
|
151
|
+
"app.api.system.check.config.create.fields.enablePedanticRules.description",
|
|
152
|
+
columns: 4,
|
|
153
|
+
},
|
|
154
|
+
z.boolean().optional(),
|
|
155
|
+
),
|
|
156
|
+
|
|
157
|
+
enableRestrictedSyntax: requestDataField(
|
|
158
|
+
{
|
|
159
|
+
type: WidgetType.FORM_FIELD,
|
|
160
|
+
fieldType: FieldDataType.BOOLEAN,
|
|
161
|
+
label:
|
|
162
|
+
"app.api.system.check.config.create.fields.enableRestrictedSyntax.label",
|
|
163
|
+
description:
|
|
164
|
+
"app.api.system.check.config.create.fields.enableRestrictedSyntax.description",
|
|
165
|
+
columns: 4,
|
|
166
|
+
},
|
|
167
|
+
z.boolean().optional(),
|
|
168
|
+
),
|
|
169
|
+
|
|
170
|
+
interactive: requestDataField(
|
|
171
|
+
{
|
|
172
|
+
type: WidgetType.FORM_FIELD,
|
|
173
|
+
fieldType: FieldDataType.BOOLEAN,
|
|
174
|
+
label: "app.api.system.check.config.create.fields.interactive.label",
|
|
175
|
+
description:
|
|
176
|
+
"app.api.system.check.config.create.fields.interactive.description",
|
|
177
|
+
columns: 6,
|
|
178
|
+
},
|
|
179
|
+
z.boolean().optional().default(true),
|
|
180
|
+
),
|
|
181
|
+
|
|
182
|
+
// === RESPONSE FIELDS ===
|
|
183
|
+
message: responseField(
|
|
184
|
+
{
|
|
185
|
+
type: WidgetType.TEXT,
|
|
186
|
+
content: "app.api.system.check.config.create.response.message",
|
|
187
|
+
},
|
|
188
|
+
z.string(),
|
|
189
|
+
),
|
|
190
|
+
},
|
|
191
|
+
),
|
|
192
|
+
|
|
193
|
+
// === ERROR HANDLING ===
|
|
194
|
+
errorTypes: {
|
|
195
|
+
[EndpointErrorTypes.VALIDATION_FAILED]: {
|
|
196
|
+
title: "app.api.system.check.config.create.errors.validation.title",
|
|
197
|
+
description:
|
|
198
|
+
"app.api.system.check.config.create.errors.validation.description",
|
|
199
|
+
},
|
|
200
|
+
[EndpointErrorTypes.NETWORK_ERROR]: {
|
|
201
|
+
title: "app.api.system.check.config.create.errors.internal.title",
|
|
202
|
+
description:
|
|
203
|
+
"app.api.system.check.config.create.errors.internal.description",
|
|
204
|
+
},
|
|
205
|
+
[EndpointErrorTypes.UNAUTHORIZED]: {
|
|
206
|
+
title: "app.api.system.check.config.create.errors.validation.title",
|
|
207
|
+
description:
|
|
208
|
+
"app.api.system.check.config.create.errors.validation.description",
|
|
209
|
+
},
|
|
210
|
+
[EndpointErrorTypes.FORBIDDEN]: {
|
|
211
|
+
title: "app.api.system.check.config.create.errors.validation.title",
|
|
212
|
+
description:
|
|
213
|
+
"app.api.system.check.config.create.errors.validation.description",
|
|
214
|
+
},
|
|
215
|
+
[EndpointErrorTypes.NOT_FOUND]: {
|
|
216
|
+
title: "app.api.system.check.config.create.errors.validation.title",
|
|
217
|
+
description:
|
|
218
|
+
"app.api.system.check.config.create.errors.validation.description",
|
|
219
|
+
},
|
|
220
|
+
[EndpointErrorTypes.SERVER_ERROR]: {
|
|
221
|
+
title: "app.api.system.check.config.create.errors.internal.title",
|
|
222
|
+
description:
|
|
223
|
+
"app.api.system.check.config.create.errors.internal.description",
|
|
224
|
+
},
|
|
225
|
+
[EndpointErrorTypes.UNKNOWN_ERROR]: {
|
|
226
|
+
title: "app.api.system.check.config.create.errors.internal.title",
|
|
227
|
+
description:
|
|
228
|
+
"app.api.system.check.config.create.errors.internal.description",
|
|
229
|
+
},
|
|
230
|
+
[EndpointErrorTypes.UNSAVED_CHANGES]: {
|
|
231
|
+
title: "app.api.system.check.config.create.errors.conflict.title",
|
|
232
|
+
description:
|
|
233
|
+
"app.api.system.check.config.create.errors.conflict.description",
|
|
234
|
+
},
|
|
235
|
+
[EndpointErrorTypes.CONFLICT]: {
|
|
236
|
+
title: "app.api.system.check.config.create.errors.conflict.title",
|
|
237
|
+
description:
|
|
238
|
+
"app.api.system.check.config.create.errors.conflict.description",
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
|
|
242
|
+
// === SUCCESS HANDLING ===
|
|
243
|
+
successTypes: {
|
|
244
|
+
title: "app.api.system.check.config.create.success.title",
|
|
245
|
+
description: "app.api.system.check.config.create.success.description",
|
|
246
|
+
},
|
|
247
|
+
|
|
248
|
+
// === EXAMPLES ===
|
|
249
|
+
examples: {
|
|
250
|
+
requests: {
|
|
251
|
+
default: {
|
|
252
|
+
createMcpConfig: true,
|
|
253
|
+
updateVscodeSettings: true,
|
|
254
|
+
enableReactRules: true,
|
|
255
|
+
enableNextjsRules: true,
|
|
256
|
+
enableI18nRules: true,
|
|
257
|
+
jsxCapitalization: false,
|
|
258
|
+
interactive: false,
|
|
259
|
+
},
|
|
260
|
+
interactive: {
|
|
261
|
+
interactive: true,
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
responses: {
|
|
265
|
+
default: {
|
|
266
|
+
message:
|
|
267
|
+
"✓ Created /home/user/project/check.config.ts\n✓ Created /home/user/project/.mcp.json\n✓ Updated /home/user/project/.vscode/settings.json",
|
|
268
|
+
},
|
|
269
|
+
interactive: {
|
|
270
|
+
message: "✓ Created /home/user/project/check.config.ts",
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
export type ConfigCreateRequestInput = typeof POST.types.RequestInput;
|
|
277
|
+
export type ConfigCreateRequestOutput = typeof POST.types.RequestOutput;
|
|
278
|
+
export type ConfigCreateResponseInput = typeof POST.types.ResponseInput;
|
|
279
|
+
export type ConfigCreateResponseOutput = typeof POST.types.ResponseOutput;
|
|
280
|
+
|
|
281
|
+
const configCreateEndpoints = { POST };
|
|
282
|
+
export default configCreateEndpoints;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
export const translations = {
|
|
2
|
+
title: "Check-Konfiguration erstellen",
|
|
3
|
+
description:
|
|
4
|
+
"Erstellen Sie check.config.ts mit optionaler MCP-Konfiguration, VSCode-Einstellungen und Regelkonfigurationen. Ohne Optionen für interaktives Setup ausführen.",
|
|
5
|
+
category: "Entwicklungswerkzeuge",
|
|
6
|
+
tag: "Qualität",
|
|
7
|
+
|
|
8
|
+
fields: {
|
|
9
|
+
createMcpConfig: {
|
|
10
|
+
label: "MCP-Konfiguration erstellen",
|
|
11
|
+
description:
|
|
12
|
+
"Erstellen Sie eine .mcp.json-Konfigurationsdatei für die Model Context Protocol-Integration",
|
|
13
|
+
},
|
|
14
|
+
updateVscodeSettings: {
|
|
15
|
+
label: "VSCode-Einstellungen aktualisieren",
|
|
16
|
+
description:
|
|
17
|
+
"Aktualisieren Sie .vscode/settings.json mit empfohlenen ESLint- und Formatter-Einstellungen",
|
|
18
|
+
},
|
|
19
|
+
updatePackageJson: {
|
|
20
|
+
label: "package.json-Skripte aktualisieren",
|
|
21
|
+
description:
|
|
22
|
+
"package.json-Skripte für check, lint und typecheck Befehle hinzufügen/aktualisieren",
|
|
23
|
+
},
|
|
24
|
+
enableReactRules: {
|
|
25
|
+
label: "React-Regeln aktivieren",
|
|
26
|
+
description:
|
|
27
|
+
"Aktivieren Sie React-spezifische Linting-Regeln (react-hooks, jsx-a11y)",
|
|
28
|
+
},
|
|
29
|
+
enableNextjsRules: {
|
|
30
|
+
label: "Next.js-Regeln aktivieren",
|
|
31
|
+
description:
|
|
32
|
+
"Aktivieren Sie Next.js-spezifische Linting-Regeln und Konfigurationen",
|
|
33
|
+
},
|
|
34
|
+
enableI18nRules: {
|
|
35
|
+
label: "i18n-Regeln aktivieren",
|
|
36
|
+
description:
|
|
37
|
+
"Aktivieren Sie Internationalisierungs-Linting-Regeln (eslint-plugin-i18next)",
|
|
38
|
+
},
|
|
39
|
+
jsxCapitalization: {
|
|
40
|
+
label: "JSX-Großschreibung",
|
|
41
|
+
description:
|
|
42
|
+
"Großschreibung von JSX-Komponentennamen erzwingen (react/jsx-pascal-case)",
|
|
43
|
+
},
|
|
44
|
+
enablePromiseRules: {
|
|
45
|
+
label: "Promise-Regeln aktivieren",
|
|
46
|
+
description:
|
|
47
|
+
"Promise Best Practices und async/await Linting-Regeln aktivieren",
|
|
48
|
+
},
|
|
49
|
+
enableNodeRules: {
|
|
50
|
+
label: "Node.js-Regeln aktivieren",
|
|
51
|
+
description: "Node.js-spezifische Linting-Regeln aktivieren",
|
|
52
|
+
},
|
|
53
|
+
enableUnicornRules: {
|
|
54
|
+
label: "Unicorn-Regeln aktivieren",
|
|
55
|
+
description:
|
|
56
|
+
"Moderne JavaScript Best Practices aktivieren (eslint-plugin-unicorn)",
|
|
57
|
+
},
|
|
58
|
+
enablePedanticRules: {
|
|
59
|
+
label: "Pedantische Regeln aktivieren",
|
|
60
|
+
description:
|
|
61
|
+
"Strengere/pedantische Linting-Regeln für höhere Codequalität aktivieren",
|
|
62
|
+
},
|
|
63
|
+
enableRestrictedSyntax: {
|
|
64
|
+
label: "Eingeschränkte Syntax aktivieren",
|
|
65
|
+
description:
|
|
66
|
+
"Verwendung von throw, unknown und object-Typen einschränken",
|
|
67
|
+
},
|
|
68
|
+
enableTsgo: {
|
|
69
|
+
label: "tsgo aktivieren",
|
|
70
|
+
description: "tsgo anstelle von tsc für schnellere Typprüfung verwenden",
|
|
71
|
+
},
|
|
72
|
+
enableStrictTypes: {
|
|
73
|
+
label: "Strenge Typen aktivieren",
|
|
74
|
+
description: "Strenge TypeScript Typprüfungsregeln aktivieren",
|
|
75
|
+
},
|
|
76
|
+
interactive: {
|
|
77
|
+
label: "Interaktiver Modus",
|
|
78
|
+
description:
|
|
79
|
+
"Im interaktiven Modus ausführen und jede Konfigurationsoption Schritt für Schritt abfragen",
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
interactive: {
|
|
84
|
+
welcome: "🔧 Interaktive Konfigurationseinrichtung",
|
|
85
|
+
description:
|
|
86
|
+
"Konfigurieren wir Ihre Code-Qualitätswerkzeuge! Beantworten Sie einige Fragen, um Ihre Einrichtung anzupassen.",
|
|
87
|
+
createMcpConfig:
|
|
88
|
+
"MCP-Konfiguration (.mcp.json) für KI-Tool-Integration erstellen?",
|
|
89
|
+
updateVscodeSettings:
|
|
90
|
+
"VSCode-Einstellungen (.vscode/settings.json) mit empfohlenen Formatter-Einstellungen aktualisieren?",
|
|
91
|
+
enableReactRules: "React-spezifische Linting-Regeln aktivieren?",
|
|
92
|
+
enableNextjsRules: "Next.js-spezifische Linting-Regeln aktivieren?",
|
|
93
|
+
enableI18nRules: "Internationalisierungs (i18n) Linting-Regeln aktivieren?",
|
|
94
|
+
jsxCapitalization: "JSX-Komponentennamen-Großschreibung erzwingen?",
|
|
95
|
+
enablePromiseRules: "Promise Best Practices Regeln aktivieren?",
|
|
96
|
+
enableNodeRules: "Node.js-spezifische Regeln aktivieren?",
|
|
97
|
+
enableUnicornRules:
|
|
98
|
+
"Moderne JavaScript Best Practices aktivieren (Unicorn)?",
|
|
99
|
+
enablePedanticRules: "Strengere/pedantische Regeln aktivieren?",
|
|
100
|
+
enableRestrictedSyntax: "throw, unknown und object-Typen einschränken?",
|
|
101
|
+
enableTsgo: "tsgo anstelle von tsc für Typprüfung verwenden?",
|
|
102
|
+
enableStrictTypes: "Strenge TypeScript Typprüfung aktivieren?",
|
|
103
|
+
creating: "Konfigurationsdateien werden erstellt...",
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
steps: {
|
|
107
|
+
creatingConfig: "check.config.ts wird erstellt...",
|
|
108
|
+
configCreated: "check.config.ts erfolgreich erstellt",
|
|
109
|
+
creatingMcpConfig: ".mcp.json wird erstellt...",
|
|
110
|
+
mcpConfigCreated: ".mcp.json erfolgreich erstellt",
|
|
111
|
+
updatingVscode: "VSCode-Einstellungen werden aktualisiert...",
|
|
112
|
+
vscodeUpdated: "VSCode-Einstellungen erfolgreich aktualisiert",
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
warnings: {
|
|
116
|
+
mcpConfigFailed: "MCP-Konfiguration konnte nicht erstellt werden",
|
|
117
|
+
vscodeFailed: "VSCode-Einstellungen konnten nicht aktualisiert werden",
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
response: {
|
|
121
|
+
message: "Konfiguration erstellt",
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
success: {
|
|
125
|
+
title: "Konfiguration erstellt",
|
|
126
|
+
description: "Konfigurationsdateien erfolgreich erstellt",
|
|
127
|
+
complete: "✨ Konfiguration abgeschlossen!",
|
|
128
|
+
configCreated: "✓ Erstellt {{path}}",
|
|
129
|
+
mcpConfigCreated: "✓ Erstellt {{path}}",
|
|
130
|
+
vscodeUpdated: "✓ Aktualisiert {{path}}",
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
errors: {
|
|
134
|
+
validation: {
|
|
135
|
+
title: "Ungültige Parameter",
|
|
136
|
+
description: "Die Konfigurationsparameter sind ungültig",
|
|
137
|
+
},
|
|
138
|
+
internal: {
|
|
139
|
+
title: "Interner Fehler",
|
|
140
|
+
description:
|
|
141
|
+
"Ein interner Fehler ist während der Konfiguration aufgetreten",
|
|
142
|
+
},
|
|
143
|
+
conflict: {
|
|
144
|
+
title: "Konfiguration existiert bereits",
|
|
145
|
+
description:
|
|
146
|
+
"Konfigurationsdatei existiert bereits. Verwenden Sie --force zum Überschreiben.",
|
|
147
|
+
},
|
|
148
|
+
configCreation: "check.config.ts konnte nicht erstellt werden: {{error}}",
|
|
149
|
+
unexpected: "Ein unerwarteter Fehler ist aufgetreten: {{error}}",
|
|
150
|
+
},
|
|
151
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
export const translations = {
|
|
2
|
+
title: "Create Check Configuration",
|
|
3
|
+
description:
|
|
4
|
+
"Create check.config.ts with optional MCP config, VSCode settings, and rule configurations. Run without options for interactive setup.",
|
|
5
|
+
category: "Development Tools",
|
|
6
|
+
tag: "quality",
|
|
7
|
+
|
|
8
|
+
fields: {
|
|
9
|
+
createMcpConfig: {
|
|
10
|
+
label: "Create MCP Config",
|
|
11
|
+
description:
|
|
12
|
+
"Create .mcp.json configuration file for Model Context Protocol integration",
|
|
13
|
+
},
|
|
14
|
+
updateVscodeSettings: {
|
|
15
|
+
label: "Update VSCode Settings",
|
|
16
|
+
description:
|
|
17
|
+
"Update .vscode/settings.json with recommended ESLint and formatter settings",
|
|
18
|
+
},
|
|
19
|
+
updatePackageJson: {
|
|
20
|
+
label: "Update package.json Scripts",
|
|
21
|
+
description:
|
|
22
|
+
"Add/update package.json scripts for check, lint, and typecheck commands",
|
|
23
|
+
},
|
|
24
|
+
enableReactRules: {
|
|
25
|
+
label: "Enable React Rules",
|
|
26
|
+
description:
|
|
27
|
+
"Enable React-specific linting rules (react-hooks, jsx-a11y)",
|
|
28
|
+
},
|
|
29
|
+
enableNextjsRules: {
|
|
30
|
+
label: "Enable Next.js Rules",
|
|
31
|
+
description: "Enable Next.js-specific linting rules and configurations",
|
|
32
|
+
},
|
|
33
|
+
enableI18nRules: {
|
|
34
|
+
label: "Enable i18n Rules",
|
|
35
|
+
description:
|
|
36
|
+
"Enable internationalization linting rules (eslint-plugin-i18next)",
|
|
37
|
+
},
|
|
38
|
+
jsxCapitalization: {
|
|
39
|
+
label: "JSX Capitalization",
|
|
40
|
+
description:
|
|
41
|
+
"Enforce capitalization of JSX component names (react/jsx-pascal-case)",
|
|
42
|
+
},
|
|
43
|
+
enablePromiseRules: {
|
|
44
|
+
label: "Enable Promise Rules",
|
|
45
|
+
description:
|
|
46
|
+
"Enable Promise best practices and async/await linting rules",
|
|
47
|
+
},
|
|
48
|
+
enableNodeRules: {
|
|
49
|
+
label: "Enable Node.js Rules",
|
|
50
|
+
description: "Enable Node.js-specific linting rules",
|
|
51
|
+
},
|
|
52
|
+
enableUnicornRules: {
|
|
53
|
+
label: "Enable Unicorn Rules",
|
|
54
|
+
description:
|
|
55
|
+
"Enable modern JavaScript best practices (eslint-plugin-unicorn)",
|
|
56
|
+
},
|
|
57
|
+
enablePedanticRules: {
|
|
58
|
+
label: "Enable Pedantic Rules",
|
|
59
|
+
description:
|
|
60
|
+
"Enable stricter/pedantic linting rules for higher code quality",
|
|
61
|
+
},
|
|
62
|
+
enableRestrictedSyntax: {
|
|
63
|
+
label: "Enable Restricted Syntax",
|
|
64
|
+
description: "Restrict usage of throw, unknown, and object types",
|
|
65
|
+
},
|
|
66
|
+
enableTsgo: {
|
|
67
|
+
label: "Enable tsgo",
|
|
68
|
+
description: "Use tsgo instead of tsc for faster type checking",
|
|
69
|
+
},
|
|
70
|
+
enableStrictTypes: {
|
|
71
|
+
label: "Enable Strict Types",
|
|
72
|
+
description: "Enable strict TypeScript type checking rules",
|
|
73
|
+
},
|
|
74
|
+
interactive: {
|
|
75
|
+
label: "Interactive Mode",
|
|
76
|
+
description:
|
|
77
|
+
"Run in interactive mode and ask for each configuration option step by step",
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
interactive: {
|
|
82
|
+
welcome: "🔧 Interactive Configuration Setup",
|
|
83
|
+
description:
|
|
84
|
+
"Let's configure your code quality tools! Answer a few questions to customize your setup.",
|
|
85
|
+
createMcpConfig: "Create MCP config (.mcp.json) for AI tool integration?",
|
|
86
|
+
updateVscodeSettings:
|
|
87
|
+
"Update VSCode settings (.vscode/settings.json) with recommended formatter settings?",
|
|
88
|
+
updatePackageJson: "Update package.json scripts (check, lint, typecheck)?",
|
|
89
|
+
enableReactRules: "Enable React-specific linting rules?",
|
|
90
|
+
enableNextjsRules: "Enable Next.js-specific linting rules?",
|
|
91
|
+
enableI18nRules: "Enable internationalization (i18n) linting rules?",
|
|
92
|
+
jsxCapitalization: "Enforce JSX component name capitalization?",
|
|
93
|
+
enablePromiseRules: "Enable Promise best practices rules?",
|
|
94
|
+
enableNodeRules: "Enable Node.js-specific rules?",
|
|
95
|
+
enableUnicornRules: "Enable modern JavaScript best practices (Unicorn)?",
|
|
96
|
+
enablePedanticRules: "Enable stricter/pedantic rules?",
|
|
97
|
+
enableRestrictedSyntax: "Restrict throw, unknown, and object types?",
|
|
98
|
+
enableTsgo: "Use tsgo instead of tsc for type checking?",
|
|
99
|
+
enableStrictTypes: "Enable strict TypeScript type checking?",
|
|
100
|
+
creating: "Creating configuration files...",
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
steps: {
|
|
104
|
+
creatingConfig: "Creating check.config.ts...",
|
|
105
|
+
configCreated: "check.config.ts created successfully",
|
|
106
|
+
creatingMcpConfig: "Creating .mcp.json...",
|
|
107
|
+
mcpConfigCreated: ".mcp.json created successfully",
|
|
108
|
+
updatingVscode: "Updating VSCode settings...",
|
|
109
|
+
vscodeUpdated: "VSCode settings updated successfully",
|
|
110
|
+
updatingPackageJson: "Updating package.json scripts...",
|
|
111
|
+
packageJsonUpdated: "package.json scripts updated successfully",
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
warnings: {
|
|
115
|
+
mcpConfigFailed: "Failed to create MCP config",
|
|
116
|
+
vscodeFailed: "Failed to update VSCode settings",
|
|
117
|
+
packageJsonFailed: "Failed to update package.json",
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
response: {
|
|
121
|
+
message: "Configuration created",
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
success: {
|
|
125
|
+
title: "Configuration Created",
|
|
126
|
+
description: "Configuration files created successfully",
|
|
127
|
+
complete: "✨ Configuration Complete!",
|
|
128
|
+
configCreated: "✓ Created {{path}}",
|
|
129
|
+
mcpConfigCreated: "✓ Created {{path}}",
|
|
130
|
+
vscodeUpdated: "✓ Updated {{path}}",
|
|
131
|
+
packageJsonUpdated: "✓ Updated {{path}}",
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
errors: {
|
|
135
|
+
validation: {
|
|
136
|
+
title: "Invalid Parameters",
|
|
137
|
+
description: "The configuration parameters are invalid",
|
|
138
|
+
},
|
|
139
|
+
internal: {
|
|
140
|
+
title: "Internal Error",
|
|
141
|
+
description: "An internal error occurred during configuration",
|
|
142
|
+
},
|
|
143
|
+
conflict: {
|
|
144
|
+
title: "Configuration Already Exists",
|
|
145
|
+
description:
|
|
146
|
+
"Configuration file already exists. Use --force to overwrite.",
|
|
147
|
+
},
|
|
148
|
+
configCreation: "Failed to create check.config.ts: {{error}}",
|
|
149
|
+
unexpected: "An unexpected error occurred: {{error}}",
|
|
150
|
+
},
|
|
151
|
+
};
|