An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

SublimeLinter-gjslint
=========================

[![Build Status](https://travis-ci.org/SublimeLinter/SublimeLinter-gjslint.svg?branch=master)](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).