prettier-plugin-solidity
prettier-plugin-solidity copied to clipboard
Feature request: Enforce all blocks with brackets as optional configuration
Some regard avoiding single-line implicit brackets for conditionals a good coding practice for solidity.
Eg:
/// undesirable
if (balance == 0) revert NoBalance();
// more clear
if (balance == 0) {
revert NoBalance();
}
It would be great to make this an optional prettier solidity feature to force all single-line statements to use brackets for code readability.
For the record: Slippy has a rule for this.