chore: faster lint-staged (#5013)

Co-authored-by: EYHN <13579374+EYHN@users.noreply.github.com>
This commit is contained in:
EYHN
2023-11-21 22:24:24 +08:00
committed by GitHub
parent f06bdd9a39
commit 5e8103adbd

View File

@@ -45,11 +45,11 @@
"lint-staged": { "lint-staged": {
"*": "prettier --write --ignore-unknown --cache", "*": "prettier --write --ignore-unknown --cache",
"*.{ts,tsx,mjs,js,jsx}": [ "*.{ts,tsx,mjs,js,jsx}": [
"prettier . --ignore-unknown --write", "prettier --ignore-unknown --write",
"eslint --cache --fix" "eslint --cache --fix"
], ],
"*.toml": [ "*.toml": [
"prettier . --ignore-unknown --write", "prettier --ignore-unknown --write",
"taplo format" "taplo format"
] ]
}, },