Skip to content

Request: shall there be have a separate rule for newlines-between of order? #3219

@AntonioVentilii

Description

@AntonioVentilii

I don't know if it is a common situation, but I would very much like a separate rule that enforces newlines between imports (or avoids them).

For example, I need to set up the rule like this:

"import/order": [
        "error",
        {
          // disable all default grouping behaviour
          groups: [],

          // disable alphabetising
          alphabetize: {
            order: "ignore",
            caseInsensitive: false,
          },

          "newlines-between": "never",
        },
      ],

just because I prefer to handle the sorting elsewhere or by other rules/plugins/file-specific.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions