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

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": [