-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include .
resolves to an empty string
#88
Comments
I dug into this a bit, and it seems to stem from how This is indeed what happens in A simple fix could be to return |
Would one of you be able to provide a minimal reproduction or a failing test? |
https://github.com/carlocorradini/eslint-import-resolver-typescript/tree/bug Both the repro and commands are available in this issue's first comment 👍 |
I also created a very tiny repro here: https://github.com/pralkarz/get-tsconfig-88-repro.
|
Problem
If include contains
.
(in our case../.
), it is incorrectly resolved to an empty string (""
).We (from eslint-import-resolver-typescript) are trying to solve issue 363 where react-parallax-tilt has
../.
in itsinclude
array (see tsconfig.dev.json#L5)The call to
getTsconfig
correctly handles all other properties (i.e.extends
, etc...), however theinclude
entry that formerly included../.
now has an empty string (""
).This was noticed by @pralkarz in comment import-js/eslint-import-resolver-typescript#363 (comment)
PS: To reproduce:
yarn --immutable
yarn run build
yarn run bug
tsconfigResult
whereinclude: [ '' ]
Expected behavior
The
include
path should be correctly translated into a non-empty, valid string path/glob.Minimal reproduction URL
https://github.com/carlocorradini/eslint-import-resolver-typescript/tree/bug
Version
v4.10.0
Node.js version
v20.16.0
Package manager
npm
Operating system
Windows
Bugs are expected to be fixed by those affected by it
Compensating engineering work financially will speed up resolution
The text was updated successfully, but these errors were encountered: