Ai
1 Star 1 Fork 1

Yahane/uni-vue3-ts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.prettierrc.js 890 Bytes
一键复制 编辑 原始数据 按行查看 历史
Yahane 提交于 2023-12-25 11:33 +08:00 . 初始化项目
module.exports = {
// 参考文档:https://www.prettier.cn/docs/options.html
// 换行长度
printWidth: 150,
// 指定每个缩进级别的空格数
tabWidth: 2,
// 使用制表符而不是空格缩进行
useTabs: true,
// 在语句末尾是否需要分号
semi: true,
// 是否使用单引号
singleQuote: true,
// 更改引用对象属性的时间 可选值"<as-needed|consistent|preserve>"
quoteProps: 'as-needed',
// 多行时尽可能打印尾随逗号, 可选值"<none|es5|all>",默认none
trailingComma: 'es5',
// 在对象文字中的括号之间打印空格
bracketSpacing: true,
// 在单独的箭头函数参数周围包括括号 always要,avoid不要
arrowParens: 'always',
// 这两个选项可用于格式化以给定字符偏移量(分别包括和不包括)开始和结束的代码
rangeStart: 0,
// 换行符使用 lf
endOfLine: 'lf',
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yahane/uni-vue3.git
git@gitee.com:yahane/uni-vue3.git
yahane
uni-vue3
uni-vue3-ts
master

搜索帮助