ony3000/prettier-plugin-brace-style

support "allowSingleLine" option

Opened this issue · 1 comments

support for option "allowSingleLine"

This rule has an object option for an exception:
"allowSingleLine": true (default false) allows the opening and closing braces for a block to be on the same line

This plugin is theoretically equivalent to applying ESLint formatting (brace-style only) after applying Prettier formatting.

Therefore, currently, it is not possible to tell from the intermediate text (Prettier formatted) whether the original text was written as a single line, so research is needed to implement the feature.