-
-
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
imports-first
rule enforces import order, import/order
is expected to do that
#520
Comments
From the docs, there is an option From the code that checks the rule options, I found a way I'd like to share if someone is confused by the same warning:
|
IIRC I already removed/disabled it in If I didn't, I think I will. or at least make |
Similar to #512 |
Ah, so, discovery: https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/imports.js#L97 It's not on by default, but the (ever increasingly ubiquitous) AirBnB config turns it on. I'm closing, as this is technically already true and is a consequence of that config (I'm assuming). |
@benmosher The issue is that the |
I'm not disagreeing with you, though I think I will keep the functionality for backwards compatibility. It predates If I were to write the rule today, I wouldn't include it, but such is life. 😄 |
@benmosher Okay. |
import first always! |
I get a warning from
import/imports-first
rule:According to ESLint's single responsibility principle, this should be enforced by a separate rule, which is
import/order
.The text was updated successfully, but these errors were encountered: