module.exports = { // 换行宽度 printWidth: 120, // 缩进空格数 tabWidth: 2, // 使用空格而非制表符 useTabs: false, // 不使用分号 semi: false, // 使用单引号 singleQuote: true, // 对象属性按需加引号 quoteProps: 'as-needed', // jsx 使用单引号 jsxSingleQuote: true, // 不使用尾随逗号 trailingComma: 'none', // 对象括号内加空格 bracketSpacing: true, // 多行元素的 > 不放在最后一行末尾 bracketSameLine: false, // 箭头函数总是加括号 arrowParens: 'always', // HTML 空格敏感性 htmlWhitespaceSensitivity: 'ignore', // Vue 文件不额外缩进 script/style vueIndentScriptAndStyle: false, // 使用 LF 换行符 endOfLine: 'lf', // 不折行 markdown proseWrap: 'never', // 单属性不换行 singleAttributePerLine: false }