Skip to content

Instantly share code, notes, and snippets.

@bluerabbit
Created February 27, 2013 02:30
Show Gist options
  • Select an option

  • Save bluerabbit/5044478 to your computer and use it in GitHub Desktop.

Select an option

Save bluerabbit/5044478 to your computer and use it in GitHub Desktop.
gem install pre-commit便利やな https://github.com/jish/pre-commit
% gem install pre-commit
% mkdir work
% cd work
% git init
% pre-commit install
% git config "pre-commit.checks" "jshint"
% echo "var x = 1" > error.js
% git add .
% git commit -m "add error.js"
pre-commit: JSHINT Missing semicolon.
error.js:2 var x = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment