Skip to content

Commit

Permalink
🔧 完善 lint-staged script
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Oct 20, 2023
1 parent 9b57909 commit d18e463
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,25 @@
"fix:pnpm": "pnpm add https://github.com/tauri-apps/tauri-plugin-sql#v1"
},
"lint-staged": {
"*.{ts,vue}": "eslint --fix",
"*.{vue,css}": "stylelint --fix",
"*.{ts,vue,css,yml,json,md}": "prettier --write"
"*.ts": [
"eslint --fix",
"prettier --write"
],
"*.vue": [
"eslint --fix",
"stylelint --fix",
"prettier --write"
],
"*.css": [
"stylelint --fix",
"prettier --write"
],
"*.{yml,json,md}": [
"prettier --write"
],
"*.rs": [
"rustfmt"
]
},
"keywords": [
"Genshin Impact",
Expand Down

0 comments on commit d18e463

Please sign in to comment.