Skip to content

Commit 4254403

Browse files
committed
lint
1 parent 3fffa68 commit 4254403

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/init/features/genkit/index.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -382,21 +382,23 @@ export async function genkitSetup(
382382
default: true,
383383
}))
384384
) {
385-
386-
logger.info("Telemetry data can be used to monitor and gain insights into your AI features. There may be a cost associated with using this feature. See https://firebase.google.com/docs/genkit/observability/telemetry-collection.");
385+
logger.info(
386+
"Telemetry data can be used to monitor and gain insights into your AI features. There may be a cost associated with using this feature. See https://firebase.google.com/docs/genkit/observability/telemetry-collection.",
387+
);
387388
const enableTelemetry =
388-
options.nonInteractive ||
389+
options.nonInteractive ||
389390
(await confirm({
390391
message: "Would like you to enable telemetry collection?",
391-
default: true
392+
default: true,
392393
}));
393394

394395
generateSampleFile(
395396
modelOptions[model].plugin,
396397
plugins,
397398
projectDir,
398399
genkitInfo.templateVersion,
399-
enableTelemetry);
400+
enableTelemetry,
401+
);
400402
}
401403
}
402404

@@ -639,15 +641,16 @@ async function updatePackageJson(nonInteractive: boolean, projectDir: string): P
639641
}
640642

641643
function renderConfig(pluginNames: string[], template: string, enableTelemetry: boolean): string {
642-
const imports = pluginNames
643-
.map((pluginName) => generateImportStatement(pluginToInfo[pluginName].imports, pluginName));
644+
const imports = pluginNames.map((pluginName) =>
645+
generateImportStatement(pluginToInfo[pluginName].imports, pluginName),
646+
);
644647
if (enableTelemetry) {
645648
imports.push(generateImportStatement("enableFirebaseTelemetry", "@genkit-ai/firebase"));
646649
}
647650
const telemetryBlock = enableTelemetry
648651
? "\n// Collect telemetry data to enable production monitoring.\n" +
649-
"// See https://firebase.google.com/docs/genkit/observability/telemetry-collection.\n" +
650-
"enableFirebaseTelemetry();\n"
652+
"// See https://firebase.google.com/docs/genkit/observability/telemetry-collection.\n" +
653+
"enableFirebaseTelemetry();\n"
651654
: "";
652655
const plugins =
653656
pluginNames.map((pluginName) => ` ${pluginToInfo[pluginName].init},`).join("\n") ||

0 commit comments

Comments
 (0)