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

Space around Destructuring assignment braces? #2242

Closed
avanderhoorn opened this issue Feb 26, 2017 · 3 comments
Closed

Space around Destructuring assignment braces? #2242

avanderhoorn opened this issue Feb 26, 2017 · 3 comments

Comments

@avanderhoorn
Copy link

This may already exist but I can't seem to find it, how would I enforce putting spaces on the inside of the braces in destructuring assignment?

const {resize} = state.requests; // current
vs
const { resize } = state.requests; // wanted
@KurtPreston
Copy link

It looks like in eslint, this is the object-curly-spacing rule:
http://eslint.org/docs/rules/object-curly-spacing

Though it isn't supported by tslint natively, it does look like the tslint-eslint-rules project has added support for it:
https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/objectCurlySpacingRule.md

@RichardMisiak
Copy link

RichardMisiak commented Sep 26, 2017

Are there any plans to add this to tslint natively?
The absence of this rule also affects object literal declaration

@adidahiya
Copy link
Contributor

duplicate of #1044

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

4 participants