Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

space-within-parens should allow exceptions #3489

Closed
mmakrzem opened this issue Nov 15, 2017 · 2 comments
Closed

space-within-parens should allow exceptions #3489

mmakrzem opened this issue Nov 15, 2017 · 2 comments

Comments

@mmakrzem
Copy link

I should be allowed to specify that I want a space inside parentheses but no space if there is nothing being passed in. ie:

Foo( 2 ); //good
Bar(); //also good

as it is now, I have to place a space inside the second case. ie Bar( ); //boo I don't want to have to insert a space between the empty parentheses

See how eslint handles spaces inside parentheses here: https://eslint.org/docs/rules/space-in-parens

@ajafff
Copy link
Contributor

ajafff commented Nov 16, 2017

I'd like to limit the scope to always allow '()' if there is nothing between the parens.
Exceptions like in ESLint can be implemented later on.

@ajafff
Copy link
Contributor

ajafff commented Dec 2, 2017

Fixed by #3513

@ajafff ajafff closed this as completed Dec 2, 2017
@ajafff ajafff added this to the TSLint v5.9 milestone Dec 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants