1 Star 0 Fork 44

luzwales / vue-fabric-editor

forked from 秦少卫 / vue-fabric-editor 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.prettierrc.js 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
秦少卫 提交于 2023-02-16 22:49 . fix(build): 格式化导致无法打包
module.exports = {
printWidth: 100, // 指定代码长度,超出换行
tabWidth: 2, // tab 键的宽度
useTabs: false, // 不使用tab
semi: true, // 结尾加上分号
singleQuote: true, // 使用单引号
quoteProps: 'as-needed', // 要求对象字面量属性是否使用引号包裹,(‘as-needed’: 没有特殊要求,禁止使用,'consistent': 保持一致 , preserve: 不限制,想用就用)
jsxSingleQuote: false, // jsx 语法中使用单引号
trailingComma: 'es5', // 确保对象的最后一个属性后有逗号
bracketSpacing: true, // 大括号有空格 { name: 'rose' }
jsxBracketSameLine: false, // 在多行JSX元素的最后一行追加 >
arrowParens: 'always', // 箭头函数,单个参数添加括号
requirePragma: false, // 是否严格按照文件顶部的特殊注释格式化代码
insertPragma: false, // 是否在格式化的文件顶部插入Pragma标记,以表明该文件被prettier格式化过了
proseWrap: 'preserve', // 按照文件原样折行
htmlWhitespaceSensitivity: 'ignore', // html文件的空格敏感度,控制空格是否影响布局
endOfLine: 'auto', // 结尾是 \n \r \n\r auto
};
JavaScript
1
https://gitee.com/luzwales/vue-fabric-editor.git
git@gitee.com:luzwales/vue-fabric-editor.git
luzwales
vue-fabric-editor
vue-fabric-editor
main

搜索帮助