CLI:
Version: 1.6.3
Color support: true
Platform:
CPU Architecture: x86_64
OS: linux
Environment:
BIOME_LOG_DIR: unset
NO_COLOR: unset
TERM: "xterm-256color"
JS_RUNTIME_VERSION: "v20.11.0"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: unset
Biome Configuration:
Status: Loaded successfully
Formatter disabled: false
Linter disabled: false
Organize imports disabled: false
VCS disabled: false
Linter:
Recommended: true
All: false
Rules: complexity/noForEach = "off"
correctness/noUnusedVariables = "off"
style/noNonNullAssertion = "off"
suspicious/noConsoleLog = "off"
suspicious/noExplicitAny = "off"
Workspace:
Open Documents: 0
lint/style/useImportType
https://codesandbox.io/p/devbox/silent-resonance-9379qh
When I import a component and use it in the template section, there is no linting error. If I create a ref that uses that component's type then I get a warning that it's only being used as a type and that I should add type to it's import. If I do that, the code breaks.
It should recognize that the component is being used as a value in the template part.
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