We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7bb0e0 commit 9f942d5Copy full SHA for 9f942d5
.husky/pre-commit
@@ -0,0 +1 @@
1
+lint-staged
package.json
@@ -40,7 +40,8 @@
40
"prepublishOnly": "npm run compile && np --yolo --no-publish",
41
"postpublish": "tnpm sync rc-menu",
42
"start": "dumi dev",
43
- "test": "rc-test"
+ "test": "rc-test",
44
+ "prepare": "husky && dumi setup"
45
},
46
"dependencies": {
47
"@babel/runtime": "^7.10.1",
@@ -66,7 +67,9 @@
66
67
"eslint-plugin-unicorn": "^51.0.1",
68
"father": "^4.0.0",
69
"gh-pages": "^6.1.0",
70
+ "husky": "^9.1.6",
71
"less": "^4.1.3",
72
+ "lint-staged": "^15.2.10",
73
"np": "^10.0.5",
74
"rc-test": "^7.0.14",
75
"react": "^18.3.1",
@@ -77,5 +80,8 @@
77
80
"peerDependencies": {
78
81
"react": ">=16.9.0",
79
82
"react-dom": ">=16.9.0"
83
+ },
84
+ "lint-staged": {
85
+ "*": "prettier --write --ignore-unknown"
86
}
87
0 commit comments