# Prettier
Prettier 是一个代码格式化工具,使用 Prettier 能够使我们团队代码的风格有效的保持一致
下面是我个人的一下常用的 Prettier 配置
代码语言:javascript复制{
"arrowParens": "always",
"bracketSameLine": true,
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxSingleQuote": false,
"printWidth": 150,
"proseWrap": "never",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false,
"vueIndentScriptAndStyle": false,
"singleAttributePerLine": false
}
还有更多的配置可以参考 Prettier 官网 (opens new window)