You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Perhaps a rule to complain about the parenthesis? To me, it looks like the writer might not have understood that they're unnecessary in those situations.
It should probably ignore expressions across lines, since some folks prefer parenthesis to make multiline expressions more clear.
The text was updated successfully, but these errors were encountered:
JoshuaKGoldberg
changed the title
[Rule request] Flag unnecessary parenthesis in
[Rule request] Flag unnecessary parenthesis
Dec 11, 2017
#3238 tried to add a configurable rule for that use case. It was rejected, because the configuration was not really understandable for someone not familiar with typescript internals.
Banning all unnecessary parens on the other hand is a bit too much.
I think this falls under the category of formatting rules I mentioned in #3592. As such, I don't think we should invest effort in it in core TSLint rules.
Perhaps a rule to complain about the parenthesis? To me, it looks like the writer might not have understood that they're unnecessary in those situations.
It should probably ignore expressions across lines, since some folks prefer parenthesis to make multiline expressions more clear.
The text was updated successfully, but these errors were encountered: