import-js/eslint-plugin-import

`no-duplicates` rule has incorrect autofix when comment is present

Open

#1,838 创建于 2020年6月26日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (1,540 fork)batch import
bughelp wanted

仓库指标

Star
 (4,946 star)
PR 合并指标
 (平均合并 138天 22小时) (30 天内合并 3 个 PR)

描述

Original:

import { set } from '@ember/object';
import EmberObject, { observer, computed } from '@ember/object'; // some comment

Autofixes to (invalid):

import EmberObject, { set } from '@ember/object';
import EmberObject, { observer, computed } from '@ember/object'; // some comment

Without the comment, this correctly autofixes to:

import EmberObject, { set, observer, computed } from '@ember/object';

贡献者指南