Files
KnowStreaming/km-console/.prettierrc.js
2022-08-18 17:04:05 +08:00

10 lines
547 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": 140, // 指定代码长度,超出换行
"tabWidth": 2, // tab 键的宽度
"semi": true, // 结尾加上分号
"trailingComma": "es5", // 确保对象的最后一个属性后有逗号
singleQuote: true,
"bracketSpacing": true, // 大括号有空格 { name: 'rose' }
"insertPragma": false, // 是否在格式化的文件顶部插入Pragma标记以表明该文件被prettier格式化过了
"htmlWhitespaceSensitivity": "ignore", // html文件的空格敏感度控制空格是否影响布局
}