Run linter before pushing to git (#4962)

Co-authored-by: Ernesto García <ernestognw@gmail.com>
pull/4969/head
Hadrien Croubois 11 months ago committed by GitHub
parent e203e02523
commit 976a3d5362
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      .githooks/pre-push
  2. 1
      package.json

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
if [ "${CI:-"false"}" != "true" ]; then
npm run lint
fi

@ -13,6 +13,7 @@
"coverage": "env COVERAGE=true hardhat coverage",
"docs": "npm run prepare-docs && oz-docs",
"docs:watch": "oz-docs watch contracts docs/templates docs/config.js",
"prepare": "git config --local core.hooksPath .githooks",
"prepare-docs": "scripts/prepare-docs.sh",
"lint": "npm run lint:js && npm run lint:sol",
"lint:fix": "npm run lint:js:fix && npm run lint:sol:fix",

Loading…
Cancel
Save