From 1e7207071e85b285254e5491275bf08d0d3fd6b5 Mon Sep 17 00:00:00 2001 From: Christoph Diehl <1614333+posidron@users.noreply.github.com> Date: Mon, 22 Jan 2018 22:32:03 +0100 Subject: [PATCH] Add pre-commit hook for standard linter --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 26b31ad..80b33da 100644 --- a/package.json +++ b/package.json @@ -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": [