prettier-plugin-solidity icon indicating copy to clipboard operation
prettier-plugin-solidity copied to clipboard

A Prettier plugin for automatically formatting your Solidity code.

Results 49 prettier-plugin-solidity issues
Sort by recently updated
recently updated
newest added

addressing some issues with comments in chains. #644 For now we are grouping comments at the beginning of the chain. This is a good first step however we must address...

I want to format exponentiation symbols like in JavaScript. Also OpenZeppelin uses it like this: Expected Behaviour ```solidity function foo(int x) public returns (int) { return x ** x; }...

enhancement

As reported by @wighawag: This ```solidity game. // CONFIG config.resolveWindow = 1000; config.defaultDelay = 0; ``` gets re-written as: ```solidity game.config.resolveWindow = 1000; // CONFIG config.defaultDelay = 0; ``` This...

enhancement

```solidity contract C { function foo() public { assembly { function bar() -> x, y { } let x let y x, y := bar() } } } ``` results...

bug

Given the last few issues I started reviewing what we were missing from the list of node types of the parser. According to solidity parsers [node list](https://github.com/solidity-parser/parser/blob/9093db3844327304f6a4bf6266405fbd4c81b06b/index.d.ts#L17) we are still...

enhancement

If a function have more than 2 parameters or more than 2 return values, then it will be breaked into serveral lines. Is there a new rule which will not...

help wanted

When I try to run `:Prettier` on a .sol file, I get `failed to parse buffer. `. I manually run `yarn` in `.vim/plugged/vim-prettier`, I get the output: ```bash yarn install...

question

This ```solidity import * as Bar from "./Bar.sol"; ``` is re-written as ```solidity import "./Bar.sol" as Bar; ``` Those two statements are (I think?) semantically equivalent, but I think this...

enhancement

## Issue The formatter is unable to handle files which contain code such as the following: ```solidity function larp(function () external returns(address) f, address returned1) internal { vm.mockCall( f.address, abi.encodeWithSelector(f.selector),...

bug

I am using vs code solidity extension that uses prettier-plugin-solidity. When i save, it turns the first SafeMath import from uint to uint256. What config do i need to change?...

question