Skip to content

Commit

Permalink
chore: add all tsconfigs to eslint and fix alias (#2069)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes authored May 23, 2024
1 parent c9818ec commit 5d7bdb2
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
},
},
},
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/components/Alert/Alert.mdx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/components/Button/Button.mdx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
ArrowUndoIcon,
PlusIcon,
} from '@navikt/aksel-icons';
/* @ts-expect-error #2307 */
import { Stack } from '@doc-components';

import { Spinner } from '../Spinner';
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/components/Tag/Tag.stories.tsx
Original file line number Diff line number Diff line change
@@ -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 '.';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/form/Checkbox/Checkbox.mdx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5d7bdb2

Please sign in to comment.