prettier-plugin-solidity
prettier-plugin-solidity copied to clipboard
about line break rule
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 break line, or only break line according to line length(printWidth)?
function getName(uint256 a, uint256 b, uint256 c) external view returns (uint256 d, uint256 e, uint256 f);
becomes:
function getName(
uint256 a,
uint256 b,
uint256 c
)
external
view
returns (
uint256 d,
uint256 e,
uint256 f
);
@gzliudan I think this is by design, you may want to try to skip specific lines maybe? cc @fvictorio
Really need a rule to control the parameter count. Have any ideas?
Hey, did you find a solution for this? Those line breaks are driving me crazy...
I am too of the opinion that the default behaviour here is suboptimal, see #755.
This has been addressed as we moved into v1.0.0