Skip to content

Commit

Permalink
feat: 启用 lint 检查
Browse files Browse the repository at this point in the history
  • Loading branch information
imyzf committed Jul 25, 2023
1 parent 32cbd8b commit e79adf3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,15 @@
"jestSerializer": {
"removeComments": true,
"sortAttributes": true
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx,js,vue,less}": "prettier --write",
"*.{ts,tsx,js,vue}": "eslint",
"*.{vue,css,less}": "stylelint --fix"
}
}

0 comments on commit e79adf3

Please sign in to comment.