Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit c04a433

Browse files
fix: configure import plugin to recognise TS-specific file extensions
1 parent 8a990e8 commit c04a433

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

environments/typescript/recommended.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,21 @@
1010

1111
module.exports = {
1212

13+
settings: {
14+
// Correctly recognise .ts and .d.ts files when checking import paths against the filesystem
15+
'import/resolver': {
16+
node: {
17+
extensions: [
18+
'.ts',
19+
'.d.ts',
20+
'.mjs',
21+
'.js',
22+
'.json',
23+
],
24+
},
25+
},
26+
},
27+
1328
plugins: [
1429
'typescript',
1530
],

0 commit comments

Comments
 (0)