-
#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
.
-
#305
f8d7b82
Thanks @SukkaW! - Fix resolve fornode:test
,node:sea
, andnode:sqlite
without sacrificing installation size -
#288
a4c6c78
Thanks @SunsetTechuila! - fix: ignore bun built-in modules
-
#294
10f9b17
Thanks @RobinTail! - Allow either eslint-plugin-import-x or eslint-plugin-import plugin as a peer dependency. -
#295
ff3d3c6
Thanks @wojtekmaj! - chore(deps): removeis-core-module
dependency
-
25f3920
Thanks @JounQin! - fix: enhanced-resolve is commonjs only - close #213 -
#219
0bf6ffb
Thanks @lsmurray! - fix: check if cwd changed to bust mapper cache
- #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.
-
#193
8756a26
Thanks @Rialgar! - chore(package): remove node 12 from engines field -
#187
7a91daf
Thanks @scott-ut! - fix: resolve modules if folder contains a package.json file
- #182
afeb928
Thanks @chenxinyanc! - perf: disablethrowIfNoEntry
on Node 14+
594df9c
Thanks @HanSeo0507! - chore(deps): update dependency synckit to ^0.8.3 for yarn PnP (#169)
- #166
8892a8c
Thanks @thatsmydoing! - perf: add filesystem caching support
-
#154
42f2dd6
Thanks @JounQin! - feat: addexternsionAlias
option support,.d.([cm]?ts|tsx)
are always preferred than.([cm]?js|jsx)
typescript
resolvestypescript/lib/typescript.d.ts
instead oftypescript/lib/typescript.js
by default -
#154
42f2dd6
Thanks @JounQin! - feat: exportsglobSync
,defaultExtensions
,defaultMainFields
,defaultConditionNames
anddefaultExtensionAlias
for reusing
-
#154
42f2dd6
Thanks @JounQin! - perf: cacheoptions
andresolver
-
#154
42f2dd6
Thanks @JounQin! - chore: align with Angular Package Format correctly -
#156
4bd60c3
Thanks @JounQin! - docs: document options fromenhanced-resolve
-
#128
56775b3
Thanks @JounQin! - refactor: support custom extensions on resolving -
#128
56775b3
Thanks @JounQin! - feat: try extensionless file by default
3.1.1 (2022-06-27)
3.1.0 (2022-06-25)
- use enhanced-resolve instead
- support angular-package-format out of box (7e0cd04)
- use enhanced-resolve instead (39ab8b1), closes #85 #107
3.0.0 (2022-06-25)
- remove depracated directory option
- use get-tsconfig to replace tsconfig-paths
- bump globby, use synckit for sync fn
- deps: bump tsconfig-paths to ^4.0.0 (#104)
-
bump globby, use synckit for sync fn (322cb29)
-
ignore
node_modules
folder inprojects
option glob (#105) (1e1b5a6) -
remove depracated directory option (67c8d59)
-
use get-tsconfig to replace tsconfig-paths (78a08e0)
2.7.1 (2022-04-03)
2.7.0 (2022-03-23)
2.6.0 (2022-03-23)
2.5.0 (2021-09-13)
2.4.0 (2021-02-16)
- remove .tsbuildinfo and d.ts.map files from package (#57) (15f2849)
- remove redundant condition (#69) (ba62e65)
2.3.0 (2020-09-01)
2.2.1 (2020-08-14)
2.2.0 (2020-07-30)
2.1.0 (2020-07-30)
- options could be null - close #42 (81db8eb)
- typo (#40) (585509e)
- wrong path resolution in multiple eslintrc configurations (#51) (d563eeb), closes #50
2.0.0 (2019-10-17)
- add alwaysTryTypes option, add tests (fe0aa6f)
- replace glob with tiny-glob for faster speed, close #12 (f436627)
- replace glob with tiny-glob for faster speed, close #12 (#13) (5f87698)
- resolve .ts/.tsx/.d.ts first, and then fallback to @types/* (b11ede3)
- support scoped packages from DefinitelyTyped (b4e72a5)
- use types/typings/module first to use .d.ts whenever possible (74de3d9)