Formatting does not work if there are only comments in brackets
Closed this issue · 0 comments
ony3000 commented
Dependency information
- prettier@2.8.4
- prettier-plugin-brace-style@0.1.1
Steps to reproduce
Put one of these snippets in any JavaScript file and try to format it.
- round brackets
function foo(/* args here */) { statement; }
- curly brackets
if (condition) { // statement }
- square brackets
const foo = [ // elements ];
The current behavior
get an error Comment "..." was not printed
.
The expected behavior
no errors.