Skip to content

Commit c6bd2da

Browse files
Add TypeScript support for eslint-plugin-import. (#17)
* Add TypeScript support for eslint-plugin-import. * Update the package lock. * Use the import/typescript plugin to support TypeScript with eslint-plugin-import.
1 parent f6df381 commit c6bd2da

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

typescript.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
module.exports = {
2-
extends: ['./index', 'plugin:@typescript-eslint/recommended'],
2+
extends: [
3+
'./index',
4+
'plugin:@typescript-eslint/recommended',
5+
'plugin:import/typescript'
6+
],
37
parser: '@typescript-eslint/parser',
48
rules: {
9+
/*
10+
The following rules are already handled by the TypeScript compiler.
11+
*/
12+
'import/named': 'off',
13+
'import/no-unresolved': 'off',
14+
515
/*
616
The following are extension rules that replace core JavaScript rules to support
717
TypeScript. When upgrading, changes to these rules can be identified in the

0 commit comments

Comments
 (0)