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

add option to sort import in an alphabetical order #1059

Closed
ozsay opened this issue Apr 2, 2018 · 1 comment
Closed

add option to sort import in an alphabetical order #1059

ozsay opened this issue Apr 2, 2018 · 1 comment

Comments

@ozsay
Copy link

ozsay commented Apr 2, 2018

we use the order rule to group similar imports, which is very useful.

We would love to be able to sort alphabetically inside the groups (sort by the import path):

import fs from 'fs';
import path from 'path';
import crypto from 'crypto'; // fails because it should be before the fs import

import request from 'request';
import _ from 'lodash'; // fails because it should be before the request import

Thanks!

@billyjanitsch
Copy link

Duplicate of #389.

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

No branches or pull requests

3 participants