Add command check:fmt

This commit is contained in:
2025-09-12 08:43:18 +02:00
parent 7f295af5e7
commit d718330fba
+2 -1
View File
@@ -1,6 +1,7 @@
{
"scripts": {
"check": "clear ; npm run typecheck && npm run lint && npx prettier -c **/*.{js,jsx,ts,tsx} && npm run test && clear && echo 'OK'",
"check": "clear ; npm run typecheck && npm run lint && npm run check:fmt && npm run test && clear && echo 'OK'",
"check:fmt": "npx prettier -c **/*.{js,jsx,ts,tsx}",
"fmt": "prettier --write **/*.{js,jsx,ts,tsx}",
"lint": "eslint **/*.{js,jsx,ts,tsx}",
"test": "bun test",