Skip to content

Commit 30e89ec

Browse files
authored
Chores: Add release version of rule to docs (vuejs#1386)
1 parent dfe445f commit 30e89ec

File tree

170 files changed

+885
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+885
-6
lines changed

docs/rules/array-bracket-newline.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce linebreaks after opening and before closing array brackets
66
since: v7.1.0
77
---
88
# vue/array-bracket-newline
9+
910
> enforce linebreaks after opening and before closing array brackets
1011
1112
- :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.
@@ -18,6 +19,10 @@ This rule is the same rule as core [array-bracket-newline] rule but it applies t
1819

1920
[array-bracket-newline]: https://eslint.org/docs/rules/array-bracket-newline
2021

22+
## :rocket: Version
23+
24+
This rule was introduced in eslint-plugin-vue v7.1.0
25+
2126
## :mag: Implementation
2227

2328
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/array-bracket-newline.js)

docs/rules/array-bracket-spacing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce consistent spacing inside array brackets
66
since: v5.2.0
77
---
88
# vue/array-bracket-spacing
9+
910
> enforce consistent spacing inside array brackets
1011
1112
- :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.
@@ -18,6 +19,10 @@ This rule is the same rule as core [array-bracket-spacing] rule but it applies t
1819

1920
[array-bracket-spacing]: https://eslint.org/docs/rules/array-bracket-spacing
2021

22+
## :rocket: Version
23+
24+
This rule was introduced in eslint-plugin-vue v5.2.0
25+
2126
## :mag: Implementation
2227

2328
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/array-bracket-spacing.js)

docs/rules/arrow-spacing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce consistent spacing before and after the arrow in arrow func
66
since: v5.2.0
77
---
88
# vue/arrow-spacing
9+
910
> enforce consistent spacing before and after the arrow in arrow functions
1011
1112
- :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.
@@ -18,6 +19,10 @@ This rule is the same rule as core [arrow-spacing] rule but it applies to the ex
1819

1920
[arrow-spacing]: https://eslint.org/docs/rules/arrow-spacing
2021

22+
## :rocket: Version
23+
24+
This rule was introduced in eslint-plugin-vue v5.2.0
25+
2126
## :mag: Implementation
2227

2328
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/arrow-spacing.js)

docs/rules/attribute-hyphenation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce attribute naming style on custom components in template
66
since: v3.9.0
77
---
88
# vue/attribute-hyphenation
9+
910
> enforce attribute naming style on custom components in template
1011
1112
- :gear: This rule is included in all of `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
@@ -103,6 +104,10 @@ Don't use hyphenated name but allow custom attributes
103104

104105
</eslint-code-block>
105106

107+
## :rocket: Version
108+
109+
This rule was introduced in eslint-plugin-vue v3.9.0
110+
106111
## :mag: Implementation
107112

108113
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/attribute-hyphenation.js)

docs/rules/attributes-order.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce order of attributes
66
since: v4.3.0
77
---
88
# vue/attributes-order
9+
910
> enforce order of attributes
1011
1112
- :gear: This rule is included in `"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
@@ -221,6 +222,10 @@ This rule aims to enforce ordering of component attributes. The default order is
221222
- [Style guide - Element attribute order](https://v3.vuejs.org/style-guide/#element-attribute-order-recommended)
222223
- [Style guide (for v2) - Element attribute order](https://vuejs.org/v2/style-guide/#Element-attribute-order-recommended)
223224

225+
## :rocket: Version
226+
227+
This rule was introduced in eslint-plugin-vue v4.3.0
228+
224229
## :mag: Implementation
225230

226231
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/attributes-order.js)

docs/rules/block-spacing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: disallow or enforce spaces inside of blocks after opening block and
66
since: v5.2.0
77
---
88
# vue/block-spacing
9+
910
> disallow or enforce spaces inside of blocks after opening block and before closing block
1011
1112
- :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.
@@ -18,6 +19,10 @@ This rule is the same rule as core [block-spacing] rule but it applies to the ex
1819

1920
[block-spacing]: https://eslint.org/docs/rules/block-spacing
2021

22+
## :rocket: Version
23+
24+
This rule was introduced in eslint-plugin-vue v5.2.0
25+
2126
## :mag: Implementation
2227

2328
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/block-spacing.js)

docs/rules/block-tag-newline.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce line breaks after opening and before closing block-level ta
66
since: v7.1.0
77
---
88
# vue/block-tag-newline
9+
910
> enforce line breaks after opening and before closing block-level tags
1011
1112
- :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.
@@ -156,6 +157,10 @@ export default {
156157

157158
</eslint-code-block>
158159

160+
## :rocket: Version
161+
162+
This rule was introduced in eslint-plugin-vue v7.1.0
163+
159164
## :mag: Implementation
160165

161166
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/block-tag-newline.js)

