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
+15-11
Original file line number
Diff line number
Diff line change
@@ -39,8 +39,10 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
39
39
40
40
| Rule ID | Description ||
41
41
|:--------|:------------|:---|
42
+
|[vue/multi-word-component-names](./multi-word-component-names.md)| require component names to be always multi-word ||
42
43
|[vue/no-arrow-functions-in-watch](./no-arrow-functions-in-watch.md)| disallow using arrow functions to define watcher ||
43
44
|[vue/no-async-in-computed-properties](./no-async-in-computed-properties.md)| disallow asynchronous actions in computed properties ||
45
+
|[vue/no-computed-properties-in-data](./no-computed-properties-in-data.md)| disallow accessing computed properties in `data`. ||
44
46
|[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
47
|[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
48
|[vue/no-deprecated-dollar-listeners-api](./no-deprecated-dollar-listeners-api.md)| disallow using deprecated `$listeners` (in Vue.js 3.0.0+) ||
@@ -51,16 +53,19 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
51
53
|[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
54
|[vue/no-deprecated-inline-template](./no-deprecated-inline-template.md)| disallow using deprecated `inline-template` attribute (in Vue.js 3.0.0+) ||
53
55
|[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+) ||
56
+
|[vue/no-deprecated-router-link-tag-prop](./no-deprecated-router-link-tag-prop.md)| disallow using deprecated `tag` property on `RouterLink` (in Vue.js 3.0.0+) ||
54
57
|[vue/no-deprecated-scope-attribute](./no-deprecated-scope-attribute.md)| disallow deprecated `scope` attribute (in Vue.js 2.5.0+) |:wrench:|
55
58
|[vue/no-deprecated-slot-attribute](./no-deprecated-slot-attribute.md)| disallow deprecated `slot` attribute (in Vue.js 2.6.0+) |:wrench:|
56
59
|[vue/no-deprecated-slot-scope-attribute](./no-deprecated-slot-scope-attribute.md)| disallow deprecated `slot-scope` attribute (in Vue.js 2.6.0+) |:wrench:|
57
60
|[vue/no-deprecated-v-bind-sync](./no-deprecated-v-bind-sync.md)| disallow use of deprecated `.sync` modifier on `v-bind` directive (in Vue.js 3.0.0+) |:wrench:|
61
+
|[vue/no-deprecated-v-is](./no-deprecated-v-is.md)| disallow deprecated `v-is` directive (in Vue.js 3.1.0+) |:wrench:|
58
62
|[vue/no-deprecated-v-on-native-modifier](./no-deprecated-v-on-native-modifier.md)| disallow using deprecated `.native` modifiers (in Vue.js 3.0.0+) ||
59
63
|[vue/no-deprecated-v-on-number-modifiers](./no-deprecated-v-on-number-modifiers.md)| disallow using deprecated number (keycode) modifiers (in Vue.js 3.0.0+) |:wrench:|
60
64
|[vue/no-deprecated-vue-config-keycodes](./no-deprecated-vue-config-keycodes.md)| disallow using deprecated `Vue.config.keyCodes` (in Vue.js 3.0.0+) ||
61
65
|[vue/no-dupe-keys](./no-dupe-keys.md)| disallow duplication of field names ||
62
66
|[vue/no-dupe-v-else-if](./no-dupe-v-else-if.md)| disallow duplicate conditions in `v-if` / `v-else-if` chains ||
63
67
|[vue/no-duplicate-attributes](./no-duplicate-attributes.md)| disallow duplication of attributes ||
68
+
|[vue/no-export-in-script-setup](./no-export-in-script-setup.md)| disallow `export` in `<script setup>`||
@@ -137,6 +147,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
137
147
|[vue/require-prop-types](./require-prop-types.md)| require type definitions in props ||
138
148
|[vue/singleline-html-element-content-newline](./singleline-html-element-content-newline.md)| require a line break before and after the contents of a singleline element |:wrench:|
|[vue/html-comment-content-spacing](./html-comment-content-spacing.md)| enforce unified spacing in HTML comments |:wrench:|
299
314
|[vue/html-comment-indent](./html-comment-indent.md)| enforce consistent indentation in HTML comments |:wrench:|
300
315
|[vue/match-component-file-name](./match-component-file-name.md)| require component name property to match its file name ||
301
-
|[vue/multi-word-component-names](./multi-word-component-names.md)| require component names to be always multi-word ||
302
316
|[vue/new-line-between-multi-line-property](./new-line-between-multi-line-property.md)| enforce new lines between multi-line properties in Vue components |:wrench:|
303
317
|[vue/next-tick-style](./next-tick-style.md)| enforce Promise or callback style in `nextTick`|:wrench:|
304
318
|[vue/no-bare-strings-in-template](./no-bare-strings-in-template.md)| disallow the use of bare strings in `<template>`||
|[vue/no-computed-properties-in-data](./no-computed-properties-in-data.md)| disallow accessing computed properties in `data`. ||
307
-
|[vue/no-deprecated-router-link-tag-prop](./no-deprecated-router-link-tag-prop.md)| disallow using deprecated `tag` property on `RouterLink` (in Vue.js 3.0.0+) ||
308
-
|[vue/no-deprecated-v-is](./no-deprecated-v-is.md)| disallow deprecated `v-is` directive (in Vue.js 3.1.0+) |:wrench:|
309
320
|[vue/no-duplicate-attr-inheritance](./no-duplicate-attr-inheritance.md)| enforce `inheritAttrs` to be set to `false` when using `v-bind="$attrs"`||
310
321
|[vue/no-empty-component-block](./no-empty-component-block.md)| disallow the `<template>``<script>``<style>` block to be empty ||
311
-
|[vue/no-export-in-script-setup](./no-export-in-script-setup.md)| disallow `export` in `<script setup>`||
312
322
|[vue/no-invalid-model-keys](./no-invalid-model-keys.md)| require valid keys in model option ||
313
323
|[vue/no-multiple-objects-in-class](./no-multiple-objects-in-class.md)| disallow to pass multiple objects into array to class ||
314
324
|[vue/no-potential-component-option-typo](./no-potential-component-option-typo.md)| disallow a potential typo in your component property ||
Copy file name to clipboardExpand all lines: docs/rules/multi-word-component-names.md
+2
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ since: v7.20.0
9
9
10
10
> require component names to be always multi-word
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 require component names to be always multi-word, except for root `App`
Copy file name to clipboardExpand all lines: docs/rules/no-computed-properties-in-data.md
+2
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ since: v7.20.0
9
9
10
10
> disallow accessing computed properties in `data`.
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 disallow accessing computed properties in `data()`.
Copy file name to clipboardExpand all lines: docs/rules/no-deprecated-v-is.md
+1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ since: v7.11.0
9
9
10
10
> disallow deprecated `v-is` directive (in Vue.js 3.1.0+)
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/no-useless-template-attributes.md
+2
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ since: v7.19.0
9
9
10
10
> disallow useless attribute on `<template>`
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 to prevent any useless attribute on `<template>` tags.
Copy file name to clipboardExpand all lines: docs/rules/v-on-event-hyphenation.md
+1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ since: v7.4.0
9
9
10
10
> enforce v-on event naming style on custom components in template
11
11
12
+
-:gear: This rule is included in `"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/valid-next-tick.md
+1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ since: v7.5.0
9
9
10
10
> enforce valid `nextTick` function calls
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
-: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.
0 commit comments