pageClass | sidebarDepth | title | description |
---|---|---|---|
rule-details |
0 |
vue/no-use-computed-property-like-method |
disallow use computed property like method |
disallow use computed property like method
This rule disallows to use computed property like method.
<template>
<div>
</div>
</template>
<script>
export default {
props: {
name: {
type: String
},
},
computed: {
isExpectedName() {
return this.name === 'name';
}
},
methods: {
getName() {
return this.isExpectedName
},
getNameCallLikeMethod() {
return this.isExpectedName()
}
}
}
</script>
Nothing.