Skip to content

Commit

Permalink
chore: add husky
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed May 29, 2024
1 parent b36ddc9 commit e9c2c14
Show file tree
Hide file tree
Showing 3 changed files with 30 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 @@
npx lint-staged
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,18 @@
"postbuild": "mkdir -p .upload && cd ./packages/devtool-chrome && zip -r chrome.zip ./dist/chrome/* && mv chrome.zip ../../.upload/",
"watch": "npm run --ws watch --if-present",
"types": "tsc --noEmit",
"release": "tsx ./scripts/release.mts"
"release": "tsx ./scripts/release.mts",
"prepare": "husky"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts}": [
"npm run lint:fix --"
]
},
"devDependencies": {
"@crxjs/vite-plugin": "^2.0.0-beta.23",
Expand All @@ -43,6 +54,7 @@
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"husky": "^9.0.11",
"inquirer": "^9.2.17",
"npm-run-all": "^4.1.5",
"patch-package": "^8.0.0",
Expand Down

0 comments on commit e9c2c14

Please sign in to comment.