From 552640cc18979095840a043b943e1034cea44662 Mon Sep 17 00:00:00 2001 From: Aram Limpens Date: Wed, 6 Dec 2023 13:45:53 +0100 Subject: [PATCH] Convert main Storybook config files to ESM --- storybook/storybook-docs/config/main.js | 6 ++++-- storybook/storybook-react/config/{main.js => main.ts} | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) rename storybook/storybook-react/config/{main.js => main.ts} (85%) diff --git a/storybook/storybook-docs/config/main.js b/storybook/storybook-docs/config/main.js index 7a167b0883..f53c8d00c5 100644 --- a/storybook/storybook-docs/config/main.js +++ b/storybook/storybook-docs/config/main.js @@ -1,10 +1,10 @@ import remarkGfm from 'remark-gfm' +// eslint-disable-next-line no-undef const { STORYBOOK_BUILD_PATH } = process.env const REPO_NAME = 'design-system' -/* eslint-env node */ -module.exports = { +const config = { core: { disableTelemetry: true, }, @@ -58,3 +58,5 @@ module.exports = { } }, } + +export default config diff --git a/storybook/storybook-react/config/main.js b/storybook/storybook-react/config/main.ts similarity index 85% rename from storybook/storybook-react/config/main.js rename to storybook/storybook-react/config/main.ts index 581d6a57d9..d9168e0df1 100644 --- a/storybook/storybook-react/config/main.js +++ b/storybook/storybook-react/config/main.ts @@ -1,7 +1,7 @@ +import type { StorybookConfig } from '@storybook/react-vite' import remarkGfm from 'remark-gfm' -/* eslint-env node */ -module.exports = { +const config: StorybookConfig = { core: { disableTelemetry: true, }, @@ -34,3 +34,5 @@ module.exports = { autodocs: true, }, } + +export default config