oa_based/.prettierrc.cjs

12 lines
630 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module.exports = {
printWidth: 100, // 每行代码长度默认80
tabWidth: 2, // 每个tab相当于多少个空格默认2
useTabs: false, // 是否使用tab进行缩进默认false
singleQuote: true, // 使用单引号默认false
semi: true, // 声明结尾使用分号(默认true)
trailingComma: 'none', // 多行使用拖尾逗号默认none
bracketSpacing: true, // 对象字面量的大括号间使用空格默认true
arrowParens: 'avoid', // 只有一个参数的箭头函数的参数是否带圆括号默认avoid
endOfLine: 'auto', // 文件换行格式 LF/CRLF
};