Skip to content

Commit 34bf67c

Browse files
committed
Remove deprecated vue/no-invalid-model-keys rule
1 parent c987c95 commit 34bf67c

File tree

6 files changed

+9
-171
lines changed

6 files changed

+9
-171
lines changed

docs/rules/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
348348

349349
| Rule ID | Replaced by |
350350
|:--------|:------------|
351-
| [vue/no-invalid-model-keys] | [vue/valid-model-definition] |
352351
| [vue/no-ref-object-destructure] | [vue/no-ref-object-reactivity-loss] |
353352
| [vue/no-setup-props-destructure] | [vue/no-setup-props-reactivity-loss] |
354353
| [vue/script-setup-uses-vars] | (no replacement) |
@@ -364,6 +363,7 @@ The following rules extend the rules provided by ESLint itself and apply them to
364363
| [vue/experimental-script-setup-vars] | (no replacement) | [v7.13.0] | [v9.0.0] |
365364
| [vue/name-property-casing] | [vue/component-definition-name-casing] | [v7.0.0] | [v9.0.0] |
366365
| [vue/no-confusing-v-for-v-if] | [vue/no-use-v-if-with-v-for] | [v5.0.0] | [v9.0.0] |
366+
| [vue/no-invalid-model-keys] | [vue/valid-model-definition] | [v9.0.0] | [v10.0.0] |
367367
| [vue/no-unregistered-components] | [vue/no-undef-components] | [v8.4.0] | [v9.0.0] |
368368

369369
<!-- link definitions for rules -->
@@ -463,7 +463,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
463463
[vue/no-export-in-script-setup]: ./no-export-in-script-setup.md
464464
[vue/no-expose-after-await]: ./no-expose-after-await.md
465465
[vue/no-extra-parens]: ./no-extra-parens.md
466-
[vue/no-invalid-model-keys]: ./no-invalid-model-keys.md
467466
[vue/no-irregular-whitespace]: ./no-irregular-whitespace.md
468467
[vue/no-lifecycle-after-await]: ./no-lifecycle-after-await.md
469468
[vue/no-lone-template]: ./no-lone-template.md
@@ -622,6 +621,7 @@ The following rules extend the rules provided by ESLint itself and apply them to
622621
[vue/experimental-script-setup-vars]: ./experimental-script-setup-vars.md
623622
[vue/name-property-casing]: ./name-property-casing.md
624623
[vue/no-confusing-v-for-v-if]: ./no-confusing-v-for-v-if.md
624+
[vue/no-invalid-model-keys]: ./no-invalid-model-keys.md
625625
[vue/no-unregistered-components]: ./no-unregistered-components.md
626626

627627
<!-- link definitions for releases -->

docs/rules/no-invalid-model-keys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ since: v7.9.0
1010

1111
> require valid keys in model option
1212
13-
- :no_entry_sign: This rule was **deprecated** and replaced by [vue/valid-model-definition](valid-model-definition.md) rule.
13+
- :no_entry: This rule was **removed** in eslint-plugin-vue v10.0.0 and replaced by [vue/valid-model-definition](valid-model-definition.md) rule.
1414

1515
## :book: Rule Details
1616

lib/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ const plugin = {
125125
'no-export-in-script-setup': require('./rules/no-export-in-script-setup'),
126126
'no-expose-after-await': require('./rules/no-expose-after-await'),
127127
'no-extra-parens': require('./rules/no-extra-parens'),
128-
'no-invalid-model-keys': require('./rules/no-invalid-model-keys'),
129128
'no-irregular-whitespace': require('./rules/no-irregular-whitespace'),
130129
'no-lifecycle-after-await': require('./rules/no-lifecycle-after-await'),
131130
'no-lone-template': require('./rules/no-lone-template'),

lib/removed-rules.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ module.exports = [
3434
deprecatedInVersion: 'v5.0.0',
3535
removedInVersion: 'v9.0.0'
3636
},
37+
{
38+
ruleName: 'no-invalid-model-keys',
39+
replacedBy: ['valid-model-definition'],
40+
deprecatedInVersion: 'v9.0.0',
41+
removedInVersion: 'v10.0.0'
42+
},
3743
{
3844
ruleName: 'no-unregistered-components',
3945
replacedBy: ['no-undef-components'],

lib/rules/no-invalid-model-keys.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

tests/lib/rules/no-invalid-model-keys.js

Lines changed: 0 additions & 143 deletions
This file was deleted.

0 commit comments

Comments
 (0)