aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-11-16 21:43:36 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-11-16 21:43:36 +0100
commit469e5c7afa93e8d923821ea3b07d1696b24a1510 (patch)
tree1b878d0d7fd4ca4a15318d9bb92b6abeb8d1b8d4 /package.json
parentAdd pre-push hook & prettier (diff)
downloadferdium-app-469e5c7afa93e8d923821ea3b07d1696b24a1510.tar.gz
ferdium-app-469e5c7afa93e8d923821ea3b07d1696b24a1510.tar.zst
ferdium-app-469e5c7afa93e8d923821ea3b07d1696b24a1510.zip
add prettier to pre-commit hook
Diffstat (limited to 'package.json')
-rw-r--r--package.json5
1 files 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 @@
20 "build": "node_modules/.bin/electron-builder --publish onTag", 20 "build": "node_modules/.bin/electron-builder --publish onTag",
21 "rebuild": "node_modules/.bin/electron-rebuild", 21 "rebuild": "node_modules/.bin/electron-rebuild",
22 "commit": "git-cz", 22 "commit": "git-cz",
23 "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s" 23 "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
24 "reformat-files": "./node_modules/.bin/prettier --ignore-path .eslintignore --write --require-pragma \"**/*.{js,jsx,scss}\""
24 }, 25 },
25 "keywords": [], 26 "keywords": [],
26 "author": "Stefan Malzner <stefan@adlk.io>", 27 "author": "Stefan Malzner <stefan@adlk.io>",
@@ -120,7 +121,7 @@
120 ], 121 ],
121 "husky": { 122 "husky": {
122 "hooks": { 123 "hooks": {
123 "pre-commit": "npm run lint" 124 "pre-commit": "npm run lint && npm run reformat-files"
124 } 125 }
125 } 126 }
126} 127}