当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 0

花夏 / vue-generator
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
prettier.config.js 1009 Bytes
一键复制 编辑 原始数据 按行查看 历史
花夏 提交于 2019-06-19 13:42 . style: 统一代码格式
module.exports = {
printWidth: 120,
// tab缩进大小,默认为2
tabWidth: 4,
// 使用tab缩进,默认false
// useTabs: true,
// 使用分号, 默认true
// semi: false,
// 使用单引号, 默认false(在jsx中配置无效, 默认都是双引号)
singleQuote: true,
// 行尾逗号,默认none,可选 none|es5|all
// es5 包括es5中的数组、对象
// all 包括函数对象等所有可选
trailingComma: 'none',
// 对象中的空格 默认true
// true: { foo: bar }
// false: {foo: bar}
// bracketSpacing: true,
// JSX标签闭合位置 默认false
// false: <div
// className=""
// style={{}}
// >
// true: <div
// className=""
// style={{}} >
jsxBracketSameLine: true,
// 箭头函数参数括号 默认avoid 可选 avoid| always
// avoid 能省略括号的时候就省略 例如x => x
// always 总是有括号
arrowParens: 'avoid'
};
JavaScript
1
https://gitee.com/huarxia/vue-generator.git
git@gitee.com:huarxia/vue-generator.git
huarxia
vue-generator
vue-generator
master

搜索帮助