Open DavidDong93 opened 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. 另一方面,拖尾逗号简化了对象和数组元素的添加和删除,因为仅有你要修改的行是必须得到触及的。
This rule enforces consistent use of trailing commas in object and array literals 这个规则强制要求在对象和数组字面量中使用一致的拖尾逗号
[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. 另一方面,拖尾逗号简化了对象和数组元素的添加和删除,因为仅有你要修改的行是必须得到触及的。