From a1be7db077a980bdccd917e0860be9b9fba2e10c Mon Sep 17 00:00:00 2001 From: Noelle Daley Date: Thu, 1 Nov 2018 13:47:43 -0700 Subject: [PATCH] upgrade husky --- ui/package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/package.json b/ui/package.json index b571610c47..28c5cdcf25 100644 --- a/ui/package.json +++ b/ui/package.json @@ -19,8 +19,7 @@ "test-oss": "yarn run test -f='!enterprise'", "fmt-js": "prettier-eslint --single-quote --no-use-tabs --trailing-comma es5 --print-width=110 --write '{app,tests,config,lib,mirage}/**/*.js'", "fmt-styles": "prettier --write app/styles/**/*.*", - "fmt": "yarn run fmt-js && yarn run fmt-styles", - "precommit": "lint-staged" + "fmt": "yarn run fmt-js && yarn run fmt-styles" }, "lint-staged": { "linters": { @@ -124,5 +123,10 @@ "paths": [ "lib/css" ] + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } } }