oms-erp/front-end/.prettierrc.js
2022-06-20 19:05:29 +08:00

14 lines
762 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 = {
endOfLine: 'auto', //换行 自动
printWidth: 100, // 每行代码长度默认80
singleQuote: true, // 使用单引号默认false
tabWidth: 2, //缩进
useTabs: false, // 是否使用tab进行缩进默认false
trailingComma: 'all', // 多行使用拖尾逗号默认none
semi: true, // 声明结尾使用分号(默认true)
bracketSpacing: true, // 对象字面量的大括号间使用空格默认true
jsxBracketSameLine: false, // 多行JSX中的>放置在最后一行的结尾而不是另起一行默认false
jsxSingleQuote: true, // 在jsx中使用单引号代替双引号
arrowParens: 'avoid', // 只有一个参数的箭头函数的参数是否带圆括号默认avoid
};