Skip to content

Commit dd136ed

Browse files
committed
chore: add lint-staged
1 parent 6f00ea9 commit dd136ed

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bun run lint-staged

bun.lockb

8.16 KB
Binary file not shown.

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"dep:update": "syncpack update",
1515
"dev": "turbo dev",
1616
"lint": "turbo lint",
17-
"type-check": "turbo type-check"
17+
"type-check": "turbo type-check",
18+
"prepare": "husky"
1819
},
1920
"dependencies": {
2021
"lucide-svelte": "0.417.0"
@@ -31,6 +32,8 @@
3132
"eslint-plugin-import": "2.29.1",
3233
"eslint-plugin-svelte": "2.43.0",
3334
"globals": "15.8.0",
35+
"husky": "9.1.4",
36+
"lint-staged": "15.2.7",
3437
"postcss": "8.4.40",
3538
"prettier": "3.3.3",
3639
"prettier-plugin-svelte": "3.2.6",
@@ -50,5 +53,8 @@
5053
"workspaces": [
5154
"apps/*",
5255
"packages/*"
53-
]
56+
],
57+
"lint-staged": {
58+
"*.{ts,svelte,html,css}": "turbo lint:fix"
59+
}
5460
}

0 commit comments

Comments
 (0)