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
But this is not the correct behavior, as in the documentation it clearly says:
Enforces having one or more empty lines after the last top-level import statement or require call.
after the last top-level import statement
Note: the exactCount doesn't matter, as I've tried to remove it but it's still causing issue.
Package version: ALL LATEST
The text was updated successfully, but these errors were encountered:
xsjcTony
changed the title
[import/newline-after-import] False positively reports wrong empty line numbers between imports
🐞: [import/newline-after-import] False positively reports wrong empty line numbers between imports
Nov 20, 2023
OP example is "just a comment", that can be omitted (not ideal, but possible), with TS you may be forced to have this comment between imports.
This bug exists for 4 years at least (I think it was there since I started using this plugin) and its autofix can trigger import/order rule errors (if you prohibit new lines between imports).
xsjcTony
changed the title
🐞: [import/newline-after-import] False positively reports wrong empty line numbers between imports
🐞: [import/newline-after-import] False positively reports wrong empty line numbers between imports with comments
Jun 4, 2024
Something like that:
And my setting is
It reports like this:

But this is not the correct behavior, as in the documentation it clearly says:
after the last top-level import statement
Note: the
exactCount
doesn't matter, as I've tried to remove it but it's still causing issue.Package version: ALL LATEST
The text was updated successfully, but these errors were encountered: