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/README.md
+14-13
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@ Rules in this category are enabled for all presets provided by eslint-plugin-vue
45
45
|[vue/multi-word-component-names](./multi-word-component-names.md)| require component names to be always multi-word ||:three::two::hammer:|
46
46
|[vue/no-arrow-functions-in-watch](./no-arrow-functions-in-watch.md)| disallow using arrow functions to define watcher ||:three::two::warning:|
47
47
|[vue/no-async-in-computed-properties](./no-async-in-computed-properties.md)| disallow asynchronous actions in computed properties ||:three::two::warning:|
48
+
|[vue/no-child-content](./no-child-content.md)| disallow element's child contents which would be overwritten by a directive like `v-html` or `v-text`|:bulb:|:three::two::warning:|
48
49
|[vue/no-computed-properties-in-data](./no-computed-properties-in-data.md)| disallow accessing computed properties in `data`. ||:three::two::warning:|
49
50
|[vue/no-custom-modifiers-on-v-model](./no-custom-modifiers-on-v-model.md)| disallow custom modifiers on v-model used on the component ||:two::warning:|
50
51
|[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:|:three::warning:|
@@ -69,27 +70,32 @@ Rules in this category are enabled for all presets provided by eslint-plugin-vue
69
70
|[vue/no-dupe-keys](./no-dupe-keys.md)| disallow duplication of field names ||:three::two::warning:|
70
71
|[vue/no-dupe-v-else-if](./no-dupe-v-else-if.md)| disallow duplicate conditions in `v-if` / `v-else-if` chains ||:three::two::warning:|
71
72
|[vue/no-duplicate-attributes](./no-duplicate-attributes.md)| disallow duplication of attributes ||:three::two::warning:|
72
-
|[vue/no-export-in-script-setup](./no-export-in-script-setup.md)| disallow `export` in `<script setup>`||:three::warning:|
73
+
|[vue/no-export-in-script-setup](./no-export-in-script-setup.md)| disallow `export` in `<script setup>`||:three::two::warning:|
|[vue/no-multiple-template-root](./no-multiple-template-root.md)| disallow adding multiple root nodes to the template ||:two::warning:|
75
77
|[vue/no-mutating-props](./no-mutating-props.md)| disallow mutation of component props ||:three::two::hammer:|
76
78
|[vue/no-parsing-error](./no-parsing-error.md)| disallow parsing errors in `<template>`||:three::two::warning:|
77
-
|[vue/no-ref-as-operand](./no-ref-as-operand.md)| disallow use of value wrapped by `ref()` (Composition API) as an operand |:wrench:|:three::hammer:|
79
+
|[vue/no-ref-as-operand](./no-ref-as-operand.md)| disallow use of value wrapped by `ref()` (Composition API) as an operand |:wrench:|:three::two::hammer:|
80
+
|[vue/no-reserved-component-names](./no-reserved-component-names.md)| disallow the use of reserved names in component definitions ||:three::two::hammer:|
|[vue/no-reserved-props](./no-reserved-props.md)| disallow reserved names in props ||:three::two::warning:|
80
-
|[vue/no-setup-props-destructure](./no-setup-props-destructure.md)| disallow destructuring of `props` passed to `setup`||:three::hammer:|
83
+
|[vue/no-setup-props-destructure](./no-setup-props-destructure.md)| disallow destructuring of `props` passed to `setup`||:three::two::hammer:|
81
84
|[vue/no-shared-component-data](./no-shared-component-data.md)| enforce component's data property to be a function |:wrench:|:three::two::warning:|
82
85
|[vue/no-side-effects-in-computed-properties](./no-side-effects-in-computed-properties.md)| disallow side effects in computed properties ||:three::two::warning:|
83
86
|[vue/no-template-key](./no-template-key.md)| disallow `key` attribute on `<template>`||:three::two::warning:|
84
87
|[vue/no-textarea-mustache](./no-textarea-mustache.md)| disallow mustaches in `<textarea>`||:three::two::warning:|
85
88
|[vue/no-unused-components](./no-unused-components.md)| disallow registering components that are not used inside templates ||:three::two::hammer:|
86
89
|[vue/no-unused-vars](./no-unused-vars.md)| disallow unused variable definitions of v-for directives or scope attributes |:bulb:|:three::two::hammer:|
90
+
|[vue/no-use-computed-property-like-method](./no-use-computed-property-like-method.md)| disallow use computed property like method ||:three::two::warning:|
87
91
|[vue/no-use-v-if-with-v-for](./no-use-v-if-with-v-for.md)| disallow use v-if on the same element as v-for ||:three::two::hammer:|
88
92
|[vue/no-useless-template-attributes](./no-useless-template-attributes.md)| disallow useless attribute on `<template>`||:three::two::warning:|
89
93
|[vue/no-v-for-template-key-on-child](./no-v-for-template-key-on-child.md)| disallow key of `<template v-for>` placed on child elements ||:three::warning:|
90
94
|[vue/no-v-for-template-key](./no-v-for-template-key.md)| disallow `key` attribute on `<template v-for>`||:two::warning:|
91
95
|[vue/no-v-model-argument](./no-v-model-argument.md)| disallow adding an argument to `v-model` used in custom component ||:two::warning:|
96
+
|[vue/no-v-text-v-html-on-component](./no-v-text-v-html-on-component.md)| disallow v-text / v-html on component ||:three::two::warning:|
|[vue/prefer-import-from-vue](./prefer-import-from-vue.md)| enforce import from 'vue' instead of import from '@vue/*' |:wrench:|:three::hammer:|
93
99
|[vue/require-component-is](./require-component-is.md)| require `v-bind:is` of `<component>` elements ||:three::two::warning:|
94
100
|[vue/require-prop-type-constructor](./require-prop-type-constructor.md)| require prop type to be a constructor |:wrench:|:three::two::hammer:|
95
101
|[vue/require-render-return](./require-render-return.md)| enforce render function to always return value ||:three::two::warning:|
@@ -98,10 +104,11 @@ Rules in this category are enabled for all presets provided by eslint-plugin-vue
98
104
|[vue/require-v-for-key](./require-v-for-key.md)| require `v-bind:key` with `v-for` directives ||:three::two::warning:|
99
105
|[vue/require-valid-default-prop](./require-valid-default-prop.md)| enforce props default values to be valid ||:three::two::hammer:|
100
106
|[vue/return-in-computed-property](./return-in-computed-property.md)| enforce that a return statement is present in computed property ||:three::two::warning:|
101
-
|[vue/return-in-emits-validator](./return-in-emits-validator.md)| enforce that a return statement is present in emits validator ||:three::warning:|
107
+
|[vue/return-in-emits-validator](./return-in-emits-validator.md)| enforce that a return statement is present in emits validator ||:three::two::warning:|
102
108
|[vue/use-v-on-exact](./use-v-on-exact.md)| enforce usage of `exact` modifier on `v-on`||:three::two::hammer:|
|[vue/no-child-content](./no-child-content.md)| disallow element's child contents which would be overwritten by a directive like `v-html` or `v-text`|:bulb:|:warning:|
220
226
|[vue/no-duplicate-attr-inheritance](./no-duplicate-attr-inheritance.md)| enforce `inheritAttrs` to be set to `false` when using `v-bind="$attrs"`||:hammer:|
221
227
|[vue/no-empty-component-block](./no-empty-component-block.md)| disallow the `<template>``<script>``<style>` block to be empty ||:hammer:|
|[vue/no-invalid-model-keys](./no-invalid-model-keys.md)| require valid keys in model option ||:warning:|
224
228
|[vue/no-multiple-objects-in-class](./no-multiple-objects-in-class.md)| disallow to pass multiple objects into array to class ||:hammer:|
225
229
|[vue/no-potential-component-option-typo](./no-potential-component-option-typo.md)| disallow a potential typo in your component property |:bulb:|:hammer:|
226
-
|[vue/no-reserved-component-names](./no-reserved-component-names.md)| disallow the use of reserved names in component definitions ||:hammer:|
227
230
|[vue/no-restricted-block](./no-restricted-block.md)| disallow specific block ||:hammer:|
228
231
|[vue/no-restricted-call-after-await](./no-restricted-call-after-await.md)| disallow asynchronously called restricted methods ||:hammer:|
229
232
|[vue/no-restricted-class](./no-restricted-class.md)| disallow specific classes in Vue components ||:warning:|
@@ -241,13 +244,10 @@ For example:
241
244
|[vue/no-unsupported-features](./no-unsupported-features.md)| disallow unsupported Vue.js syntax on the specified version |:wrench:|:hammer:|
|[vue/no-v-text-v-html-on-component](./no-v-text-v-html-on-component.md)| disallow v-text / v-html on component ||:warning:|
248
249
|[vue/no-v-text](./no-v-text.md)| disallow use of v-text ||:hammer:|
249
250
|[vue/padding-line-between-blocks](./padding-line-between-blocks.md)| require or disallow padding lines between blocks |:wrench:|:lipstick:|
250
-
|[vue/prefer-import-from-vue](./prefer-import-from-vue.md)| enforce import from 'vue' instead of import from '@vue/*' |:wrench:|:hammer:|
251
251
|[vue/prefer-prop-type-boolean-first](./prefer-prop-type-boolean-first.md)| enforce `Boolean` comes first in component prop types |:bulb:|:warning:|
252
252
|[vue/prefer-separate-static-class](./prefer-separate-static-class.md)| require static class names in template to be in a separate `class` attribute |:wrench:|:hammer:|
253
253
|[vue/prefer-true-attribute-shorthand](./prefer-true-attribute-shorthand.md)| require shorthand form attribute when `v-bind` value is `true`|:bulb:|:hammer:|
@@ -319,4 +319,5 @@ The following rules extend the rules provided by ESLint itself and apply them to
319
319
|[vue/experimental-script-setup-vars](./experimental-script-setup-vars.md)| (no replacement) |
Copy file name to clipboardExpand all lines: docs/rules/no-child-content.md
+1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ since: v8.1.0
9
9
10
10
> disallow element's child contents which would be overwritten by a directive like `v-html` or `v-text`
11
11
12
+
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
12
13
-:bulb: Some problems reported by this rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
Copy file name to clipboardExpand all lines: docs/rules/no-export-in-script-setup.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ since: v7.13.0
9
9
10
10
> disallow `export` in `<script setup>`
11
11
12
-
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/vue3-strongly-recommended"` and`"plugin:vue/vue3-recommended"`.
12
+
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`,`"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
Copy file name to clipboardExpand all lines: docs/rules/no-ref-as-operand.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ since: v7.0.0
9
9
10
10
> disallow use of value wrapped by `ref()` (Composition API) as an operand
11
11
12
-
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/vue3-strongly-recommended"` and`"plugin:vue/vue3-recommended"`.
12
+
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`,`"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
13
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.
Copy file name to clipboardExpand all lines: docs/rules/no-reserved-component-names.md
+2
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ since: v6.1.0
9
9
10
10
> disallow the use of reserved names in component definitions
11
11
12
+
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
13
+
12
14
## :book: Rule Details
13
15
14
16
This rule prevents name collisions between Vue components and standard HTML elements and built-in components.
Copy file name to clipboardExpand all lines: docs/rules/no-setup-props-destructure.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ since: v7.0.0
9
9
10
10
> disallow destructuring of `props` passed to `setup`
11
11
12
-
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/vue3-strongly-recommended"` and`"plugin:vue/vue3-recommended"`.
12
+
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`,`"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
Copy file name to clipboardExpand all lines: docs/rules/no-use-computed-property-like-method.md
+2
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ since: v7.15.0
9
9
10
10
> disallow use computed property like method
11
11
12
+
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
13
+
12
14
## :book: Rule Details
13
15
14
16
This rule disallows to use computed property like method.
Copy file name to clipboardExpand all lines: docs/rules/no-v-text-v-html-on-component.md
+2
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ since: v8.4.0
9
9
10
10
> disallow v-text / v-html on component
11
11
12
+
-:gear: This rule is included in all of `"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
+
12
14
## :book: Rule Details
13
15
14
16
This rule disallows the use of v-text / v-html on component.
Copy file name to clipboardExpand all lines: docs/rules/prefer-import-from-vue.md
+1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ since: v8.5.0
9
9
10
10
> enforce import from 'vue' instead of import from '@vue/*'
11
11
12
+
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/vue3-strongly-recommended"` and `"plugin:vue/vue3-recommended"`.
12
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.
Copy file name to clipboardExpand all lines: docs/rules/return-in-emits-validator.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ since: v7.0.0
9
9
10
10
> enforce that a return statement is present in emits validator
11
11
12
-
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/vue3-strongly-recommended"` and`"plugin:vue/vue3-recommended"`.
12
+
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`,`"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
Copy file name to clipboardExpand all lines: docs/rules/valid-define-emits.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ since: v7.13.0
9
9
10
10
> enforce valid `defineEmits` compiler macro
11
11
12
-
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/vue3-strongly-recommended"` and`"plugin:vue/vue3-recommended"`.
12
+
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`,`"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
13
13
14
14
This rule checks whether `defineEmits` compiler macro is valid.
Copy file name to clipboardExpand all lines: docs/rules/valid-define-props.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ since: v7.13.0
9
9
10
10
> enforce valid `defineProps` compiler macro
11
11
12
-
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/vue3-strongly-recommended"` and`"plugin:vue/vue3-recommended"`.
12
+
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`,`"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
13
13
14
14
This rule checks whether `defineProps` compiler macro is valid.
0 commit comments