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/README.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,8 @@ This plugin allows us to check the `<template>` and `<script>` of `.vue` files w
15
15
ESLint editor integrations are useful to check your code in real-time.
16
16
17
17
:::warning Status of Vue.js 3.x supports
18
-
This plugin supports the basic syntax of Vue.js 3.0, but the Vue.js 3.0 experimental features `<script setup>` and `<style vars>` are not yet supported. Follow [#1248](https://github.com/vuejs/eslint-plugin-vue/issues/1248) for more details.
18
+
This plugin supports the basic syntax of Vue.js 3.0 and `<script setup>`, but the Vue.js 3.0 experimental feature CSS variable injection is not yet supported.
19
+
If you have issues with these, please also refer to the [FAQ](./user-guide/README.md#does-not-work-well-with-script-setup). If you can't find a solution, search for the issue and if the issue doesn't exist, open a new issue.
@@ -42,15 +42,15 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
42
42
|[vue/no-arrow-functions-in-watch](./no-arrow-functions-in-watch.md)| disallow using arrow functions to define watcher ||
43
43
|[vue/no-async-in-computed-properties](./no-async-in-computed-properties.md)| disallow asynchronous actions in computed properties ||
44
44
|[vue/no-deprecated-data-object-declaration](./no-deprecated-data-object-declaration.md)| disallow using deprecated object declaration on data (in Vue.js 3.0.0+) |:wrench:|
45
-
|[vue/no-deprecated-destroyed-lifecycle](./no-deprecated-destroyed-lifecycle.md)| disallow using deprecated `destroyed` and `beforeDestroy` lifecycle hooks (in Vue.js 3.0.0+) ||
45
+
|[vue/no-deprecated-destroyed-lifecycle](./no-deprecated-destroyed-lifecycle.md)| disallow using deprecated `destroyed` and `beforeDestroy` lifecycle hooks (in Vue.js 3.0.0+) |:wrench:|
46
46
|[vue/no-deprecated-dollar-listeners-api](./no-deprecated-dollar-listeners-api.md)| disallow using deprecated `$listeners` (in Vue.js 3.0.0+) ||
47
47
|[vue/no-deprecated-dollar-scopedslots-api](./no-deprecated-dollar-scopedslots-api.md)| disallow using deprecated `$scopedSlots` (in Vue.js 3.0.0+) |:wrench:|
48
48
|[vue/no-deprecated-events-api](./no-deprecated-events-api.md)| disallow using deprecated events api (in Vue.js 3.0.0+) ||
49
49
|[vue/no-deprecated-filter](./no-deprecated-filter.md)| disallow using deprecated filters syntax (in Vue.js 3.0.0+) ||
50
50
|[vue/no-deprecated-functional-template](./no-deprecated-functional-template.md)| disallow using deprecated the `functional` template (in Vue.js 3.0.0+) ||
51
51
|[vue/no-deprecated-html-element-is](./no-deprecated-html-element-is.md)| disallow using deprecated the `is` attribute on HTML elements (in Vue.js 3.0.0+) ||
52
52
|[vue/no-deprecated-inline-template](./no-deprecated-inline-template.md)| disallow using deprecated `inline-template` attribute (in Vue.js 3.0.0+) ||
53
-
|[vue/no-deprecated-props-default-this](./no-deprecated-props-default-this.md)| disallow props default function `this` access||
53
+
|[vue/no-deprecated-props-default-this](./no-deprecated-props-default-this.md)| disallow deprecated `this` access in props default function (in Vue.js 3.0.0+)||
54
54
|[vue/no-deprecated-scope-attribute](./no-deprecated-scope-attribute.md)| disallow deprecated `scope` attribute (in Vue.js 2.5.0+) |:wrench:|
55
55
|[vue/no-deprecated-slot-attribute](./no-deprecated-slot-attribute.md)| disallow deprecated `slot` attribute (in Vue.js 2.6.0+) |:wrench:|
56
56
|[vue/no-deprecated-slot-scope-attribute](./no-deprecated-slot-scope-attribute.md)| disallow deprecated `slot-scope` attribute (in Vue.js 2.6.0+) |:wrench:|
@@ -157,7 +157,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
157
157
|[vue/no-multiple-slot-args](./no-multiple-slot-args.md)| disallow to pass multiple arguments to scoped slots ||
158
158
|[vue/no-v-html](./no-v-html.md)| disallow use of v-html to prevent XSS attack ||
159
159
|[vue/order-in-components](./order-in-components.md)| enforce order of properties in components |:wrench:|
160
-
|[vue/this-in-template](./this-in-template.md)| disallow usage of `this` in template ||
160
+
|[vue/this-in-template](./this-in-template.md)| disallow usage of `this` in template |:wrench:|
Copy file name to clipboardExpand all lines: docs/rules/experimental-script-setup-vars.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ since: v7.0.0
9
9
10
10
> prevent variables defined in `<script setup>` to be marked as undefined
11
11
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"`.
12
+
-:warning: This rule was **deprecated**.
13
13
14
14
:::warning
15
15
This rule is an experimental rule. It may be removed without notice.
@@ -19,6 +19,10 @@ This rule will find variables defined in `<script setup="args">` and mark them a
19
19
20
20
This rule only has an effect when the `no-undef` rule is enabled.
21
21
22
+
:::warning
23
+
`<script setup="args">` syntax was rejected by Vue's RFC. Check out the [new syntax](https://github.com/vuejs/rfcs/blob/master/active-rfcs/0040-script-setup.md).
Copy file name to clipboardExpand all lines: docs/rules/no-deprecated-destroyed-lifecycle.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,13 @@ since: v7.0.0
10
10
> disallow using deprecated `destroyed` and `beforeDestroy` lifecycle hooks (in Vue.js 3.0.0+)
11
11
12
12
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/vue3-strongly-recommended"` and `"plugin:vue/vue3-recommended"`.
13
+
-:wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
13
14
14
15
## :book: Rule Details
15
16
16
17
This rule reports use of deprecated `destroyed` and `beforeDestroy` lifecycle hooks. (in Vue.js 3.0.0+).
description: disallow deprecated `v-is` directive (in Vue.js 3.1.0+)
6
+
since: v7.11.0
7
+
---
8
+
# vue/no-deprecated-v-is
9
+
10
+
> disallow deprecated `v-is` directive (in Vue.js 3.1.0+)
11
+
12
+
-:wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
13
+
14
+
## :book: Rule Details
15
+
16
+
This rule reports deprecated `v-is` directive in Vue.js v3.1.0+.
17
+
18
+
Use [`is` attribute with `vue:` prefix](https://v3.vuejs.org/api/special-attributes.html#is) instead.
description: disallow `export` in `<script setup>`
6
+
since: v7.13.0
7
+
---
8
+
# vue/no-export-in-script-setup
9
+
10
+
> disallow `export` in `<script setup>`
11
+
12
+
## :book: Rule Details
13
+
14
+
This rule warns ES module exports in `<script setup>`.
15
+
16
+
The previous version of `<script setup>` RFC used `export` to define variables used in templates, but the new `<script setup>` RFC has been updated to define without using `export`.
17
+
See [Vue RFCs - 0040-script-setup] for more details.
0 commit comments