You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 space between arguments, but not between parentheses.
Break long ternary conditionals like this:
翻译如下:
尽量不使用分号
遵循JSDoc规范
使用两个空格做为字符缩进
(我不太确定这里的意思,是否是如下代码的意思,将变量分开定义)
// good wayvarvariable1="Hello World!";varvariable2="Testing...";varvariable3=42;// not recommend wayvarvariable1="Hello World!",variable2="Testing...",variable3=42;
vue pull request code style
持续关注vue 2.0(github vue-next 分支下的内容)
于是关注到 readme 中的 Pull Request Guidelines中关于代码风格的描述,原文如下:
翻译如下:
总结启示再使用eslint的时候以上的代码风格都是需要遵循的,所以这里看完后并没有太多严格的地方,最严格的在最后一句,读源代码,参考它原有的方式
The text was updated successfully, but these errors were encountered: