Skip to content

Commit 059120f

Browse files
committed
Update
1 parent b7e4858 commit 059120f

9 files changed

+19
-3
lines changed

docs/rules/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
3939

4040
| Rule ID | Description | |
4141
|:--------|:------------|:---|
42+
| [vue/multi-word-component-names](./multi-word-component-names.md) | require component names to be always multi-word | |
4243
| [vue/no-arrow-functions-in-watch](./no-arrow-functions-in-watch.md) | disallow using arrow functions to define watcher | |
4344
| [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`. | |
4446
| [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: |
4547
| [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: |
4648
| [vue/no-deprecated-dollar-listeners-api](./no-deprecated-dollar-listeners-api.md) | disallow using deprecated `$listeners` (in Vue.js 3.0.0+) | |
@@ -51,6 +53,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
5153
| [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+) | |
5254
| [vue/no-deprecated-inline-template](./no-deprecated-inline-template.md) | disallow using deprecated `inline-template` attribute (in Vue.js 3.0.0+) | |
5355
| [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+) | |
5457
| [vue/no-deprecated-scope-attribute](./no-deprecated-scope-attribute.md) | disallow deprecated `scope` attribute (in Vue.js 2.5.0+) | :wrench: |
5558
| [vue/no-deprecated-slot-attribute](./no-deprecated-slot-attribute.md) | disallow deprecated `slot` attribute (in Vue.js 2.6.0+) | :wrench: |
5659
| [vue/no-deprecated-slot-scope-attribute](./no-deprecated-slot-scope-attribute.md) | disallow deprecated `slot-scope` attribute (in Vue.js 2.6.0+) | :wrench: |
@@ -179,8 +182,10 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
179182

180183
| Rule ID | Description | |
181184
|:--------|:------------|:---|
185+
| [vue/multi-word-component-names](./multi-word-component-names.md) | require component names to be always multi-word | |
182186
| [vue/no-arrow-functions-in-watch](./no-arrow-functions-in-watch.md) | disallow using arrow functions to define watcher | |
183187
| [vue/no-async-in-computed-properties](./no-async-in-computed-properties.md) | disallow asynchronous actions in computed properties | |
188+
| [vue/no-computed-properties-in-data](./no-computed-properties-in-data.md) | disallow accessing computed properties in `data`. | |
184189
| [vue/no-custom-modifiers-on-v-model](./no-custom-modifiers-on-v-model.md) | disallow custom modifiers on v-model used on the component | |
185190
| [vue/no-dupe-keys](./no-dupe-keys.md) | disallow duplication of field names | |
186191
| [vue/no-dupe-v-else-if](./no-dupe-v-else-if.md) | disallow duplicate conditions in `v-if` / `v-else-if` chains | |

docs/rules/multi-word-component-names.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ since: v7.20.0
99

1010
> require component names to be always multi-word
1111
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+
1214
## :book: Rule Details
1315

1416
This rule require component names to be always multi-word, except for root `App`

docs/rules/no-computed-properties-in-data.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ since: v7.20.0
99

1010
> disallow accessing computed properties in `data`.
1111
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+
1214
## :book: Rule Details
1315

1416
This rule disallow accessing computed properties in `data()`.

docs/rules/no-deprecated-router-link-tag-prop.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ since: v7.20.0
99

1010
> disallow using deprecated `tag` property on `RouterLink` (in Vue.js 3.0.0+)
1111
12+
- :gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/vue3-strongly-recommended"` and `"plugin:vue/vue3-recommended"`.
13+
1214
## :book: Rule Details
1315

1416
This rule reports deprecated the `tag` attribute on `RouterLink` elements (removed in Vue.js v3.0.0+).

lib/configs/essential.js

+2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
module.exports = {
77
extends: require.resolve('./base'),
88
rules: {
9+
'vue/multi-word-component-names': 'error',
910
'vue/no-arrow-functions-in-watch': 'error',
1011
'vue/no-async-in-computed-properties': 'error',
12+
'vue/no-computed-properties-in-data': 'error',
1113
'vue/no-custom-modifiers-on-v-model': 'error',
1214
'vue/no-dupe-keys': 'error',
1315
'vue/no-dupe-v-else-if': 'error',

lib/configs/vue3-essential.js

+3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
module.exports = {
77
extends: require.resolve('./base'),
88
rules: {
9+
'vue/multi-word-component-names': 'error',
910
'vue/no-arrow-functions-in-watch': 'error',
1011
'vue/no-async-in-computed-properties': 'error',
12+
'vue/no-computed-properties-in-data': 'error',
1113
'vue/no-deprecated-data-object-declaration': 'error',
1214
'vue/no-deprecated-destroyed-lifecycle': 'error',
1315
'vue/no-deprecated-dollar-listeners-api': 'error',
@@ -18,6 +20,7 @@ module.exports = {
1820
'vue/no-deprecated-html-element-is': 'error',
1921
'vue/no-deprecated-inline-template': 'error',
2022
'vue/no-deprecated-props-default-this': 'error',
23+
'vue/no-deprecated-router-link-tag-prop': 'error',
2124
'vue/no-deprecated-scope-attribute': 'error',
2225
'vue/no-deprecated-slot-attribute': 'error',
2326
'vue/no-deprecated-slot-scope-attribute': 'error',

lib/rules/multi-word-component-names.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = {
4141
type: 'suggestion',
4242
docs: {
4343
description: 'require component names to be always multi-word',
44-
categories: undefined,
44+
categories: ['vue3-essential', 'essential'],
4545
url: 'https://eslint.vuejs.org/rules/multi-word-component-names.html'
4646
},
4747
schema: [],

lib/rules/no-computed-properties-in-data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
type: 'problem',
2424
docs: {
2525
description: 'disallow accessing computed properties in `data`.',
26-
categories: undefined,
26+
categories: ['vue3-essential', 'essential'],
2727
url: 'https://eslint.vuejs.org/rules/no-computed-properties-in-data.html'
2828
},
2929
fixable: null,

lib/rules/no-deprecated-router-link-tag-prop.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = {
4040
docs: {
4141
description:
4242
'disallow using deprecated `tag` property on `RouterLink` (in Vue.js 3.0.0+)',
43-
categories: undefined,
43+
categories: ['vue3-essential'],
4444
url: 'https://eslint.vuejs.org/rules/no-deprecated-router-link-tag-prop.html'
4545
},
4646
fixable: null,

0 commit comments

Comments
 (0)