Norbert de Langen c2bbe43d02
stage0
2022-07-21 11:24:07 +02:00

33 lines
790 B
JavaScript

const config = {
stories: [
'../Introduction.mdx',
{
directory: '../components',
titlePrefix: 'Demo',
files: '**/!(Template).(stories.tsx|mdx)',
},
],
logLevel: 'debug',
addons: ['@storybook/addon-essentials'],
typescript: {
check: true,
checkOptions: {},
reactDocgenTypescriptOptions: {
propFilter: (prop) => ['label', 'disabled'].includes(prop.name),
},
},
core: {
channelOptions: { allowFunction: false, maxDepth: 10 },
},
features: {
postcss: false,
storyStoreV7: !global.navigator?.userAgent?.match?.('jsdom'),
buildStoriesJson: true,
babelModeV7: true,
warnOnLegacyHierarchySeparator: false,
previewMdx2: true,
},
framework: '@storybook/react-webpack5',
};
module.exports = config;