build: add husky pre-commit hook to lint (#1146)
Showing
.husky/.gitignore
0 → 100644
.husky/pre-commit
0 → 100755
| ... | @@ -10,10 +10,13 @@ | ... | @@ -10,10 +10,13 @@ |
| "integration-tests", | "integration-tests", | ||
| "specs" | "specs" | ||
| ], | ], | ||
| "nohoist": ["examples/*"] | "nohoist": [ | ||
| "examples/*" | |||
| ] | |||
| }, | }, | ||
| "private": true, | "private": true, | ||
| "devDependencies": { | "devDependencies": { | ||
| "husky": "^6.0.0", | |||
| "lerna": "^4.0.0", | "lerna": "^4.0.0", | ||
| "patch-package": "^6.4.7" | "patch-package": "^6.4.7" | ||
| }, | }, | ||
| ... | @@ -27,6 +30,7 @@ | ... | @@ -27,6 +30,7 @@ |
| "lint:fix": "yarn lerna run lint:fix", | "lint:fix": "yarn lerna run lint:fix", | ||
| "postinstall": "patch-package", | "postinstall": "patch-package", | ||
| "ready": "yarn lint && yarn test", | "ready": "yarn lint && yarn test", | ||
| "prepare": "husky install", | |||
| "release": "yarn build && yarn changeset publish" | "release": "yarn build && yarn changeset publish" | ||
| }, | }, | ||
| "dependencies": { | "dependencies": { | ||
| ... | ... |
Please register or sign in to comment