diff --git a/packages/basic/index.js b/packages/basic/index.js index 2063587..94ac3e2 100644 --- a/packages/basic/index.js +++ b/packages/basic/index.js @@ -35,7 +35,7 @@ module.exports = { ], settings: { 'import/resolver': { - node: { extensions: ['.js', '.mjs', '.ts', '.d.ts'] }, + node: { extensions: ['.js', '.mjs'] }, }, }, overrides: [ diff --git a/packages/typescript/index.js b/packages/typescript/index.js index ecd5f0e..474a02a 100644 --- a/packages/typescript/index.js +++ b/packages/typescript/index.js @@ -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',