Merge pull request #652 from strburst/link-comma-dangle

[docs] Link newer ESLint rule (no-comma-dangle → comma-dangle)
This commit is contained in:
Jordan Harband
2016-01-01 09:16:48 -08:00

View File

@@ -1774,7 +1774,7 @@ Other Style Guides
- [19.2](#19.2) <a name='19.2'></a> Additional trailing comma: **Yup.**
eslint rules: [`no-comma-dangle`](http://eslint.org/docs/rules/no-comma-dangle.html).
eslint rules: [`comma-dangle`](http://eslint.org/docs/rules/comma-dangle.html).
> Why? This leads to cleaner git diffs. Also, transpilers like Babel will remove the additional trailing comma in the transpiled code which means you don't have to worry about the [trailing comma problem](es5/README.md#commas) in legacy browsers.