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

Sublime​Linter-tslint

by SublimeLinter ST3

tslint plugin for SublimeLinter. Lint your typescript code.

Details

Installs

  • Total 22K
  • Win 8K
  • OS X 9K
  • Linux 5K
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 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
Windows 0 2 3 10 14 6 6 5 8 1 9 5 8 1 6 2 0 4 7 9 8 10 3 1 6 5 5 10 7 2 1 4 8 2 6 6 2 5 3 12 5 9 5 2 5 8
OS X 7 2 1 4 9 4 11 4 3 4 4 8 14 12 11 0 1 6 6 7 5 10 2 2 6 6 9 9 17 4 5 6 11 7 6 5 6 1 5 7 6 11 7 1 3 11
Linux 2 0 2 2 6 2 5 6 6 1 3 7 3 7 3 2 1 1 3 5 5 2 2 3 4 3 8 5 4 3 3 3 5 5 2 3 2 1 5 4 5 7 7 3 4 2

Readme

Source
raw.​githubusercontent.​com

SublimeLinter-tslint

Build Status

This linter plugin for SublimeLinter provides an interface to tslint. It will be used with files that have the “typescript” syntax.

Installation

SublimeLinter must be installed in order to use this plugin.

Please use Package Control to install the linter plugin.

Before installing this plugin, ensure that tslint (2.4.0 or later) is installed on your system. To install tslint, do the following:

  1. Install Node.js (and npm on Linux).

  2. Install tslint by typing the following in a terminal:

npm install -g tslint
  1. If you are using nvm and zsh, ensure that the line to load nvm is in .zshenv and not .zshrc.

Settings

TSLint Config

You can configure tslint options in the way you would from the command line, with tslint.json files. For more information, see the tslint docs. The linter plugin does this by searching for a tslint.json file itself, just as tslint does from the command line.

You may provide a custom config file by setting the linter’s "args" setting to ["--config", "/path/to/file"]. On Windows, be sure to double the backslashes in the path, for example ["--config", "C:\\Users\\Aparajita\\tslint.json"].

Also, remember to set your project tsconfig.json accordingly, so that it includes paths used by SublimeLinter working copies. For example:

"include": [
    "/var/folders/**/*.tsx",
    "/var/folders/**/*.ts",
    "./src/**/*.tsx",
    "./src/**/*.ts"
]

Using Projects

To enable linting using projects, set the --project argument. E.g. like so to look for the tsconfig.json file in the folder you opened in Sublime Text:

"tslint": {
    "args": ["--project", "${folder}"]
}