-
-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
💅 noUnusedImports
warns used types in declaring modules
#3895
Comments
What?! Screencast.from.15-09-24.00.59.58.webmIt happens with both CLI and the VSCode extension |
As a workaround, you can move the import type { Linter } from "eslint";
declare module "eslint-plugin-jsx-a11y" {
export const flatConfigs: {
readonly recommended: { readonly rules: Readonly<Linter.RulesRecord> };
readonly strict: { readonly rules: Readonly<Linter.RulesRecord> };
};
} |
it looks like a semantic bug |
Yes, it is a bug in the semantic model. Unfortunately it is a complex one. I didn't find an easy way to address this bug. It is low priority. |
@Conaclos the autofix of this is to eliminate the import which causes a compilation error. Can you give it a quick try again? awasome project, really! thanks! |
Your concern is addressed in another issue and it's unrelated to this issue. It's not a bug and we plan to address it in v2 |
@ematipico I couldn't find a newer version. import { Logger } from "@p/observability";
import {
closeDependencies,
initDependencies,
} from "@/app/clients/ApiClient.Utils";
import { Redis } from "@p/redis";
const log = new Logger();
const main = async () => {
log.info(`
sssssssss
`);
................... import { Logger } from "@p/observability";
const log = new Logger();
const main = async () => {
log.info(
sssssssss
`);
.......................... the following lines were deleted: import {
closeDependencies,
initDependencies,
} from "@/app/clients/ApiClient.Utils";
import { Redis } from "@p/redis"; |
@stavalfi If the issue is different from the current one, could you open a new issue? |
Environment information
Rule name
noUnusedImports
Playground link
https://biomejs.dev/playground/?lintRules=all&code=ZABlAGMAbABhAHIAZQAgAG0AbwBkAHUAbABlACAAIgBlAHMAbABpAG4AdAAtAHAAbAB1AGcAaQBuAC0AagBzAHgALQBhADEAMQB5ACIAIAB7AAoAIAAgAGkAbQBwAG8AcgB0ACAAdAB5AHAAZQAgAHsAIABMAGkAbgB0AGUAcgAgAH0AIABmAHIAbwBtACAAIgBlAHMAbABpAG4AdAAiADsACgAKACAAIABlAHgAcABvAHIAdAAgAGMAbwBuAHMAdAAgAGYAbABhAHQAQwBvAG4AZgBpAGcAcwA6ACAAewAKACAAIAAgACAAcgBlAGEAZABvAG4AbAB5ACAAcgBlAGMAbwBtAG0AZQBuAGQAZQBkADoAIAB7ACAAcgBlAGEAZABvAG4AbAB5ACAAcgB1AGwAZQBzADoAIABSAGUAYQBkAG8AbgBsAHkAPABMAGkAbgB0AGUAcgAuAFIAdQBsAGUAcwBSAGUAYwBvAHIAZAA%2BACAAfQA7AAoAIAAgACAAIAByAGUAYQBkAG8AbgBsAHkAIABzAHQAcgBpAGMAdAA6ACAAewAgAHIAZQBhAGQAbwBuAGwAeQAgAHIAdQBsAGUAcwA6ACAAUgBlAGEAZABvAG4AbAB5ADwATABpAG4AdABlAHIALgBSAHUAbABlAHMAUgBlAGMAbwByAGQAPgAgAH0AOwAKACAAIAB9ADsACgB9AA%3D%3D
Expected result
This shouldn't error
Code of Conduct
The text was updated successfully, but these errors were encountered: