CLI:
Version: 1.8.3
Color support: true
Platform:
CPU Architecture: x86_64
OS: windows
Environment:
BIOME_LOG_DIR: unset
NO_COLOR: unset
TERM: "xterm-256color"
JS_RUNTIME_VERSION: "v22.6.0"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: "pnpm/9.6.0"
Biome Configuration:
Status: Loaded successfully
Formatter disabled: false
Linter disabled: false
Organize imports disabled: false
VCS disabled: true
Workspace:
Open Documents: 0
https://github.com/ahaoboy/biome-react-jsxFactory
When using a custom renderer, after turning on noUnusedImports, the jsxFactory field configured in tsconfig is not correctly recognized
For example, in the following code, only variable b should not be used.
However, biome will mark both $ and b as unused.
"jsx": "react",
"jsxFactory": "$",
"jsxFragmentFactory": "$"
import { $, b } from "./react"
function App() {
return <div />
}
export default <App />
biome can handle custom jsxFactory correctly
For the above code, only variable b should not be used.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too