Skip to content

Commit 57c1e6f

Browse files
committed
9.15.0
1 parent 25a2db5 commit 57c1e6f

8 files changed

+34
-10
lines changed

docs/rules/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ For example:
221221
| [vue/html-comment-indent](./html-comment-indent.md) | enforce consistent indentation in HTML comments | :wrench: | :lipstick: |
222222
| [vue/match-component-file-name](./match-component-file-name.md) | require component name property to match its file name | :bulb: | :hammer: |
223223
| [vue/match-component-import-name](./match-component-import-name.md) | require the registered component name to match the imported component name | | :warning: |
224+
| [vue/max-lines-per-block](./max-lines-per-block.md) | enforce maximum number of lines in Vue SFC blocks | | :warning: |
224225
| [vue/new-line-between-multi-line-property](./new-line-between-multi-line-property.md) | enforce new lines between multi-line properties in Vue components | :wrench: | :lipstick: |
225226
| [vue/next-tick-style](./next-tick-style.md) | enforce Promise or callback style in `nextTick` | :wrench: | :hammer: |
226227
| [vue/no-bare-strings-in-template](./no-bare-strings-in-template.md) | disallow the use of bare strings in `<template>` | | :hammer: |

docs/rules/max-lines-per-block.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/max-lines-per-block
55
description: enforce maximum number of lines in Vue SFC blocks
6+
since: v9.15.0
67
---
78
# vue/max-lines-per-block
89

910
> enforce maximum number of lines in Vue SFC blocks
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 a maximum number of lines per block, in order to aid in maintainability and reduce complexity.
@@ -52,3 +51,12 @@ The following properties can be specified for the object.
5251
```
5352

5453
</eslint-code-block>
54+
55+
## :rocket: Version
56+
57+
This rule was introduced in eslint-plugin-vue v9.15.0
58+
59+
## :mag: Implementation
60+
61+
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/max-lines-per-block.js)
62+
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/max-lines-per-block.js)

docs/rules/no-console.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/no-console
55
description: Disallow the use of `console` in `<template>`
6+
since: v9.15.0
67
---
78
# vue/no-console
89

910
> Disallow the use of `console` 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>
12-
1312
## :book: Rule Details
1413

1514
This rule is the same rule as core [no-console] rule but it applies to the expressions in `<template>`.
@@ -20,9 +19,13 @@ This rule is the same rule as core [no-console] rule but it applies to the expre
2019

2120
[no-console]: https://eslint.org/docs/latest/rules/no-console
2221

22+
## :rocket: Version
23+
24+
This rule was introduced in eslint-plugin-vue v9.15.0
25+
2326
## :mag: Implementation
2427

2528
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-console.js)
2629
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/no-console.js)
2730

28-
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/no-console)</sup>
31+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/latest/rules/no-console)</sup>

docs/rules/no-restricted-component-names.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/no-restricted-component-names
55
description: disallow specific component names
6+
since: v9.15.0
67
---
78
# vue/no-restricted-component-names
89

910
> disallow specific component names
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
- :bulb: Some problems reported by this rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
1313

1414
## :book: Rule Details
@@ -83,6 +83,10 @@ export default {
8383

8484
</eslint-code-block>
8585

86+
## :rocket: Version
87+
88+
This rule was introduced in eslint-plugin-vue v9.15.0
89+
8690
## :mag: Implementation
8791

8892
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-restricted-component-names.js)

docs/rules/require-macro-variable-name.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/require-macro-variable-name
55
description: require a certain macro variable name
6+
since: v9.15.0
67
---
78
# vue/require-macro-variable-name
89

910
> require a certain macro variable name
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
- :bulb: Some problems reported by this rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
1313

1414
## :book: Rule Details
@@ -78,6 +78,10 @@ const attrsCustom = useAttrs()
7878

7979
</eslint-code-block>
8080

81+
## :rocket: Version
82+
83+
This rule was introduced in eslint-plugin-vue v9.15.0
84+
8185
## :mag: Implementation
8286

8387
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/require-macro-variable-name.js)

docs/rules/require-typed-ref.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/require-typed-ref
55
description: require `ref` and `shallowRef` functions to be strongly typed
6+
since: v9.15.0
67
---
78
# vue/require-typed-ref
89

910
> require `ref` and `shallowRef` functions to be strongly typed
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 disallows calling `ref()` or `shallowRef()` functions without generic type parameter or an argument when using TypeScript.
@@ -41,6 +40,10 @@ const count: Ref<number | undefined> = ref()
4140

4241
Nothing.
4342

43+
## :rocket: Version
44+
45+
This rule was introduced in eslint-plugin-vue v9.15.0
46+
4447
## :mag: Implementation
4548

4649
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/require-typed-ref.js)

lib/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ module.exports = {
5454
'match-component-import-name': require('./rules/match-component-import-name'),
5555
'max-attributes-per-line': require('./rules/max-attributes-per-line'),
5656
'max-len': require('./rules/max-len'),
57+
'max-lines-per-block': require('./rules/max-lines-per-block'),
5758
'multi-word-component-names': require('./rules/multi-word-component-names'),
5859
'multiline-html-element-content-newline': require('./rules/multiline-html-element-content-newline'),
5960
'multiline-ternary': require('./rules/multiline-ternary'),

package.json

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

0 commit comments

Comments
 (0)