Replies: 2 comments 1 reply
-
You can get this by removing curly brackets: if (user == null) return apiReplyError(reply, "USER_NOT_FOUND"); |
Beta Was this translation helpful? Give feedback.
1 reply
-
We don't have an option for these cases. If you want to keep the formatting that you wish, I suggest using a suppression comment: https://biomejs.dev/formatter/#ignoring-code |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm having a lot of guard condition in my code similar to :
I'm looking to have them formatted on the same line for more clarity:
I would like to keep the curly braces.
I didn't find an option in the formatter to have it this way.
Does someone knows how to do that ? Thanks?
Beta Was this translation helpful? Give feedback.
All reactions