Skip to content

Fixes #1379 Add since attribute #1384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 24, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/rules/array-bracket-newline.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/array-bracket-newline
description: enforce linebreaks after opening and before closing array brackets
since: v7.1.0
---
# vue/array-bracket-newline
> enforce linebreaks after opening and before closing array brackets
Expand Down
1 change: 1 addition & 0 deletions docs/rules/array-bracket-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/array-bracket-spacing
description: enforce consistent spacing inside array brackets
since: v5.2.0
---
# vue/array-bracket-spacing
> enforce consistent spacing inside array brackets
Expand Down
1 change: 1 addition & 0 deletions docs/rules/arrow-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/arrow-spacing
description: enforce consistent spacing before and after the arrow in arrow functions
since: v5.2.0
---
# vue/arrow-spacing
> enforce consistent spacing before and after the arrow in arrow functions
Expand Down
1 change: 1 addition & 0 deletions docs/rules/attribute-hyphenation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/attribute-hyphenation
description: enforce attribute naming style on custom components in template
since: v3.9.0
---
# vue/attribute-hyphenation
> enforce attribute naming style on custom components in template
Expand Down
3 changes: 2 additions & 1 deletion docs/rules/attributes-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/attributes-order
description: enforce order of attributes
since: v4.3.0
---
# vue/attributes-order
> enforce order of attributes
Expand Down Expand Up @@ -111,7 +112,7 @@ This rule aims to enforce ordering of component attributes. The default order is
}
```

### `"alphabetical": true`
### `"alphabetical": true`

<eslint-code-block fix :rules="{'vue/attributes-order': ['error', {alphabetical: true}]}">

Expand Down
1 change: 1 addition & 0 deletions docs/rules/block-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/block-spacing
description: disallow or enforce spaces inside of blocks after opening block and before closing block
since: v5.2.0
---
# vue/block-spacing
> disallow or enforce spaces inside of blocks after opening block and before closing block
Expand Down
1 change: 1 addition & 0 deletions docs/rules/block-tag-newline.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/block-tag-newline
description: enforce line breaks after opening and before closing block-level tags
since: v7.1.0
---
# vue/block-tag-newline
> enforce line breaks after opening and before closing block-level tags
Expand Down
1 change: 1 addition & 0 deletions docs/rules/brace-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/brace-style
description: enforce consistent brace style for blocks
since: v5.2.0
---
# vue/brace-style
> enforce consistent brace style for blocks
Expand Down
1 change: 1 addition & 0 deletions docs/rules/camelcase.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/camelcase
description: enforce camelcase naming convention
since: v5.2.0
---
# vue/camelcase
> enforce camelcase naming convention
Expand Down
1 change: 1 addition & 0 deletions docs/rules/comma-dangle.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/comma-dangle
description: require or disallow trailing commas
since: v5.2.0
---
# vue/comma-dangle
> require or disallow trailing commas
Expand Down
1 change: 1 addition & 0 deletions docs/rules/comma-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/comma-spacing
description: enforce consistent spacing before and after commas
since: v7.0.0
---
# vue/comma-spacing
> enforce consistent spacing before and after commas
Expand Down
1 change: 1 addition & 0 deletions docs/rules/comma-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/comma-style
description: enforce consistent comma style
since: v7.0.0
---
# vue/comma-style
> enforce consistent comma style
Expand Down
1 change: 1 addition & 0 deletions docs/rules/comment-directive.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/comment-directive
description: support comment-directives in `<template>`
since: v4.1.0
---
# vue/comment-directive
> support comment-directives in `<template>`
Expand Down
9 changes: 5 additions & 4 deletions docs/rules/component-definition-name-casing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/component-definition-name-casing
description: enforce specific casing for component definition name
since: v7.0.0
---
# vue/component-definition-name-casing
> enforce specific casing for component definition name
Expand Down Expand Up @@ -62,12 +63,12 @@ export default {
```js
/* ✓ GOOD */
Vue.component('MyComponent', {

})

