Commit 588058f1 authored by Liam Horne's avatar Liam Horne Committed by GitHub

build: add husky pre-commit hook to lint (#1146)

parent 264ee54c
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint:check
......@@ -4,16 +4,19 @@
"author": "Optimism PBC",
"license": "MIT",
"workspaces": {
"packages": [
"packages/*",
"l2geth",
"integration-tests",
"specs"
],
"nohoist": ["examples/*"]
"packages": [
"packages/*",
"l2geth",
"integration-tests",
"specs"
],
"nohoist": [
"examples/*"
]
},
"private": true,
"devDependencies": {
"husky": "^6.0.0",
"lerna": "^4.0.0",
"patch-package": "^6.4.7"
},
......@@ -27,6 +30,7 @@
"lint:fix": "yarn lerna run lint:fix",
"postinstall": "patch-package",
"ready": "yarn lint && yarn test",
"prepare": "husky install",
"release": "yarn build && yarn changeset publish"
},
"dependencies": {
......
......@@ -8302,6 +8302,11 @@ humanize-ms@^1.2.1:
dependencies:
ms "^2.0.0"
husky@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/husky/-/husky-6.0.0.tgz#810f11869adf51604c32ea577edbc377d7f9319e"
integrity sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==
iconv-lite@0.4.24, iconv-lite@^0.4.24:
version "0.4.24"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment