Skip to content

Commit b9efa0b

Browse files
committed
Remove deprecated rules (#2645)
1 parent 90e4d05 commit b9efa0b

21 files changed

+58
-3041
lines changed

Diff for: docs/rules/component-tags-order.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ since: v6.1.0
1010

1111
> enforce order of component top-level elements
1212
13-
- :no_entry_sign: This rule was **deprecated** and replaced by [vue/block-order](block-order.md) rule.
14-
- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fix-problems) can automatically fix some of the problems reported by this rule.
13+
- :no_entry: This rule was **removed** in eslint-plugin-vue v10.0.0 and replaced by [vue/block-order](block-order.md) rule.
1514

1615
## :book: Rule Details
1716

Diff for: docs/rules/index.md

+16-20
Original file line numberDiff line numberDiff line change
@@ -341,30 +341,22 @@ The following rules extend the rules provided by ESLint itself and apply them to
341341

342342
</rules-table>
343343

344-
## Deprecated
345-
346-
- :no_entry_sign: We're going to remove deprecated rules in the next major release. Please migrate to successor/new rules.
347-
- :innocent: We don't fix bugs which are in deprecated rules since we don't have enough resources.
348-
349-
| Rule ID | Replaced by |
350-
|:--------|:------------|
351-
| [vue/component-tags-order] | [vue/block-order] |
352-
| [vue/no-invalid-model-keys] | [vue/valid-model-definition] |
353-
| [vue/no-ref-object-destructure] | [vue/no-ref-object-reactivity-loss] |
354-
| [vue/no-setup-props-destructure] | [vue/no-setup-props-reactivity-loss] |
355-
| [vue/script-setup-uses-vars] | (no replacement) |
356-
| [vue/v-on-function-call] | [vue/v-on-handler-style] |
357-
358344
## Removed
359345

360346
- :no_entry: These rules have been removed in a previous major release, after they have been deprecated for a while.
361347

362348
| Rule ID | Replaced by | Deprecated in version | Removed in version |
363349
|:--------|:------------|:-----------------------|:-------------------|
350+
| [vue/component-tags-order] | [vue/block-order] | [v9.16.0] | [v10.0.0] |
364351
| [vue/experimental-script-setup-vars] | (no replacement) | [v7.13.0] | [v9.0.0] |
365352
| [vue/name-property-casing] | [vue/component-definition-name-casing] | [v7.0.0] | [v9.0.0] |
366353
| [vue/no-confusing-v-for-v-if] | [vue/no-use-v-if-with-v-for] | [v5.0.0] | [v9.0.0] |
354+
| [vue/no-invalid-model-keys] | [vue/valid-model-definition] | [v9.0.0] | [v10.0.0] |
355+
| [vue/no-ref-object-destructure] | [vue/no-ref-object-reactivity-loss] | [v9.17.0] | [v10.0.0] |
356+
| [vue/no-setup-props-destructure] | [vue/no-setup-props-reactivity-loss] | [v9.17.0] | [v10.0.0] |
367357
| [vue/no-unregistered-components] | [vue/no-undef-components] | [v8.4.0] | [v9.0.0] |
358+
| [vue/script-setup-uses-vars] | (no replacement) | [v9.0.0] | [v10.0.0] |
359+
| [vue/v-on-function-call] | [vue/v-on-handler-style] | [v9.7.0] | [v10.0.0] |
368360

369361
<!-- link definitions for rules -->
370362

