import-js/eslint-plugin-import

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

Open

#1723 aperta il 7 apr 2020

Vedi su GitHub
 (3 commenti) (2 reazioni) (0 assegnatari)JavaScript (1540 fork)batch import
bughelp wantedimport/export ordering

Metriche repository

Star
 (4946 star)
Metriche merge PR
 (Merge medio 138g 22h) (3 PR mergiate in 30 g)

Descrizione

Related: https://github.com/benmosher/eslint-plugin-import/issues/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 };

Guida contributor