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 316K
  • Win 154K
  • OS X 109K
  • Linux 53K
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 May 10 May 9 May 8 May 7
Windows 61 117 115 92 61 60 62 78 97 109 77 51 68 93 38 118 104 85 70 57 95 123 81 106 76 67 68 76 120 89 107 92 57 71 103 113 115 106 116 62 67 93 90 103 134 64
OS X 31 52 38 33 19 18 40 31 49 35 38 22 18 35 21 47 60 47 23 18 39 53 47 51 37 17 21 46 42 44 45 48 22 35 44 61 38 62 54 33 21 54 61 52 66 35
Linux 8 14 24 23 15 14 18 19 20 20 20 12 10 28 11 27 35 29 24 17 24 34 26 19 26 18 14 29 27 28 33 18 20 13 26 31 23 28 24 19 19 21 25 29 29 25

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.