chore: add prettier dev dep and script for lint check

This commit is contained in:
Ritesh Ghosh
2024-10-29 13:14:04 +05:30
parent ac07ce91ea
commit 96bbe101bf
+4 -1
View File
@@ -11,7 +11,9 @@
"vercel-build": "echo \"Hello\"", "vercel-build": "echo \"Hello\"",
"prepare": "husky install", "prepare": "husky install",
"test": "vitest run --config vitest.config.ts", "test": "vitest run --config vitest.config.ts",
"healthcheck": "curl -f http://localhost:4000/health" "healthcheck": "curl -f http://localhost:4000/health",
"lint": "prettier --cache --write .",
"lint:ci": "prettier --cache --check ."
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@@ -40,6 +42,7 @@
"devDependencies": { "devDependencies": {
"@types/node": "^22.7.4", "@types/node": "^22.7.4",
"husky": "^8.0.3", "husky": "^8.0.3",
"prettier": "^3.3.3",
"tsx": "^4.19.1", "tsx": "^4.19.1",
"typescript": "^5.6.2", "typescript": "^5.6.2",
"vitest": "^2.1.2" "vitest": "^2.1.2"