We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e203e02 commit 976a3d5Copy full SHA for 976a3d5
.githooks/pre-push
@@ -0,0 +1,7 @@
1
+#!/usr/bin/env bash
2
+
3
+set -euo pipefail
4
5
+if [ "${CI:-"false"}" != "true" ]; then
6
+ npm run lint
7
+fi
package.json
@@ -13,6 +13,7 @@
13
"coverage": "env COVERAGE=true hardhat coverage",
14
"docs": "npm run prepare-docs && oz-docs",
15
"docs:watch": "oz-docs watch contracts docs/templates docs/config.js",
16
+ "prepare": "git config --local core.hooksPath .githooks",
17
"prepare-docs": "scripts/prepare-docs.sh",
18
"lint": "npm run lint:js && npm run lint:sol",
19
"lint:fix": "npm run lint:js:fix && npm run lint:sol:fix",
0 commit comments