This linter plugin for SublimeLinter provides an interface to jshint. It will be used with files that have the “JS” or “HTML” syntax.
Linter package must be installed in order to use this plugin. If Linter is not installed, please follow the instructions here.
Before using this plugin, you must ensure that jshint
is installed on your system. To install jshint
, do the following:
-
Install
jshint
by typing the following in a terminal:npm install -g jshint
-
If you are using
nvm
andzsh
, ensure that the line to loadnvm
is in.zshenv
and not.zshrc
.
Note: This plugin requires jshint
2.4.0 or later.
Now you can proceed to install the linter-jshint plugin.
$ apm install linter-jshint
You can configure linter-jshint by editing ~/.atom/config.cson (choose Open Your Config in Atom menu):
'linter-jshint':
'jshintExecutablePath': null #jshint path. run 'which jshint' to find the path
If you would like to contribute enhancements or fixes, please do the following:
- Fork the plugin repository.
- Hack on a separate topic branch created from the latest
master
. - Commit and push the topic branch.
- Make a pull request.
- welcome to the club
Please note that modications should follow these coding guidelines:
- Indent is 2 spaces.
- Code should pass coffeelint linter.
- Vertical whitespace helps readability, don’t be afraid to use it.
Thank you for helping out!