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

LSP-eslint

by sublimelsp ST3

ESLint support for Sublime LSP plugin

Labels linting

Details

  • 2.0.1
    0.1.0
    0.0.6
  • github.​com
  • github.​com
  • 4 months ago
  • 6 days ago
  • 5 years ago

Installs

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

Readme

Source
raw.​githubusercontent.​com

LSP-eslint

Eslint support for Sublime's LSP plugin provided through vscode-eslint.

Installation

  • Install LSP and LSP-eslint from Package Control.
  • Restart Sublime.

The server requires the Node runtime to be at version 14 or later.

Configuration

Open configuration file using command palette with Preferences: LSP-eslint Settings command or opening it from the Sublime menu.

Configuration file contains multiple configuration keys:

languages

Defines on which types of files the ESLint server will run.

settings

ESLint configuration options. Refer to the comments for documentation and install LSP-json to automatically validate settings.

FAQ

Q: How to enable linting of Typescript code?

A: Make sure that eslint configuration in your project has typescript-eslint plugin configured. See https://github.com/typescript-eslint/typescript-eslint for more information.

Q: How to enable eslint to fix all issues automatically on saving the file?

A: Open Preferences: LSP Settings from the command palette and add or modify the following setting:

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

Q: How to use this in a Yarn 2 project?

A: Install ESLint in the project, run yarn dlx @yarnpkg/pnpify --sdk base (docs) and set settings.nodePath to .yarn/sdks either in LSP-eslint's settings or, if you have other non-Yarn-2 projects, in your .sublime-project:

{
  "settings": {
    "LSP": {
      "LSP-eslint": {
        "settings": {
          "nodePath": ".yarn/sdks"
        }
      }
    }
  }
}