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

VSCode prettier extension and the prettier --write . giving two different results #16141

Closed
codingmickey opened this issue Mar 7, 2024 · 2 comments
Labels
scope:out-of-scope Posted issue is not in scope of Prettier

Comments

@codingmickey
Copy link

codingmickey commented Mar 7, 2024

# Options (if any):
--write .

Input:

      document.getElementById(
        "share-li"
      ).href = `https://www.linkedin.com/feed/?shareActive=true&text=${title}${twoNewLines}${url}`;

      document.getElementById(
        "share-tw"
      ).href = `https://twitter.com/intent/tweet?text=${title}${twoNewLines}&url=${url}`;

Output(FROM VSCODE FORAT ON SAVE):
image

Expected output(FROM CLI USING THE COMMAND):
image

Why?

I was just formatting my code with my prettier vscode extension but the prettier --write . gives different results. I have a .pretterrc file in my root folder so it should take up that in both right? But Idk what's causing this issue...

Sorry if any of the details would be missing, I'd be happy to share!! Cheers

@kachkaev kachkaev added the scope:out-of-scope Posted issue is not in scope of Prettier label Mar 7, 2024
@kachkaev
Copy link
Member

kachkaev commented Mar 7, 2024

👋 @codingmickey! I’m afraid that this issue falls under “support question”. GitHub issues in this repo are dedicated to development purposes only. If you have questions, please use Stack Overflow or start a discussion:

There is a chance that you’ll find a similar question with an answer to it.

@kachkaev kachkaev closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
@codingmickey
Copy link
Author

Oh, didn't know 🫡👍🏼

Sorry for this.. my bad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:out-of-scope Posted issue is not in scope of Prettier
Projects
None yet
Development

No branches or pull requests

2 participants