From 366f749f9d7c388191c2196062b929d30abf78b5 Mon Sep 17 00:00:00 2001 From: Axel Bocciarelli Date: Thu, 20 Jun 2024 13:24:32 +0200 Subject: [PATCH 1/2] Include project-less files explicitly in root tsconfig --- tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index ec61b21b1..1879a0504 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,5 +25,6 @@ "ignoreDeprecations": "5.0", "useDefineForClassFields": true, "useUnknownInCatchVariables": true - } + }, + "include": ["*", "cypress", "apps/*/*", "packages/*/*"] } From da0edfe3fdca048f20c1cd4eedf98556e6eaf756 Mon Sep 17 00:00:00 2001 From: Axel Bocciarelli Date: Thu, 20 Jun 2024 13:24:33 +0200 Subject: [PATCH 2/2] Fix linting and type-checking of .storybook config folder --- apps/storybook/.eslintignore | 1 + apps/storybook/.storybook/main.ts | 5 ++++- apps/storybook/tsconfig.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/storybook/.eslintignore b/apps/storybook/.eslintignore index 34b23da89..f526cde15 100644 --- a/apps/storybook/.eslintignore +++ b/apps/storybook/.eslintignore @@ -1,2 +1,3 @@ /build/ /node_modules/ +!/.storybook/ diff --git a/apps/storybook/.storybook/main.ts b/apps/storybook/.storybook/main.ts index eba5170b6..4a2a92315 100644 --- a/apps/storybook/.storybook/main.ts +++ b/apps/storybook/.storybook/main.ts @@ -1,6 +1,7 @@ +import type { StorybookConfig } from '@storybook/react-vite'; import remarkGfm from 'remark-gfm'; -export default { +const config: StorybookConfig = { stories: ['../src/**/*.mdx', '../src/**/*.stories.tsx'], framework: '@storybook/react-vite', addons: [ @@ -19,3 +20,5 @@ export default { ], docs: { autodocs: true }, }; + +export default config; diff --git a/apps/storybook/tsconfig.json b/apps/storybook/tsconfig.json index 596e2cf72..bad814303 100644 --- a/apps/storybook/tsconfig.json +++ b/apps/storybook/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src"] + "include": [".storybook/**/*", "src"] }