Skip to content
New issue

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

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

Open
alexeyr-ci opened this issue Oct 29, 2023 · 1 comment

Comments

@alexeyr-ci
Copy link

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.

@alexeyr-ci
Copy link
Author

types: true from #2441 (comment) would work as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant