From 004a49c4e46449f8cbbe384cf1fbee2943278850 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sat, 21 Mar 2026 19:39:30 +0000 Subject: [PATCH] Update prettier to format the new file types. --- .prettierrc | 8 +------- lefthook.yml | 8 ++------ 2 files changed, 3 insertions(+), 13 deletions(-) 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