Skip to content

Add support for absolute imports to import/order #512

@HenriBeck

Description

@HenriBeck

Currently, when you have the order rule turned on and the option newlines-between set to always
it will give errors when you have something like this:

import a from '/imports/config';
import b from '/imports/some/folder'

This will report having an empty line between the imports which in my opinion isn't correct.

Proposal

Add a new string to the order rule called absolute.

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