linting JS files in precommit hook