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

LSP-eslint

by sublimelsp ST3

ESLint support for Sublime LSP plugin

Details

Installs

  • Total 198
  • Win 40
  • Mac 101
  • Linux 57
Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20
Windows 0 0 0 0 1 0 0 0 1 0 2 0 0 0 0 0 0 1 2 1 0 0 0 0 1 1 0 0 0 0 1 1 1 0 0 1 0 1 1 0 1 2 0 1 0
Mac 1 0 3 1 3 1 5 1 0 3 2 0 3 1 2 5 1 0 4 0 1 0 0 1 1 2 0 1 1 1 2 1 0 1 1 3 3 2 1 1 1 3 1 3 0
Linux 1 1 1 0 1 0 3 0 0 1 2 1 0 0 0 0 2 0 0 0 1 0 0 0 1 0 0 0 1 0 0 2 0 2 0 0 3 1 0 0 0 2 1 0 1

Readme

Source
raw.​githubusercontent.​com

LSP-eslint

Eslint support for Sublime's LSP plugin.

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

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:

scopes

Defines which scopes ESLint can run in.

syntaxes

Defines which syntax files ESLint can run in.

initializationOptions

Configuration options sent with initialize message. I believe these are not used by ESLint.

settings

ESLint configuration options. Those are currently not documented but documentation for VSCode extension roughly matches with those so can help in understanding them.

FAQ

Q: How to enable linting of Typescript code?

A: Add "source.ts" entry to scopes option and "Packages/TypeScript Syntax/TypeScript.tmLanguage" entry to syntaxes option. It's also necessary to have appropriate ESLint configuration in your project. See https://github.com/typescript-eslint/typescript-eslint for more information.