2022-04-29 00:11:50 +08:00

34 lines
735 B
TypeScript

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,
},
},
},
],
core: {
builder: 'webpack4',
disableTelemetry: true,
},
typescript: {
check: true,
checkOptions: {},
reactDocgenTypescriptOptions: {
propFilter: (prop) => ['label', 'disabled'].includes(prop.name),
},
},
};
module.exports = config;