alioth/before/pac-auth/.prettierrc.js
2025-05-30 09:18:01 +08:00

15 lines
692 B
JavaScript
Raw Permalink 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: 160, // 每行代码的最大长度
tabWidth: 4, // 每个缩进级别的空格数用来覆盖默认的2个空格
useTabs: false, // 使用空格而不是制表符进行缩进
semi: true, // 语句末尾使用分号
singleQuote: true, // 使用单引号
quoteProps: 'consistent', // 对象字面量属性名的引号风格
trailingComma: 'all', // 行尾逗号
bracketSpacing: true, // 对象字面量属性后使用空格
jsxBracketSameLine: false, // JSX 标签的闭括号放在下一行
arrowParens: 'always', // 箭头函数参数括号
proseWrap: 'preserve', // 保持文本换行
endOfLine: 'auto', // 换行符自动处理
};