Rslint VS Code Extension
[!IMPORTANT]
This extension is retired. Migrate to the Rstack extension.
This is the final release of the standalone Rslint extension. It is no longer maintained and will receive no further releases. It only supports @rslint/core ^0.9.0; for newer cores, install the unified Rstack extension (rstack.rstack), which covers testing, linting, and formatting in one install. It is also available on the Open VSX Registry for Cursor, Trae, VSCodium, and other VS Code forks.
To switch: install rstack.rstack, uninstall rstack.rslint, then reload the window so only one copy of Rslint runs. This extension stands down while Rstack is enabled. Settings are not migrated automatically; re-enter them using the mapping below.
Migrate settings to Rstack
Standalone (rslint.*) |
Rstack (rstack.rslint.*) |
rslint.enable |
rstack.rslint.enable |
rslint.corePath |
rstack.rslint.corePath |
rslint.trace.server |
rstack.rslint.trace.server |
rslint.binPath, rslint.customBinPath |
No equivalent; use rstack.rslint.corePath to override the core |
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.corePath
The extension uses the nearest @rslint/core installation for each open file.
This follows normal node_modules ancestry, so a monorepo can use a root
installation, nested versions, or both. Runtimes backed by the same physical
installation are shared within a workspace folder.
Yarn Plug'n'Play is not resolved or executed. Use a regular local installation
or set rslint.corePath to an exact package directory.
Set rslint.corePath to an @rslint/core package directory to override
automatic resolution. Relative paths are resolved from the workspace folder.
The extension does not ship a fallback core, so the project must install one.
If an installation is replaced in place without changing its package directory,
reload the VS Code window so its Node-loaded code and binary refresh together.
rslint.trace.server
- Type:
"off" | "messages" | "verbose"
- Default:
"off"
Traces the communication between VS Code and the language server.
The level applies to every Rslint runtime in the current VS Code window,
including runtimes backed by different workspace folders or physical
@rslint/core installations. Changing the value takes effect immediately and
does not restart the language servers. All runtimes write to the shared
Rslint Language Server(LSP) output channel.
Keep tracing off unless it is needed for diagnosis. In particular, verbose
output can include source text and file paths.
🔧 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