We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sort-imports
The possibility of sorting by group order. I believe it would be something like: "sort-order-groups": true
sort-order-groups rule with first create after get:
sort-order-groups
create
get
"perfectionist/sort-imports": [ "warn", { "type": "line-length", "order": "desc", "groups": [ ["create", "get"], ["builtin", "external"] ], "custom-groups": { "value": { "get": "../utils/get/**/*", "create": "../utils/create/**/*" } }, "newlines-between": "always", "sort-groups": true } ]
without sort-order-groups rule, sort this:
import { createEslintRule } from '../utils/create' import { createEslint } from '../utils/create' import { getLinesBetween } from '../utils/get' import { getGroupNumber } from '../utils/get' import { createRule } from '../utils/create' import { getNodeRange } from '../utils/get' import { getGroup } from '../utils/get'
with "sort-order-groups": true rule:
"sort-order-groups": true
import { createEslintRule } from '../utils/create' import { createEslint } from '../utils/create' import { createRule } from '../utils/create' import { getLinesBetween } from '../utils/get' import { getGroupNumber } from '../utils/get' import { getNodeRange } from '../utils/get' import { getGroup } from '../utils/get'
I used Google Translate for this issue, sorry if there are some grammatical errors 😄
The text was updated successfully, but these errors were encountered:
Thank you for your issue!
Thank you for your idea. I don't think it will be in demand at this time. And at the moment we have no plans to implement this feature.
Sorry, something went wrong.
No branches or pull requests
What rule do you want to change?
sort-imports
Describe the problem
The possibility of sorting by group order.
I believe it would be something like: "sort-order-groups": true
sort-order-groups
rule with firstcreate
afterget
:Code example
without
sort-order-groups
rule, sort this:with
"sort-order-groups": true
rule:Additional comments
I used Google Translate for this issue, sorry if there are some grammatical errors 😄
Validations
The text was updated successfully, but these errors were encountered: