Add pre-commit hook for standard linter

This commit is contained in:
Christoph Diehl 2018-01-22 22:32:03 +01:00
parent 94938bda28
commit 1e7207071e
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@
"license": "MPL-2.0",
"scripts": {
"test": "grunt test --verbose",
"test:lint": "cross-env NODE_ENV=test standard --verbose"
"test:lint": "cross-env NODE_ENV=test standard --verbose",
"precommit": "npm run test:lint"
},
"standard": {
"ignore": [