Skip to content

Commit eb5439a

Browse files
Add vue/no-deprecated-model-definition to vue3-essential config (#2629)
Co-authored-by: Yosuke Ota <[email protected]>
1 parent 8a2b2ac commit eb5439a

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

Diff for: docs/rules/index.md

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Rules in this category are enabled for all presets provided by eslint-plugin-vue
5757
| [vue/no-deprecated-functional-template](./no-deprecated-functional-template.md) | disallow using deprecated the `functional` template (in Vue.js 3.0.0+) | | :three::warning: |
5858
| [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+) | | :three::warning: |
5959
| [vue/no-deprecated-inline-template](./no-deprecated-inline-template.md) | disallow using deprecated `inline-template` attribute (in Vue.js 3.0.0+) | | :three::warning: |
60+
| [vue/no-deprecated-model-definition](./no-deprecated-model-definition.md) | disallow deprecated `model` definition (in Vue.js 3.0.0+) | :bulb: | :three::warning: |
6061
| [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+) | | :three::warning: |
6162
| [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+) | | :three::warning: |
6263
| [vue/no-deprecated-scope-attribute](./no-deprecated-scope-attribute.md) | disallow deprecated `scope` attribute (in Vue.js 2.5.0+) | :wrench: | :three::hammer: |
@@ -229,6 +230,7 @@ For example:
229230
| [vue/next-tick-style](./next-tick-style.md) | enforce Promise or callback style in `nextTick` | :wrench: | :hammer: |
230231
| [vue/no-bare-strings-in-template](./no-bare-strings-in-template.md) | disallow the use of bare strings in `<template>` | | :hammer: |
231232
| [vue/no-boolean-default](./no-boolean-default.md) | disallow boolean defaults | | :hammer: |
233+
| [vue/no-deprecated-delete-set](./no-deprecated-delete-set.md) | disallow using deprecated `$delete` and `$set` (in Vue.js 3.0.0+) | | :warning: |
232234
| [vue/no-deprecated-model-definition](./no-deprecated-model-definition.md) | disallow deprecated `model` definition (in Vue.js 3.0.0+) | :bulb: | :warning: |
233235
| [vue/no-duplicate-attr-inheritance](./no-duplicate-attr-inheritance.md) | enforce `inheritAttrs` to be set to `false` when using `v-bind="$attrs"` | | :hammer: |
234236
| [vue/no-empty-component-block](./no-empty-component-block.md) | disallow the `<template>` `<script>` `<style>` block to be empty | :wrench: | :hammer: |

Diff for: docs/rules/no-deprecated-model-definition.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ since: v9.16.0
1010

1111
> disallow deprecated `model` definition (in Vue.js 3.0.0+)
1212
13+
- :gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `*.configs["flat/essential"]`, `"plugin:vue/vue3-strongly-recommended"`, `*.configs["flat/strongly-recommended"]`, `"plugin:vue/vue3-recommended"` and `*.configs["flat/recommended"]`.
1314
- :bulb: Some problems reported by this rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
1415

1516
## :book: Rule Details

Diff for: lib/configs/flat/vue3-essential.js

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = [
2626
'vue/no-deprecated-functional-template': 'error',
2727
'vue/no-deprecated-html-element-is': 'error',
2828
'vue/no-deprecated-inline-template': 'error',
29+
'vue/no-deprecated-model-definition': 'error',
2930
'vue/no-deprecated-props-default-this': 'error',
3031
'vue/no-deprecated-router-link-tag-prop': 'error',
3132
'vue/no-deprecated-scope-attribute': 'error',

Diff for: lib/configs/vue3-essential.js

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = {
2121
'vue/no-deprecated-functional-template': 'error',
2222
'vue/no-deprecated-html-element-is': 'error',
2323
'vue/no-deprecated-inline-template': 'error',
24+
'vue/no-deprecated-model-definition': 'error',
2425
'vue/no-deprecated-props-default-this': 'error',
2526
'vue/no-deprecated-router-link-tag-prop': 'error',
2627
'vue/no-deprecated-scope-attribute': 'error',

Diff for: lib/rules/no-deprecated-model-definition.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = {
4545
type: 'problem',
4646
docs: {
4747
description: 'disallow deprecated `model` definition (in Vue.js 3.0.0+)',
48-
categories: undefined,
48+
categories: ['vue3-essential'],
4949
url: 'https://eslint.vuejs.org/rules/no-deprecated-model-definition.html'
5050
},
5151
fixable: null,

0 commit comments

Comments
 (0)