npm run prettier code example
Example 1: run prettier
npx prettier --write path/to/my/file.html
Example 2: install prettier globaly
yarn add --dev --exact prettier
Example 3: prettier npm
npm install --save-dev pre-commit
npx prettier --write path/to/my/file.html
yarn add --dev --exact prettier
npm install --save-dev pre-commit