From 469e5c7afa93e8d923821ea3b07d1696b24a1510 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Fri, 16 Nov 2018 21:43:36 +0100 Subject: add prettier to pre-commit hook --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 20375fe59..e73fb7597 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "build": "node_modules/.bin/electron-builder --publish onTag", "rebuild": "node_modules/.bin/electron-rebuild", "commit": "git-cz", - "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s" + "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", + "reformat-files": "./node_modules/.bin/prettier --ignore-path .eslintignore --write --require-pragma \"**/*.{js,jsx,scss}\"" }, "keywords": [], "author": "Stefan Malzner ", @@ -120,7 +121,7 @@ ], "husky": { "hooks": { - "pre-commit": "npm run lint" + "pre-commit": "npm run lint && npm run reformat-files" } } } -- cgit v1.2.3-54-g00ecf