Skip to content

Commit

Permalink
chore: 🤖 npx storybook@latest upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaddeusJiang committed Oct 9, 2024
1 parent 16bf532 commit a35019c
Show file tree
Hide file tree
Showing 4 changed files with 11,533 additions and 17,921 deletions.
30 changes: 19 additions & 11 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,28 @@ module.exports = {
'../src/**/*.stories.@(ts|tsx|js|jsx)',
'../stories/**/*.stories.@(ts|tsx|js|jsx)',
],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
{
name: '@storybook/addon-postcss',
options: {
postcssLoaderOptions: {
implementation: require('postcss'),
},

addons: ['@storybook/addon-links', '@storybook/addon-essentials', {
name: '@storybook/addon-postcss',
options: {
postcssLoaderOptions: {
implementation: require('postcss'),
},
},
],
}, '@storybook/addon-webpack5-compiler-swc', '@chromatic-com/storybook'],

// https://storybook.js.org/docs/react/configure/typescript#mainjs-configuration
typescript: {
check: true, // type-check stories during Storybook build
// type-check stories during Storybook build
check: true,

reactDocgen: 'react-docgen-typescript'
},

framework: {
name: '@storybook/react-webpack5',
options: {}
},

docs: {}
};
1 change: 1 addition & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export const parameters = {
// https://storybook.js.org/docs/react/essentials/actions#automatically-matching-args
actions: { argTypesRegex: '^on.*' },
};
export const tags = ['autodocs'];
Loading

0 comments on commit a35019c

Please sign in to comment.