-
Notifications
You must be signed in to change notification settings - Fork 85
Declare each parameter, modifier, and return value on its own line #454
Copy link
Copy link
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
How do I configure the plugin to declare each parameter, modifier, and return value on its own line? For example:
function foo(
address[] bars
)
external
myModifier(_bars.length, msg.sender)
returns (
address baz,
bool bam
)
{
...
}Currently, if you run prettier, it'll format the above to a single line:
function foo(address[] bars) external myModifier(_bars.length, msg.sender) returns (address baz, bool bam) {
...
}Here is my .prettierrc:
{
"arrowParens": "avoid",
"bracketSpacing": true,
"endOfLine":"auto",
"printWidth": 120,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "all",
"overrides": [
{
"files": "*.sol",
"options": {
"tabWidth": 2
}
}
]
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested