My sample linting project.
http://ama-ch.hatenablog.com/entry/2013/04/21/160208
- Grunt project.
- Linting JavaScript files with JSHint + Google Closure Linter.
- Watch and lint only changed files.
- Notify results with grunt-notify.
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
- grunt-gjshint - MIT License
- Google Closure Linter - Apache License, Version 2.0
https://code.google.com/p/closure-linter/source/browse/trunk/LICENSE