Setup editors
Editor extensions use oxlint --lsp from your project, so oxlint must be installed locally.
See Quickstart to install Oxlint.
Supported editors
- VS Code (and Cursor, etc.)
- Zed
- JetBrains
- Neovim
- Other editors
VS Code
Install
Download the official Oxc VS Code extension from:
The extension is compatible with other VS Code-based editors, including Cursor.
Team setup
- Recommend the extension for contributors:
.vscode/extensions.json:
json
{
"recommendations": ["oxc.oxc-vscode"]
}
``````json [.vscode/settings.json]
{
"editor.codeActionsOnSave": {
"source.fixAll.oxc": "always"
}
}
``````json [.oxlintrc.json]
{
"options": {
"typeAware": true
}
}
``````ts [oxlint.config.ts]
import { defineConfig } from "oxlint";
export default defineConfig({
options: {
typeAware: true,
},
});
``````json [.vscode/settings.json]
{
"oxc.typeAware": true
}
``````sh
npm i -g oxlint
``````lua
vim.lsp.enable('oxlint')
``````vim
:CocInstall coc-oxc
``````bash
oxlint --lsp