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"],
|
"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,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue