web-base-admin-h5/.prettierrc.js

14 lines
852 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: 80, // 每行代码长度默认80
tabWidth: 2, // 每个tab相当于多少个空格默认2
useTabs: false, // 是否使用tab进行缩进默认false
singleQuote: true, // 使用单引号默认false
semi: true, // 声明语句后加分号默认true
trailingComma: 'es5', // 多行使用拖尾逗号默认none
bracketSpacing: true, // 对象字面量的大括号间使用空格默认true
arrowParens: 'always', // 箭头函数参数始终显示括号
// jsxBracketSameLine: false, // JSX标签的反尖括号保持在上一行默认false- Vue项目中通常不直接写JSX但可保留
vueIndentScriptAndStyle: true, // script和style标签内是否缩进 (默认false)
endOfLine: 'lf', // 文件末尾换行符 (可选 'auto', 'lf', 'crlf', 'cr')
};