From f302880c6490360b7252a586fc78ea4a675a6476 Mon Sep 17 00:00:00 2001 From: Victor Vlasenko Date: Mon, 28 May 2018 08:40:21 +0300 Subject: [PATCH] Add precommit hook to exec lint-staged --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ef7a0d1..6bd4e4a 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,9 @@ "cross-env NODE_ENV=coverage nyc --check-coverage --lines 96 --branches 80 npm run tests", "tests": "mocha", "tests:watch": "cross-env mocha -w", - "tests:watch:debug": "cross-env DEBUG=webpack-virtual-modules mocha -w" - }, + "tests:watch:debug": "cross-env DEBUG=webpack-virtual-modules mocha -w", + "precommit": "lint-staged" + }, "repository": { "type": "git", "url": "git+https://github.com/sysgears/persistgraphql-webpack-plugin.git"