module.exports = { semi: false, // 句末是否加分号 bracketSpacing: true, singleQuote: true, arrowParens: "avoid", trailingComma: "none", // 最后一个对象元素符加逗号 tabWidth: 2, // 设置工具每一个水平缩进的空格数 vueIndentScriptAndStyle: true, singleQuote: true, // 用单引号 jsxBracketSameLine: true, // jsx > 是否另取一行 arrowParens: 'always', // 不需要写文件开头的 @prettier insertPragma: false, // 不需要自动在文件开头加入 @prettier endOfLine: 'lf' // 换行符使用 lf };