forked from storybookjs/storybook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.ts
36 lines (34 loc) 路 781 Bytes
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import type { StorybookConfig } from '@storybook/react/types';
const config: StorybookConfig = {
stories: ['./src/*.stories.*'],
logLevel: 'debug',
addons: [
'@storybook/addon-essentials',
'@storybook/addon-controls',
'@storybook/addon-storysource',
{
name: '@storybook/addon-docs',
options: {
sourceLoaderOptions: {
parser: 'typescript',
injectStoryParameters: false,
},
},
},
'@storybook/addon-storyshots',
],
typescript: {
check: true,
checkOptions: {},
reactDocgenTypescriptOptions: {
propFilter: (prop) => ['label', 'disabled'].includes(prop.name),
},
},
core: {
builder: 'webpack4',
},
features: {
postcss: false,
},
};
module.exports = config;