@@ -302,32 +302,30 @@ ruleTester.run('no-duplicates', rule, {
302
302
303
303
test ( {
304
304
code : `
305
- import {x} from './foo'
306
- import {y} from './foo'
307
- // some-tool-disable-next-line
305
+ import {x} from './foo'
306
+ import {y} from './foo'
307
+ // some-tool-disable-next-line
308
308
` ,
309
309
// Not autofix bail.
310
310
output : `
311
- import {x,y} from './foo'
312
-
313
- // some-tool-disable-next-line
311
+ import {x,y} from './foo'
312
+ // some-tool-disable-next-line
314
313
` ,
315
314
errors : [ '\'./foo\' imported multiple times.' , '\'./foo\' imported multiple times.' ] ,
316
315
} ) ,
317
316
318
317
test ( {
319
318
code : `
320
- import {x} from './foo'
321
- // comment
319
+ import {x} from './foo'
320
+ // comment
322
321
323
- import {y} from './foo'
322
+ import {y} from './foo'
324
323
` ,
325
324
// Not autofix bail.
326
325
output : `
327
- import {x,y} from './foo'
328
- // comment
326
+ import {x,y} from './foo'
327
+ // comment
329
328
330
-
331
329
` ,
332
330
errors : [ '\'./foo\' imported multiple times.' , '\'./foo\' imported multiple times.' ] ,
333
331
} ) ,
@@ -401,7 +399,6 @@ ruleTester.run('no-duplicates', rule, {
401
399
errors : [ '\'./foo\' imported multiple times.' , '\'./foo\' imported multiple times.' ] ,
402
400
} ) ,
403
401
404
-
405
402
// #2027 long import list generate empty lines
406
403
test ( {
407
404
code : "import { Foo } from './foo';\nimport { Bar } from './foo';\nexport const value = {}" ,
0 commit comments