美文网首页
.prettierrc 代码格式化配置

.prettierrc 代码格式化配置

作者: 梁同桌 | 来源:发表于2018-05-29 15:11 被阅读68次
{
  "printWidth": 100, //每行最多多少个字符换行
  "singleQuote": true, //单引号
  "trailingComma": "es5", // 对象属性最后有 "," 
  "semi":true //是否需要分号
}

trailingComma,最后 b : 2 后面是否有“,”

{
a:1,
b:2,
}

相关文章

网友评论

      本文标题:.prettierrc 代码格式化配置

      本文链接:https://www.haomeiwen.com/subject/odcajftx.html