@@ -247,6 +247,7 @@ ruleTesterTypeScript.run("no-duplicate-imports", rule, {
247
247
'import type * as Bar from "os";\nimport { type Baz } from "os";' ,
248
248
'import foo, * as bar from "os";\nimport { type Baz } from "os";' ,
249
249
'import foo, { type bar } from "os";\nimport type * as Baz from "os";' ,
250
+ 'import type { Merge } from "lodash-es";\nimport type _ from "lodash-es";' ,
250
251
{
251
252
code : 'import type Os from "os";\nexport { type Hello } from "hello";' ,
252
253
options : [ { includeExports : true } ] ,
@@ -283,6 +284,10 @@ ruleTesterTypeScript.run("no-duplicate-imports", rule, {
283
284
code : 'import type Os from "os";\nexport * from "os";' ,
284
285
options : [ { includeExports : true } ] ,
285
286
} ,
287
+ {
288
+ code : 'import type Os from "os";\nexport type { Something } from "os";' ,
289
+ options : [ { includeExports : true } ] ,
290
+ } ,
286
291
{
287
292
code : 'export type { Something } from "os";\nexport * from "os";' ,
288
293
options : [ { includeExports : true } ] ,
@@ -361,16 +366,6 @@ ruleTesterTypeScript.run("no-duplicate-imports", rule, {
361
366
} ,
362
367
] ,
363
368
} ,
364
- {
365
- code : 'import type { Merge } from "lodash-es";\nimport type _ from "lodash-es";' ,
366
- errors : [
367
- {
368
- messageId : "import" ,
369
- data : { module : "lodash-es" } ,
370
- type : "ImportDeclaration" ,
371
- } ,
372
- ] ,
373
- } ,
374
369
{
375
370
code : 'import type Os from "os";\nimport type { Something } from "os";\nimport type * as Foobar from "os";' ,
376
371
errors : [
@@ -379,11 +374,6 @@ ruleTesterTypeScript.run("no-duplicate-imports", rule, {
379
374
data : { module : "os" } ,
380
375
type : "ImportDeclaration" ,
381
376
} ,
382
- {
383
- messageId : "import" ,
384
- data : { module : "os" } ,
385
- type : "ImportDeclaration" ,
386
- } ,
387
377
] ,
388
378
} ,
389
379
{
0 commit comments