import-js/eslint-plugin-import

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

開放

#1,723 建立於 2020年4月7日

 (3 則留言) (2 個反應) (0 位負責人)JavaScript (1,549 個分叉)batch import
bughelp wantedimport/export ordering

倉庫指標

星標
 (5,940 顆星)
PR 合併指標
 (平均合併 138天 22小時) (30 天內合併 3 個 PR)

描述

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 };

貢獻者指南