sajad torkamani

Install package:

npm i -D prettier

Create .prettierrc:

touch .prettierrc
{
  "semi": false,
  "singleQuote": true
}

(Optional) Add NPM scripts:

{
  "format:check": "prettier src/",
  "format:fix": "prettier --write src/"
}

Run format script:

npm run format:fix