0

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 sets the printWidth to 80. Breaking up rows that are perfectly readable on my large screen.

I would like to have local visual settings to set printWidth to for instance 120 but when I save, or at least before commit, the file adheres to the rules in the repos .prettierrc.

Is this possible with config or perhaps as an extension for VSCode?

GusOst
  • 4,105
  • 3
  • 19
  • 28

0 Answers0