Rslint VS Code Extension
The official VS Code extension for Rslint, a high-performance JavaScript and TypeScript linter written in Go.
📦 Installation
⚙️ Configuration
The extension can be configured through VS Code settings:
rslint.enable
- Type:
boolean
- Default:
true
Enable/disable Rslint.
rslint.binPath
- Type:
"local" | "built-in" | "custom"
- Default:
"local"
Choose which Rslint binary to use:
local: Use workspace node_modules Rslint binary
built-in: Use extension's built-in Rslint binary
custom: Use a custom path to Rslint binary
rslint.customBinPath
- Type:
string
- Default:
undefined
Custom path to Rslint executable. Only used when rslint.binPath is set to custom. Requires reloading VS Code to take effect.
rslint.trace.server
- Type:
"off" | "messages" | "verbose"
- Default:
"off"
Traces the communication between VS Code and the language server.
🔧 Auto-fix on Save
To automatically fix lint issues when saving, add the following to your VS Code settings (.vscode/settings.json):
{
"editor.codeActionsOnSave": {
"source.fixAll.rslint": "explicit"
}
}
"explicit" — Fix on manual save only (Ctrl+S / Cmd+S) — recommended
"always" — Fix on every save, including auto-save
"never" — Disable auto-fix on save
Join our community:
- GitHub - Report bugs and request features
- Discord - Chat with the team and community
| |