Skip to content

Commit 37b46f7

Browse files
feat: Integrate Husky (#280)
* feat: integrate husky * fix husky --------- Co-authored-by: smol-ninja <[email protected]>
1 parent f1c7b53 commit 37b46f7

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
bun lint-staged

.lintstagedrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"*.{json,md,mdx,ts,tsx,yml}": "bun run fix"

bun.lockb

14.1 KB
Binary file not shown.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
"eslint": "^8.57",
5757
"eslint-plugin-mdx": "^3.1.5",
5858
"eslint-plugin-react": "^7.34.1",
59+
"husky": "^9.1.4",
60+
"lint-staged": "^15.4.3",
5961
"prettier": "^3.2.5",
6062
"typescript": "^5.4.5",
6163
"vercel": "^34.1.4"
@@ -90,6 +92,7 @@
9092
"fix": "bun run prettier:write && bun run lint:fix",
9193
"lint:check": "bun eslint . --ext md,mdx,ts,tsx",
9294
"lint:fix": "bun eslint . --ext md,mdx,ts,tsx --fix && bun formatter.js",
95+
"prepare": "husky",
9396
"prettier:check": "prettier --check \"**/*.{json,md,mdx,ts,tsx,yml}\"",
9497
"prettier:write": "prettier --write \"**/*.{json,md,mdx,ts,tsx,yml}\"",
9598
"serve": "docusaurus serve",

0 commit comments

Comments
 (0)