vue2.0 项目风格基础模板
https://prettier.io/docs/en/options.html#single-attribute-per-line
常用配置:
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"endOfLine": "lf",
"singleAttributePerLine": true,
"vueIndentScriptAndStyle": true
}
https://vuejs.github.io/vetur/guide/formatting.html#settings
常见问题:
常用配置:
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"endOfLine": "lf",
"singleAttributePerLine": true
}
关于vetur配置与prittier冲突,只需要将两者配置保持一致即可,prittier官网都有对应的配置可以与vetur保持一致