ahdevicemgt-ui/prettier.config.js

12 lines
860 B
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 = {
tabWidth: 4, // 每行缩进 默认为2 这里设置4
semi: false, // 是否在语句末尾添加分号
vueIndentScriptAndStyle: false, // 控制 Vue 文件的 <script> 和 <style> 标签下的代码是否需要缩进s
singleQuote: true, // 是否使用单引号而不是双引号,‌默认值为 false
trailingComma: 'all', // 控制是否在多行表达式末尾添加尾逗号,‌可选值有 none、es5仅在对象、数组字面量中添加尾逗号以兼容 ES5或 all在对象、数组字面量末尾添加尾逗号
proseWrap: 'never',
htmlWhitespaceSensitivity: 'strict',
endOfLine: 'auto',
arrowParens: 'avoid' // 控制单参数的箭头函数是否需要括号,‌可选值有 avoid省略括号或 always始终使用括号
}