JiangShan-web/.prettierrc.js
2025-05-22 16:20:13 +08:00

11 lines
433 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: 220,
singleQuote: true, // 使用单引号而不是双引号
semi: true, // 句尾是否加;
proseWrap: 'preserve',
tabWidth: 4,
trailingComma: 'es5', // 在对象或数组最后一个元素后面是否加逗号在ES5中加尾逗号
bracketSpacing: true, // 在对象,数组括号与文字之间加空格 "{ foo: bar }"
htmlWhitespaceSensitivity: 'ignore', // > 不乱换行
};