From 0925136bfb1171e144794978dcf22ca2cc7b3fcd Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Thu, 22 Nov 2018 09:03:36 +0100 Subject: [PATCH] chore: Fix husky config --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 43c14a4e1a..fa37e50cc7 100644 --- a/package.json +++ b/package.json @@ -46,8 +46,7 @@ "test:pg-virtualenv": "pg_virtualenv npm run test:pg-virtualenv-chai", "test:pg-virtualenv-chain": "export TEST_DATABASE_URL=postgres://$PGUSER:$PGPASSWORD@localhost:$PGPORT/postgres ; npm run db-migrate-testdb && npm test", "test:coverage": "nyc npm run test", - "test:coverage-report": "nyc report --reporter=text-lcov | coveralls", - "precommit": "lint-staged" + "test:coverage-report": "nyc report --reporter=text-lcov | coveralls" }, "nyc": { "all": true, @@ -109,5 +108,10 @@ "eslint --fix", "git add" ] + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } } }