import-js/eslint-plugin-import

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

Open

#1838 aperta il 26 giu 2020

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (1540 fork)batch import
bughelp wanted

Metriche repository

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

Descrizione

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

Guida contributor