This repository has been archived by the owner on Jun 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
space-in-parens exception allows for no space before closing paren #34
Comments
Similarly:
gets changed to:
|
I checked the rule in eslint docs. It says, // Examples of correct code for this rule with the "always", { "exceptions": ["{}", "[]"] }] option:
/*eslint space-in-parens: ["error", "always", { "exceptions": ["{}", "[]"] }]*/
bar({bar:'baz'});
baz( 1, [1,2]); // <-- Notice the space here
foo({bar: 'baz'}, [1, 2]); I guess the rule simply means, there should be space inside parens, until it is followed or preceded by any of these combinations IMO for the "space-in-parens": ["error", "always", { "exceptions": ["empty"] }] To disallow space for empty parens. Thoughts @ntwb |
Still happening with eslint 5.0.1. |
paulschreiber
pushed a commit
to paulschreiber/eslint-config-wordpress
that referenced
this issue
Jul 6, 2018
kasparsd
added a commit
to kasparsd/contact-form-7-extras
that referenced
this issue
Jul 28, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The current
space-in-parens
rule is:gives you code like
instead of the expected
I'm not sure if this is an eslint bug, or a ruleset bug. What do you think?
The text was updated successfully, but these errors were encountered: