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

LSP-oxlint

by sublimelsp ST4

Oxlint LSP server for Sublime Text

Details

Installs

  • Total 26
  • Win 8
  • Mac 12
  • Linux 6
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 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19
Windows 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 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 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 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

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.