Skip to content

vue/return-in-computed-property ​

Every computed property must return a value

PropertyValue
CategoryCorrectness
Default Severityerror
Confidencehigh
FixableNo
Engineeslint-template
Sincev1.0.0
Frameworksvue, nuxt

Why it matters ​

Every computed property must return a value

How to fix ​

Review the finding and update the code according to best practices below.

Agent Guidance ​

Return a value on every code path of the computed getter.


Rule source: vue/return-in-computed-property

Released under the MIT License.