Skip to content

Add support for useTemplateRef to vue/no-unsupported-features #2583

@FloEdelmann

Description

@FloEdelmann

What rule do you want to change?
vue/no-unsupported-features

Does this change cause the rule to produce more or fewer warnings?
More

How will the change be implemented? (New option, new default behavior, etc.)?
New default behavior + new ignores option.

Please provide some example code that this change will affect:

import { useTemplateRef } from 'vue'

const button = useTemplateRef('button')

What does the rule currently do for this code?
Nothing.

What will the rule do after it's changed?
Report an error if Vue version is < 3.5, do nothing if Vue version is >= 3.5.

Additional context
See https://blog.vuejs.org/posts/vue-3-5#usetemplateref

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