Skip to content

SublimeLinter plugin for JavaScript, using gjslint.

License

Notifications You must be signed in to change notification settings

SublimeLinter/SublimeLinter-gjslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SublimeLinter-gjslint

Build Status

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.

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 gjslint is installed on your system. To install gjslint, do the following:

  1. Install Python.

  2. 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.

Settings

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.