module.exports = { //前头函数只有一个參数的时候可以忽略括号 arrowParens: 'avoid', //括号内部不要出现空格 bracketSpacing: true, //行结東符使用Unix格式 endOfLine: 'lf', //true:Put>onthelastLineinsteadofatanewline jsxBracketSameLine: false, //行宽 printWidth: 100, //换行方式 proseWrap: 'preserve', //分号 semi: false, //使用单引号 singleQuote: true, //缩进 tabWidth: 2, //使甩tab缩进 useTabs: false, //后夏迎号,多行对象、数组在最后一行增加逗号 trailingComma: 'es5', parser: 'typescript', }