You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel like if classes have new lines after their declaration, then interfaces and enums should follow the same pattern as well. An option to choose if newlines are added would be appreciated as well.
I'm not sure if this is a bug or an intended feature, however, I'm creating this issue to discuss this inconsistency in prettier.
The text was updated successfully, but these errors were encountered:
I'm not sure if this helps, but the interface ProjectOrBuilder is present within a parent class. Maybe that's causing some issues with Prettier's formatting?
lamergameryt
changed the title
Inconsistent Formatting
Inconsistent Formatting (with Interface)
Dec 6, 2021
Prettier-Java 0.5.1
I'm not sure if this is the intended behavior of Prettier; Prettier adds a new line after class declarations but not after interface declarations.
Input:
Output:
Expected behavior:
I feel like if classes have new lines after their declaration, then interfaces and enums should follow the same pattern as well. An option to choose if newlines are added would be appreciated as well.
I'm not sure if this is a bug or an intended feature, however, I'm creating this issue to discuss this inconsistency in prettier.
The text was updated successfully, but these errors were encountered: