1 Star 0 Fork 0

笑心/message-board-web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.prettierrc.cjs 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
笑心 提交于 1年前 . 完成了基本配置
module.exports = {
printWidth: 120, //单行长度
tabWidth: 4, //缩进长度
useTabs: false, //使用空格代替tab缩进
semi: true, //句末使用分号
singleQuote: false, //不使用单引号
quoteProps: "as-needed", //仅在必需时为对象的key添加引号
jsxSingleQuote: true, // jsx中使用单引号
trailingComma: "all", //多行时尽可能打印尾随逗号
bracketSpacing: true, //在对象前后添加空格-eg: { foo: bar }
jsxBracketSameLine: true, //多属性html标签的‘>’折行放置
arrowParens: "always", //单参数箭头函数参数周围使用圆括号-eg: (x) => x
requirePragma: false, //无需顶部注释即可格式化
insertPragma: false, //在已被preitter格式化的文件顶部加上标注
proseWrap: "preserve", //不知道怎么翻译
htmlWhitespaceSensitivity: "ignore", //对HTML全局空白不敏感
vueIndentScriptAndStyle: false, //不对vue中的script及style标签缩进
endOfLine: "lf", //结束行形式
embeddedLanguageFormatting: "auto", //对引用代码进行格式化
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/smiling-heart/message-board-web.git
git@gitee.com:smiling-heart/message-board-web.git
smiling-heart
message-board-web
message-board-web
develop

搜索帮助