Skip to content

Commit

Permalink
no-duplicates auto-fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Dec 12, 2024
1 parent ac6d2e1 commit ebdbab4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/rules/no-duplicates.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,25 @@ describe('TypeScript', () => {
},
],
}),
tInvalid({
code: "import type { AType as BType } from './foo'; import { CValue } from './foo'",
...parserConfig,
options: [{ 'prefer-inline': true }],
output: `import { type AType as BType , CValue } from './foo'; `,
errors: [
{
...createDuplicatedError('./foo'),
line: 1,
column: 37,
},
{
...createDuplicatedError('./foo'),
line: 1,
column: 69,
},
],
}),

]),
]

Expand Down

0 comments on commit ebdbab4

Please sign in to comment.