JSHint + Closure Linter + Grunt + Watch
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
closure_linter-2.3.9
js
tasks
.fixjsstyle
.gitignore
.gjslint
.jshintrc
Gruntfile.js
README.md
package.json

README.md

grunt-gjshint

My sample linting project.
http://ama-ch.hatenablog.com/entry/2013/04/21/160208

Features

  • Grunt project.
  • Linting JavaScript files with JSHint + Google Closure Linter.
  • Watch and lint only changed files.
  • Notify results with grunt-notify.

Usage

Before running Closure Linter, install python-gflags if you need.

$ easy_install python-gflags

Linting with JSHint:

$ grunt jshint:all

Linting with Closure Linter:

$ grunt gjslint:all

Fixing gjslint errors automatically:

$ grunt fixjsstyle:all

Linting with JSHint + Closure Linter (default task):

$ grunt

Watch and notify:

$ grunt watch

License