Skip to content

Rule proposition: return-in-computed-property. #75

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
armano2 opened this issue Jul 14, 2017 · 1 comment
Closed

Rule proposition: return-in-computed-property. #75

armano2 opened this issue Jul 14, 2017 · 1 comment

Comments

@armano2
Copy link
Contributor

armano2 commented Jul 14, 2017

Enforces that a return statement is present in computed property (computed-property-return)

This example would throw an error:

export default {
  computed: {
    a () { }
  }
}

What do you think @mysticatea @michalsnik?

@armano2 armano2 changed the title Rule proposition: no-empty-computed-properties. Rule proposition: computed-property-return. Jul 14, 2017
@armano2 armano2 changed the title Rule proposition: computed-property-return. Rule proposition: return-in-computed-property. Jul 17, 2017
@michalsnik
Copy link
Member

Released in v3.7.0 🚀 Thanks @armano2 ! Very good job :)

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

2 participants