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/script-setup-uses-vars.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@ pageClass: rule-details
3
3
sidebarDepth: 0
4
4
title: vue/script-setup-uses-vars
5
5
description: prevent `<script setup>` variables used in `<template>` to be marked as unused
6
+
since: v7.13.0
6
7
---
7
8
# vue/script-setup-uses-vars
8
9
9
10
> prevent `<script setup>` variables used in `<template>` to be marked as unused
10
11
11
-
-:exclamation: <badgetext="This rule has not been released yet."vertical="middle"type="error"> ***This rule has not been released yet.*** </badge>
12
12
-:gear: This rule is included in all of `"plugin:vue/base"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-essential"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/recommended"` and `"plugin:vue/vue3-recommended"`.
13
13
14
14
ESLint `no-unused-vars` rule does not detect variables in `<script setup>` used in `<template>`.
@@ -58,6 +58,10 @@ If you are not using `<script setup>` or if you do not use the `no-unused-vars`
0 commit comments