Skip to content
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

Case-insensitive ordering #68

Closed
timiles opened this issue Aug 8, 2021 · 3 comments
Closed

Case-insensitive ordering #68

timiles opened this issue Aug 8, 2021 · 3 comments

Comments

@timiles
Copy link
Contributor

timiles commented Aug 8, 2021

Hi, is it possible to have imports ordered with case-insensitivity? If not, can I please request this as a feature?

An example: no import order specified, importing siblings "ThingsList" and "ThingView". I would like for them to listed in that order, as s comes before V. But due to case sensitivity, upper case V actually comes before lower case s, so we get:

import ThingView from './ThingView';
import ThingsList from './ThingsList';

I could try to help write this feature if it is desirable.

@timiles
Copy link
Contributor Author

timiles commented Aug 8, 2021

UPDATE: I have submitted a pull request with a suggested solution: #69

@timiles
Copy link
Contributor Author

timiles commented Aug 16, 2021

Hi @ayusharma, @byara - great work on this tool, it's already saving me loads of time 👍

Are you interested in adding the functionality in my PR? It's non-breaking for existing users but will enable optionally conforming to this linting option. If you'd rather not accept this change, do you mind if I publish my fork on npm under my own name?

Thanks,
Tim

@ayusharma
Copy link
Collaborator

Released in v3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

2 participants