馃悰 Biome CLI and VSCode extension disagree on noUnusedVariables
#2767
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
What happened?
vite-env.d.ts
to define anImportMeta
(which is used for type-safe env configs)biome check
, and compare the results.biome check
finds no issues.a. Also, this warning cannot be suppressed, because it hides the warning in VSCode but triggers a
suppressions/unused
warning onbiome check
.Expected result
Either both will issue an incorrect
noUnusedVariables
warning, because theImportMeta
interface is not exported (and thus not used), or both will be fine with it. The actual fix in this case is to simply export the interface, but it's concerning that I would get a warning in one scenario but not the other.Code of Conduct
The text was updated successfully, but these errors were encountered: