-
-
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
should not apply to inline require
's
#570
Comments
Same here, sounds good to me. Does anyone see the value of keeping this behavior behind an option somehow? I don't. It's not really the purpose of this rule, though this should probably be better explained in the rule documentation. Some (who like this) might consider this a breaking change (?), so it might be worth shipping with 2.0 (soon) just to be safe. |
I don't see the point in an option. |
It's not obvious to me what classifies the linked require as Breaking changes can certainly pile into v2, I haven't had a chance to publish the first beta yet, anyway. |
I thought any require whose parent is not Program, but that's obviously not good enough (even Actually, I see that we already have this kind of logic in |
@singles do you have an opinion on this maybe? |
AFAIR @lo1tuma implemented most of the code which is being removed in linked PR, so it would be better to ask him :) |
Only ones at the top. Or at least provide an option to ignore them.
When I have inline requires, it doesn't really help much to have a newline and it just get's in the way. I've been hit by this many times.
Example: vercel/hyper@8a8fdac#diff-2460efa50e29d32731d41893921a7739R9
The text was updated successfully, but these errors were encountered: