Skip to content

Commit 1ef1d33

Browse files
committed
5.0.0-beta.5
1 parent b18d351 commit 1ef1d33

File tree

72 files changed

+100
-89
lines changed

Some content is hidden

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

72 files changed

+100
-89
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
166166
| | [vue/require-v-for-key](./docs/rules/require-v-for-key.md) | require `v-bind:key` with `v-for` directives |
167167
| | [vue/require-valid-default-prop](./docs/rules/require-valid-default-prop.md) | enforce props default values to be valid |
168168
| | [vue/return-in-computed-property](./docs/rules/return-in-computed-property.md) | enforce that a return statement is present in computed property |
169+
| | [vue/use-v-on-exact](./docs/rules/use-v-on-exact.md) | enforce usage of `exact` modifier on `v-on` |
169170
| | [vue/valid-template-root](./docs/rules/valid-template-root.md) | enforce valid template root |
170171
| | [vue/valid-v-bind](./docs/rules/valid-v-bind.md) | enforce valid `v-bind` directives |
171172
| | [vue/valid-v-cloak](./docs/rules/valid-v-cloak.md) | enforce valid `v-cloak` directives |
@@ -194,19 +195,23 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
194195
| | Rule ID | Description |
195196
|:---|:--------|:------------|
196197
| :wrench: | [vue/attribute-hyphenation](./docs/rules/attribute-hyphenation.md) | enforce attribute naming style on custom components in template |
198+
| :wrench: | [vue/component-name-in-template-casing](./docs/rules/component-name-in-template-casing.md) | enforce specific casing for the component naming style in template |
197199
| :wrench: | [vue/html-closing-bracket-newline](./docs/rules/html-closing-bracket-newline.md) | require or disallow a line break before tag's closing brackets |
198200
| :wrench: | [vue/html-closing-bracket-spacing](./docs/rules/html-closing-bracket-spacing.md) | require or disallow a space before tag's closing brackets |
199201
| :wrench: | [vue/html-end-tags](./docs/rules/html-end-tags.md) | enforce end tag style |
200202
| :wrench: | [vue/html-indent](./docs/rules/html-indent.md) | enforce consistent indentation in `<template>` |
201203
| :wrench: | [vue/html-self-closing](./docs/rules/html-self-closing.md) | enforce self-closing style |
202204
| :wrench: | [vue/max-attributes-per-line](./docs/rules/max-attributes-per-line.md) | enforce the maximum number of attributes per line |
205+
| :wrench: | [vue/multiline-html-element-content-newline](./docs/rules/multiline-html-element-content-newline.md) | require a line break before and after the contents of a multiline element |
203206
| :wrench: | [vue/mustache-interpolation-spacing](./docs/rules/mustache-interpolation-spacing.md) | enforce unified spacing in mustache interpolations |
204207
| :wrench: | [vue/name-property-casing](./docs/rules/name-property-casing.md) | enforce specific casing for the name property in Vue components |
205208
| :wrench: | [vue/no-multi-spaces](./docs/rules/no-multi-spaces.md) | disallow multiple spaces |
209+
| :wrench: | [vue/no-spaces-around-equal-signs-in-attribute](./docs/rules/no-spaces-around-equal-signs-in-attribute.md) | disallow spaces around equal signs in attribute |
206210
| | [vue/no-template-shadow](./docs/rules/no-template-shadow.md) | disallow variable declarations from shadowing variables declared in the outer scope |
207211
| :wrench: | [vue/prop-name-casing](./docs/rules/prop-name-casing.md) | enforce specific casing for the Prop name in Vue components |
208212
| | [vue/require-default-prop](./docs/rules/require-default-prop.md) | require default value for props |
209213
| | [vue/require-prop-types](./docs/rules/require-prop-types.md) | require type definitions in props |
214+
| :wrench: | [vue/singleline-html-element-content-newline](./docs/rules/singleline-html-element-content-newline.md) | require a line break before and after the contents of a singleline element |
210215
| :wrench: | [vue/v-bind-style](./docs/rules/v-bind-style.md) | enforce `v-bind` directive style |
211216
| :wrench: | [vue/v-on-style](./docs/rules/v-on-style.md) | enforce `v-on` directive style |
212217

@@ -232,12 +237,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
232237

233238
| | Rule ID | Description |
234239
|:---|:--------|:------------|
235-
| :wrench: | [vue/component-name-in-template-casing](./docs/rules/component-name-in-template-casing.md) | enforce specific casing for the component naming style in template |
236-
| :wrench: | [vue/multiline-html-element-content-newline](./docs/rules/multiline-html-element-content-newline.md) | require a line break before and after the contents of a multiline element |
237-
| :wrench: | [vue/no-spaces-around-equal-signs-in-attribute](./docs/rules/no-spaces-around-equal-signs-in-attribute.md) | disallow spaces around equal signs in attribute |
238240
| :wrench: | [vue/script-indent](./docs/rules/script-indent.md) | enforce consistent indentation in `<script>` |
239-
| :wrench: | [vue/singleline-html-element-content-newline](./docs/rules/singleline-html-element-content-newline.md) | require a line break before and after the contents of a singleline element |
240-
| | [vue/use-v-on-exact](./docs/rules/use-v-on-exact.md) | enforce usage of `exact` modifier on `v-on` |
241241

242242
### Deprecated
243243

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# enforce specific casing for the component naming style in template (vue/component-name-in-template-casing)
22

3+
- :gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
34
- :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.
45

56
Define a style for the component name in template casing for consistency purposes.

docs/rules/multiline-html-element-content-newline.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# require a line break before and after the contents of a multiline element (vue/multiline-html-element-content-newline)
22

3+
- :gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
34
- :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.
45

56
## :book: Rule Details

docs/rules/no-spaces-around-equal-signs-in-attribute.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# disallow spaces around equal signs in attribute (vue/no-spaces-around-equal-signs-in-attribute)
22

3+
- :gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
34
- :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.
45

56
This rule disallow spaces around equal signs in attribute.

docs/rules/singleline-html-element-content-newline.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# require a line break before and after the contents of a singleline element (vue/singleline-html-element-content-newline)
22

3+
- :gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
34
- :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.
45

56
## :book: Rule Details

docs/rules/use-v-on-exact.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# enforce usage of `exact` modifier on `v-on` (vue/use-v-on-exact)
22

3+
- :gear: This rule is included in all of `"plugin:vue/essential"`, `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
4+
35
This rule enforce usage of `exact` modifier on `v-on` when there is another `v-on` with modifier.
46

57
:+1: Examples of **correct** code for this rule:

lib/configs/essential.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = {
2424
'vue/require-v-for-key': 'error',
2525
'vue/require-valid-default-prop': 'error',
2626
'vue/return-in-computed-property': 'error',
27+
'vue/use-v-on-exact': 'error',
2728
'vue/valid-template-root': 'error',
2829
'vue/valid-v-bind': 'error',
2930
'vue/valid-v-cloak': 'error',

lib/configs/recommended.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
module.exports = {
77
extends: require.resolve('./strongly-recommended'),
88
rules: {
9-
'vue/attributes-order': 'error',
10-
'vue/html-quotes': 'error',
11-
'vue/no-v-html': 'error',
12-
'vue/order-in-components': 'error',
13-
'vue/this-in-template': 'error'
9+
'vue/attributes-order': 'warn',
10+
'vue/html-quotes': 'warn',
11+
'vue/no-v-html': 'warn',
12+
'vue/order-in-components': 'warn',
13+
'vue/this-in-template': 'warn'
1414
}
1515
}

lib/configs/strongly-recommended.js

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,25 @@
66
module.exports = {
77
extends: require.resolve('./essential'),
88
rules: {
9-
'vue/attribute-hyphenation': 'error',
10-
'vue/html-closing-bracket-newline': 'error',
11-
'vue/html-closing-bracket-spacing': 'error',
12-
'vue/html-end-tags': 'error',
13-
'vue/html-indent': 'error',
14-
'vue/html-self-closing': 'error',
15-
'vue/max-attributes-per-line': 'error',
16-
'vue/mustache-interpolation-spacing': 'error',
17-
'vue/name-property-casing': 'error',
18-
'vue/no-multi-spaces': 'error',
19-
'vue/no-template-shadow': 'error',
20-
'vue/prop-name-casing': 'error',
21-
'vue/require-default-prop': 'error',
22-
'vue/require-prop-types': 'error',
23-
'vue/v-bind-style': 'error',
24-
'vue/v-on-style': 'error'
9+
'vue/attribute-hyphenation': 'warn',
10+
'vue/component-name-in-template-casing': 'warn',
11+
'vue/html-closing-bracket-newline': 'warn',
12+
'vue/html-closing-bracket-spacing': 'warn',
13+
'vue/html-end-tags': 'warn',
14+
'vue/html-indent': 'warn',
15+
'vue/html-self-closing': 'warn',
16+
'vue/max-attributes-per-line': 'warn',
17+
'vue/multiline-html-element-content-newline': 'warn',
18+
'vue/mustache-interpolation-spacing': 'warn',
19+
'vue/name-property-casing': 'warn',
20+
'vue/no-multi-spaces': 'warn',
21+
'vue/no-spaces-around-equal-signs-in-attribute': 'warn',
22+
'vue/no-template-shadow': 'warn',
23+
'vue/prop-name-casing': 'warn',
24+
'vue/require-default-prop': 'warn',
25+
'vue/require-prop-types': 'warn',
26+
'vue/singleline-html-element-content-newline': 'warn',
27+
'vue/v-bind-style': 'warn',
28+
'vue/v-on-style': 'warn'
2529
}
2630
}

lib/rules/attribute-hyphenation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
docs: {
1818
description: 'enforce attribute naming style on custom components in template',
1919
category: 'strongly-recommended',
20-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.4/docs/rules/attribute-hyphenation.md'
20+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.5/docs/rules/attribute-hyphenation.md'
2121
},
2222
fixable: 'code',
2323
schema: [

0 commit comments

Comments
 (0)