Skip to content

Commit 01d1e45

Browse files
committed
7.9.0
1 parent 238de1b commit 01d1e45

File tree

5 files changed

+26
-7
lines changed

5 files changed

+26
-7
lines changed

Diff for: docs/rules/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ The following rules extend the rules provided by ESLint itself and apply them to
359359
| [vue/no-restricted-syntax](./no-restricted-syntax.md) | disallow specified syntax | |
360360
| [vue/no-sparse-arrays](./no-sparse-arrays.md) | disallow sparse arrays | |
361361
| [vue/no-useless-concat](./no-useless-concat.md) | disallow unnecessary concatenation of literals or template literals | |
362-
| [vue/object-curly-newline](./object-curly-newline.md) | enforce consistent line breaks inside braces | :wrench: |
362+
| [vue/object-curly-newline](./object-curly-newline.md) | enforce consistent line breaks after opening and before closing braces | :wrench: |
363363
| [vue/object-curly-spacing](./object-curly-spacing.md) | enforce consistent spacing inside braces | :wrench: |
364364
| [vue/object-property-newline](./object-property-newline.md) | enforce placing object properties on separate lines | :wrench: |
365365
| [vue/operator-linebreak](./operator-linebreak.md) | enforce consistent linebreak style for operators | :wrench: |

Diff for: docs/rules/no-invalid-model-keys.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@ pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/no-invalid-model-keys
55
description: require valid keys in model option
6+
since: v7.9.0
67
---
78
# vue/no-invalid-model-keys
89

910
> require valid keys in model option
1011
11-
1212
## :book: Rule Details
1313

1414
This rule is aimed at preventing invalid keys in model option.
1515

1616
<eslint-code-block :rules="{'vue/no-invalid-model-keys': ['error']}">
17+
1718
```vue
1819
<script>
1920
/* ✓ GOOD */
@@ -24,9 +25,11 @@ export default {
2425
}
2526
</script>
2627
```
28+
2729
</eslint-code-block>
2830

2931
<eslint-code-block :rules="{'vue/no-invalid-model-keys': ['error']}">
32+
3033
```vue
3134
<script>
3235
/* ✓ GOOD */
@@ -37,9 +40,11 @@ export default {
3740
}
3841
</script>
3942
```
43+
4044
</eslint-code-block>
4145

4246
<eslint-code-block :rules="{'vue/no-invalid-model-keys': ['error']}">
47+
4348
```vue
4449
<script>
4550
/* ✓ GOOD */
@@ -51,9 +56,11 @@ export default {
5156
}
5257
</script>
5358
```
59+
5460
</eslint-code-block>
5561

5662
<eslint-code-block :rules="{'vue/no-invalid-model-keys': ['error']}">
63+
5764
```vue
5865
<script>
5966
/* ✗ BAD */
@@ -65,9 +72,11 @@ export default {
6572
}
6673
</script>
6774
```
75+
6876
</eslint-code-block>
6977

7078
<eslint-code-block :rules="{'vue/no-invalid-model-keys': ['error']}">
79+
7180
```vue
7281
<script>
7382
/* ✗ BAD */
@@ -79,9 +88,11 @@ export default {
7988
}
8089
</script>
8190
```
91+
8292
</eslint-code-block>
8393

8494
<eslint-code-block :rules="{'vue/no-invalid-model-keys': ['error']}">
95+
8596
```vue
8697
<script>
8798
/* ✗ BAD */
@@ -94,9 +105,14 @@ export default {
94105
}
95106
</script>
96107
```
108+
97109
</eslint-code-block>
98110

99111

112+
## :rocket: Version
113+
114+
This rule was introduced in eslint-plugin-vue v7.9.0
115+
100116
## :mag: Implementation
101117

102118
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-invalid-model-keys.js)

Diff for: docs/rules/no-unused-refs.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/no-unused-refs
55
description: disallow unused refs
6+
since: v7.9.0
67
---
78
# vue/no-unused-refs
89

910
> disallow unused refs
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 is aimed at eliminating unused refs.
@@ -44,6 +43,10 @@ export default {
4443

4544
Nothing.
4645

46+
## :rocket: Version
47+
48+
This rule was introduced in eslint-plugin-vue v7.9.0
49+
4750
## :mag: Implementation
4851

4952
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-unused-refs.js)

Diff for: docs/rules/object-curly-newline.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/object-curly-newline
5-
description: enforce consistent line breaks inside braces
5+
description: enforce consistent line breaks after opening and before closing braces
66
since: v7.0.0
77
---
88
# vue/object-curly-newline
99

10-
> enforce consistent line breaks inside braces
10+
> enforce consistent line breaks after opening and before closing braces
1111
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

Diff for: package.json

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

0 commit comments

Comments
 (0)