Skip to content

Commit a35019c

Browse files
committed
chore: 🤖 npx storybook@latest upgrade
1 parent 16bf532 commit a35019c

File tree

4 files changed

+11533
-17921
lines changed

4 files changed

+11533
-17921
lines changed

.storybook/main.js

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,28 @@ module.exports = {
33
'../src/**/*.stories.@(ts|tsx|js|jsx)',
44
'../stories/**/*.stories.@(ts|tsx|js|jsx)',
55
],
6-
addons: [
7-
'@storybook/addon-links',
8-
'@storybook/addon-essentials',
9-
{
10-
name: '@storybook/addon-postcss',
11-
options: {
12-
postcssLoaderOptions: {
13-
implementation: require('postcss'),
14-
},
6+
7+
addons: ['@storybook/addon-links', '@storybook/addon-essentials', {
8+
name: '@storybook/addon-postcss',
9+
options: {
10+
postcssLoaderOptions: {
11+
implementation: require('postcss'),
1512
},
1613
},
17-
],
14+
}, '@storybook/addon-webpack5-compiler-swc', '@chromatic-com/storybook'],
15+
1816
// https://storybook.js.org/docs/react/configure/typescript#mainjs-configuration
1917
typescript: {
20-
check: true, // type-check stories during Storybook build
18+
// type-check stories during Storybook build
19+
check: true,
20+
21+
reactDocgen: 'react-docgen-typescript'
22+
},
23+
24+
framework: {
25+
name: '@storybook/react-webpack5',
26+
options: {}
2127
},
28+
29+
docs: {}
2230
};

.storybook/preview.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ export const parameters = {
55
// https://storybook.js.org/docs/react/essentials/actions#automatically-matching-args
66
actions: { argTypesRegex: '^on.*' },
77
};
8+
export const tags = ['autodocs'];

0 commit comments

Comments
 (0)