Skip to content
FLAVIO COPES
flaviocopes.com
2026

How to automatically run Prettier on all files in a project

~~~

Create a .prettierrc file in your project, for example

{
  "tabWidth": 2,
  "useTabs": false,
  "semi": false
}

Then run

npx prettier -w .
~~~

Related posts about tools: