This linter plugin for SublimeLinter provides an interface to gjslint.
It will be used with files that have the "JavaScript" syntax, or within <script>
tags in HTML files.
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 gjslint
is installed on your system.
To install gjslint
, do the following:
-
Install Python.
-
Install
gjslint
by following the installation instructions.
Please make sure that the path to gjslint
is available to SublimeLinter.
The docs cover troubleshooting PATH configuration.
- SublimeLinter settings: http://sublimelinter.com/en/latest/settings.html
- Linter settings: http://sublimelinter.com/en/latest/linter_settings.html
We recommend configuring options in a .gjslintrc file (the linter will search for a config file with that name in your project path or ancestors). This is an example of a .gjslintrc file:
--exclude_directories=reports,node_modules
--exclude_files=Gruntfile.js
--max_line_length=120
--disable=5,240
--custom_jsdoc_tags=namespace,version
For Closure Linter error codes, please see the source code.