chore: test precommit
This commit is contained in:
parent
93193b10de
commit
181804545b
2 changed files with 3 additions and 7 deletions
|
@ -1,3 +1 @@
|
|||
npm run eslint --cache
|
||||
npm run prettier . --write
|
||||
git add .
|
||||
npx lint-staged
|
|
@ -42,9 +42,7 @@
|
|||
},
|
||||
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c",
|
||||
"lint-staged": {
|
||||
"*.js": "eslint --cache --fix",
|
||||
"*.mjs": "eslint --cache --fix",
|
||||
"*.--write": "prettier . --write",
|
||||
"*": "prettier . --write"
|
||||
"*.{js,mjs,astro,ts}": "eslint --cache --fix",
|
||||
"!(*.css, *.md, *.yml, *.yaml, *.html)": "prettier --write"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue