Skip to content

Commit

Permalink
chore: add lint-staged and husky to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
coding-ice committed Oct 24, 2024
1 parent d7bb0e0 commit 981884d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lint-staged
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"prepublishOnly": "npm run compile && np --yolo --no-publish",
"postpublish": "tnpm sync rc-menu",
"start": "dumi dev",
"test": "rc-test"
"test": "rc-test",
"prepare": "husky && dumi setup"
},
"dependencies": {
"@babel/runtime": "^7.10.1",
Expand All @@ -66,7 +67,9 @@
"eslint-plugin-unicorn": "^51.0.1",
"father": "^4.0.0",
"gh-pages": "^6.1.0",
"husky": "^9.1.6",
"less": "^4.1.3",
"lint-staged": "^15.2.10",
"np": "^10.0.5",
"rc-test": "^7.0.14",
"react": "^18.3.1",
Expand All @@ -77,5 +80,8 @@
"peerDependencies": {
"react": ">=16.9.0",
"react-dom": ">=16.9.0"
},
"lint-staged": {
"*": "prettier --write --ignore-unknown"
}
}

0 comments on commit 981884d

Please sign in to comment.