configure prettier code example
Example 1: prettier don't format line
// prettier-ignore JS
{/* prettier-ignore */} JSX
<!-- prettier-ignore --> HTML / Markdown
/* prettier-ignore */ CSS
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
}