Skip to content

Commit

Permalink
Add config for resolving @types
Browse files Browse the repository at this point in the history
  • Loading branch information
indigolain committed Jul 11, 2019
1 parent e5f3d4a commit 69ba4bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ module.exports = {
settings: {
'import/core-modules': ['enzyme'],
'import/ignore': ['node_modules\\/(?!@storybook)'],
'import/resolver': { node: { extensions: ['.js', '.ts', '.tsx', '.mjs'] } },
'import/resolver': {
node: {
extensions: ['.js', '.ts', '.tsx', '.mjs', '.d.ts'],
paths: ['node_modules/', 'node_modules/@types/'],
},
},
'html/html-extensions': ['.html'],
},
rules: {
Expand Down
2 changes: 1 addition & 1 deletion examples/dev-kits/stories/addon-decorator.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { storiesOf } from '@storybook/react';

import { withDecorator } from '@storybook/addon-decorator';
import { withRoundtrip } from '@storybook/addon-roundtrip';
import { withDecorator } from '@storybook/addon-decorator';

storiesOf('addons|decorator', module)
.addDecorator(withRoundtrip)
Expand Down

0 comments on commit 69ba4bd

Please sign in to comment.