-
-
Notifications
You must be signed in to change notification settings - Fork 739
Closed as duplicate of#3682
Copy link
Labels
A-LinterArea: linterArea: linterL-JavaScriptLanguage: JavaScript and super languagesLanguage: JavaScript and super languagesS-EnhancementStatus: Improve an existing featureStatus: Improve an existing feature
Description
Environment information
Platform:
CPU Architecture: aarch64
OS: macos
Environment:
BIOME_LOG_PATH: unset
BIOME_LOG_PREFIX_NAME: unset
BIOME_CONFIG_PATH: unset
NO_COLOR: unset
TERM: "xterm-256color"
JS_RUNTIME_VERSION: "v22.15.1"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: "npm/11.4.1"Rule name
lint/correctness/noUnusedImports
Playground link
no
Expected result
After update to v2 I got a warning that I didn't see in v1.9:
The error:
src/util/DOM/SsrDataScript.tsx:1:43 lint/correctness/noUnusedImports FIXABLE βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Several of these imports are unused.
> 1 β import { Build, type FunctionalComponent, h } from '@stencil/core';
β ^
2 β
3 β const getScriptText = (dataId: number, data: unknown) => {
βΉ Unused imports might be the result of an incomplete refactoring.
βΉ Unsafe fix: Remove the unused imports.
1 β importΒ·{Β·Build,Β·typeΒ·FunctionalComponent,Β·hΒ·}Β·fromΒ·'@stencil/core';
β -- With my tsconfig:
{
"compilerOptions": {
"jsx": "react",
"jsxFactory": "h"
}
}and I tried 2 options for JSX factory, got the same warning.
biome.json
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"assist": {
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"javascript": {
"jsxRuntime": "transparent/reactClassic", // tried both options, with the same result
"formatter": {
"quoteStyle": "single"
}
}
}Code of Conduct
- I agree to follow Biome's Code of Conduct
irontitan76, Azahliil and life4aiur
Metadata
Metadata
Assignees
Labels
A-LinterArea: linterArea: linterL-JavaScriptLanguage: JavaScript and super languagesLanguage: JavaScript and super languagesS-EnhancementStatus: Improve an existing featureStatus: Improve an existing feature