Skip to content

Commit 8de12c5

Browse files
committed
fix lint
1 parent bfa6e22 commit 8de12c5

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

code/frameworks/svelte-vite/src/preset.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export const viteFinal: NonNullable<StorybookConfig['viteFinal']> = async (confi
1414

1515
// Get framework options to check if docgen is disabled
1616
const framework = await options.presets.apply('framework');
17-
const frameworkOptions: FrameworkOptions =
17+
const frameworkOptions: FrameworkOptions =
1818
typeof framework === 'string' ? {} : (framework.options ?? {});
19-
19+
2020
// Check if docgen is disabled in framework options (default is true/enabled)
2121
if (frameworkOptions.docgen !== false) {
2222
plugins.push(await svelteDocgen());

code/frameworks/svelte-vite/src/types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ type BuilderName = CompatibleString<'@storybook/builder-vite'>;
1111
export type FrameworkOptions = {
1212
builder?: BuilderOptions;
1313
/**
14-
* Enable or disable automatic documentation generation for component properties, events, and slots.
15-
* When disabled, Storybook will skip the docgen processing step during build, which can improve build performance.
14+
* Enable or disable automatic documentation generation for component properties, events, and
15+
* slots. When disabled, Storybook will skip the docgen processing step during build, which can
16+
* improve build performance.
1617
*
1718
* @default true
1819
*/

code/frameworks/sveltekit/src/types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ type BuilderName = CompatibleString<'@storybook/builder-vite'>;
1414
export type FrameworkOptions = {
1515
builder?: BuilderOptions;
1616
/**
17-
* Enable or disable automatic documentation generation for component properties, events, and slots.
18-
* When disabled, Storybook will skip the docgen processing step during build, which can improve build performance.
17+
* Enable or disable automatic documentation generation for component properties, events, and
18+
* slots. When disabled, Storybook will skip the docgen processing step during build, which can
19+
* improve build performance.
1920
*
2021
* @default true
2122
*/

code/frameworks/vue3-vite/src/preset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ const resolveDocgenOptions = (
5151
if (typeof docgen === 'string') {
5252
return { plugin: docgen };
5353
}
54-
54+
5555
return docgen;
5656
};

0 commit comments

Comments
 (0)