Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple imports on the same line causes one of the imports to be duplicated #222

Open
DetachHead opened this issue Mar 13, 2023 · 0 comments

Comments

@DetachHead
Copy link

Your Environment

  • Prettier version: 2.8.4
  • node version: 19.7.0
  • package manager: npm@9.5.0
  • IDE: vscode

Describe the bug

if there are two imports on the same line, the second import gets duplicated

To Reproduce

import { b } from 'b';import { a } from 'a'

Expected behavior

import { a } from 'a'
import { b } from 'b'

Screenshots, code sample, etc

import { a } from 'a'
import { b } from 'b'

import { a } from 'a'

Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)

{
    "trailingComma": "all",
    "semi": false,
    "singleQuote": true,
    "printWidth": 100,
    "useTabs": false,
    "tabWidth": 4,
    "importOrderSortSpecifiers": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant