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: {
|
settings: {
|
||||||
'import/resolver': {
|
'import/resolver': {
|
||||||
node: { extensions: ['.js', '.mjs', '.ts', '.d.ts'] },
|
node: { extensions: ['.js', '.mjs'] },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
|
@ -4,8 +4,14 @@ const basic = require('@antfu/eslint-config-basic')
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
extends: [
|
extends: [
|
||||||
'@antfu/eslint-config-basic',
|
'@antfu/eslint-config-basic',
|
||||||
|
'plugin:import/typescript',
|
||||||
'plugin:@typescript-eslint/recommended',
|
'plugin:@typescript-eslint/recommended',
|
||||||
],
|
],
|
||||||
|
settings: {
|
||||||
|
'import/resolver': {
|
||||||
|
node: { extensions: ['.js', '.jsx', '.mjs', '.ts', '.tsx', '.d.ts'] },
|
||||||
|
},
|
||||||
|
},
|
||||||
overrides: basic.overrides,
|
overrides: basic.overrides,
|
||||||
rules: {
|
rules: {
|
||||||
'import/named': 'off',
|
'import/named': 'off',
|
||||||
|
Loading…
Reference in New Issue
Block a user