microsoft / backfill

A JavaScript caching library for reducing build time
MIT License
156 stars 31 forks source link

Improve how to run prettier #428

Closed ecraig12345 closed 2 years ago

ecraig12345 commented 2 years ago

Rather than running prettier on specific file extensions, in my experience/opinion it's better to have an appropriate ignore file and run prettier on all files.

Also, it's best if the command for running prettier is called format or something else instead of prettier, so that it's also possible to run the prettier binary directly (via yarn prettier) if desired.

I also updated Prettier to the latest version and formatted all files.