Update prettier to format the new file types.

This commit is contained in:
Eli Ribble 2026-03-21 19:39:30 +00:00
parent 80f4f51b02
commit 004a49c4e4
No known key found for this signature in database
2 changed files with 3 additions and 13 deletions

View file

@ -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,
},
},
],

View file

@ -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