Update prettier to format the new file types.
This commit is contained in:
parent
80f4f51b02
commit
004a49c4e4
2 changed files with 3 additions and 13 deletions
|
|
@ -1,17 +1,11 @@
|
|||
{
|
||||
"plugins": ["/nix/store/6kfm5qrd2bckffxphb5ylvbg3sz1657r-prettier-plugin-go-template-0.0.15-unstable-2023-07-26/lib/node_modules/prettier-plugin-go-template/lib/index.js"],
|
||||
"useTabs": true,
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.html"],
|
||||
"options": {
|
||||
"parser": "go-template",
|
||||
"useTabs": true,
|
||||
},
|
||||
},
|
||||
{
|
||||
"files": ["*.js"],
|
||||
"options": {
|
||||
"useTabs": true,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -12,11 +12,7 @@ pre-commit:
|
|||
glob: "*.go"
|
||||
run: gofmt -w {staged_files}
|
||||
stage_fixed: true
|
||||
htmlfmt:
|
||||
glob: "*.html"
|
||||
run: prettier -w {staged_files}
|
||||
stage_fixed: true
|
||||
jsfmt:
|
||||
glob: "*.js"
|
||||
prettier:
|
||||
glob: "*.{html,js,ts,vue,scss}"
|
||||
run: prettier -w {staged_files}
|
||||
stage_fixed: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue