mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-27 05:49:45 +08:00
🔧 完善 lint-staged script
This commit is contained in:
22
package.json
22
package.json
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user