Skip to content

Feature request: add posibility to pass regular expressions to the 'import-order' rules #1015

Open
@ghost

Description

Hi everyone,

Now we have the default groups, such as ["builtin", "external", "parent", "sibling", "index"], but would be better to add possibility to pass regular expressions to these groups definitions. For example, like this:

["buildin", "external", ".constants.js$", "index"]

It will improve code readability by adding customization of import groupings.
I just want to get approve from maintainers of this repository. Its not a problem to implement it and create PR by myself.

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