DEV Community


Discussion on: Start Using Prettier The Right Way

michaelcurrin profile image
Michael • Edited

Use without installing

If you don't have Prettier installed globally or in a project, you can still download and run it on a project. This won't install it.

$ npx prettier -w .
Enter fullscreen mode Exit fullscreen mode

That will use the default options plus any overrides you've set in Prettier configs.

More info on how to use Prettier CLI