Skip to content

Commit a154c42

Browse files
committed
feat(formatter): update prettier-plugin-solidity to 2 and enable the slang parser
1 parent 3e7ae90 commit a154c42

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

.prettierrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"files": "*.sol",
66
"options": {
7-
"parser": "solidity-parse",
7+
"parser": "slang",
88
"printWidth": 120,
99
"tabWidth": 4,
1010
"useTabs": false,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"lint-staged": "15.5.1",
8989
"mocha": "11.1.0",
9090
"prettier": "3.5.3",
91-
"prettier-plugin-solidity": "1.4.3",
91+
"prettier-plugin-solidity": "2.0.0",
9292
"solhint": "5.0.5",
9393
"solidity-coverage": "0.8.15",
9494
"solidity-docgen": "0.6.0-beta.36",

pnpm-lock.yaml

Lines changed: 19 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)