Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 32f0830

Browse filesBrowse files
committed
Remove deprecated rules (#2645)
1 parent 965c280 commit 32f0830
Copy full SHA for 32f0830

21 files changed

+58
-3041
lines changed

‎docs/rules/component-tags-order.md

Copy file name to clipboardExpand all lines: docs/rules/component-tags-order.md
+1-2Lines changed: 1 addition & 2 deletions
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

‎docs/rules/index.md

Copy file name to clipboardExpand all lines: docs/rules/index.md
+16-20Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -342,30 +342,22 @@ The following rules extend the rules provided by ESLint itself and apply them to
342342

343343
</rules-table>
344344

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

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

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

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

@@ -389,7 +381,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
389381
[vue/component-definition-name-casing]: ./component-definition-name-casing.md
390382
[vue/component-name-in-template-casing]: ./component-name-in-template-casing.md
391383
[vue/component-options-name-casing]: ./component-options-name-casing.md
392-
[vue/component-tags-order]: ./component-tags-order.md
393384
[vue/custom-event-name-casing]: ./custom-event-name-casing.md
394385
[vue/define-emits-declaration]: ./define-emits-declaration.md
395386
[vue/define-macros-order]: ./define-macros-order.md
@@ -466,7 +457,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
466457
[vue/no-expose-after-await]: ./no-expose-after-await.md
467458
[vue/no-extra-parens]: ./no-extra-parens.md
468459
[vue/no-implicit-coercion]: ./no-implicit-coercion.md
469-
[vue/no-invalid-model-keys]: ./no-invalid-model-keys.md
470460
[vue/no-irregular-whitespace]: ./no-irregular-whitespace.md
471461
[vue/no-lifecycle-after-await]: ./no-lifecycle-after-await.md
472462
[vue/no-lone-template]: ./no-lone-template.md
@@ -479,7 +469,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
479469
[vue/no-parsing-error]: ./no-parsing-error.md
480470
[vue/no-potential-component-option-typo]: ./no-potential-component-option-typo.md
481471
[vue/no-ref-as-operand]: ./no-ref-as-operand.md
482-
[vue/no-ref-object-destructure]: ./no-ref-object-destructure.md
483472
[vue/no-ref-object-reactivity-loss]: ./no-ref-object-reactivity-loss.md
484473
[vue/no-required-prop-with-default]: ./no-required-prop-with-default.md
485474
[vue/no-reserved-component-names]: ./no-reserved-component-names.md
@@ -498,7 +487,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
498487
[vue/no-restricted-v-bind]: ./no-restricted-v-bind.md
499488
[vue/no-restricted-v-on]: ./no-restricted-v-on.md
500489
[vue/no-root-v-if]: ./no-root-v-if.md
501-
[vue/no-setup-props-destructure]: ./no-setup-props-destructure.md
502490
[vue/no-setup-props-reactivity-loss]: ./no-setup-props-reactivity-loss.md
503491
[vue/no-shared-component-data]: ./no-shared-component-data.md
504492
[vue/no-side-effects-in-computed-properties]: ./no-side-effects-in-computed-properties.md
@@ -575,7 +563,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
575563
[vue/return-in-computed-property]: ./return-in-computed-property.md
576564
[vue/return-in-emits-validator]: ./return-in-emits-validator.md
577565
[vue/script-indent]: ./script-indent.md
578-
[vue/script-setup-uses-vars]: ./script-setup-uses-vars.md
579566
[vue/singleline-html-element-content-newline]: ./singleline-html-element-content-newline.md
580567
[vue/slot-name-casing]: ./slot-name-casing.md
581568
[vue/sort-keys]: ./sort-keys.md
@@ -590,7 +577,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
590577
[vue/v-for-delimiter-style]: ./v-for-delimiter-style.md
591578
[vue/v-if-else-key]: ./v-if-else-key.md
592579
[vue/v-on-event-hyphenation]: ./v-on-event-hyphenation.md
593-
[vue/v-on-function-call]: ./v-on-function-call.md
594580
[vue/v-on-handler-style]: ./v-on-handler-style.md
595581
[vue/v-on-style]: ./v-on-style.md
596582
[vue/v-slot-style]: ./v-slot-style.md
@@ -621,15 +607,25 @@ The following rules extend the rules provided by ESLint itself and apply them to
621607

622608
<!-- link definitions for removed rules -->
623609

610+
[vue/component-tags-order]: ./component-tags-order.md
624611
[vue/experimental-script-setup-vars]: ./experimental-script-setup-vars.md
625612
[vue/name-property-casing]: ./name-property-casing.md
626613
[vue/no-confusing-v-for-v-if]: ./no-confusing-v-for-v-if.md
614+
[vue/no-invalid-model-keys]: ./no-invalid-model-keys.md
615+
[vue/no-ref-object-destructure]: ./no-ref-object-destructure.md
616+
[vue/no-setup-props-destructure]: ./no-setup-props-destructure.md
627617
[vue/no-unregistered-components]: ./no-unregistered-components.md
618+
[vue/script-setup-uses-vars]: ./script-setup-uses-vars.md
619+
[vue/v-on-function-call]: ./v-on-function-call.md
628620

629621
<!-- link definitions for releases -->
630622

623+
[v10.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v10.0.0
631624
[v5.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v5.0.0
632625
[v7.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v7.0.0
633626
[v7.13.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v7.13.0
634627
[v8.4.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v8.4.0
635628
[v9.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.0.0
629+
[v9.16.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.16.0
630+
[v9.17.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.17.0
631+
[v9.7.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.7.0

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

Copy file name to clipboardExpand all lines: docs/rules/no-invalid-model-keys.md
+1-1Lines 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

‎docs/rules/no-ref-object-destructure.md

Copy file name to clipboardExpand all lines: docs/rules/no-ref-object-destructure.md
+1-1Lines changed: 1 addition & 1 deletion
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

‎docs/rules/no-setup-props-destructure.md

Copy file name to clipboardExpand all lines: docs/rules/no-setup-props-destructure.md
+1-1Lines changed: 1 addition & 1 deletion
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

‎docs/rules/script-setup-uses-vars.md

Copy file name to clipboardExpand all lines: docs/rules/script-setup-uses-vars.md
+1-1Lines changed: 1 addition & 1 deletion
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

‎docs/rules/v-on-function-call.md

Copy file name to clipboardExpand all lines: docs/rules/v-on-function-call.md
+1-2Lines changed: 1 addition & 2 deletions
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

‎lib/index.js

Copy file name to clipboardExpand all lines: lib/index.js
-6Lines changed: 0 additions & 6 deletions
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'),

‎lib/removed-rules.js

Copy file name to clipboardExpand all lines: lib/removed-rules.js
+36Lines changed: 36 additions & 0 deletions
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
]

‎lib/rules/component-tags-order.js

Copy file name to clipboardExpand all lines: lib/rules/component-tags-order.js
-23Lines changed: 0 additions & 23 deletions
This file was deleted.

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

Copy file name to clipboardExpand all lines: lib/rules/no-invalid-model-keys.js
-24Lines changed: 0 additions & 24 deletions
This file was deleted.

‎lib/rules/no-ref-object-destructure.js

Copy file name to clipboardExpand all lines: lib/rules/no-ref-object-destructure.js
-24Lines changed: 0 additions & 24 deletions
This file was deleted.

‎lib/rules/no-setup-props-destructure.js

Copy file name to clipboardExpand all lines: lib/rules/no-setup-props-destructure.js
-24Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.