Skip to content

Commit 391a17b

Browse files
authored
fix: prettier git hook is not asked during init (Kocal#255)
* fix(meta): use correct type for prettier hook choice * fix(tmpl): use correct var name for precise commits prettier hook
1 parent 2927a0d commit 391a17b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module.exports = {
7575
},
7676
"prettierHook": {
7777
"when": "isNotTest && prettier",
78-
"type": "choice",
78+
"type": "list",
7979
"message": "Setup a git precommit hook that will automatically run Prettier",
8080
"choices": [
8181
{

template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"husky": "^0.14.3",
5656
"pretty-quick": "^1.6.0",
5757
{{/if_eq}}
58-
{{#if_eq lintConfig "preciseCommits"}}
58+
{{#if_eq prettierHook "preciseCommits"}}
5959
"husky": "^0.14.3",
6060
"precise-commits": "^1.0.2",
6161
{{/if_eq}}

0 commit comments

Comments
 (0)