Skip to content

import/order: Allow grouping type imports together with the corresponding group #2912

Closed
@alexeyr-ci

Description

@alexeyr-ci

Given the first example in https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/order.md, is there an option to get

// 3. "internal" modules
// (if you have configured your path or webpack to handle your internal paths differently)
import foo from 'src/foo';
import type { Bar } from 'src/bar';
// 4. modules from a "parent" directory
import foo from '../foo';
import qux from '../../foo/qux';
import type { XYZ } from '../../foo/xyz';
// 5. "sibling" modules from the same or a sibling's directory
import bar from './bar';
import baz from './bar/baz';

? I've tried to search the existing issues, #2347 seems closest but isn't quite the behavior I want.

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