We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a5e11f commit f9813ffCopy full SHA for f9813ff
3 files changed
.husky/pre-commit
@@ -0,0 +1,4 @@
1
+#!/usr/bin/env sh
2
+. "$(dirname -- "$0")/_/husky.sh"
3
+
4
+pnpm lint-staged
package.json
@@ -4,7 +4,15 @@
"description": "",
5
"main": "index.js",
6
"scripts": {
7
- "test": "vitest --run"
+ "test": "vitest --run",
8
+ "lint": "eslint . --ext .ts,.tsx",
9
+ "prepare": "husky"
10
+ },
11
+ "lint-staged": {
12
+ "*.{ts,tsx}": [
13
+ "eslint --fix",
14
+ "vitest related --run"
15
+ ]
16
},
17
"keywords": [],
18
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
@@ -19,6 +27,8 @@
19
27
"eslint-plugin-prettier": "^5.2.3",
20
28
"eslint-plugin-react": "^7.37.4",
21
29
"fake-indexeddb": "^6.0.0",
30
+ "husky": "^9.1.7",
31
+ "lint-staged": "^15.4.3",
22
32
"prettier": "^3.5.1",
23
33
"typescript": "^5.7.3",
24
34
"vitest": "^3.0.6"
0 commit comments