lydell / eslint-plugin-simple-import-sort

Easy autofixable import sorting.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I make imports with a capitalized first letter always come first?

so1ve opened this issue · comments

commented

Like:

import { UndefinedTheme, colors } from "./colors";

Is sorted to

import { colors,UndefinedTheme } from "./colors";

Hi! That is not possible, and I’m not interested in making it possible.

I haven’t tested it, but there’s a chance that you can use https://eslint-plugin-perfectionist.azat.io/rules/sort-named-imports instead, with the alphabetical sorting.

commented

Thanks~! I just forked this project to satisfy my need, thanks for you hard work!