Skip to content

Commit c987c95

Browse files
committed
Remove deprecated vue/component-tags-order rule
1 parent 37a0e65 commit c987c95

File tree

6 files changed

+11
-524
lines changed

6 files changed

+11
-524
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#fixing-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: 4 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/component-tags-order] | [vue/block-order] |
352351
| [vue/no-invalid-model-keys] | [vue/valid-model-definition] |
353352
| [vue/no-ref-object-destructure] | [vue/no-ref-object-reactivity-loss] |
354353
| [vue/no-setup-props-destructure] | [vue/no-setup-props-reactivity-loss] |
@@ -361,6 +360,7 @@ The following rules extend the rules provided by ESLint itself and apply them to
361360

362361
| Rule ID | Replaced by | Deprecated in version | Removed in version |
363362
|:--------|:------------|:-----------------------|:-------------------|
363+
| [vue/component-tags-order] | [vue/block-order] | [v9.16.0] | [v10.0.0] |
364364
| [vue/experimental-script-setup-vars] | (no replacement) | [v7.13.0] | [v9.0.0] |
365365
| [vue/name-property-casing] | [vue/component-definition-name-casing] | [v7.0.0] | [v9.0.0] |
366366
| [vue/no-confusing-v-for-v-if] | [vue/no-use-v-if-with-v-for] | [v5.0.0] | [v9.0.0] |
@@ -388,7 +388,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
388388
[vue/component-definition-name-casing]: ./component-definition-name-casing.md
389389
[vue/component-name-in-template-casing]: ./component-name-in-template-casing.md
390390
[vue/component-options-name-casing]: ./component-options-name-casing.md
391-
[vue/component-tags-order]: ./component-tags-order.md
392391
[vue/custom-event-name-casing]: ./custom-event-name-casing.md
393392
[vue/define-emits-declaration]: ./define-emits-declaration.md
394393
[vue/define-macros-order]: ./define-macros-order.md
@@ -619,15 +618,18 @@ The following rules extend the rules provided by ESLint itself and apply them to
619618

620619
<!-- link definitions for removed rules -->
621620

621+
[vue/component-tags-order]: ./component-tags-order.md
622622
[vue/experimental-script-setup-vars]: ./experimental-script-setup-vars.md
623623
[vue/name-property-casing]: ./name-property-casing.md
624624
[vue/no-confusing-v-for-v-if]: ./no-confusing-v-for-v-if.md
625625
[vue/no-unregistered-components]: ./no-unregistered-components.md
626626

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

629+
[v10.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v10.0.0
629630
[v5.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v5.0.0
630631
[v7.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v7.0.0
631632
[v7.13.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v7.13.0
632633
[v8.4.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v8.4.0
633634
[v9.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.0.0
635+
[v9.16.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.16.0

lib/index.js

Lines changed: 0 additions & 1 deletion
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'),

lib/removed-rules.js

Lines changed: 6 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: [],

lib/rules/component-tags-order.js

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

0 commit comments

Comments
 (0)