@@ -388,7 +380,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
388380
[vue/component-definition-name-casing]: ./component-definition-name-casing.md
389381
[vue/component-name-in-template-casing]: ./component-name-in-template-casing.md
390382
[vue/component-options-name-casing]: ./component-options-name-casing.md
391-
[vue/component-tags-order]: ./component-tags-order.md
392383
[vue/custom-event-name-casing]: ./custom-event-name-casing.md
393384
[vue/define-emits-declaration]: ./define-emits-declaration.md
394385
[vue/define-macros-order]: ./define-macros-order.md
@@ -464,7 +455,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
464455
[vue/no-export-in-script-setup]: ./no-export-in-script-setup.md
465456
[vue/no-expose-after-await]: ./no-expose-after-await.md
466457
[vue/no-extra-parens]: ./no-extra-parens.md
467-
[vue/no-invalid-model-keys]: ./no-invalid-model-keys.md
468458
[vue/no-irregular-whitespace]: ./no-irregular-whitespace.md
469459
[vue/no-lifecycle-after-await]: ./no-lifecycle-after-await.md
470460
[vue/no-lone-template]: ./no-lone-template.md
@@ -477,7 +467,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
477467
[vue/no-parsing-error]: ./no-parsing-error.md
478468
[vue/no-potential-component-option-typo]: ./no-potential-component-option-typo.md
479469
[vue/no-ref-as-operand]: ./no-ref-as-operand.md
480-
[vue/no-ref-object-destructure]: ./no-ref-object-destructure.md
481470
[vue/no-ref-object-reactivity-loss]: ./no-ref-object-reactivity-loss.md
482471
[vue/no-required-prop-with-default]: ./no-required-prop-with-default.md
483472
[vue/no-reserved-component-names]: ./no-reserved-component-names.md
@@ -496,7 +485,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
496485
[vue/no-restricted-v-bind]: ./no-restricted-v-bind.md
497486
[vue/no-restricted-v-on]: ./no-restricted-v-on.md
498487
[vue/no-root-v-if]: ./no-root-v-if.md
499-
[vue/no-setup-props-destructure]: ./no-setup-props-destructure.md
500488
[vue/no-setup-props-reactivity-loss]: ./no-setup-props-reactivity-loss.md
501489
[vue/no-shared-component-data]: ./no-shared-component-data.md
502490
[vue/no-side-effects-in-computed-properties]: ./no-side-effects-in-computed-properties.md
@@ -573,7 +561,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
573561
[vue/return-in-computed-property]: ./return-in-computed-property.md
574562
[vue/return-in-emits-validator]: ./return-in-emits-validator.md
575563
[vue/script-indent]: ./script-indent.md
576-
[vue/script-setup-uses-vars]: ./script-setup-uses-vars.md
577564
[vue/singleline-html-element-content-newline]: ./singleline-html-element-content-newline.md
578565
[vue/slot-name-casing]: ./slot-name-casing.md
579566
[vue/sort-keys]: ./sort-keys.md
@@ -588,7 +575,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
588575
[vue/v-for-delimiter-style]: ./v-for-delimiter-style.md
589576
[vue/v-if-else-key]: ./v-if-else-key.md
590577
[vue/v-on-event-hyphenation]: ./v-on-event-hyphenation.md
591-
[vue/v-on-function-call]: ./v-on-function-call.md
592578
[vue/v-on-handler-style]: ./v-on-handler-style.md
593579
[vue/v-on-style]: ./v-on-style.md
594580
[vue/v-slot-style]: ./v-slot-style.md
@@ -619,15 +605,25 @@ The following rules extend the rules provided by ESLint itself and apply them to
619605

620606
<!-- link definitions for removed rules -->
621607

608+
[vue/component-tags-order]: ./component-tags-order.md
622609
[vue/experimental-script-setup-vars]: ./experimental-script-setup-vars.md
623610
[vue/name-property-casing]: ./name-property-casing.md
624611
[vue/no-confusing-v-for-v-if]: ./no-confusing-v-for-v-if.md
612+
[vue/no-invalid-model-keys]: ./no-invalid-model-keys.md
613+
[vue/no-ref-object-destructure]: ./no-ref-object-destructure.md
614+
[vue/no-setup-props-destructure]: ./no-setup-props-destructure.md
625615
[vue/no-unregistered-components]: ./no-unregistered-components.md
616+
[vue/script-setup-uses-vars]: ./script-setup-uses-vars.md
617+
[vue/v-on-function-call]: ./v-on-function-call.md
626618

627619
<!-- link definitions for releases -->
628620

