-
Notifications
You must be signed in to change notification settings - Fork 887
key-spacing #991
Comments
This would be best as an enhancement to the |
Looking forward |
This is pretty old, and a strange feature since we already have a rule disallowing trailing whitespace. Going to close, feel free to re-open/make a new issue if you disagree. |
@johnwiseheart, how can the rule requested by @jamiewinder be enforced with currently available rules? |
@adanski @jamiewinder Looks like this cannot be done by the built-in rules alone. So I wrote whitespace-before-colon rule which complements those rules, and which checks spaces before colons in object literals and destructuring assignments. |
I'd like to have this feature. @xemlock's solution was declined, but any progress on @adidahiya's proposed solution? |
@NoBrainer See #4534, at this point basically all formatting-related features/enhancements will be declined. |
Unless I'm missing something, there is no way to enforce whitespace after a property key in an object literal:
I think this is covered in ESLint by key-spacing
The text was updated successfully, but these errors were encountered: