Skip to content

Commit be4bd51

Browse files
committed
Deprecate vue/valid-model-definition
1 parent 64424bc commit be4bd51

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

docs/rules/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Rules in this category are enabled for all presets provided by eslint-plugin-vue
110110
| [vue/valid-define-emits] | enforce valid `defineEmits` compiler macro | | :three::two::warning: |
111111
| [vue/valid-define-options] | enforce valid `defineOptions` compiler macro | | :three::warning: |
112112
| [vue/valid-define-props] | enforce valid `defineProps` compiler macro | | :three::two::warning: |
113-
| [vue/valid-model-definition] | require valid keys in model option | | :two::warning: |
113+
| [vue/valid-model-definition] | require valid keys in model option | :no_entry_sign: | :two::warning: |
114114
| [vue/valid-next-tick] | enforce valid `nextTick` function calls | :wrench::bulb: | :three::two::warning: |
115115
| [vue/valid-template-root] | enforce valid template root | | :three::two::warning: |
116116
| [vue/valid-v-bind-sync] | enforce valid `.sync` modifier on `v-bind` directives | | :two::warning: |
@@ -351,6 +351,7 @@ The following rules extend the rules provided by ESLint itself and apply them to
351351
|:--------|:------------|
352352
| [vue/no-v-for-template-key] | (no replacement) |
353353
| [vue/no-v-model-argument] | (no replacement) |
354+
| [vue/valid-model-definition] | (no replacement) |
354355

355356
## Removed
356357

docs/rules/valid-model-definition.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ since: v9.0.0
1010

1111
> require valid keys in model option
1212
13+
- :no_entry_sign: This rule was **deprecated**.
1314
- :gear: This rule is included in all of `"plugin:vue/vue2-essential"`, `*.configs["flat/vue2-essential"]`, `"plugin:vue/vue2-strongly-recommended"`, `*.configs["flat/vue2-strongly-recommended"]`, `"plugin:vue/vue2-recommended"` and `*.configs["flat/vue2-recommended"]`.
1415

1516
## :book: Rule Details

lib/rules/valid-model-definition.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module.exports = {
1717
url: 'https://eslint.vuejs.org/rules/valid-model-definition.html'
1818
},
1919
fixable: null,
20+
deprecated: true,
2021
schema: [],
2122
messages: {
2223
invalidKey: "Invalid key '{{name}}' in model option."

0 commit comments

Comments
 (0)