From 93d7838b444b627942d15822197a7d2d61e846a8 Mon Sep 17 00:00:00 2001 From: Kyle Holmberg Date: Sun, 20 Sep 2020 18:13:31 -0700 Subject: [PATCH 1/3] ensure stories are type-checked --- templates/react-with-storybook/.storybook/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/react-with-storybook/.storybook/main.js b/templates/react-with-storybook/.storybook/main.js index 35130f33c..dff73b65c 100644 --- a/templates/react-with-storybook/.storybook/main.js +++ b/templates/react-with-storybook/.storybook/main.js @@ -1,4 +1,7 @@ module.exports = { stories: ['../stories/**/*.stories.@(ts|tsx|js|jsx)'], addons: ['@storybook/addon-links', '@storybook/addon-essentials'], + typescript: { + check: true, // set to false if you don't care about your stories being type-checked. + } }; From 5c2b0ed44ba5e000316b324a58d54eff94ae2889 Mon Sep 17 00:00:00 2001 From: Kyle Holmberg Date: Mon, 21 Sep 2020 11:35:11 -0700 Subject: [PATCH 2/3] Update templates/react-with-storybook/.storybook/main.js Co-authored-by: Anton Gilgur --- templates/react-with-storybook/.storybook/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/react-with-storybook/.storybook/main.js b/templates/react-with-storybook/.storybook/main.js index dff73b65c..f72864574 100644 --- a/templates/react-with-storybook/.storybook/main.js +++ b/templates/react-with-storybook/.storybook/main.js @@ -1,6 +1,7 @@ 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, // set to false if you don't care about your stories being type-checked. } From 91eb50f9aaaba9916142efb2532e75dded823728 Mon Sep 17 00:00:00 2001 From: Kyle Holmberg Date: Mon, 21 Sep 2020 11:35:33 -0700 Subject: [PATCH 3/3] Update templates/react-with-storybook/.storybook/main.js Co-authored-by: Anton Gilgur --- templates/react-with-storybook/.storybook/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/react-with-storybook/.storybook/main.js b/templates/react-with-storybook/.storybook/main.js index f72864574..cf1ac4a9f 100644 --- a/templates/react-with-storybook/.storybook/main.js +++ b/templates/react-with-storybook/.storybook/main.js @@ -3,6 +3,6 @@ module.exports = { addons: ['@storybook/addon-links', '@storybook/addon-essentials'], // https://storybook.js.org/docs/react/configure/typescript#mainjs-configuration typescript: { - check: true, // set to false if you don't care about your stories being type-checked. + check: true, // type-check stories during Storybook build } };