Skip to content

Commit 9f1fc1d

Browse files
committed
solhint and prettier
1 parent 6360f2c commit 9f1fc1d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.solhint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "solhint:default"
3+
}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"migrate:reset": "truffle migrate --reset",
1515
"test": "truffle test",
1616
"console": "truffle console",
17-
"solhint": "solhint \"contracts/**/*.sol\""
17+
"solhint": "solhint \"contracts/**/*.sol\"",
18+
"prettier:solidity": "prettier --write contracts/**/*.sol"
1819
},
1920
"dependencies": {
2021
"axios": "^0.21.1",
@@ -43,6 +44,7 @@
4344
"popper.js": "^1.16.1",
4445
"portal-vue": "^2.1.7",
4546
"prettier": "^2.2.1",
47+
"prettier-plugin-solidity": "^1.0.0-beta.2",
4648
"sass": "^1.26.11",
4749
"sass-loader": "^10.0.2",
4850
"solhint": "^3.3.2",

0 commit comments

Comments
 (0)