💅 useImportType
splits React import into two, doesn't respect jsxRuntime:reactClassic
setting
#2473
Closed
1 task done
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
Rule name
useImportType
Playground link
https://biomejs.dev/playground/?lintRules=all&code=aQBtAHAAbwByAHQAIABSAGUAYQBjAHQALAAgAHsAIABGAEMAIAB9ACAAZgByAG8AbQAgACcAcgBlAGEAYwB0ACcACgAKAGMAbwBuAHMAdAAgAF8AQwBvAG0AcAA6ACAARgBDACAAPQAgACgAKQAgAD0APgAgADwAZABpAHYAPgBIAGUAbABsAG8APAAvAGQAaQB2AD4AOwA%3D
Expected result
Playground link does not reproduce the issue, because there's no way to set
jsxRuntime
option.Given
jsxRuntime=reactClassic
and following code:Biome transforms in into this:
This transformation is incorrect, should be:
Code of Conduct
The text was updated successfully, but these errors were encountered: