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 18K
  • Win 6K
  • OS X 8K
  • Linux 4K
Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8
Windows 2 6 8 10 13 4 7 11 9 9 12 11 5 2 11 12 5 12 11 4 3 6 11 11 12 9 4 3 14 6 5 8 7 3 6 7 12 12 8 6 3 0 0 9 10 5
OS X 2 8 5 11 8 1 5 18 8 8 12 14 2 2 9 11 7 8 17 3 2 7 10 10 13 8 3 5 5 7 6 14 5 3 5 15 13 15 6 17 5 0 2 16 10 11
Linux 1 3 11 9 9 3 1 4 10 5 2 8 4 8 14 5 4 10 4 1 4 7 6 9 7 5 4 3 2 4 3 2 2 4 0 10 4 6 7 11 2 0 0 7 8 4

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}"]
}