0

enter image description here enter image description here

1st image : before save
2nd image : after saving formats to some default config by vs code

I am getting lint errors after saving the file(right side). Even after fixing it and then saving again goes back to the error state. How do we make our vs code editor adapt to the rules mentioned by the project and not according to local setting in vs code, probably in .prettierrc

Hussam Khatib
  • 600
  • 6
  • 17

1 Answers1

0

Open vs code settings (file->preferences->settings) search for Editor: Format On Save and click on checkbox

And try to set Prettier: Config Path option to .prettierrc

Hostek
  • 509
  • 3
  • 9