From 96bbe101bf79a563d18bcd0a7d3ebab5bf99b54e Mon Sep 17 00:00:00 2001 From: Ritesh Ghosh Date: Tue, 29 Oct 2024 13:14:04 +0530 Subject: chore: add prettier dev dep and script for lint check --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index f5eb044..612d91e 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "vercel-build": "echo \"Hello\"", "prepare": "husky install", "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": { "type": "git", @@ -40,6 +42,7 @@ "devDependencies": { "@types/node": "^22.7.4", "husky": "^8.0.3", + "prettier": "^3.3.3", "tsx": "^4.19.1", "typescript": "^5.6.2", "vitest": "^2.1.2" -- cgit v1.2.3