Skip to content

Rules for new lines before return and EOF #413

Closed Answered by ematipico
itsjavi asked this question in Q&A
Discussion options

You must be logged in to vote

1 - Is there any equivalent to eslint's newline-before-return rule? I cannot find it

No there isn't.

2 - And also, is there a way for the formatter to always keep an empty line at the end of a file?

The formatter does that already. Check the playground

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@itsjavi
Comment options

@ematipico
Comment options

@itsjavi
Comment options

Answer selected by itsjavi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants