Configurar editores
Extensões usam oxlint --lsp no projeto; instale oxlint localmente.
Veja Início rápido.
Editores suportados
VS Code
Instalar
Compatível com editores baseados em VS Code, inclusive Cursor.
Equipe
- Recomende a extensão —
.vscode/extensions.json:
json
{
"recommendations": ["oxc.oxc-vscode"]
}- Fix ao salvar —
.vscode/settings.json:
json
{
"editor.codeActionsOnSave": {
"source.fixAll.oxc": "always"
}
}- Lint com tipos (opcional) — na config raiz do Oxlint:
json
{
"options": {
"typeAware": true
}
}ts
import { defineConfig } from "oxlint";
export default defineConfig({
options: {
typeAware: true,
},
});Ou em .vscode/settings.json:
json
{
"oxc.typeAware": true
}Sem oxc.typeAware, o editor usa options.typeAware da raiz; se definido, sobrescreve a config.
Instale também oxlint-tsgolint no projeto. Detalhes: Lint com tipos.
Referências
Zed
Instalar
Referências
JetBrains
IntelliJ IDEA, WebStorm etc.
Instalar
Referências
Neovim
nvim-lspconfig
sh
npm i -g oxlintlua
vim.lsp.enable('oxlint')coc.nvim
vim
:CocInstall coc-oxcOutros editores
Com suporte LSP (Emacs, Helix, Sublime):
bash
oxlint --lsp