Open gibson042 opened 8 years ago
Excluding spaces from inside expression parentheses, especially in loop-statement assignments, has historically been common in jQuery—and used intentionally to visually distinguish expression parentheses from statement parentheses—but was prohibited by https://github.com/jscs-dev/node-jscs/commit/0f78baf08fba75aeba4575608aaa08c384875701 in response to #104 (which was removing our complicated function-call exceptions).
Since that time, JSCS has added an ignoreParenthesizedExpression option to requireSpacesInsideParentheses. We should adopt it and update the style guide accordingly.
ignoreParenthesizedExpression
:+1: for what it's worth from someone who rarely gets to write code anymore :smile:
I'm strongly for this as well.
Excluding spaces from inside expression parentheses, especially in loop-statement assignments, has historically been common in jQuery—and used intentionally to visually distinguish expression parentheses from statement parentheses—but was prohibited by https://github.com/jscs-dev/node-jscs/commit/0f78baf08fba75aeba4575608aaa08c384875701 in response to #104 (which was removing our complicated function-call exceptions).
Since that time, JSCS has added an
ignoreParenthesizedExpression
option to requireSpacesInsideParentheses. We should adopt it and update the style guide accordingly.