We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5a69f1 commit 248dd9eCopy full SHA for 248dd9e
2 files changed
.husky/pre-commit
@@ -0,0 +1 @@
1
+npx lint-staged
package.json
@@ -37,7 +37,8 @@
37
"prettier": "prettier --write --ignore-unknown .",
38
"start": "dumi dev",
39
"test": "rc-test",
40
- "tsc": "tsc --noEmit"
+ "tsc": "tsc --noEmit",
41
+ "prepare": "husky"
42
},
43
"dependencies": {
44
"@rc-component/util": "^1.11.1",
@@ -65,13 +66,18 @@
65
66
"react-dom": "^18.3.1",
67
"regenerator-runtime": "^0.14.1",
68
"sinon": "^9.0.2",
- "typescript": "^5.9.3"
69
+ "typescript": "^5.9.3",
70
+ "husky": "^9.1.7",
71
+ "lint-staged": "^16.4.0"
72
73
"peerDependencies": {
74
"react": ">=16.9.0",
75
"react-dom": ">=16.9.0"
76
77
"publishConfig": {
78
"access": "public"
79
+ },
80
+ "lint-staged": {
81
+ "*": "prettier --write --ignore-unknown"
82
}
83
0 commit comments