Skip to content

Commit 55154fa

Browse files
committed
fix linting
1 parent d929b8c commit 55154fa

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

src/cli/init.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,8 @@ export async function promptLocalization() {
543543
const placeholderRegex = /\$\{locale\}/i;
544544

545545
const resourcesPath = await input({
546-
message: "Localization resources path (must include ${locale} placeholder):",
546+
message:
547+
"Localization resources path (must include ${locale} placeholder):",
547548
default: "resources/${locale}.json",
548549
validate: (value) => {
549550
if (!value.trim()) {

src/schemas/0.3.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,7 @@ export const McpbManifestIconSchema = z.strictObject({
104104
ICON_SIZE_REGEX,
105105
'sizes must be in the format "WIDTHxHEIGHT" (e.g., "16x16")',
106106
),
107-
theme: z
108-
.string()
109-
.min(1, "theme cannot be empty when provided")
110-
.optional(),
107+
theme: z.string().min(1, "theme cannot be empty when provided").optional(),
111108
});
112109

113110
export const McpbManifestSchema = z
@@ -129,9 +126,9 @@ export const McpbManifestSchema = z
129126
documentation: z.string().url().optional(),
130127
support: z.string().url().optional(),
131128
icon: z.string().optional(),
132-
icons: z.array(McpbManifestIconSchema).optional(),
129+
icons: z.array(McpbManifestIconSchema).optional(),
133130
screenshots: z.array(z.string()).optional(),
134-
localization: McpbManifestLocalizationSchema.optional(),
131+
localization: McpbManifestLocalizationSchema.optional(),
135132
server: McpbManifestServerSchema,
136133
tools: z.array(McpbManifestToolSchema).optional(),
137134
tools_generated: z.boolean().optional(),

test/init.test.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,16 @@ describe("init functions", () => {
261261
{
262262
icon: "icon.png",
263263
icons: [
264-
{ src: "assets/icons/icon-16-light.png", sizes: "16x16", theme: "light" },
265-
{ src: "assets/icons/icon-16-dark.png", sizes: "16x16", theme: "dark" },
264+
{
265+
src: "assets/icons/icon-16-light.png",
266+
sizes: "16x16",
267+
theme: "light",
268+
},
269+
{
270+
src: "assets/icons/icon-16-dark.png",
271+
sizes: "16x16",
272+
theme: "dark",
273+
},
266274
],
267275
screenshots: ["screen1.png", "screen2.png"],
268276
},

0 commit comments

Comments
 (0)