Skip to content

Commit

Permalink
feat: add commitlint, husky, lint staged
Browse files Browse the repository at this point in the history
  • Loading branch information
Groupguanfang committed Feb 6, 2024
1 parent b1f3302 commit a6028f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
"lint-staged": "lint-staged"
},
"lint-staged": {
"*.{js,jsx,cjs,mjs,ts,tsx,cts,mts,json,vue,scss,less,html,md}": [
"*.{js,jsx,cjs,mjs,ts,tsx,cts,mts,vue,scss,less,html,md}": [
"eslint --fix",
"prettier --write ./"
],
"*.json": [
"prettier --write ./"
]
},
"keywords": [
Expand Down

0 comments on commit a6028f1

Please sign in to comment.