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

LSP-oxlint

by sublimelsp ST4 New

Oxlint LSP server for Sublime Text

Details

Installs

  • Total 0
  • Win 0
  • Mac 0
  • Linux 0
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 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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.