Skip to content

[import/order] Inline comments are not moved by the auto-fixer along with the rest of the line #1723

@astorije

Description

@astorije

Related: #1450

Repro

import { Foo } from 'foo';
export { Bar }; // Comment on the export line
import/order:
  - error
  - pathGroupsExcludedImportTypes:
      - builtin
    newlines-between: always
    alphabetize:
      order: asc
      caseInsensitive: true

Expected

import { Foo } from 'foo';

export { Bar }; // Comment on the export line

Actual

import { Foo } from 'foo'; // Comment on the export line

export { Bar };

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