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

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