Currently the arrowFunction.useParentheses option is the only which takes "force" value. Renaming "force" to "always" would make the API more consistent.
Consider the following:
semiColons
"always" - Always uses semi-colons where applicable.
useBraces
"always" - Forces the use of braces. Will add them if they aren't used.
"preferNone" - Forces no braces when the header is one line and body is one line. Otherwise forces braces.
trailingCommas
"always" - Trailing commas should always be used.
"never" - Trailing commas should not be used.
jsx.multiLineParens
"always" - Always wrap JSX with parentheses if it spans multiple lines.
@dsherret Oh.. Just now I noticed that you added labels. To be sure: does that mean you would merge a PR with this change? I could try putting it together.
Currently the
arrowFunction.useParentheses
option is the only which takes"force"
value. Renaming"force"
to"always"
would make the API more consistent.Consider the following:
semiColons
useBraces
trailingCommas
jsx.multiLineParens
And so on and on (;