From 456c6bddb797afb2400fa4c206b271bd608d1343 Mon Sep 17 00:00:00 2001 From: Moinul Moin Date: Fri, 21 Jun 2024 21:38:36 +0600 Subject: [PATCH] refactor: :recycle: lefthook.yml --- lefthook.yml | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lefthook.yml b/lefthook.yml index 585a1f0..b945b23 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -11,7 +11,7 @@ pre-commit: run: npx tsc --noEmit lint: glob: "src/**/*.{ts,tsx,js,jsx}" - run: npx eslint {staged_files} --fix && git add {staged_files} + run: pnpm eslint {staged_files} --fix && && git update-index --again format: - glob: "src/**/*.{ts,tsx,js,jsx,css,json}" - run: npx prettier --write {staged_files} && git add {staged_files} + glob: "src/**/*.{ts,tsx,js,jsx,css}" + run: pnpm prettier --write {staged_files} && && git update-index --again diff --git a/package.json b/package.json index 78340d3..f7d51c9 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build": "pnpm build:content && prisma generate && prisma db push && next build", "start": "next start", "lint": "next lint --dir src", - "format": "prettier --write 'src/**/*.{ts,tsx,js,jsx,css,json}'", + "format": "prettier --write 'src/**/*.{ts,tsx,js,jsx,css}'", "preinstall": "lefthook install" }, "dependencies": {