add scripts to lint staged files on pre-commit hook
(see https://github.com/pkyeck/precommit-example)
distinguish between osx and other linux distros in pre-commit hook