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

Sign up
Appearance settings

Commit 9780afa

Browse files
FloEdelmannota-meshi
authored andcommitted
Remove deprecated rules (#2645)
1 parent c011f98 commit 9780afa

21 files changed

+58
-3041
lines changed

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

Lines 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

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -343,30 +343,22 @@ The following rules extend the rules provided by ESLint itself and apply them to
343343

344344
</rules-table>
345345

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

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

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

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

@@ -390,7 +382,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
390382
[vue/component-definition-name-casing]: ./component-definition-name-casing.md
391383
[vue/component-name-in-template-casing]: ./component-name-in-template-casing.md
392384
[vue/component-options-name-casing]: ./component-options-name-casing.md
393-
[vue/component-tags-order]: ./component-tags-order.md
394385
[vue/custom-event-name-casing]: ./custom-event-name-casing.md
395386
[vue/define-emits-declaration]: ./define-emits-declaration.md
396387
[vue/define-macros-order]: ./define-macros-order.md
@@ -468,7 +459,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
468459
[vue/no-extra-parens]: ./no-extra-parens.md
469460
[vue/no-implicit-coercion]: ./no-implicit-coercion.md
470461
[vue/no-import-compiler-macros]: ./no-import-compiler-macros.md
471-
[vue/no-invalid-model-keys]: ./no-invalid-model-keys.md
472462
[vue/no-irregular-whitespace]: ./no-irregular-whitespace.md
473463
[vue/no-lifecycle-after-await]: ./no-lifecycle-after-await.md
474464
[vue/no-lone-template]: ./no-lone-template.md
@@ -481,7 +471,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
481471
[vue/no-parsing-error]: ./no-parsing-error.md
482472
[vue/no-potential-component-option-typo]: ./no-potential-component-option-typo.md
483473
[vue/no-ref-as-operand]: ./no-ref-as-operand.md
484-
[vue/no-ref-object-destructure]: ./no-ref-object-destructure.md
485474
[vue/no-ref-object-reactivity-loss]: ./no-ref-object-reactivity-loss.md
486475
[vue/no-required-prop-with-default]: ./no-required-prop-with-default.md
487476
[vue/no-reserved-component-names]: ./no-reserved-component-names.md
@@ -500,7 +489,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
500489
[vue/no-restricted-v-bind]: ./no-restricted-v-bind.md
501490
[vue/no-restricted-v-on]: ./no-restricted-v-on.md
502491
[vue/no-root-v-if]: ./no-root-v-if.md
503-
[vue/no-setup-props-destructure]: ./no-setup-props-destructure.md
504492
[vue/no-setup-props-reactivity-loss]: ./no-setup-props-reactivity-loss.md
505493
[vue/no-shared-component-data]: ./no-shared-component-data.md
506494
[vue/no-side-effects-in-computed-properties]: ./no-side-effects-in-computed-properties.md
@@ -577,7 +565,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
577565
[vue/return-in-computed-property]: ./return-in-computed-property.md
578566
[vue/return-in-emits-validator]: ./return-in-emits-validator.md
579567
[vue/script-indent]: ./script-indent.md
580-
[vue/script-setup-uses-vars]: ./script-setup-uses-vars.md
581568
[vue/singleline-html-element-content-newline]: ./singleline-html-element-content-newline.md
582569
[vue/slot-name-casing]: ./slot-name-casing.md
583570
[vue/sort-keys]: ./sort-keys.md
@@ -592,7 +579,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
592579
[vue/v-for-delimiter-style]: ./v-for-delimiter-style.md
593580
[vue/v-if-else-key]: ./v-if-else-key.md
594581
[vue/v-on-event-hyphenation]: ./v-on-event-hyphenation.md
595-
[vue/v-on-function-call]: ./v-on-function-call.md
596582
[vue/v-on-handler-style]: ./v-on-handler-style.md
597583
[vue/v-on-style]: ./v-on-style.md
598584
[vue/v-slot-style]: ./v-slot-style.md
@@ -623,15 +609,25 @@ The following rules extend the rules provided by ESLint itself and apply them to
623609

624610
<!-- link definitions for removed rules -->
625611

612+
[vue/component-tags-order]: ./component-tags-order.md
626613
[vue/experimental-script-setup-vars]: ./experimental-script-setup-vars.md
627614
[vue/name-property-casing]: ./name-property-casing.md
628615
[vue/no-confusing-v-for-v-if]: ./no-confusing-v-for-v-if.md
616+
[vue/no-invalid-model-keys]: ./no-invalid-model-keys.md
617+
[vue/no-ref-object-destructure]: ./no-ref-object-destructure.md
618+
[vue/no-setup-props-destructure]: ./no-setup-props-destructure.md
629619
[vue/no-unregistered-components]: ./no-unregistered-components.md
620+
[vue/script-setup-uses-vars]: ./script-setup-uses-vars.md
621+
[vue/v-on-function-call]: ./v-on-function-call.md
630622

631623
<!-- link definitions for releases -->
632624

625+
[v10.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v10.0.0
633626
[v5.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v5.0.0
634627
[v7.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v7.0.0
635628
[v7.13.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v7.13.0
636629
[v8.4.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v8.4.0
637630
[v9.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.0.0
631+
[v9.16.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.16.0
632+
[v9.17.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.17.0
633+
[v9.7.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.7.0

‎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

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

Lines 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

Lines 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

Lines 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

Lines 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

Lines 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'),
@@ -128,7 +127,6 @@ const plugin = {
128127
'no-extra-parens': require('./rules/no-extra-parens'),
129128
'no-implicit-coercion': require('./rules/no-implicit-coercion'),
130129
'no-import-compiler-macros': require('./rules/no-import-compiler-macros'),
131-
'no-invalid-model-keys': require('./rules/no-invalid-model-keys'),
132130
'no-irregular-whitespace': require('./rules/no-irregular-whitespace'),
133131
'no-lifecycle-after-await': require('./rules/no-lifecycle-after-await'),
134132
'no-lone-template': require('./rules/no-lone-template'),
@@ -141,7 +139,6 @@ const plugin = {
141139
'no-parsing-error': require('./rules/no-parsing-error'),
142140
'no-potential-component-option-typo': require('./rules/no-potential-component-option-typo'),
143141
'no-ref-as-operand': require('./rules/no-ref-as-operand'),
144-
'no-ref-object-destructure': require('./rules/no-ref-object-destructure'),
145142
'no-ref-object-reactivity-loss': require('./rules/no-ref-object-reactivity-loss'),
146143
'no-required-prop-with-default': require('./rules/no-required-prop-with-default'),
147144
'no-reserved-component-names': require('./rules/no-reserved-component-names'),
@@ -160,7 +157,6 @@ const plugin = {
160157
'no-restricted-v-bind': require('./rules/no-restricted-v-bind'),
161158
'no-restricted-v-on': require('./rules/no-restricted-v-on'),
162159
'no-root-v-if': require('./rules/no-root-v-if'),
163-
'no-setup-props-destructure': require('./rules/no-setup-props-destructure'),
164160
'no-setup-props-reactivity-loss': require('./rules/no-setup-props-reactivity-loss'),
165161
'no-shared-component-data': require('./rules/no-shared-component-data'),
166162
'no-side-effects-in-computed-properties': require('./rules/no-side-effects-in-computed-properties'),
@@ -237,7 +233,6 @@ const plugin = {
237233
'return-in-computed-property': require('./rules/return-in-computed-property'),
238234
'return-in-emits-validator': require('./rules/return-in-emits-validator'),
239235
'script-indent': require('./rules/script-indent'),
240-
'script-setup-uses-vars': require('./rules/script-setup-uses-vars'),
241236
'singleline-html-element-content-newline': require('./rules/singleline-html-element-content-newline'),
242237
'slot-name-casing': require('./rules/slot-name-casing'),
243238
'sort-keys': require('./rules/sort-keys'),
@@ -252,7 +247,6 @@ const plugin = {
252247
'v-for-delimiter-style': require('./rules/v-for-delimiter-style'),
253248
'v-if-else-key': require('./rules/v-if-else-key'),
254249
'v-on-event-hyphenation': require('./rules/v-on-event-hyphenation'),
255-
'v-on-function-call': require('./rules/v-on-function-call'),
256250
'v-on-handler-style': require('./rules/v-on-handler-style'),
257251
'v-on-style': require('./rules/v-on-style'),
258252
'v-slot-style': require('./rules/v-slot-style'),

‎lib/removed-rules.js

Lines 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

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /