Questions tagged [prettier-vscode]

121 questions
0
votes
0 answers

Prettier (Extension) inserts {" "} when formatting document

I have been using Prettier extension for some time with Angular projects and decided to give it a try for one of my React projects. However what I have noticed, upon formatting my .tsx files it inserts invalid objects into my code like…
Robert J.
  • 2,631
  • 8
  • 32
  • 59
0
votes
0 answers

Prettier using wrong path for .prettierignore file

My file structure is as follows: project/ client/ .prettierrc .prettierignore The formatting output in VS Code looks something like this: ["INFO" - 4:31:44 PM] Formatting file:///home/user/dev/project/client/README.md ["INFO" -…
aveik
  • 1
  • 1
0
votes
0 answers

Different Prettier rules for viewing and saving files in VSCode

Is there a way to have differing prettier rules for when I'm looking and editing a file versus when it's saved and/or committed? Specifically, I don't like the visual style that we have set in our .prettierrc that is in our repo. For instance it…
GusOst
  • 4,105
  • 3
  • 19
  • 28
0
votes
0 answers

How do I fix the first line to the top of the screen when vscode's saving?

enter image description here I'm using vscode prettier, and at some point when I save the code, the end line goes up to the top of the screen. If you scroll down, the first line isn't gone, it's still there, but the end line comes up on top of the…
pilot97
  • 1
  • 1
0
votes
0 answers

How to make prettier format HTML like this?

What prettier rules do I need to make the formatting like this. To keep the tags on new lines and the text between them?