No release in over 3 years
Low commit activity in last 3 years
Closure Linter plugin for jish/pre-commit
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Closure Linter plugin for Pre-commit. It enables ability to check your Javascript code with Google JavaScript Style Guide.

Installation

Closure Linter must be installed. The package is available in Ubuntu in the universe repo from 14.04. For earlier versions there is a ppa.

Install the plugin

$ gem install pre-commit-closure-linter

Enable as errors

Use the pre-commit command to enable the plugin

# In your git repo
$ pre-commit enable yaml checks closure-linter

This creates a config/pre_commit.yml configuratiuon file which will inform pre-commit to use pre-commit-closure-linter plugin for this project.

Enable as warnings

Use the pre-commit command to enable the plugin

# In your git repo
$ pre-commit enable yaml warnings closure-linter

Configuration

You can store your configuration options into a file named .gjslintrc and put this file in the root directory of your project. Here you can find an example file. You can get the full list of all available options using gjslint --help.