prettier code fomater code example
Example 1: run prettier
npx prettier --write path/to/my/file.html
Example 2: prettierrc
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"singleQuote": true
}
npx prettier --write path/to/my/file.html
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"singleQuote": true
}