Using Oxlint LSP server in Sublime Text
The Sublime LSP package brings the power of LSP servers in Sublime Text, with support for many languages and tools: ESLint, Markdown, TypeScript, Tailwind CSS, etc.
We have been using Oxlint in our @studiometa/js-toolkit project to speed up linting and reduce configuration complexity with TypeScript, but I was missing the instant and integrated feedback from the ESLint LSP server when editing files.
With some digging, I found out that it is easy to add a custom LSP server, and the oxlint
NPM package is shipped with the language server binary. I added the following configuration in my Sublime LSP settings:
{
"clients": {
"LSP-oxlint": {
"enabled": true,
"command": [
"/opt/homebrew/bin/npx",
"-y",
"--package=oxlint",
"-c",
"'oxc_language_server'"
],
"selector": "source.js | source.ts"
}
}
}
I now have code quality reports for Oxlint directly in Sublime Text, with code actions and all the language server other tools available.