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 346K
  • Win 172K
  • OS X 117K
  • Linux 57K
Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 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
Windows 21 43 27 26 43 42 48 52 46 26 26 53 49 41 35 39 31 28 41 44 42 49 34 23 28 38 48 38 36 48 25 36 54 57 42 50 46 32 37 48 63 54 40 48 40 39
OS X 21 20 9 11 16 27 20 22 12 14 9 10 25 25 18 16 13 15 21 21 25 17 20 14 13 21 18 26 24 17 19 13 22 26 25 21 24 12 9 15 25 24 18 17 12 11
Linux 7 13 8 7 9 8 6 16 13 7 12 11 14 9 12 11 5 5 10 11 13 16 16 9 8 8 11 11 15 13 6 9 10 14 10 5 7 8 10 13 11 8 5 4 9 5

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.