Skip to content

Commit c8cc1a5

Browse files
committed
using 'slang' instead of 'solidity-parse'
1 parent 7bca760 commit c8cc1a5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ We follow Prettier's strategy for populating their plugins in the object `pretti
6161
<script>
6262
async function format(code) {
6363
return await prettier.format(code, {
64-
parser: 'solidity-parse',
64+
parser: 'slang',
6565
plugins: [solidityPlugin]
6666
});
6767
}

tests/integration/test-app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import solidityPlugin from '../../dist/standalone.cjs';
44

55
export default async function format(code) {
66
const formattedCode = await prettier.format(code, {
7-
parser: 'solidity-parse',
7+
parser: 'slang',
88
plugins: [solidityPlugin]
99
});
1010
return formattedCode;

tests/unit/prettier-version/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test('should throw if the installed version of prettier is less than v2.3.0', as
1111

1212
const options = {
1313
plugins: [plugin],
14-
parser: 'solidity-parse'
14+
parser: 'slang'
1515
};
1616

1717
await expect(async () => {

0 commit comments

Comments
 (0)