fix: eslint-plugin-import support TypeScript (#77)
Co-authored-by: CondorHero <love2xinwei@gmail.com>
This commit is contained in:
parent
25668d5d1c
commit
5f05cfcfd6
@ -35,7 +35,7 @@ module.exports = {
|
||||
],
|
||||
settings: {
|
||||
'import/resolver': {
|
||||
node: { extensions: ['.js', '.mjs', '.ts', '.d.ts'] },
|
||||
node: { extensions: ['.js', '.mjs'] },
|
||||
},
|
||||
},
|
||||
overrides: [
|
||||
|
@ -4,8 +4,14 @@ const basic = require('@antfu/eslint-config-basic')
|
||||
module.exports = {
|
||||
extends: [
|
||||
'@antfu/eslint-config-basic',
|
||||
'plugin:import/typescript',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
],
|
||||
settings: {
|
||||
'import/resolver': {
|
||||
node: { extensions: ['.js', '.jsx', '.mjs', '.ts', '.tsx', '.d.ts'] },
|
||||
},
|
||||
},
|
||||
overrides: basic.overrides,
|
||||
rules: {
|
||||
'import/named': 'off',
|
||||
|
Loading…
Reference in New Issue
Block a user