From 7b2eae1d6aa813e162c3ad4a0553d2df480c765f Mon Sep 17 00:00:00 2001 From: huishanyi <1342088650@qq.com> Date: Wed, 6 Mar 2024 16:46:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20lint-staged=20?= =?UTF-8?q?=E4=B8=AD=20prettier=20=E4=BB=A5=20json=20=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E7=BE=8E=E5=8C=96=E4=BB=A3=E7=A0=81=E7=9A=84=E6=97=A0=E6=95=88?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E9=97=AE=E9=A2=98=20--write=20=E4=B8=8E=20--?= =?UTF-8?q?parser=20=E5=BA=94=E5=AD=98=E5=9C=A8=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/lintstagedrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.husky/lintstagedrc.js b/.husky/lintstagedrc.js index 02afbb2ec..fd96fcbf4 100644 --- a/.husky/lintstagedrc.js +++ b/.husky/lintstagedrc.js @@ -1,6 +1,6 @@ module.exports = { '*.{js,jsx,ts,tsx}': ['eslint --fix', 'prettier --write'], - '{!(package)*.json,*.code-snippets,.!(browserslist)*rc}': ['prettier --write--parser json'], + '{!(package)*.json,*.code-snippets,.!(browserslist)*rc}': ['prettier --parser json --write'], 'package.json': ['prettier --write'], '*.vue': ['prettier --write', 'stylelint --fix'], '*.{scss,less,styl,css,html}': ['stylelint --fix', 'prettier --write'],