smocean / eslint-zh

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

Better: docs/rules/comma-style #58

Open chengsong-cs opened 8 years ago

chengsong-cs commented 8 years ago

docs/rules/comma-style

This option requires that the comma be placed before and be in the same line as the variable declaration, object property and array element. 对于变量声明,对象属性和数组元素这些情况,该选项要求逗号放置在声明前面,并且与声明处于同一行。

molee1905 commented 8 years ago

可以查看给出的例子,原始翻译“该选项要求逗号放置在变量声明,对象属性和数组元素之前并且在同一行。”更合适