What version of Oxlint are you using?
1.56.0
What command did you run?
Ran "Oxc: Fix all auto-fixable problems (file)" in VSCode with "oxc.fixKind": "dangerous_fix"
What does your .oxlintrc.json (or oxlint.config.ts) config file look like?
What happened?
Reproduction repo: https://github.com/antoine-cottineau/repro-unused-imports-lsp/tree/main
- clone the repo
- run
yarn install
- open vscode with the oxc extension installed and open
App.tsx
- run the command "Oxc: Fix all auto-fixable problems (file)"
Problem: the unused useMemo import is not removed.
However, if I run yarn oxlint --fix-dangerously, useMemo is removed.
I encountered the same problem in Neovim.
What version of Oxlint are you using?
1.56.0
What command did you run?
Ran "Oxc: Fix all auto-fixable problems (file)" in VSCode with "oxc.fixKind": "dangerous_fix"
What does your
.oxlintrc.json(oroxlint.config.ts) config file look like?{ "$schema": "./node_modules/oxlint/configuration_schema.json", "rules": { "no-unused-vars": [ "error", { "fix": { "imports": "fix", "variables": "off" } } ] } }What happened?
Reproduction repo: https://github.com/antoine-cottineau/repro-unused-imports-lsp/tree/main
yarn installApp.tsxProblem: the unused
useMemoimport is not removed.However, if I run
yarn oxlint --fix-dangerously,useMemois removed.I encountered the same problem in Neovim.