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"], "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": [ "overrides": [
{ {
"files": ["*.html"], "files": ["*.html"],
"options": { "options": {
"parser": "go-template", "parser": "go-template",
"useTabs": true,
},
},
{
"files": ["*.js"],
"options": {
"useTabs": true,
}, },
}, },
], ],

View file

@ -12,11 +12,7 @@ pre-commit:
glob: "*.go" glob: "*.go"
run: gofmt -w {staged_files} run: gofmt -w {staged_files}
stage_fixed: true stage_fixed: true
htmlfmt: prettier:
glob: "*.html" glob: "*.{html,js,ts,vue,scss}"
run: prettier -w {staged_files}
stage_fixed: true
jsfmt:
glob: "*.js"
run: prettier -w {staged_files} run: prettier -w {staged_files}
stage_fixed: true stage_fixed: true