forked from prettier-solidity/prettier-plugin-solidity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding support for prettier-ignore (prettier-solidity#202)
* adding support for prettier-ignore * the test look nicer now
- Loading branch information
1 parent
cb326d5
commit d20a205
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
pragma solidity ^0.5.2; | ||
|
||
contract PrettierIgnore { | ||
function() public payable { | ||
matrix( | ||
1, 0, 0, | ||
0, 1, 0, | ||
0, 0, 1 | ||
); | ||
|
||
// prettier-ignore | ||
matrix( | ||
1, 0, 0, | ||
0, 1, 0, | ||
0, 0, 1 | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`PrettierIgnore.sol 1`] = ` | ||
pragma solidity ^0.5.2; | ||
contract PrettierIgnore { | ||
function() public payable { | ||
matrix( | ||
1, 0, 0, | ||
0, 1, 0, | ||
0, 0, 1 | ||
); | ||
// prettier-ignore | ||
matrix( | ||
1, 0, 0, | ||
0, 1, 0, | ||
0, 0, 1 | ||
); | ||
} | ||
} | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
pragma solidity ^0.5.2; | ||
contract PrettierIgnore { | ||
function() public payable { | ||
matrix(1, 0, 0, 0, 1, 0, 0, 0, 1); | ||
// prettier-ignore | ||
matrix( | ||
1, 0, 0, | ||
0, 1, 0, | ||
0, 0, 1 | ||
); | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
run_spec(__dirname); |