Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 870 Bytes

README.md

File metadata and controls

50 lines (37 loc) · 870 Bytes

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