-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
/
main.ts
38 lines (37 loc) · 933 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
37
38
import type { StorybookConfig } from '@storybook/react/types';
const config: StorybookConfig = {
stories: [
{
directory: '../src',
titlePrefix: 'Demo',
},
],
logLevel: 'debug',
addons: [
'@storybook/addon-essentials',
'@storybook/addon-storysource',
'@storybook/addon-storyshots',
'@storybook/addon-a11y',
],
typescript: {
check: true,
checkOptions: {},
reactDocgenTypescriptOptions: {
propFilter: (prop) => ['label', 'disabled'].includes(prop.name),
},
},
core: {
builder: { name: 'webpack4' },
channelOptions: { allowFunction: false, maxDepth: 10 },
},
features: {
postcss: false,
// modernInlineRender: true,
storyStoreV7: !global.navigator?.userAgent?.match?.('jsdom'),
buildStoriesJson: true,
babelModeV7: true,
warnOnLegacyHierarchySeparator: false,
},
framework: '@storybook/react',
};
module.exports = config;