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 333K
  • Win 164K
  • OS X 114K
  • Linux 55K
Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28
Windows 34 54 56 37 48 53 60 87 77 57 48 43 65 70 66 106 64 49 40 56 68 87 67 81 58 45 75 61 87 71 69 48 60 61 75 78 61 71 41 55 67 62 73 92 78 38
OS X 13 27 30 6 17 18 25 36 18 37 13 21 29 33 37 30 26 12 26 19 36 42 35 38 17 15 31 31 31 28 30 14 18 26 35 32 29 33 16 16 35 34 34 31 33 16
Linux 5 18 12 9 14 14 21 21 15 15 18 13 13 17 14 17 20 13 20 11 19 17 15 12 8 14 23 16 20 22 16 5 14 10 19 19 29 23 11 15 14 29 31 22 15 12

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.