smocean / eslint-zh

ESLint 中文网站
http://eslint.cn
MIT License
21 stars 17 forks source link

Better:docs/rules/comma-dangle #52

Open DavidDong93 opened 8 years ago

DavidDong93 commented 8 years ago

[docs/rules/comma-dangle]

On the other hand, trailing commas simplify adding and removing items to objects and arrays,since only the lines you are modifying must be touched. 另一方面,拖尾逗号简化了对象和数组元素的添加和删除,因为仅有你要修改的行是必须得到触及的

DavidDong93 commented 8 years ago

This rule enforces consistent use of trailing commas in object and array literals 这个规则强制要求在对象和数组字面量中使用一致的拖尾逗号