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
[New] newline-after-imports
: new option exactCount
and docs update
#1933
Conversation
Fixes import-js#1901. Fixes import-js#514. Co-authored-by: Anix <anik220798@gmail.com> Co-authored-by: reosarevok <reosarevok@metabrainz.org>
This also fixes #514. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems legit.
Looks like there's some test errors in eslint 2. |
@anikethsaha Are you planning on merging this? |
I would love this - any way I can help move it forward? |
If someone wants to rebase this branch, fix the test errors, and post a link to the branch here (NOT a new PR, please!) then I can pull in the changes and we can get this merged. |
I rebased, fixed conflicts, fixed eslint errors, and added a test using this in combination with the newer |
alrighty, if the tests pass we can un-draft this and move forward |
@reosarevok the tests are still failing in eslint 2, pretty consistently, about the autofix output. it would be ideal to figure out how to get them passing in eslint 2. |
Oh, I think I figured out the issue - other places that don't autofix do |
The travis failure is because they're on an outdated nvm, and npm 10 breaks on node 14; appveyor's WSL failures are expected. Once the rest of the appveyor tests pass, I'll land this. |
There's a comment related bug with this; I've filed a new bug since this is already merged. |
Fixes #1901. Fixes #514.
Checklist
added option named
exactCount
of typeBoolean
defaultfalse
that will enforce strict following of thecount
option where the number of newline has to be equal tocount
.Updated the docs as mentioned in the linked issue accordingly.