build: add husky pre-commit hook to lint (#1146)
Showing
.husky/.gitignore
0 → 100644
.husky/pre-commit
0 → 100755
... | @@ -4,16 +4,19 @@ | ... | @@ -4,16 +4,19 @@ |
"author": "Optimism PBC", | "author": "Optimism PBC", | ||
"license": "MIT", | "license": "MIT", | ||
"workspaces": { | "workspaces": { | ||
"packages": [ | "packages": [ | ||
"packages/*", | "packages/*", | ||
"l2geth", | "l2geth", | ||
"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