You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,11 @@
10
10
11
11
A [Prettier plugin](https://prettier.io/docs/en/plugins.html) for automatically formatting your [Solidity](https://github.com/ethereum/solidity) code.
12
12
13
-
## Nomic Foundation`s Slang
13
+
## Nomic Foundation's Slang
14
14
15
15
Nomic Foundation has put a lot of effort in providing a set of compiler APIs that helped us rethink our approach to parsing and rely on their flexibility, detail oriented solution and continuos support of new and old Solidity syntaxes.
16
16
17
-
Since v2.0.0 this package will ship with the Slang parser and this change must be implemented in existing configurations by replacing `parser: 'solidity-parse'` with `parser: 'slang'`.
17
+
Since v2.0.0 this package will ship with the Slang parser and this change must be implemented in existing configurations by replacing `parser: 'solidity-parse'` with `parser: 'slang-solidity'`.
18
18
19
19
## Installation and usage
20
20
@@ -67,7 +67,7 @@ We follow Prettier's strategy for populating their plugins in the object `pretti
67
67
<script>
68
68
asyncfunctionformat(code) {
69
69
returnawaitprettier.format(code, {
70
-
parser:'slang',
70
+
parser:'slang-solidity',
71
71
plugins: [solidityPlugin]
72
72
});
73
73
}
@@ -91,7 +91,7 @@ import solidityPlugin from 'prettier-plugin-solidity/standalone';
91
91
92
92
asyncfunctionformat(code) {
93
93
returnawaitprettier.format(code, {
94
-
parser:"slang",
94
+
parser:"slang-solidity",
95
95
plugins: [solidityPlugin],
96
96
});
97
97
}
@@ -112,7 +112,7 @@ The following is the default configuration internally used by this plugin.
0 commit comments