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:
Create a .prettierrc file in your project, for example
{
"tabWidth": 2,
"useTabs": false,
"semi": false
}
Then run
npx prettier -w . Related posts about tools: