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 b1f1432

Browse files
9.5.0
1 parent 4383a86 commit b1f1432

File tree

8 files changed

+26
-12
lines changed

8 files changed

+26
-12
lines changed

‎docs/rules/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ For example:
251251
| [vue/no-useless-v-bind](./no-useless-v-bind.md) | disallow unnecessary `v-bind` directives | :wrench: | :hammer: |
252252
| [vue/no-v-text](./no-v-text.md) | disallow use of v-text | | :hammer: |
253253
| [vue/padding-line-between-blocks](./padding-line-between-blocks.md) | require or disallow padding lines between blocks | :wrench: | :lipstick: |
254+
| [vue/padding-line-between-tags](./padding-line-between-tags.md) | require or disallow newlines between sibling tags in template | :wrench: | :lipstick: |
254255
| [vue/prefer-prop-type-boolean-first](./prefer-prop-type-boolean-first.md) | enforce `Boolean` comes first in component prop types | :bulb: | :warning: |
255256
| [vue/prefer-separate-static-class](./prefer-separate-static-class.md) | require static class names in template to be in a separate `class` attribute | :wrench: | :hammer: |
256257
| [vue/prefer-true-attribute-shorthand](./prefer-true-attribute-shorthand.md) | require shorthand form attribute when `v-bind` value is `true` | :bulb: | :hammer: |
@@ -260,7 +261,6 @@ For example:
260261
| [vue/require-name-property](./require-name-property.md) | require a name property in Vue components | | :hammer: |
261262
| [vue/script-indent](./script-indent.md) | enforce consistent indentation in `<script>` | :wrench: | :lipstick: |
262263
| [vue/sort-keys](./sort-keys.md) | enforce sort-keys in a manner that is compatible with order-in-components | | :hammer: |
263-
| [vue/padding-line-between-tags](./padding-line-between-tags.md) | Insert newlines between sibling tags in template | :wrench: | :warning: |
264264
| [vue/static-class-names-order](./static-class-names-order.md) | enforce static class names order | :wrench: | :hammer: |
265265
| [vue/v-for-delimiter-style](./v-for-delimiter-style.md) | enforce `v-for` directive's delimiter style | :wrench: | :lipstick: |
266266
| [vue/v-on-function-call](./v-on-function-call.md) | enforce or forbid parentheses after method calls without arguments in `v-on` directives | :wrench: | :hammer: |

‎docs/rules/define-emits-declaration.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/define-emits-declaration
55
description: enforce declaration style of `defineEmits`
6+
since: v9.5.0
67
---
78
# vue/define-emits-declaration
89

910
> enforce declaration style of `defineEmits`
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
12-
1312
## :book: Rule Details
1413

1514
This rule enforces `defineEmits` typing style which you should use `type-based` or `runtime` declaration.
@@ -72,6 +71,10 @@ const emit = defineEmits(['change', 'update'])
7271
- [Typescript-only-features of `defineEmits`](https://vuejs.org/api/sfc-script-setup.html#typescript-only-features)
7372
- [Guide - Typing-component-emits](https://vuejs.org/guide/typescript/composition-api.html#typing-component-emits)
7473

74+
## :rocket: Version
75+
76+
This rule was introduced in eslint-plugin-vue v9.5.0
77+
7578
## :mag: Implementation
7679

7780
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/define-emits-declaration.js)

‎docs/rules/define-props-declaration.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/define-props-declaration
55
description: enforce declaration style of `defineProps`
6+
since: v9.5.0
67
---
78
# vue/define-props-declaration
89

910
> enforce declaration style of `defineProps`
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
12-
1312
## :book: Rule Details
1413

1514
This rule enforces `defineProps` typing style which you should use `type-based` or `runtime` declaration.
@@ -73,6 +72,10 @@ const emit = defineEmits(['change', 'update'])
7372
- [Typescript-only-features of `defineProps`](https://vuejs.org/api/sfc-script-setup.html#typescript-only-features)
7473
- [Guide - Typing-component-props](https://vuejs.org/guide/typescript/composition-api.html#typing-component-props)
7574

75+
## :rocket: Version
76+
77+
This rule was introduced in eslint-plugin-vue v9.5.0
78+
7679
## :mag: Implementation
7780

7881
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/define-props-declaration.js)

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/no-ref-object-destructure
55
description: disallow destructuring of ref objects that can lead to loss of reactivity
6+
since: v9.5.0
67
---
78
# vue/no-ref-object-destructure
89

910
> disallow destructuring of ref objects that can lead to loss of reactivity
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
12-
1312
## :book: Rule Details
1413

1514
This rule reports the destructuring of ref objects causing the value to lose reactivity.
@@ -49,6 +48,10 @@ const v5 = $computed(() => fn(count) /* ✓ GOOD */)
4948

5049
Nothing.
5150

51+
## :rocket: Version
52+
53+
This rule was introduced in eslint-plugin-vue v9.5.0
54+
5255
## :mag: Implementation
5356

5457
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-ref-object-destructure.js)

‎docs/rules/padding-line-between-tags.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/padding-line-between-tags
5-
description: Require or disallow newlines between sibling tags in template
5+
description: require or disallow newlines between sibling tags in template
6+
since: v9.5.0
67
---
78
# vue/padding-line-between-tags
89

9-
> Require or disallow newlines between sibling tags in template
10+
> require or disallow newlines between sibling tags in template
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1212
- :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.
1313

1414
## :book: Rule Details
@@ -157,6 +157,10 @@ A configuration is an object which has 3 properties; blankLine, prev and next. F
157157

158158
</eslint-code-block>
159159

160+
## :rocket: Version
161+
162+
This rule was introduced in eslint-plugin-vue v9.5.0
163+
160164
## :mag: Implementation
161165

162166
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/padding-line-between-tags.js)

‎lib/configs/no-layout-rules.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ module.exports = {
4141
'vue/object-property-newline': 'off',
4242
'vue/operator-linebreak': 'off',
4343
'vue/padding-line-between-blocks': 'off',
44+
'vue/padding-line-between-tags': 'off',
4445
'vue/script-indent': 'off',
4546
'vue/singleline-html-element-content-newline': 'off',
4647
'vue/space-in-parens': 'off',

‎lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ module.exports = {
159159
'operator-linebreak': require('./rules/operator-linebreak'),
160160
'order-in-components': require('./rules/order-in-components'),
161161
'padding-line-between-blocks': require('./rules/padding-line-between-blocks'),
162+
'padding-line-between-tags': require('./rules/padding-line-between-tags'),
162163
'prefer-import-from-vue': require('./rules/prefer-import-from-vue'),
163164
'prefer-prop-type-boolean-first': require('./rules/prefer-prop-type-boolean-first'),
164165
'prefer-separate-static-class': require('./rules/prefer-separate-static-class'),
@@ -186,7 +187,6 @@ module.exports = {
186187
'script-setup-uses-vars': require('./rules/script-setup-uses-vars'),
187188
'singleline-html-element-content-newline': require('./rules/singleline-html-element-content-newline'),
188189
'sort-keys': require('./rules/sort-keys'),
189-
'padding-line-between-tags': require('./rules/padding-line-between-tags'),
190190
'space-in-parens': require('./rules/space-in-parens'),
191191
'space-infix-ops': require('./rules/space-infix-ops'),
192192
'space-unary-ops': require('./rules/space-unary-ops'),

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-vue",
3-
"version": "9.4.0",
3+
"version": "9.5.0",
44
"description": "Official ESLint plugin for Vue.js",
55
"main": "lib/index.js",
66
"scripts": {

0 commit comments

Comments
(0)

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