-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Rule proposal: sort export #659
Comments
To make this fixable, I can see how this causes a number of complications, e.g. what to do with potential commits surrounding an However, reporting alone would be nice. |
piling onto this ... it would be useful for me if we could force the default export to follow any named exports. currently we have be manually enforce that convention ... which means it isn't followed very well. |
Agreed. In our case, we want to do this particularly for alphabetizing exports in index files, which for us often look like this:
|
For those with the same use case as me, I found this: https://www.npmjs.com/package/eslint-plugin-sort-exports |
@saltman424 I created an ESLint plugin especially for that. |
I'd like to be able to sort exports in a file when file only contains exports, e.g.
This file only contains exports. I'd like the latter to become into:
The text was updated successfully, but these errors were encountered: