diff --git a/test/rules/no-duplicates.spec.ts b/test/rules/no-duplicates.spec.ts index e9636fdc..1ddf98eb 100644 --- a/test/rules/no-duplicates.spec.ts +++ b/test/rules/no-duplicates.spec.ts @@ -782,6 +782,29 @@ describe('TypeScript', () => { }, ], }), + tInvalid({ + code: ` + import { + type bar, + buzz, + } from 'foo'; + import type {bizz} from 'foo'; + `, + ...parserConfig, + output: `import {type bar, buzz, type bizz} from 'foo'; `, + errors: [ + { + ...createDuplicatedError('foo'), + line: 1, + column: 38, + }, + { + ...createDuplicatedError('foo'), + line: 1, + column: 68, + }, + ], + }), tInvalid({ code: "import {AValue, type x, BValue} from './foo'; import {type y} from './foo'", ...parserConfig,