0

I'm using Nest JS, but Prettier keeps bothering me with formatting errors while I'm trying to develop. It's frustrating because it distracts me from actual coding. How can I turn off Prettier just for now and then turn it on again when I want?

I tried removing format from the package.json file, but that didn't help.

2 Answers2

1

that's not related with nestjs itself.

Just remove the package using npm uninstall prettier and the configuration file .prettierrc, as any other nodejs library.

Micael Levi
  • 5,054
  • 2
  • 16
  • 27
0

when you create a new NestJS project, the CLI will automatically generate a sample prettier configuration file named .prettierrc in the root of the project. do disable the rules, you can comment out every key from that object so it remains empty. that way prettier rules will not apply until you uncomment them

GoranLegenda
  • 491
  • 3
  • 9