1 Star 1 Fork 0

un / wit-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
prettier.config.js 711 Bytes
一键复制 编辑 原始数据 按行查看 历史
Flyingsnail 提交于 2022-01-28 18:03 . init: 模板初始化
// https://prettier.io/docs/en/configuration.html
module.exports = {
// 每一行的宽度(显示的字符数)
printWidth: 120,
// tab健的空格数
tabWidth: 2,
// 是否在对象中的括号之间打印空格,{a:5}格式化为{ a: 5 }
bracketSpacing: true,
// 箭头函数的参数无论有几个,都要括号包裹
arrowParens: 'always',
// 换行符的使用
endOfLine: 'lf',
// 是否用单引号, 项目中全部使用单引号
singleQuote: true,
// 对象或者数组的最后一个元素后面是否要加逗号
trailingComma: 'all',
// 是否加分号,项目中统一加分号
semi: true,
// 是否使用tab格式化: 不使用
useTabs: false,
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/taiping520/wit-admin.git
git@gitee.com:taiping520/wit-admin.git
taiping520
wit-admin
wit-admin
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891