💅 Calling biome lint errors with internal error: use_exhaustive_dependencies.rs when referencing an enum renamed with the import statement #1194
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
S-Help-wanted
Status: you're familiar with the code base and want to help the project
Environment information
Rule name
n/a
Playground link
https://biomejs.dev/playground/?code=aQBtAHAAbwByAHQAIAB7ACAAdQBzAGUATQBlAG0AbwAgAH0AIABmAHIAbwBtACAAJwByAGUAYQBjAHQAJwA7AAoACgBlAG4AdQBtACAARgBvAG8AIAB7AAoAIAAgAEEAIAA9ACAAMQAsAAoAfQAKAAoAaQBtAHAAbwByAHQAIABGAG8AbwAyACAAPQAgAEYAbwBvADsACgAKAGMAbwBuAHMAdAAgAHUAcwBlAEIAYQBkACAAPQAgACgAKQAgAD0APgAgAHsACgAgACAAdQBzAGUATQBlAG0AbwAoACgAKQAgAD0APgAgAHsACgAgACAAIAAgADIAIAA9AD0APQAgAEYAbwBvADIALgBBADsACgAgACAAfQAsACAAWwBdACkAOwAKAH0AOwAKAA%3D%3D&jsx=false
Expected result
It should apply fixes successfully.
Instead, it errored with the following
Debugging notes
I think it's related to using the import statement to alias another type. Bisecting a file showed that the problem is this pattern:
bad.ts
Code of Conduct
The text was updated successfully, but these errors were encountered: