option 1
npm prettier --write "**/*.js"
option 2 add it to the scripts
{
...
"scripts": {
"prettier": "prettier --write '**/*.{ts,js,css,html}'"
}
...
}
option 1
npm prettier --write "**/*.js"
option 2 add it to the scripts
{
...
"scripts": {
"prettier": "prettier --write '**/*.{ts,js,css,html}'"
}
...
}