Skip to content

Commit

Permalink
chore: lint-staged.config.js
Browse files Browse the repository at this point in the history
添加自动格式化代码,自动修复eslint
  • Loading branch information
Mr-Super-X committed May 23, 2022
1 parent 7d536bb commit 9c9ba2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
* 配置的命令可以填多个,使用数组即可
*/
module.exports = {
'*.{js,jsx,vue,ts,tsx}': 'npm run lint'
'*.{js,jsx,vue,ts,tsx}': ['prettier --ignore-unknown --write', 'eslint --fix', 'npm run lint']
}

0 comments on commit 9c9ba2d

Please sign in to comment.