1 Star 0 Fork 49

zqm2016 / mfish-nocode-view

forked from mfish / mfish-nocode-view 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
prettier.config.js 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
mfish 提交于 2023-06-15 16:48 . feat: 按照prettier格式化代码
module.exports = {
printWidth: 120,
semi: true, //句末使用分号
vueIndentScriptAndStyle: true, //不对vue中的script及style标签缩进
singleQuote: false, //是否使用单引号
trailingComma: "none", //all 多行最后带逗号 none不要最后逗号
proseWrap: "never",
htmlWhitespaceSensitivity: "strict", //对HTML全局空白不敏感
endOfLine: "auto", //结束行形式
// tabWidth: 2, //缩进长度
useTabs: false, //使用空格代替tab缩进
quoteProps: "as-needed", //仅在必需时为对象的key添加引号
jsxSingleQuote: true, // jsx中使用单引号
bracketSpacing: true, //在对象前后添加空格-eg: { foo: bar }
// jsxBracketSameLine: true, //多属性html标签的‘>’折行放置
// arrowParens: 'always', //单参数箭头函数参数周围使用圆括号-eg: (x) => x
requirePragma: false, //无需顶部注释即可格式化
// insertPragma: false, //在已被prettier格式化的文件顶部加上标注
embeddedLanguageFormatting: "auto", //对引用代码进行格式化
plugins: ["prettier-plugin-packagejson"]
};
TypeScript
1
https://gitee.com/zqm2016/mfish-nocode-view.git
git@gitee.com:zqm2016/mfish-nocode-view.git
zqm2016
mfish-nocode-view
mfish-nocode-view
main

搜索帮助