.Prettier 옵션 종류
{
"arrowParens": "avoid",
"bracketSpacing": false,
"endOfLine": "auto",
"htmlWhitespaceSensitivity": "css",
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed"
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false,
"vueIndentScriptAndStyle": true,
"parser": '',
"filepath": '',
"rangeStart": 0,
"rangeEnd": Infinity,
"requirePragma": false,
"insertPragma": false,
"overrides": [
{
"files": "*.json",
"options": {
"printWidth": 200
}
}
],
}
내가 사용하는 옵션
{
"arrowParens": "always",
"bracketSpacing": true,
"bracketSameLine": true,
"embeddedLanguageFormatting": "auto",
"endOfLine": "lf",
"jsxBracketSameLine": false,
"printWidth": 80,
"quoteProps": "as-needed",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
}