Skip to content

Commit

Permalink
lint: Add eslint-plugin-import settings for TS
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Dec 4, 2019
1 parent 8beee41 commit 862939b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@
- devDependencies: ["**/test/**"]
root: true
settings:
# effectively extending import/typescript config
'import/extensions': ['.ts', '.d.ts', '.js', '.json']
'import/parsers':
'@typescript-eslint/parser': ['.ts', '.d.ts']
'import/resolver':
node:
extensions: ['.ts', '.d.ts', '.js', '.json']
'eslint-import-resolver-typescript': true
# avoid eslint-plugin-node tripping over TS
node:
Expand Down

0 comments on commit 862939b

Please sign in to comment.