/* ✗ BAD */
Vue.component('my-component', {

})
```

Expand Down Expand Up @@ -106,12 +107,12 @@ export default {
```js
/* ✓ GOOD */
Vue.component('my-component', {

})

/* ✗ BAD */
Vue.component('MyComponent', {

})
```

Expand Down
7 changes: 4 additions & 3 deletions docs/rules/component-name-in-template-casing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/component-name-in-template-casing
description: enforce specific casing for the component naming style in template
since: v5.0.0
---
# vue/component-name-in-template-casing
> enforce specific casing for the component naming style in template
Expand Down Expand Up @@ -40,7 +41,7 @@ This rule aims to warn the tag names other than the configured casing in Vue.js
<template>
<!-- ✓ GOOD -->
<CoolComponent />

<!-- ✗ BAD -->
<cool-component />
<coolComponent />
Expand Down Expand Up @@ -104,7 +105,7 @@ export default {
<!-- ✓ GOOD -->
<CoolComponent />
<UnregisteredComponent />

<!-- ✗ BAD -->
<cool-component />
<unregistered-component />
Expand All @@ -131,7 +132,7 @@ export default {
<custom-element></custom-element>
<custom-button></custom-button>
<custom-input />

<!-- ✗ BAD -->
<magic-element></magic-element>
</template>
Expand Down
1 change: 1 addition & 0 deletions docs/rules/component-tags-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/component-tags-order
description: enforce order of component top-level elements
since: v6.1.0
---
# vue/component-tags-order
> enforce order of component top-level elements
Expand Down
1 change: 1 addition & 0 deletions docs/rules/custom-event-name-casing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/custom-event-name-casing
description: enforce specific casing for custom event name
since: v7.0.0
---
# vue/custom-event-name-casing
> enforce specific casing for custom event name
Expand Down
1 change: 1 addition & 0 deletions docs/rules/dot-location.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/dot-location
description: enforce consistent newlines before and after dots
since: v6.0.0
---
# vue/dot-location
> enforce consistent newlines before and after dots
Expand Down
1 change: 1 addition & 0 deletions docs/rules/dot-notation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/dot-notation
description: enforce dot notation whenever possible
since: v7.0.0
---
# vue/dot-notation
> enforce dot notation whenever possible
Expand Down
1 change: 1 addition & 0 deletions docs/rules/eqeqeq.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/eqeqeq
description: require the use of `===` and `!==`
since: v5.2.0
---
# vue/eqeqeq
> require the use of `===` and `!==`
Expand Down
1 change: 1 addition & 0 deletions docs/rules/experimental-script-setup-vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/experimental-script-setup-vars
description: prevent variables defined in `<script setup>` to be marked as undefined
since: v7.0.0
---
# vue/experimental-script-setup-vars
> prevent variables defined in `<script setup>` to be marked as undefined
Expand Down
1 change: 1 addition & 0 deletions docs/rules/func-call-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/func-call-spacing
description: require or disallow spacing between function identifiers and their invocations
since: v7.0.0
---
# vue/func-call-spacing
> require or disallow spacing between function identifiers and their invocations
Expand Down
1 change: 1 addition & 0 deletions docs/rules/html-closing-bracket-newline.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/html-closing-bracket-newline
description: require or disallow a line break before tag's closing brackets
since: v4.1.0
---
# vue/html-closing-bracket-newline
> require or disallow a line break before tag's closing brackets
Expand Down
1 change: 1 addition & 0 deletions docs/rules/html-closing-bracket-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/html-closing-bracket-spacing
description: require or disallow a space before tag's closing brackets
since: v4.1.0
---
# vue/html-closing-bracket-spacing
> require or disallow a space before tag's closing brackets
Expand Down
1 change: 1 addition & 0 deletions docs/rules/html-comment-content-newline.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/html-comment-content-newline
description: enforce unified line brake in HTML comments
since: v7.0.0
---
# vue/html-comment-content-newline
> enforce unified line brake in HTML comments
Expand Down
1 change: 1 addition & 0 deletions docs/rules/html-comment-content-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/html-comment-content-spacing
description: enforce unified spacing in HTML comments
since: v7.0.0
---
# vue/html-comment-content-spacing
> enforce unified spacing in HTML comments
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/html-comment-indent.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pageClass: rule-details
sidebarDepth: 0
title: vue/html-comment-indent
description: enforce consistent indentation in HTML comments
since: v7.0.0
---
# vue/html-comment-indent
> enforce consistent indentation in HTML comments
Expand Down
1 change: 1 addition & 0 deletions docs/rules/html-end-tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/html-end-tags
description: enforce end tag style
since: v3.0.0
---
# vue/html-end-tags
> enforce end tag style
Expand Down
3 changes: 2 additions & 1 deletion docs/rules/html-indent.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/html-indent
description: enforce consistent indentation in `<template>`
since: v3.14.0
---
# vue/html-indent
> enforce consistent indentation in `<template>`
Expand Down Expand Up @@ -76,7 +77,7 @@ This rule enforces a consistent indentation style in `<template>`. The default s
- `type` (`number | "tab"`) ... The type of indentation. Default is `2`. If this is a number, it's the number of spaces for one indent. If this is `"tab"`, it uses one tab for one indent.
- `attribute` (`integer`) ... The multiplier of indentation for attributes. Default is `1`.
- `baseIndent` (`integer`) ... The multiplier of indentation for top-level statements. Default is `1`.
- `closeBracket` (`integer | object`) ... The multiplier of indentation for right brackets. Default is `0`.
- `closeBracket` (`integer | object`) ... The multiplier of indentation for right brackets. Default is `0`.
You can apply all of the following by setting a number value.
- `closeBracket.startTag` (`integer`) ... The multiplier of indentation for right brackets of start tags (`<div>`). Default is `0`.
- `closeBracket.endTag` (`integer`) ... The multiplier of indentation for right brackets of end tags (`</div>`). Default is `0`.
Expand Down
1 change: 1 addition & 0 deletions docs/rules/html-quotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/html-quotes
description: enforce quotes style of HTML attributes
since: v3.0.0
---
# vue/html-quotes
> enforce quotes style of HTML attributes
Expand Down
1 change: 1 addition & 0 deletions docs/rules/html-self-closing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/html-self-closing
description: enforce self-closing style
since: v3.11.0
---
# vue/html-self-closing
> enforce self-closing style
Expand Down
1 change: 1 addition & 0 deletions docs/rules/jsx-uses-vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/jsx-uses-vars
description: prevent variables used in JSX to be marked as unused
since: v2.0.0
---
# vue/jsx-uses-vars
> prevent variables used in JSX to be marked as unused
Expand Down
1 change: 1 addition & 0 deletions docs/rules/key-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/key-spacing
description: enforce consistent spacing between keys and values in object literal properties
since: v5.2.0
---
# vue/key-spacing
> enforce consistent spacing between keys and values in object literal properties
Expand Down
1 change: 1 addition & 0 deletions docs/rules/keyword-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/keyword-spacing
description: enforce consistent spacing before and after keywords
since: v6.0.0
---
# vue/keyword-spacing
> enforce consistent spacing before and after keywords
Expand Down
1 change: 1 addition & 0 deletions docs/rules/match-component-file-name.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/match-component-file-name
description: require component name property to match its file name
since: v5.2.0
---
# vue/match-component-file-name
> require component name property to match its file name
Expand Down
1 change: 1 addition & 0 deletions docs/rules/max-attributes-per-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/max-attributes-per-line
description: enforce the maximum number of attributes per line
since: v3.12.0
---
# vue/max-attributes-per-line
> enforce the maximum number of attributes per line
Expand Down
1 change: 1 addition & 0 deletions docs/rules/max-len.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/max-len
description: enforce a maximum line length
since: v6.1.0
---
# vue/max-len
> enforce a maximum line length
Expand Down
Loading