Skip to content

Issue in return-in-computed-property & require-render-return #130

Closed
@armano2

Description

@armano2

I tried to test new rules in one of my big projects and i have few false positive errors in case when there is CodePath/Function inside with no return.

Affected rules:

  • return-in-computed-property
  • require-render-return

Example of false positive error:

export default {
  computed: {
    foo () {
      const options = []
      this.matches.forEach((match) => {
        options.push(match)
      })
      return options
    }
  }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions