Skip to content

Commit

Permalink
format storybook config files
Browse files Browse the repository at this point in the history
  • Loading branch information
tibuurcio committed Jan 18, 2024
1 parent e074c8c commit de807e3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
24 changes: 12 additions & 12 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite)
import type { StorybookConfig } from "@storybook/react-vite";
import react from "@vitejs/plugin-react";
import { PluginOption } from "vite";
import type { StorybookConfig } from '@storybook/react-vite'
import react from '@vitejs/plugin-react'
import { PluginOption } from 'vite'

type StorybookVitePlugins = { plugins: PluginOption[][] };
type StorybookVitePlugins = { plugins: PluginOption[][] }

const config: StorybookConfig & StorybookVitePlugins = {
framework: "@storybook/react-vite",
framework: '@storybook/react-vite',

stories: ["../src/**/*.mdx", "../src/**/*.stories.@(ts|tsx)"],
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(ts|tsx)'],

addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
],

docs: {
autodocs: true,
defaultName: "Documentation",
defaultName: 'Documentation',
},

plugins: [react()],
};
}

export default config;
export default config
10 changes: 5 additions & 5 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { Preview } from "@storybook/react";
import type { Preview } from '@storybook/react'

const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
actions: { argTypesRegex: '^on[A-Z].*' },

layout: "centered",
layout: 'centered',

controls: {
matchers: {
Expand All @@ -13,6 +13,6 @@ const preview: Preview = {
},
},
},
};
}

export default preview;
export default preview

0 comments on commit de807e3

Please sign in to comment.