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

Sublime​Linter-jshint

by SublimeLinter ST3 Top 100

SublimeLinter plugin for JavaScript, using jshint.

Details

Installs

  • Total 357K
  • Win 179K
  • Mac 120K
  • Linux 59K
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 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8
Windows 2 36 33 29 28 29 38 32 34 40 35 37 40 46 30 33 15 18 34 35 33 30 20 27 18 21 31 32 27 34 31 21 32 35 39 37 37 38 28 20 33 49 36 42 45 26
Mac 0 15 18 11 8 13 18 19 16 19 14 11 16 21 16 21 18 9 11 19 14 11 10 11 10 14 16 10 15 12 9 15 10 8 12 14 21 11 12 8 12 17 26 15 16 5
Linux 0 8 9 7 9 5 9 8 14 9 4 10 9 8 4 14 5 7 5 10 5 4 6 3 3 7 9 6 13 5 7 1 11 9 7 8 9 11 4 5 11 14 11 6 10 2

Readme

Source
raw.​githubusercontent.​com

SublimeLinter-jshint

Build Status

This linter plugin for SublimeLinter provides an interface to jshint. It will be used with files that have the “JavaScript” syntax, or within <script> tags in HTML files.

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 jshint (2.5.0 or later) is installed on your system. To install jshint, do the following:

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

  2. Install jshint (or globally with -g):

npm install jshint
  1. If you are using nvm and zsh, ensure that the line to load nvm is in .zshenv or .zprofile and not .zshrc.(reason: here and here)

Please make sure that the path to jshint is available to SublimeLinter. The docs cover troubleshooting PATH configuration.

Settings

You can configure jshint options in the way you would from the command line, with .jshintrc files. For more information, see the jshint docs. 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\\jshint.conf"].

Using with tabs

If you use tabs as your indentation, make sure you set the option indent: 1 in your .jshintrc file. If not the wrong sections of the code will be highlighted.