Files
qing-yu-club-front/.prettierrc.js
2023-10-06 22:43:22 +08:00

12 lines
725 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, // 一行的字符数,如果超过会进行换行
tabWidth: 2, // 一个tab代表几个空格数默认就是2
useTabs: false, // 是否启用tab取代空格符缩进.editorconfig设置空格缩进所以设置为false
semi: false, // 行尾是否使用分号默认为true
singleQuote: true, // 字符串是否使用单引号
trailingComma: 'none', // 对象或数组末尾是否添加逗号 none| es5| all
jsxSingleQuote: true, // 在jsx里是否使用单引号你看着办
bracketSpacing: true, // 对象大括号直接是否有空格默认为true效果{ foo: bar }
arrowParens: "avoid", // 箭头函数如果只有一个参数则省略括号
}