From 9248b49d5d1c0cf98cd976f0f79bf59e88cccb76 Mon Sep 17 00:00:00 2001 From: "Mr.Mikey" <1303232158@qq.com> Date: Mon, 23 May 2022 20:49:48 +0800 Subject: [PATCH] docs: lint-staged.config.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加说明注释 --- lint-staged.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lint-staged.config.js b/lint-staged.config.js index b4573bc..293c9f2 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -4,5 +4,6 @@ * 配置的命令可以填多个,使用数组即可 */ module.exports = { + // 对匹配的文件执行prettier格式化、eslint修复,再进行eslint检测,如果还有不通过的则需要自己手动修复 '*.{js,jsx,vue,ts,tsx}': ['prettier --ignore-unknown --write', 'eslint --fix', 'npm run lint'] }