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