Skip to content

[Feat] sort import alias by original module name, not alias #195

@Airkro

Description

@Airkro

Is your feature request related to a problem?
Please describe a clear and concise description of what the problem is. E.g. I'm always frustrated when [...]

Describe the solution you'd like

Currently, this plugin sorts alias imports by alias:

import { xyz as abc, efg } from 'abc';

↓↓

import { xyz as abc, efg } from 'abc';

And this's how https://github.com/lydell/eslint-plugin-simple-import-sort do:

import { xyz as abc, efg } from 'abc';

↓↓

import { efg, xyz as abc } from 'abc';

I think this makes more reasonable, and is more conducive to git diff.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions