Skip to content

Commit

Permalink
docs: lint-staged.config.js
Browse files Browse the repository at this point in the history
添加说明注释
  • Loading branch information
Mr-Super-X committed May 23, 2022
1 parent 9c9ba2d commit 9248b49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* 配置的命令可以填多个,使用数组即可
*/
module.exports = {
// 对匹配的文件执行prettier格式化、eslint修复,再进行eslint检测,如果还有不通过的则需要自己手动修复
'*.{js,jsx,vue,ts,tsx}': ['prettier --ignore-unknown --write', 'eslint --fix', 'npm run lint']
}

0 comments on commit 9248b49

Please sign in to comment.