docs/rules/brace-style.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce consistent brace style for blocks
66
since: v5.2.0
77
---
88
# vue/brace-style
9+
910
> enforce consistent brace style for blocks
1011
1112
- :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.
@@ -18,6 +19,10 @@ This rule is the same rule as core [brace-style] rule but it applies to the expr
1819

1920
[brace-style]: https://eslint.org/docs/rules/brace-style
2021

22+
## :rocket: Version
23+
24+
This rule was introduced in eslint-plugin-vue v5.2.0
25+
2126
## :mag: Implementation
2227

2328
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/brace-style.js)

docs/rules/camelcase.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce camelcase naming convention
66
since: v5.2.0
77
---
88
# vue/camelcase
9+
910
> enforce camelcase naming convention
1011
1112
This rule is the same rule as core [camelcase] rule but it applies to the expressions in `<template>`.
@@ -16,6 +17,10 @@ This rule is the same rule as core [camelcase] rule but it applies to the expres
1617

1718
[camelcase]: https://eslint.org/docs/rules/camelcase
1819

20+
## :rocket: Version
21+
22+
This rule was introduced in eslint-plugin-vue v5.2.0
23+
1924
## :mag: Implementation
2025

2126
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/camelcase.js)

docs/rules/comma-dangle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: require or disallow trailing commas
66
since: v5.2.0
77
---
88
# vue/comma-dangle
9+
910
> require or disallow trailing commas
1011
1112
- :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.
@@ -18,6 +19,10 @@ This rule is the same rule as core [comma-dangle] rule but it applies to the exp
1819

1920
[comma-dangle]: https://eslint.org/docs/rules/comma-dangle
2021

22+
## :rocket: Version
23+
24+
This rule was introduced in eslint-plugin-vue v5.2.0
25+
2126
## :mag: Implementation
2227

2328
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/comma-dangle.js)

docs/rules/comma-spacing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce consistent spacing before and after commas
66
since: v7.0.0
77
---
88
# vue/comma-spacing
9+
910
> enforce consistent spacing before and after commas
1011
1112
- :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.
@@ -18,6 +19,10 @@ This rule is the same rule as core [comma-spacing] rule but it applies to the ex
1819

1920
[comma-spacing]: https://eslint.org/docs/rules/comma-spacing
2021

22+
## :rocket: Version
23+
24+
This rule was introduced in eslint-plugin-vue v7.0.0
25+
2126
## :mag: Implementation
2227

2328
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/comma-spacing.js)

docs/rules/comma-style.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce consistent comma style
66
since: v7.0.0
77
---
88
# vue/comma-style
9+
910
> enforce consistent comma style
1011
1112
- :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.
@@ -18,6 +19,10 @@ This rule is the same rule as core [comma-style] rule but it applies to the expr
1819

1920
[comma-style]: https://eslint.org/docs/rules/comma-style
2021

22+
## :rocket: Version
23+
24+
This rule was introduced in eslint-plugin-vue v7.0.0
25+
2126
## :mag: Implementation
2227

2328
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/comma-style.js)

docs/rules/comment-directive.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: support comment-directives in `<template>`
66
since: v4.1.0
77
---
88
# vue/comment-directive
9+
910
> support comment-directives in `<template>`
1011
1112
- :gear: This rule is included in all of `"plugin:vue/base"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-essential"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/recommended"` and `"plugin:vue/vue3-recommended"`.
@@ -128,6 +129,10 @@ Unused reports cannot be suppressed with `eslint-disable` HTML comments.
128129

129130
[Disabling rules with inline comments]: https://eslint.org/docs/user-guide/configuring#disabling-rules-with-inline-comments
130131

132+
## :rocket: Version
133+
134+
This rule was introduced in eslint-plugin-vue v4.1.0
135+
131136
## :mag: Implementation
132137

133138
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/comment-directive.js)

docs/rules/component-definition-name-casing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce specific casing for component definition name
66
since: v7.0.0
77
---
88
# vue/component-definition-name-casing
9+
910
> enforce specific casing for component definition name
1011
1112
- :gear: This rule is included in all of `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
@@ -122,6 +123,10 @@ Vue.component('MyComponent', {
122123

123124
- [Style guide - Component name casing in JS/JSX](https://v3.vuejs.org/style-guide/#component-name-casing-in-js-jsx-strongly-recommended)
124125

126+
## :rocket: Version
127+
128+
This rule was introduced in eslint-plugin-vue v7.0.0
129+
125130
## :mag: Implementation
126131

127132
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/component-definition-name-casing.js)

docs/rules/component-name-in-template-casing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce specific casing for the component naming style in template
66
since: v5.0.0
77
---
88
# vue/component-name-in-template-casing
9+
910
> enforce specific casing for the component naming style in template
1011
1112
- :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.
@@ -144,6 +145,10 @@ export default {
144145

145146
- [Style guide - Component name casing in templates](https://v3.vuejs.org/style-guide/#component-name-casing-in-templates-strongly-recommended)
146147

148+
## :rocket: Version
149+
150+
This rule was introduced in eslint-plugin-vue v5.0.0
151+
147152
## :mag: Implementation
148153

149154
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/component-name-in-template-casing.js)

docs/rules/component-tags-order.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce order of component top-level elements
66
since: v6.1.0
77
---
88
# vue/component-tags-order
9+
910
> enforce order of component top-level elements
1011
1112
- :gear: This rule is included in `"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
@@ -115,6 +116,10 @@ This rule warns about the order of the `<script>`, `<template>` & `<style>` tags
115116

116117
- [Style guide - Single-file component top-level element order](https://v3.vuejs.org/style-guide/#single-file-component-top-level-element-order-recommended)
117118

119+
## :rocket: Version
120+
121+
This rule was introduced in eslint-plugin-vue v6.1.0
122+
118123
## :mag: Implementation
119124

120125
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/component-tags-order.js)

docs/rules/custom-event-name-casing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce specific casing for custom event name
66
since: v7.0.0
77
---
88
# vue/custom-event-name-casing
9+
910
> enforce specific casing for custom event name
1011
1112
Define a style for custom event name casing for consistency purposes.
@@ -170,6 +171,10 @@ export default {
170171
[Guide - Custom Events]: https://v3.vuejs.org/guide/component-custom-events.html
171172
[Guide (for v2) - Custom Events]: https://vuejs.org/v2/guide/components-custom-events.html
172173

174+
## :rocket: Version
175+
176+
This rule was introduced in eslint-plugin-vue v7.0.0
177+
173178
## :mag: Implementation
174179

175180
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/custom-event-name-casing.js)

docs/rules/dot-location.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce consistent newlines before and after dots
66
since: v6.0.0
77
---
88
# vue/dot-location
9+
910
> enforce consistent newlines before and after dots
1011
1112
- :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.
@@ -18,6 +19,10 @@ This rule is the same rule as core [dot-location] rule but it applies to the exp
1819

1920
[dot-location]: https://eslint.org/docs/rules/dot-location
2021

22+
## :rocket: Version
23+
24+
This rule was introduced in eslint-plugin-vue v6.0.0
25+
2126
## :mag: Implementation
2227

2328
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/dot-location.js)

docs/rules/dot-notation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: enforce dot notation whenever possible
66
since: v7.0.0
77
---
88
# vue/dot-notation
9+
910
> enforce dot notation whenever possible
1011
1112
- :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.
@@ -18,6 +19,10 @@ This rule is the same rule as core [dot-notation] rule but it applies to the exp
1819

1920
[dot-notation]: https://eslint.org/docs/rules/dot-notation
2021

22+
## :rocket: Version
23+
24+
This rule was introduced in eslint-plugin-vue v7.0.0
25+
2126
## :mag: Implementation
2227

2328
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/dot-notation.js)

docs/rules/eqeqeq.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: require the use of `===` and `!==`
66
since: v5.2.0
77
---
88
# vue/eqeqeq
9+
910
> require the use of `===` and `!==`
1011
1112
- :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.
@@ -18,6 +19,10 @@ This rule is the same rule as core [eqeqeq] rule but it applies to the expressio
1819

1920
[eqeqeq]: https://eslint.org/docs/rules/eqeqeq
2021

22+
## :rocket: Version
23+
24+
This rule was introduced in eslint-plugin-vue v5.2.0
25+
2126
## :mag: Implementation
2227

2328
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/eqeqeq.js)

docs/rules/experimental-script-setup-vars.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: prevent variables defined in `<script setup>` to be marked as undef
66
since: v7.0.0
77
---
88
# vue/experimental-script-setup-vars
9+
910
> prevent variables defined in `<script setup>` to be marked as undefined
1011
1112
- :gear: This rule is included in all of `"plugin:vue/base"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-essential"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/recommended"` and `"plugin:vue/vue3-recommended"`.
@@ -37,6 +38,10 @@ emit('foo')
3738

3839
After turning on, `props` and `emit` are being marked as defined and `no-undef` rule doesn't report an issue.
3940

41+
## :rocket: Version
42+
43+
This rule was introduced in eslint-plugin-vue v7.0.0
44+
4045
## :mag: Implementation
4146

4247
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/experimental-script-setup-vars.js)

0 commit comments

Comments
 (0)