Skip to content

Commit 25b2bd2

Browse files
committed
build: integrate Huskty for pre-commit linting
1 parent 790ee0f commit 25b2bd2

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
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,yml}": "bun run prettier:write"

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# directories
2-
node_modules
2+
node_modules

bun.lockb

19.8 KB
Binary file not shown.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"url": "https://sablier.com"
88
},
99
"devDependencies": {
10+
"husky": "^9.1.4",
11+
"lint-staged": "^15.4.3",
1012
"prettier": "^2.8.8"
1113
},
1214
"keywords": [
@@ -28,6 +30,7 @@
2830
"private": true,
2931
"repository": "github.com:sablier-labs/deployments",
3032
"scripts": {
33+
"prepare": "husky",
3134
"prettier:check": "prettier --check \"**/*.{json,md,yml}\"",
3235
"prettier:write": "prettier --write \"**/*.{json,md,yml}\""
3336
}

0 commit comments

Comments
 (0)