Skip to content

Rule proposal: no-implicit-parent-communication #257

Open
@michalsnik

Description

@michalsnik

Style guide:
https://vuejs.org/v2/style-guide/#Implicit-parent-child-communication-use-with-caution

Description:
This rule would disallow usage of this.$parent in vue components. It is recommend to use props instead.

There are few cases when it's better to use this.$parent though, but it's better to make a conscious decision after seeing a warning than directly relying on parent.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions