Incorrect formatting for auto-accessors with comments #14036
Labels
lang:javascript
Issues affecting JS
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 2.8.1
Playground link
# Options (if any):
Input:
Output:
Expected behavior:
The comments should not be placed between the keyword
accessor
and the identifierb
, which causes theaccessor
to be treated as a class field instead of a keyword. Expected:The text was updated successfully, but these errors were encountered: