Skip to content

Commit 200088e

Browse files
committed
Remove lefthook configuration and integrate lint-staged for improved linting workflow: Deleted lefthook.yml and added lint-staged configuration in package.json to streamline code linting during commits.
1 parent d8ab651 commit 200088e

File tree

3 files changed

+199
-65
lines changed

3 files changed

+199
-65
lines changed

lefthook.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"devDependencies": {
2020
"chalk": "^5.6.2",
2121
"lefthook": "^2.1.1",
22+
"lint-staged": "^16.2.7",
2223
"oxfmt": "^0.34.0",
2324
"oxlint": "^1.49.0",
2425
"oxlint-tsgolint": "^0.14.1",
@@ -50,5 +51,8 @@
5051
"esbuild",
5152
"unrs-resolver"
5253
]
54+
},
55+
"lint-staged": {
56+
"*.{js,jsx,ts,tsx,mjs,cjs}": "pnpm run lint"
5357
}
5458
}

0 commit comments

Comments
 (0)