621+
[v10.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v10.0.0
629622
[v5.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v5.0.0
630623
[v7.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v7.0.0
631624
[v7.13.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v7.13.0
632625
[v8.4.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v8.4.0
633626
[v9.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.0.0
627+
[v9.16.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.16.0
628+
[v9.17.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.17.0
629+
[v9.7.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.7.0

Diff for: docs/rules/no-invalid-model-keys.md

+1-1
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

Diff for: docs/rules/no-ref-object-destructure.md

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

1111
> disallow usages of ref objects that can lead to loss of reactivity
1212
13-
- :no_entry_sign: This rule was **deprecated** and replaced by [vue/no-ref-object-reactivity-loss](no-ref-object-reactivity-loss.md) rule.
13+
- :no_entry: This rule was **removed** in eslint-plugin-vue v10.0.0 and replaced by [vue/no-ref-object-reactivity-loss](no-ref-object-reactivity-loss.md) rule.
1414

1515
## :book: Rule Details
1616

Diff for: docs/rules/no-setup-props-destructure.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ since: v7.0.0
1010

1111
> disallow usages that lose the reactivity of `props` passed to `setup`
1212
13-
- :no_entry_sign: This rule was **deprecated** and replaced by [vue/no-setup-props-reactivity-loss](no-setup-props-reactivity-loss.md) rule.
13+
- :no_entry: This rule was **removed** in eslint-plugin-vue v10.0.0 and replaced by [vue/no-setup-props-reactivity-loss](no-setup-props-reactivity-loss.md) rule.
1414

1515
## :book: Rule Details
1616

Diff for: docs/rules/script-setup-uses-vars.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ since: v7.13.0
1010

1111
> prevent `<script setup>` variables used in `<template>` to be marked as unused
1212
13-
- :no_entry_sign: This rule was **deprecated**.
13+
- :no_entry: This rule was **removed** in eslint-plugin-vue v10.0.0.
1414

1515
::: tip
1616

Diff for: docs/rules/v-on-function-call.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ since: v5.2.0
1010

1111
> enforce or forbid parentheses after method calls without arguments in `v-on` directives
1212
13-
- :no_entry_sign: This rule was **deprecated** and replaced by [vue/v-on-handler-style](v-on-handler-style.md) rule.
14-
- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fix-problems) can automatically fix some of the problems reported by this rule.
13+
- :no_entry: This rule was **removed** in eslint-plugin-vue v10.0.0 and replaced by [vue/v-on-handler-style](v-on-handler-style.md) rule.
1514

1615
## :book: Rule Details
1716

Diff for: lib/index.js

-6
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ const plugin = {
5050
'component-definition-name-casing': require('./rules/component-definition-name-casing'),
5151
'component-name-in-template-casing': require('./rules/component-name-in-template-casing'),
5252
'component-options-name-casing': require('./rules/component-options-name-casing'),
53-
'component-tags-order': require('./rules/component-tags-order'),
5453
'custom-event-name-casing': require('./rules/custom-event-name-casing'),
5554
'define-emits-declaration': require('./rules/define-emits-declaration'),
5655
'define-macros-order': require('./rules/define-macros-order'),
@@ -127,7 +126,6 @@ const plugin = {
127126
'no-expose-after-await': require('./rules/no-expose-after-await'),
128127
'no-extra-parens': require('./rules/no-extra-parens'),
129128
'no-implicit-coercion': require('./rules/no-implicit-coercion'),
130-
'no-invalid-model-keys': require('./rules/no-invalid-model-keys'),
131129
'no-irregular-whitespace': require('./rules/no-irregular-whitespace'),
132130
'no-lifecycle-after-await': require('./rules/no-lifecycle-after-await'),
133131
'no-lone-template': require('./rules/no-lone-template'),
@@ -140,7 +138,6 @@ const plugin = {
140138
'no-parsing-error': require('./rules/no-parsing-error'),
141139
'no-potential-component-option-typo': require('./rules/no-potential-component-option-typo'),
142140
'no-ref-as-operand': require('./rules/no-ref-as-operand'),
143-
'no-ref-object-destructure': require('./rules/no-ref-object-destructure'),
144141
'no-ref-object-reactivity-loss': require('./rules/no-ref-object-reactivity-loss'),
145142
'no-required-prop-with-default': require('./rules/no-required-prop-with-default'),
146143
'no-reserved-component-names': require('./rules/no-reserved-component-names'),
@@ -159,7 +156,6 @@ const plugin = {
159156
'no-restricted-v-bind': require('./rules/no-restricted-v-bind'),
160157
'no-restricted-v-on': require('./rules/no-restricted-v-on'),
161158
'no-root-v-if': require('./rules/no-root-v-if'),
162-
'no-setup-props-destructure': require('./rules/no-setup-props-destructure'),
163159
'no-setup-props-reactivity-loss': require('./rules/no-setup-props-reactivity-loss'),
164160
'no-shared-component-data': require('./rules/no-shared-component-data'),
165161
'no-side-effects-in-computed-properties': require('./rules/no-side-effects-in-computed-properties'),
@@ -236,7 +232,6 @@ const plugin = {
236232
'return-in-computed-property': require('./rules/return-in-computed-property'),
237233
'return-in-emits-validator': require('./rules/return-in-emits-validator'),
238234
'script-indent': require('./rules/script-indent'),
239-
'script-setup-uses-vars': require('./rules/script-setup-uses-vars'),
240235
'singleline-html-element-content-newline': require('./rules/singleline-html-element-content-newline'),
241236
'slot-name-casing': require('./rules/slot-name-casing'),
242237
'sort-keys': require('./rules/sort-keys'),
@@ -251,7 +246,6 @@ const plugin = {
251246
'v-for-delimiter-style': require('./rules/v-for-delimiter-style'),
252247
'v-if-else-key': require('./rules/v-if-else-key'),
253248
'v-on-event-hyphenation': require('./rules/v-on-event-hyphenation'),
254-
'v-on-function-call': require('./rules/v-on-function-call'),
255249
'v-on-handler-style': require('./rules/v-on-handler-style'),
256250
'v-on-style': require('./rules/v-on-style'),
257251
'v-slot-style': require('./rules/v-slot-style'),

Diff for: lib/removed-rules.js

+36
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010

1111
/** @type {RemovedRule[]} */
1212
module.exports = [
13+
{
14+
ruleName: 'component-tags-order',
15+
replacedBy: ['block-order'],
16+
deprecatedInVersion: 'v9.16.0',
17+
removedInVersion: 'v10.0.0'
18+
},
1319
{
1420
ruleName: 'experimental-script-setup-vars',
1521
replacedBy: [],
@@ -28,10 +34,40 @@ module.exports = [
2834
deprecatedInVersion: 'v5.0.0',
2935
removedInVersion: 'v9.0.0'
3036
},
37+
{
38+
ruleName: 'no-invalid-model-keys',
39+
replacedBy: ['valid-model-definition'],
40+
deprecatedInVersion: 'v9.0.0',
41+
removedInVersion: 'v10.0.0'
42+
},
43+
{
44+
ruleName: 'no-ref-object-destructure',
45+
replacedBy: ['no-ref-object-reactivity-loss'],
46+
deprecatedInVersion: 'v9.17.0',
47+
removedInVersion: 'v10.0.0'
48+
},
49+
{
50+
ruleName: 'no-setup-props-destructure',
51+
replacedBy: ['no-setup-props-reactivity-loss'],
52+
deprecatedInVersion: 'v9.17.0',
53+
removedInVersion: 'v10.0.0'
54+
},
3155
{
3256
ruleName: 'no-unregistered-components',
3357
replacedBy: ['no-undef-components'],
3458
deprecatedInVersion: 'v8.4.0',
3559
removedInVersion: 'v9.0.0'
60+
},
61+
{
62+
ruleName: 'script-setup-uses-vars',
63+
replacedBy: [],
64+
deprecatedInVersion: 'v9.0.0',
65+
removedInVersion: 'v10.0.0'
66+
},
67+
{
68+
ruleName: 'v-on-function-call',
69+
replacedBy: ['v-on-handler-style'],
70+
deprecatedInVersion: 'v9.7.0',
71+
removedInVersion: 'v10.0.0'
3672
}
3773
]

Diff for: lib/rules/component-tags-order.js

-23
This file was deleted.

Diff for: lib/rules/no-invalid-model-keys.js

-24
This file was deleted.

Diff for: lib/rules/no-ref-object-destructure.js

-24
This file was deleted.

Diff for: lib/rules/no-setup-props-destructure.js

-24
This file was deleted.

0 commit comments

Comments
 (0)