1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

add pre-commit hook: npm run format

This commit is contained in:
Matthias Kretschmann 2021-01-26 16:37:10 +01:00
parent 58cd894da9
commit a225339ddb
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 11 additions and 0 deletions

1
.husky/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname $0)/_/husky.sh"
npm run format

5
package-lock.json generated
View File

@ -15010,6 +15010,11 @@
"resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz",
"integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw=="
},
"husky": {
"version": "5.0.6",
"resolved": "https://registry.npmjs.org/husky/-/husky-5.0.6.tgz",
"integrity": "sha512-SM+evfvcHT3rAYJKvPlatz3L5RqzgeM6xIvDjhs8VuhKj6iKqFDOt/Ov8sPjvWuE4FDB385gJBwWXRj7G3c1hg=="
},
"iconv-lite": {
"version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",

View File

@ -69,6 +69,7 @@
"eslint-config-oceanprotocol": "^1.5.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-prettier": "^3.3.1",
"husky": "^5.0.6",
"markdownlint-cli": "^0.26.0",
"node-sass": "^5.0.0",
"npm-run-all": "^4.1.5",