freeCodeCamp/tools/ui-components/.storybook/main.js

29 lines
666 B
JavaScript
Raw Normal View History

module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.tsx'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
2021-11-25 11:46:11 +00:00
{
name: '@storybook/addon-postcss',
options: {
postcssLoaderOptions: {
implementation: require('postcss')
}
}
}
],
typescript: {
check: false,
checkOptions: {},
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
propFilter: prop =>
prop.parent ? !/node_modules/.test(prop.parent.fileName) : true
}
2021-11-25 11:46:11 +00:00
},
core: {
builder: 'webpack5'
}
};