Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Space after curly braces? #146

Closed
arv opened this issue Oct 25, 2016 · 6 comments · Fixed by #464
Closed

Space after curly braces? #146

arv opened this issue Oct 25, 2016 · 6 comments · Fixed by #464

Comments

@arv
Copy link

arv commented Oct 25, 2016

Is there a rule that controls whether a space is allowed or not after an object type annotation?

type T1 = { a: number };
// vs
type T2 = {a: number};
@thealjey
Copy link

@arv object-curly-spacing from eslint-plugin-babel

{
  "babel/object-curly-spacing": [2, "never"]
}

For additional info on options refer to object-curly-spacing - Rules - ESLint

@gajus
Copy link
Owner

gajus commented Feb 27, 2017

@thealjey that doesn't cover types, does it?

@thealjey
Copy link

@gajus oh, yep, you're right. It does not, sorry.

@simlu
Copy link

simlu commented Apr 11, 2018

Is this planned? What would be required? Creating a new rule?

@gajus
Copy link
Owner

gajus commented May 18, 2020

Closing as stale. PR is welcome.

@gajus
Copy link
Owner

gajus commented Feb 23, 2021

🎉 This issue has been resolved in version 5.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gajus gajus added the released label Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants