diff --git a/templates/react-with-storybook/.storybook/main.js b/templates/react-with-storybook/.storybook/main.js index 35130f33c..cf1ac4a9f 100644 --- a/templates/react-with-storybook/.storybook/main.js +++ b/templates/react-with-storybook/.storybook/main.js @@ -1,4 +1,8 @@ module.exports = { stories: ['../stories/**/*.stories.@(ts|tsx|js|jsx)'], addons: ['@storybook/addon-links', '@storybook/addon-essentials'], + // https://storybook.js.org/docs/react/configure/typescript#mainjs-configuration + typescript: { + check: true, // type-check stories during Storybook build + } };