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

fix pre-commit hook

This commit is contained in:
Matthias Kretschmann 2021-01-28 12:36:06 +01:00
parent cc2f7de9d3
commit a1d06d323b
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 8 additions and 1 deletions

View File

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

6
package-lock.json generated
View File

@ -13977,6 +13977,12 @@
"promise": "^7.1.1"
}
},
"git-format-staged": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/git-format-staged/-/git-format-staged-2.1.1.tgz",
"integrity": "sha512-Db4QiAymao9BfpTBCdEcF53jBZfKuwIigqhNmtODD+KOKbxrdDVMDeAs+P7eqJl9udlBZejhRKRbyFRtKLbVmA==",
"dev": true
},
"git-up": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/git-up/-/git-up-4.0.2.tgz",

View File

@ -69,6 +69,7 @@
"eslint-config-oceanprotocol": "^1.5.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-prettier": "^3.3.1",
"git-format-staged": "^2.1.1",
"husky": "^5.0.6",
"markdownlint-cli": "^0.26.0",
"node-sass": "^5.0.0",