Open better2021 opened 3 years ago
js代码格式化的.prettierrc.js的设置
module.exports = {
printWidth: 120,
tabWidth: 4,
tabs: false,
semi: false, // 分号
singleQuote: false, // 单引号
quoteProps: "as-needed",
tailingComma: "all",
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: "always",
// endOfLine: "auto"
}
vscode中settings的设置