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 5f64971

Browse filesBrowse files
committed
Add vue/block-order to recommended configs (#2627)
1 parent 44e0cdb commit 5f64971
Copy full SHA for 5f64971

9 files changed

+8
-9
lines changed

‎docs/rules/block-order.md

Copy file name to clipboardExpand all lines: docs/rules/block-order.md
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ since: v9.16.0
1010

1111
> enforce order of component top-level elements
1212
13+
- :gear: This rule is included in all of `"plugin:vue/vue3-recommended"`, `*.configs["flat/recommended"]`, `"plugin:vue/recommended"` and `*.configs["flat/vue2-recommended"]`.
1314
- :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.
1415

1516
## :book: Rule Details

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

Copy file name to clipboardExpand all lines: docs/rules/component-tags-order.md
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ since: v6.1.0
1111
> enforce order of component top-level elements
1212
1313
- :no_entry_sign: This rule was **deprecated** and replaced by [vue/block-order](block-order.md) rule.
14-
- :gear: This rule is included in all of `"plugin:vue/vue3-recommended"`, `*.configs["flat/recommended"]`, `"plugin:vue/recommended"` and `*.configs["flat/vue2-recommended"]`.
1514
- :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.
1615

1716
## :book: Rule Details

‎docs/rules/index.md

Copy file name to clipboardExpand all lines: docs/rules/index.md
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Rules in this category are enabled for all presets provided by eslint-plugin-vue
177177
| Rule ID | Description | | |
178178
|:--------|:------------|:--:|:--:|
179179
| [vue/attributes-order] | enforce order of attributes | :wrench: | :three::two::hammer: |
180-
| [vue/component-tags-order] | enforce order of component top-level elements | :wrench::no_entry_sign: | :three::two::hammer: |
180+
| [vue/block-order] | enforce order of component top-level elements | :wrench: | :three::two::hammer: |
181181
| [vue/no-lone-template] | disallow unnecessary `<template>` | | :three::two::warning: |
182182
| [vue/no-multiple-slot-args] | disallow to pass multiple arguments to scoped slots | | :three::two::warning: |
183183
| [vue/no-v-html] | disallow use of v-html to prevent XSS attack | | :three::two::hammer: |
@@ -206,7 +206,6 @@ For example:
206206
| Rule ID | Description | | |
207207
|:--------|:------------|:--:|:--:|
208208
| [vue/block-lang] | disallow use other than available `lang` | | :hammer: |
209-
| [vue/block-order] | enforce order of component top-level elements | :wrench: | :hammer: |
210209
| [vue/block-tag-newline] | enforce line breaks after opening and before closing block-level tags | :wrench: | :lipstick: |
211210
| [vue/component-api-style] | enforce component API style | | :hammer: |
212211
| [vue/component-name-in-template-casing] | enforce specific casing for the component naming style in template | :wrench: | :hammer: |

‎lib/configs/flat/vue2-recommended.js

Copy file name to clipboardExpand all lines: lib/configs/flat/vue2-recommended.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = [
1212
name: 'vue/vue2-recommended/rules',
1313
rules: {
1414
'vue/attributes-order': 'warn',
15-
'vue/component-tags-order': 'warn',
15+
'vue/block-order': 'warn',
1616
'vue/no-lone-template': 'warn',
1717
'vue/no-multiple-slot-args': 'warn',
1818
'vue/no-v-html': 'warn',

‎lib/configs/flat/vue3-recommended.js

Copy file name to clipboardExpand all lines: lib/configs/flat/vue3-recommended.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = [
1212
name: 'vue/recommended/rules',
1313
rules: {
1414
'vue/attributes-order': 'warn',
15-
'vue/component-tags-order': 'warn',
15+
'vue/block-order': 'warn',
1616
'vue/no-lone-template': 'warn',
1717
'vue/no-multiple-slot-args': 'warn',
1818
'vue/no-v-html': 'warn',

‎lib/configs/vue2-recommended.js

Copy file name to clipboardExpand all lines: lib/configs/vue2-recommended.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
extends: require.resolve('./vue2-strongly-recommended'),
88
rules: {
99
'vue/attributes-order': 'warn',
10-
'vue/component-tags-order': 'warn',
10+
'vue/block-order': 'warn',
1111
'vue/no-lone-template': 'warn',
1212
'vue/no-multiple-slot-args': 'warn',
1313
'vue/no-v-html': 'warn',

‎lib/configs/vue3-recommended.js

Copy file name to clipboardExpand all lines: lib/configs/vue3-recommended.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
extends: require.resolve('./vue3-strongly-recommended'),
88
rules: {
99
'vue/attributes-order': 'warn',
10-
'vue/component-tags-order': 'warn',
10+
'vue/block-order': 'warn',
1111
'vue/no-lone-template': 'warn',
1212
'vue/no-multiple-slot-args': 'warn',
1313
'vue/no-v-html': 'warn',

‎lib/rules/block-order.js

Copy file name to clipboardExpand all lines: lib/rules/block-order.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = {
3838
type: 'suggestion',
3939
docs: {
4040
description: 'enforce order of component top-level elements',
41-
categories: undefined,
41+
categories: ['vue3-recommended', 'vue2-recommended'],
4242
url: 'https://eslint.vuejs.org/rules/block-order.html'
4343
},
4444
fixable: 'code',

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

Copy file name to clipboardExpand all lines: lib/rules/component-tags-order.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
type: baseRule.meta.type,
1111
docs: {
1212
description: baseRule.meta.docs.description,
13-
categories: ['vue3-recommended', 'vue2-recommended'],
13+
categories: undefined,
1414
url: 'https://eslint.vuejs.org/rules/component-tags-order.html'
1515
},
1616
deprecated: true,

0 commit comments

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