Skip to content

Spacing in curly brackets #150

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

Closed
privatenumber opened this issue Aug 13, 2017 · 2 comments
Closed

Spacing in curly brackets #150

privatenumber opened this issue Aug 13, 2017 · 2 comments

Comments

@privatenumber
Copy link
Contributor

Please describe what the rule should do:
Enforce spacing on the style of curly brackets

What category of rule is this? (place an "X" next to just one item)

[x] Enforces code style
[ ] Warns about a potential error
[ ] Suggests an alternate way of doing something
[ ] Other (please specify:)

Provide 2-3 code examples that this rule will warn about:

<template>
     <div>
          {{text}}
     </div>
</template>
<template>
     <div>
          {{ text }}
     </div>
</template>
@mysticatea
Copy link
Member

Thank you for this proposal!

Sounds good to me.

@armano2
Copy link
Contributor

armano2 commented Aug 13, 2017

I think we should consider adding 2 options: always and never

curly-bracket-spacing: ['error', 'always|never']

armano2 added a commit to armano2/eslint-plugin-vue that referenced this issue Aug 13, 2017
armano2 added a commit to armano2/eslint-plugin-vue that referenced this issue Aug 14, 2017
@michalsnik michalsnik added this to the Official release milestone Aug 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants