Skip to content

Latest commit

 

History

History
13 lines (13 loc) · 281 Bytes

node.md

File metadata and controls

13 lines (13 loc) · 281 Bytes

Example Husky NPM package.json configuration.

{
  "husky": {
    "hooks": {
      "pre-commit": "git diff --diff-filter=ACM --cached --name-only | grep '.php' | xargs -I % php -l %"
    }
  },
  "dependencies": {},
  "devDependencies": {
    "husky": "^1.1.2"
  }