noUndeclaredVariables
not properly handling type
import
#2975
Labels
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
Rule name
noUndeclaredVariables
Playground link
https://biomejs.dev/playground/?lintRules=all&code=aQBtAHAAbwByAHQAIAB0AHkAcABlACAAewBHAHIAbwB1AHAAZQBkAEkAdABlAG0ALAAgAE0AWQBfAEEAVABUAFIASQBCAFUAVABFAH0AIABmAHIAbwBtACAAJwAuAC8AdAB5AHAAZQBzACcAOwAKAAoAZQB4AHAAbwByAHQAIAB0AHkAcABlACAARwByAG8AdQBwAEkAdABlAG0AVwBpAHQAaABEAGUAbgBzAGkAdAB5AFAAYQB0AGgAcwA8AFQAPgAgAD0AIABHAHIAbwB1AHAAZQBkAEkAdABlAG0APABUAD4AIAAmACAAewAKACAAIABbAE0AWQBfAEEAVABUAFIASQBCAFUAVABFAF0APwA6ACAAewBbAGsAOgAgAHMAdAByAGkAbgBnAF0AOgAgAGIAbwBvAGwAZQBhAG4AfQA7AAoAfQA7AA%3D%3D
Expected result
I have the following TypeScript code:
This is valid TypeScript code, however, Biome reports two errors:
Code of Conduct
The text was updated successfully, but these errors were encountered: