From d361b6e636975366bd1d930771e5a745c3c522ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=8E=E5=A3=B0?= Date: Fri, 27 Sep 2024 11:32:57 +0800 Subject: [PATCH] chore: update hooks --- lefthook.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lefthook.yml b/lefthook.yml index 238d56f..78d1b49 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -3,11 +3,11 @@ pre-commit: commands: lint: glob: '*.{js,ts,jsx,tsx}' - run: yarn lint {staged_files} - prettier: + run: yarn lint --diagnostic-level=error {staged_files} + format: glob: '*.{js,ts,jsx,tsx,css,less,scss,vue,json,gql,md}' run: | - yarn lint:fix {staged_files} + yarn lint:fix --diagnostic-level=error {staged_files} git update-index --again commit-msg: