Skip to content

Commit 694deef

Browse files
committed
Configure Prettier as formatter
1 parent 3cc5224 commit 694deef

File tree

4 files changed

+241
-1
lines changed

4 files changed

+241
-1
lines changed

.prettierignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
artifacts
3+
cache
4+
coverage*
5+
gasReporterOutput.json

.prettierrc.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
tabWidth: 4,
3+
printWidth: 120,
4+
semi: false
5+
}

package-lock.json

+227
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "npx hardhat test",
8-
"coverage": "npx hardhat coverage"
8+
"coverage": "npx hardhat coverage",
9+
"format": "prettier --write **/*.sol **/*.js"
910
},
1011
"author": "researchdao",
1112
"license": "MIT",
@@ -18,6 +19,8 @@
1819
"ethereum-waffle": "^3.4.0",
1920
"ethers": "^5.5.3",
2021
"hardhat": "^2.8.3",
22+
"prettier": "^2.5.1",
23+
"prettier-plugin-solidity": "^1.0.0-beta.19",
2124
"solidity-coverage": "^0.7.20"
2225
}
2326
}

0 commit comments

Comments
 (0)