import-js/eslint-plugin-import
GitHub で見る`no-duplicates` rule has incorrect autofix when comment is present
Open
#1,838 opened on 2020年6月26日
bughelp wanted
Repository metrics
- Stars
- (4,946 stars)
- PR merge metrics
- (平均マージ 138d 22h) (30d で 3 merged PRs)
説明
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';