module.exports = { // 换行长度,默认80 printWidth: 180, // tab缩进大小,默认为2 tabWidth: 2, // 使用tab缩进,默认false useTabs: false, // 每行末尾自动添加分号 semi: true, vueIndentScriptAndStyle: false, // 字符串使用单引号 singleQuote: true, quoteProps: 'as-needed', bracketSpacing: true, // 行末尾自动添加逗号 trailingComma: 'all', jsxSingleQuote: false, // always 总是有括号 arrowParens: 'avoid', insertPragma: false, requirePragma: false, proseWrap: 'never', htmlWhitespaceSensitivity: 'strict', endOfLine: 'auto', rangeStart: 0, // 箭头函数参数括号 默认avoid 可选 avoid| always // avoid 能省略括号的时候就省略 例如x => x // 在jsx中把'>' 不单独放一行 jsxBracketSameLine: false, };