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

feat: Added rule objectTypeCurlySpacing #464

Merged
merged 5 commits into from
Feb 23, 2021

Conversation

angelica-bocanegra
Copy link
Contributor

@angelica-bocanegra angelica-bocanegra commented Feb 21, 2021

Added new rule objectTypeCurlySpacing that enforces consistent spacing inside braces of object types.

Options: never (default) or always

Never (default)

// Correct
type Y = {foo: "bar"};

// Incorrect
type N = { foo: "bar" };

Always

// Options: ["always"]
// Correct
type Y = { foo: "bar" };

// Incorrect
type N = {foo: "bar"};
type Z = {foo: "bar" };
type X = { foo: "bar"};

@gajus
Note:
Closes #146

@gajus gajus merged commit cd40053 into gajus:master Feb 23, 2021
@gajus
Copy link
Owner

gajus commented Feb 23, 2021

🎉 This PR is included in version 5.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Space after curly braces?
2 participants