-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Lint imports #30
Comments
Current possible compromises include:
|
I would say option 1 is the best of the three. I wonder if you can chain |
You can chain... but only by running |
Ah, I missed something about using |
Fixed in #29 Will revisit after |
@taniarascia's preference is to sort and group imports as follows:
With each group alphabetized by
from
, named imports sorted within their lines, and spaces between the groups.Right now, there are multiple rule/plugin/preset options for linting imports, none of them quite does the trick right now, they all conflict with each other, and none of them individually is really a desired compromise. However, the hopefully-upcoming merging of import-js/eslint-plugin-import#1360 should make
import/order
a perfect candidate.The text was updated successfully, but these errors were encountered: