Releases: import-js/eslint-import-resolver-typescript
Releases · import-js/eslint-import-resolver-typescript
v3.7.0
Minor Changes
-
#326
93ea130
Thanks @SukkaW! - This version has implemented theeslint-plugin-import-x
's v3 resolver interface. This allows you to use import/require to referenceeslint-import-resolver-typescript
directly in your ESLint flat config:Previously
// eslint.config.js module.exports = { settings: { 'import-x/resolver': { typescript: { alwaysTryTypes: true, }, // or require.resolve('eslint-import-resolver-typescript'): alwaysTryTypes: true, } } } }
Now
// eslint.config.js const { createTypeScriptImportResolver, } = require('eslint-import-resolver-typescript') module.exports = { settings: { 'import-x/resolver-next': [ createTypeScriptImportResolver({ alwaysTryTypes: true, }), ], }, }
Note that this only works with
eslint-plugin-import-x@>=4.5.0
. You can't usecreateTypeScriptImportResolver
with the older versions ofeslint-plugin-import-x
or any existing versions ofeslint-plugin-import
.
v3.6.3
v3.6.1
v3.6.0
v3.5.5
v3.5.4
v3.5.3
Patch Changes
- #206
6531bad
Thanks @marvinhagemeister! - Only try to resolve a module directory when we know that the path is a directory. This can lead to a 15% speedup on projects with many files.
v3.5.2
v3.5.1
Patch Changes
- #182
afeb928
Thanks @chenxinyanc! - perf: disablethrowIfNoEntry
on Node 14+
New Contributors
- @chenxinyanc made their first contribution in #182
Full Changelog: v3.5.0...v3.5.1