Previous node ignored if prettier-ignore is the last line #3008
Labels
area:comments
Issues with how Prettier prints comments
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 1.7.4
Playground link
Input:
Output:
Prettier 1.7.4
Playground link
Input:
Output:
When the
// prettier-ignore
comment is the last line, it ignores the previous node.Expected behavior:
The first line should be formatted in both examples.
The text was updated successfully, but these errors were encountered: