You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/prefer-use-template-ref.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,16 @@ since: v9.31.0
10
10
11
11
> require using `useTemplateRef` instead of `ref`/`shallowRef` for template refs
12
12
13
+
-:wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fix-problems) can automatically fix some of the problems reported by this rule.
14
+
13
15
## :book: Rule Details
14
16
15
17
Vue 3.5 introduced a new way of obtaining template refs via
16
18
the [`useTemplateRef()`](https://vuejs.org/guide/essentials/template-refs.html#accessing-the-refs) API.
17
19
18
20
This rule enforces using the new `useTemplateRef` function instead of `ref`/`shallowRef` for template refs.
0 commit comments