Skip to content

Commit 4f0cfbe

Browse files
committed
chore: add lint hooks
1 parent 100a569 commit 4f0cfbe

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ jobs:
2323

2424
- name: Install Bun
2525
uses: oven-sh/setup-bun@v2
26-
with:
27-
cache: bun
2826

2927
- name: Install dependencies
3028
run: bun install --frozen-lockfile

bun.lockb

15.2 KB
Binary file not shown.

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@
4848
"eslint-config-prettier": "^9.1.0",
4949
"eslint-plugin-svelte": "^2.46.0",
5050
"globals": "^15.11.0",
51+
"lint-staged": "^15.2.10",
5152
"prettier": "^3.3.3",
5253
"prettier-plugin-svelte": "^3.2.7",
5354
"publint": "^0.2.11",
5455
"shiki": "^1.22.0",
56+
"simple-git-hooks": "^2.11.1",
5557
"svelte": "^5.1.0",
5658
"svelte-check": "^4.0.5",
5759
"typescript": "^5.6.3",
@@ -60,5 +62,11 @@
6062
},
6163
"svelte": "./dist/index.js",
6264
"types": "./dist/index.d.ts",
63-
"type": "module"
65+
"type": "module",
66+
"simple-git-hooks": {
67+
"pre-commit": "bun lint-staged"
68+
},
69+
"lint-staged": {
70+
"*": "eslint --fix"
71+
}
6472
}

0 commit comments

Comments
 (0)