module.exports = { //单行长度 printWidth: 100, //在对象前后添加空格-eg: { foo: bar } bracketSpacing: true, //使用单引号 singleQuote: true, // avoid 能省略括号的时候就省略 例如x => x arrowParens: 'avoid', //多行时尽可能打印尾随逗号 trailingComma: 'all', //句末使用分号 semi: true, //不对vue中的script及style标签缩进 vueIndentScriptAndStyle: true, // 默认值。因为使用了一些折行敏感型的渲染器(如GitHub comment)而按照markdown文本样式进行折行 proseWrap: 'never', //对HTML全局空白不敏感 htmlWhitespaceSensitivity: 'strict', //结束行形式 endOfLine: 'auto' };