diff --git a/.prettierrc b/.prettierrc index 8e3273be..897b0612 100644 --- a/.prettierrc +++ b/.prettierrc @@ -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, }, }, ], diff --git a/lefthook.yml b/lefthook.yml index f8568c2f..8ab599ee 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -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