2021-02-17 01:33:55 +03:00
|
|
|
const { dirname, join, parse, resolve } = require('path')
|
|
|
|
const { existsSync } = require('fs')
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
stories: ['../src/**/*.stories.@(ts|tsx)'],
|
|
|
|
addons: ['@storybook/addon-links', '@storybook/addon-essentials', '@storybook/preset-create-react-app'],
|
|
|
|
typescript: {
|
|
|
|
check: true,
|
|
|
|
checkOptions: {},
|
|
|
|
reactDocgen: 'react-docgen-typescript',
|
|
|
|
reactDocgenTypescriptOptions: {
|
|
|
|
shouldExtractLiteralValuesFromEnum: true,
|
2021-04-16 22:33:26 +03:00
|
|
|
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
|
|
|
|
},
|
|
|
|
},
|
2021-02-17 01:33:55 +03:00
|
|
|
}
|