Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hawkup/d4c4e27876548148d3a6 to your computer and use it in GitHub Desktop.
Save hawkup/d4c4e27876548148d3a6 to your computer and use it in GitHub Desktop.
use jshint jscs and csslint on ubuntu

requisite

  • nodejs

installation

  • jshint
sudo npm install -g jshint
  • jscs
sudo npm install -g jscs
  • csslint
sudo npm install -g csslint

if you use sublime text editor

  • install package
    • sublimelinter
    • sublimelinter-jshint
    • sublimelinter-jscs
    • sublimelinter-csslint

if you want to specific rule each project

  • jshint: create .jshintrc file at root project path
  • jscs: create .jscsrc file at root project path
  • csslint: create .csslintrc file at root project path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment