Skip to content

add option to sort import in an alphabetical order #1059

@ozsay

Description

@ozsay

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions