ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LSP-oxlint

by sublimelsp ST4

Oxlint LSP server for Sublime Text

Details

Installs

  • Total 37
  • Win 11
  • Mac 17
  • Linux 9
Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8
Windows 0 0 1 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 0 2
Mac 0 0 0 0 0 1 1 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 2 0 0 0 0 0 1 1 1 0 0 0 1 0 1 0 1 0 2 1
Linux 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 1

Readme

Source
raw.​githubusercontent.​com

LSP-oxlint

Oxlint support for Sublime Text, provided through the oxc language server.

Installation

  1. Install LSP and LSP-oxlint via Package Control.
  2. (Optional but recommended) Install LSP-file-watcher-chokidar via Package Control. The server uses file watching to reload when .oxlintrc.json changes.
  3. Restart Sublime.

Oxlint resolution

The package uses oxlint from the project's local dependencies (node_modules/oxlint) when it is present. We recommend to add oxlint as a project dependency, so that the CLI and the editor use the same version.

You can also set an explicit path with the server_path setting. A relative path is resolved against the workspace folder.

If the project has no oxlint dependency and server_path is auto, the package uses the oxlint version that it manages itself.

Configuration

Open the configuration file with the Command Palette Preferences: LSP-oxlint Settings command or from the Sublime menu.

Oxlint rules are configured in the .oxlintrc.json file of the project. Refer to Configuring oxlint.

Usage

Fix all

Use the LSP-oxlint: Fix All command from the Command Palette to apply all safe fixes in the current file.

To apply fixes on save, open Preferences: LSP Settings from the Command Palette and set:

{
    "lsp_code_actions_on_save": {
        "source.fixAll.oxc": true,
    }
}

Use source.fixAllDangerous.oxc to also apply dangerous fixes. This requires a fixKind setting that allows dangerous fixes.