Skip to content

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

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

Closed
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.

Xunnamius added a commit to Xunnamius/eslint-plugin-import that referenced this issue Nov 16, 2024
Xunnamius added a commit to Xunnamius/eslint-plugin-import that referenced this issue Nov 16, 2024
Xunnamius added a commit to Xunnamius/eslint-plugin-import that referenced this issue Dec 23, 2024
Xunnamius added a commit to Xunnamius/eslint-plugin-import that referenced this issue Dec 23, 2024
Xunnamius added a commit to Xunnamius/eslint-plugin-import that referenced this issue Dec 23, 2024
Xunnamius added a commit to Xunnamius/eslint-plugin-import that referenced this issue Dec 30, 2024
ljharb pushed a commit to Xunnamius/eslint-plugin-import that referenced this issue Dec 31, 2024
ljharb pushed a commit to Xunnamius/eslint-plugin-import that referenced this issue Dec 31, 2024
…`, `consolidateIslands`) to allow intragroup sorting of type-only imports

Closes import-js#2912
Closes import-js#2347
Closes import-js#2441
Subsumes import-js#2615
ljharb pushed a commit to Xunnamius/eslint-plugin-import that referenced this issue Dec 31, 2024
…`, `consolidateIslands`) to allow intragroup sorting of type-only imports

Closes import-js#2912
Closes import-js#2347
Closes import-js#2441
Subsumes import-js#2615
Xunnamius added a commit to Xunnamius/eslint-plugin-import that referenced this issue Jan 21, 2025
@ljharb ljharb closed this as completed in fd1ae63 Jan 23, 2025
ljharb pushed a commit to Xunnamius/eslint-plugin-import that referenced this issue Jan 23, 2025
ljharb pushed a commit to ljharb/eslint-plugin-import that referenced this issue Jan 23, 2025
Xunnamius added a commit to Xunnamius/eslint-plugin-import that referenced this issue Jan 26, 2025
ljharb pushed a commit to Xunnamius/eslint-plugin-import that referenced this issue Jan 28, 2025
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