import-js/eslint-plugin-import
Vedi su GitHub[import/no-duplicates] Extra comma added when fixer is run
Open
#2757 aperta il 9 apr 2023
bughelp wanted
Metriche repository
- Star
- (4946 star)
- Metriche merge PR
- (Merge medio 138g 22h) (3 PR mergiate in 30 g)
Descrizione
Input:
import { Foo } from "someImport";
import {
BarLongNameToEnsureLineBreak,
BazManLongNameToEnsureLineBreak,
} from "someImport";
import { Qux } from "someImport";
const foo: Foo = "foo";
const bar: BarLongNameToEnsureLineBreak = "bar";
const baz: BazManLongNameToEnsureLineBreak = "baz";
const qux: Qux = "qux";
output:
import { Foo ,
BarLongNameToEnsureLineBreak,
BazManLongNameToEnsureLineBreak,
, Qux } from "someImport";
const foo: Foo = "foo";
const bar: BarLongNameToEnsureLineBreak = "bar";
const baz: BazManLongNameToEnsureLineBreak = "baz";
const qux: Qux = "qux";
Note the commas at the end of line 3 and start of line 4.
Possibly related to #2601, tho in that case it appears that the opposite problem is occurring: no comma when there should be