File tree 4 files changed +230
-12
lines changed
4 files changed +230
-12
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+ yarn run lint-staged
Original file line number Diff line number Diff line change @@ -77,6 +77,12 @@ Install dependencies via Yarn:
77
77
yarn install
78
78
```
79
79
80
+ Setup Husky to format code on commit:
81
+
82
+ ``` bash
83
+ yarn prepare
84
+ ```
85
+
80
86
Link local packages and install remaining dependencies via Lerna:
81
87
82
88
``` bash
Original file line number Diff line number Diff line change 5
5
"license" : " MIT" ,
6
6
"scripts" : {
7
7
"lerna-publish" : " yarn build && lerna publish" ,
8
- "build" : " lerna run tsc"
8
+ "build" : " lerna run tsc" ,
9
+ "prepare" : " husky install"
10
+ },
11
+ "lint-staged" : {
12
+ "*.{js,sol}" : [
13
+ " prettier --write"
14
+ ]
9
15
},
10
16
"devDependencies" : {
11
17
"@nomiclabs/hardhat-ethers" : " ^2.0.2" ,
23
29
"hardhat-abi-exporter" : " ^2.2.1" ,
24
30
"hardhat-gas-reporter" : " ^1.0.4" ,
25
31
"hardhat-spdx-license-identifier" : " ^2.0.3" ,
32
+ "husky" : " ^7.0.1" ,
26
33
"lerna" : " ^4.0.0" ,
34
+ "lint-staged" : " ^11.0.0" ,
27
35
"prettier" : " ^2.3.2" ,
36
+ "prettier-plugin-solidity" : " ^1.0.0-beta.14" ,
28
37
"solidity-coverage" : " ^0.7.16" ,
29
38
"ts-node" : " ^10.0.0" ,
30
39
"typechain" : " ^5.1.1" ,
You can’t perform that action at this time.
0 commit comments