Lint code on npm test

A new npm script has been added, `lint`, which is triggered on the test
command after unit tests pass.
This way, greenkeeper can update lint-related deps and know if it
breaks.
This commit is contained in:
Jesse Gibson
2016-07-05 22:41:02 -06:00
parent 8364bf6e58
commit 6c1fcd1a2e

View File

@@ -4,7 +4,8 @@
"description": "Distributed Javascript runner",
"main": "src/index.js",
"scripts": {
"test": "mocha"
"lint": "eslint src/**",
"test": "mocha && npm run lint"
},
"repository": {
"type": "git",