https://github.com/sublimelinter/sublimelinter-gjslint
SublimeLinter plugin for JavaScript, using gjslint.
https://github.com/sublimelinter/sublimelinter-gjslint
Last synced: 10 months ago
JSON representation
SublimeLinter plugin for JavaScript, using gjslint.
- Host: GitHub
- URL: https://github.com/sublimelinter/sublimelinter-gjslint
- Owner: SublimeLinter
- License: mit
- Created: 2013-12-15T21:38:00.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2025-04-24T10:11:11.000Z (10 months ago)
- Last Synced: 2025-04-24T11:25:03.614Z (10 months ago)
- Language: Python
- Size: 20.5 KB
- Stars: 14
- Watchers: 7
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SublimeLinter-gjslint
=========================
[](https://travis-ci.org/SublimeLinter/SublimeLinter-gjslint)
This linter plugin for [SublimeLinter](https://github.com/SublimeLinter/SublimeLinter) provides an interface to [gjslint](https://developers.google.com/closure/utilities/docs/linter_howto).
It will be used with files that have the "JavaScript" syntax, or within `` tags in HTML files.
## Installation
SublimeLinter must be installed in order to use this plugin.
Please use [Package Control](https://packagecontrol.io) 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](http://python.org).
1. Install `gjslint` by following the [installation instructions](https://developers.google.com/closure/utilities/docs/linter_howto).
Please make sure that the path to `gjslint` is available to SublimeLinter.
The docs cover [troubleshooting PATH configuration](http://sublimelinter.com/en/latest/troubleshooting.html#finding-a-linter-executable).
## Settings
- 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](https://code.google.com/p/closure-linter/source/browse/trunk/closure_linter/errors.py).