diff --git a/.eslintrc.cjs b/.eslintrc.cjs index c73418399d..a94282c00a 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -93,7 +93,11 @@ module.exports = { 'import/resolver': { typescript: { alwaysTryTypes: true, - project: ['./apps/*/tsconfig.json', './packages/*/tsconfig.json'], + project: [ + /* all tsconfig files */ + 'tsconfig.json', + './**/tsconfig.json', + ], }, }, }, diff --git a/packages/react/src/components/Alert/Alert.mdx b/packages/react/src/components/Alert/Alert.mdx index ee2e5a3767..fa206baef4 100644 --- a/packages/react/src/components/Alert/Alert.mdx +++ b/packages/react/src/components/Alert/Alert.mdx @@ -1,5 +1,4 @@ import { Meta, Canvas, Controls, Primary } from '@storybook/blocks'; - import { Do, Dont, Stack } from '@doc-components'; import * as AlertStories from './Alert.stories'; diff --git a/packages/react/src/components/Button/Button.mdx b/packages/react/src/components/Button/Button.mdx index 8aaab305f4..9cbc41de29 100644 --- a/packages/react/src/components/Button/Button.mdx +++ b/packages/react/src/components/Button/Button.mdx @@ -1,5 +1,4 @@ import { Meta, Canvas, Controls, Primary } from '@storybook/blocks'; - import { Do, Dont, Stack } from '@doc-components'; import * as ButtonStories from './Button.stories'; diff --git a/packages/react/src/components/Button/Button.stories.tsx b/packages/react/src/components/Button/Button.stories.tsx index b1e5270e4e..887cf14fe8 100644 --- a/packages/react/src/components/Button/Button.stories.tsx +++ b/packages/react/src/components/Button/Button.stories.tsx @@ -13,7 +13,6 @@ import { ArrowUndoIcon, PlusIcon, } from '@navikt/aksel-icons'; -/* @ts-expect-error #2307 */ import { Stack } from '@doc-components'; import { Spinner } from '../Spinner'; diff --git a/packages/react/src/components/Tag/Tag.stories.tsx b/packages/react/src/components/Tag/Tag.stories.tsx index 5540ac6b23..c04a32f655 100644 --- a/packages/react/src/components/Tag/Tag.stories.tsx +++ b/packages/react/src/components/Tag/Tag.stories.tsx @@ -1,5 +1,4 @@ import type { Meta, StoryFn, StoryObj } from '@storybook/react'; -/* @ts-expect-error #2307 */ import { Stack } from '@doc-components'; import type { TagProps } from '.'; diff --git a/packages/react/src/components/form/Checkbox/Checkbox.mdx b/packages/react/src/components/form/Checkbox/Checkbox.mdx index b8f62e6284..ffbd7c4e7f 100644 --- a/packages/react/src/components/form/Checkbox/Checkbox.mdx +++ b/packages/react/src/components/form/Checkbox/Checkbox.mdx @@ -1,6 +1,6 @@ import { Meta, Canvas, Controls, Primary } from '@storybook/blocks'; - import { Do, Dont, Stack } from '@doc-components'; + import * as TableStories from '../../Table/Table.stories'; import * as CheckboxStories from './Checkbox.stories'; diff --git a/tsconfig.json b/tsconfig.json index 92a3a7e720..4f451b7ff7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,10 @@ "compilerOptions": { "baseUrl": ".", "paths": { - "@doc-components/*": ["apps/storybook/docs-components/*"], + "@doc-components*": [ + "apps/storybook/docs-components", + "apps/storybook/docs-components/*" + ], "@assets/*": ["apps/storybook/assets/*"] }, "target": "ES2022",