-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
newline-after-import: Proposal to add "number of newlines" option #514
Labels
Comments
Sounds good to me. Currently, the rule only checks whether there is an empty line after the import/require statements. Do we want to check whether there is exactly N empty lines after the statements? I'd personally like that, and maybe by default it should only allow exactly 1 empty line. |
The current option is |
3 tasks
ljharb
pushed a commit
to anikethsaha/eslint-plugin-import
that referenced
this issue
May 14, 2021
reosarevok
pushed a commit
to reosarevok/eslint-plugin-import
that referenced
this issue
Sep 14, 2023
ljharb
pushed a commit
to anikethsaha/eslint-plugin-import
that referenced
this issue
Sep 14, 2023
Fixes import-js#1901. Fixes import-js#514. Co-authored-by: Anix <anik220798@gmail.com> Co-authored-by: reosarevok <reosarevok@metabrainz.org>
reosarevok
pushed a commit
to reosarevok/eslint-plugin-import
that referenced
this issue
Sep 15, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would be useful to enforce the following style:
The text was updated successfully, but these errors were encountered: