Skip to content

vue/no-literals-in-template: not relevant for Vue 3? #3014

@andreww2012

Description

@andreww2012

I was considering adopting this newly added rule; however, the documentation currently references only a single 10 years ago issue as its justification.

I attempted to verify whether the problem described there is still relevant.

I re-created the reproduction that was provided by that issue's author initially with Vue 3, but I wasn't unable to reproduce. I then copied the same setup and adjusted a few things for Vue 2, and in this case the issue was still reproducible.

I am wondering if this problem is no longer relevant for Vue 3 and this rule should be considered Vue 2 only?

Reproductions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions