Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7712e9f

Browse files
committedDec 13, 2024
Remove deprecated vue/no-ref-object-destructure rule
1 parent 34bf67c commit 7712e9f

File tree

6 files changed

+10
-477
lines changed

6 files changed

+10
-477
lines changed
 

‎docs/rules/index.md

Lines changed: 3 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-ref-object-destructure] | [vue/no-ref-object-reactivity-loss] |
352351
| [vue/no-setup-props-destructure] | [vue/no-setup-props-reactivity-loss] |
353352
| [vue/script-setup-uses-vars] | (no replacement) |
354353
| [vue/v-on-function-call] | [vue/v-on-handler-style] |
@@ -364,6 +363,7 @@ The following rules extend the rules provided by ESLint itself and apply them to
364363
| [vue/name-property-casing] | [vue/component-definition-name-casing] | [v7.0.0] | [v9.0.0] |
365364
| [vue/no-confusing-v-for-v-if] | [vue/no-use-v-if-with-v-for] | [v5.0.0] | [v9.0.0] |
366365
| [vue/no-invalid-model-keys] | [vue/valid-model-definition] | [v9.0.0] | [v10.0.0] |
366+
| [vue/no-ref-object-destructure] | [vue/no-ref-object-reactivity-loss] | [v9.17.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 -->
@@ -475,7 +475,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
475475
[vue/no-parsing-error]: ./no-parsing-error.md
476476
[vue/no-potential-component-option-typo]: ./no-potential-component-option-typo.md
477477
[vue/no-ref-as-operand]: ./no-ref-as-operand.md
478-
[vue/no-ref-object-destructure]: ./no-ref-object-destructure.md
479478
[vue/no-ref-object-reactivity-loss]: ./no-ref-object-reactivity-loss.md
480479
[vue/no-required-prop-with-default]: ./no-required-prop-with-default.md
481480
[vue/no-reserved-component-names]: ./no-reserved-component-names.md
@@ -622,6 +621,7 @@ The following rules extend the rules provided by ESLint itself and apply them to
622621
[vue/name-property-casing]: ./name-property-casing.md
623622
[vue/no-confusing-v-for-v-if]: ./no-confusing-v-for-v-if.md
624623
[vue/no-invalid-model-keys]: ./no-invalid-model-keys.md
624+
[vue/no-ref-object-destructure]: ./no-ref-object-destructure.md
625625
[vue/no-unregistered-components]: ./no-unregistered-components.md
626626

627627
<!-- link definitions for releases -->
@@ -633,3 +633,4 @@ The following rules extend the rules provided by ESLint itself and apply them to
633633
[v8.4.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v8.4.0
634634
[v9.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.0.0
635635
[v9.16.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.16.0
636+
[v9.17.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.17.0

‎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

‎lib/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ const plugin = {
137137
'no-parsing-error': require('./rules/no-parsing-error'),
138138
'no-potential-component-option-typo': require('./rules/no-potential-component-option-typo'),
139139
'no-ref-as-operand': require('./rules/no-ref-as-operand'),
140-
'no-ref-object-destructure': require('./rules/no-ref-object-destructure'),
141140
'no-ref-object-reactivity-loss': require('./rules/no-ref-object-reactivity-loss'),
142141
'no-required-prop-with-default': require('./rules/no-required-prop-with-default'),
143142
'no-reserved-component-names': require('./rules/no-reserved-component-names'),

‎lib/removed-rules.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ module.exports = [
4040
deprecatedInVersion: 'v9.0.0',
4141
removedInVersion: 'v10.0.0'
4242
},
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+
},
4349
{
4450
ruleName: 'no-unregistered-components',
4551
replacedBy: ['no-undef-components'],

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

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

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.