prettier in package.json code example
Example 1: run prettier
npx prettier --write path/to/my/file.html
Example 2: how to edit /.prettierrc.json file pretter
{
"trailingComma": "none",
"tabWidth": 4,
"semi": true,
"singleQuote": true
}
Example 3: prettierrc
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"singleQuote": true
}