jscs-dev / node-jscs

:arrow_heading_up: JavaScript Code Style checker (unmaintained)
https://jscs-dev.github.io
MIT License
4.97k stars 515 forks source link

Documentation for disallow returning array destructuring could be better. #2211

Closed bcowgill closed 8 years ago

bcowgill commented 8 years ago

An explanation why one would want to disallow it would aid the user in choosing whether to select it.

In general, I think the documentation would be more useful if it indicated whether the setting was a style issue or if there were other practical considerations.

For example, no commas at end of line is not just style, it can make it easier to spot missing commas and easier to reorder list items without generating syntax errors.

markelog commented 8 years ago

We only interesting in style concerns, if you have improvement in mind please send a pr