From 6c1fcd1a2e32ddc4e6447629bb37bb0e078396e0 Mon Sep 17 00:00:00 2001 From: Jesse Gibson Date: Tue, 5 Jul 2016 22:41:02 -0600 Subject: [PATCH] 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. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 33753cb..9606a80 100644 --- a/package.json +++ b/package.json @@ -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",