You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|:white_check_mark:|[no-shared-component-data](./docs/rules/no-shared-component-data.md)| enforce component's data property to be a function |
99
+
|:white_check_mark:|[no-template-key](./docs/rules/no-template-key.md)| disallow `key` attribute on `<template>`|
100
100
||[no-unused-vars](./docs/rules/no-unused-vars.md)| disallow unused variable definitions of v-for directives or scope attributes |
101
-
||[require-render-return](./docs/rules/require-render-return.md)| enforce render function to always return value |
102
-
||[require-valid-default-prop](./docs/rules/require-valid-default-prop.md)| enforce props default values to be valid |
103
-
||[return-in-computed-property](./docs/rules/return-in-computed-property.md)| enforce that a return statement is present in computed property |
101
+
|:white_check_mark:|[require-render-return](./docs/rules/require-render-return.md)| enforce render function to always return value |
102
+
|:white_check_mark:|[require-valid-default-prop](./docs/rules/require-valid-default-prop.md)| enforce props default values to be valid |
103
+
|:white_check_mark:|[return-in-computed-property](./docs/rules/return-in-computed-property.md)| enforce that a return statement is present in computed property |
@@ -121,34 +121,34 @@ The `--fix` option on the command line automatically fixes problems reported by
121
121
122
122
|| Rule ID | Description |
123
123
|:---|:--------|:------------|
124
-
|:wrench:|[html-end-tags](./docs/rules/html-end-tags.md)| enforce end tag style |
125
-
||[no-async-in-computed-properties](./docs/rules/no-async-in-computed-properties.md)| disallow asynchronous actions in computed properties |
124
+
|:white_check_mark::wrench:|[html-end-tags](./docs/rules/html-end-tags.md)| enforce end tag style |
125
+
|:white_check_mark:|[no-async-in-computed-properties](./docs/rules/no-async-in-computed-properties.md)| disallow asynchronous actions in computed properties |
126
126
|:white_check_mark:|[no-confusing-v-for-v-if](./docs/rules/no-confusing-v-for-v-if.md)| disallow confusing `v-for` and `v-if` on the same element |
127
-
||[no-duplicate-attributes](./docs/rules/no-duplicate-attributes.md)| disallow duplication of attributes |
128
-
||[no-side-effects-in-computed-properties](./docs/rules/no-side-effects-in-computed-properties.md)| disallow side effects in computed properties |
127
+
|:white_check_mark:|[no-duplicate-attributes](./docs/rules/no-duplicate-attributes.md)| disallow duplication of attributes |
128
+
|:white_check_mark:|[no-side-effects-in-computed-properties](./docs/rules/no-side-effects-in-computed-properties.md)| disallow side effects in computed properties |
129
129
|:white_check_mark:|[no-textarea-mustache](./docs/rules/no-textarea-mustache.md)| disallow mustaches in `<textarea>`|
130
-
||[order-in-components](./docs/rules/order-in-components.md)| enforce order of properties in components |
130
+
|:white_check_mark:|[order-in-components](./docs/rules/order-in-components.md)| enforce order of properties in components |
131
131
|:white_check_mark:|[require-component-is](./docs/rules/require-component-is.md)| require `v-bind:is` of `<component>` elements |
132
-
||[require-default-prop](./docs/rules/require-default-prop.md)| require default value for props |
133
-
||[require-prop-types](./docs/rules/require-prop-types.md)| require type definitions in props |
132
+
|:white_check_mark:|[require-default-prop](./docs/rules/require-default-prop.md)| require default value for props |
133
+
|:white_check_mark:|[require-prop-types](./docs/rules/require-prop-types.md)| require type definitions in props |
134
134
|:white_check_mark:|[require-v-for-key](./docs/rules/require-v-for-key.md)| require `v-bind:key` with `v-for` directives |
135
-
||[this-in-template](./docs/rules/this-in-template.md)| enforce usage of `this` in template |
135
+
|:white_check_mark:|[this-in-template](./docs/rules/this-in-template.md)| enforce usage of `this` in template |
136
136
137
137
138
138
### Stylistic Issues
139
139
140
140
|| Rule ID | Description |
141
141
|:---|:--------|:------------|
142
-
|:wrench:|[attribute-hyphenation](./docs/rules/attribute-hyphenation.md)| enforce attribute naming style in template |
142
+
|:white_check_mark::wrench:|[attribute-hyphenation](./docs/rules/attribute-hyphenation.md)| enforce attribute naming style in template |
143
143
|:wrench:|[html-indent](./docs/rules/html-indent.md)| enforce consistent indentation in `<template>`|
144
144
||[html-quotes](./docs/rules/html-quotes.md)| enforce quotes style of HTML attributes |
|:white_check_mark:|[max-attributes-per-line](./docs/rules/max-attributes-per-line.md)| enforce the maximum number of attributes per line |
147
+
|:white_check_mark::wrench:|[mustache-interpolation-spacing](./docs/rules/mustache-interpolation-spacing.md)| enforce unified spacing in mustache interpolations |
148
+
|:white_check_mark::wrench:|[name-property-casing](./docs/rules/name-property-casing.md)| enforce specific casing for the name property in Vue components |
Copy file name to clipboardExpand all lines: docs/rules/attribute-hyphenation.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# enforce attribute naming style in template (attribute-hyphenation)
2
2
3
+
-:white_check_mark: The `"extends": "plugin:vue/recommended"` property in a configuration file enables this rule.
3
4
-:wrench: The `--fix` option on the [command line](http://eslint.org/docs/user-guide/command-line-interface#fix) can automatically fix some of the problems reported by this rule.
Copy file name to clipboardExpand all lines: docs/rules/html-end-tags.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# enforce end tag style (html-end-tags)
2
2
3
+
-:white_check_mark: The `"extends": "plugin:vue/recommended"` property in a configuration file enables this rule.
3
4
-:wrench: The `--fix` option on the [command line](http://eslint.org/docs/user-guide/command-line-interface#fix) can automatically fix some of the problems reported by this rule.
Copy file name to clipboardExpand all lines: docs/rules/html-self-closing.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# enforce self-closing style (html-self-closing)
2
2
3
+
-:white_check_mark: The `"extends": "plugin:vue/recommended"` property in a configuration file enables this rule.
3
4
-:wrench: The `--fix` option on the [command line](http://eslint.org/docs/user-guide/command-line-interface#fix) can automatically fix some of the problems reported by this rule.
4
5
5
6
In Vue.js template, we can use either two styles for elements which don't have their content.
Copy file name to clipboardExpand all lines: docs/rules/mustache-interpolation-spacing.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# enforce unified spacing in mustache interpolations (mustache-interpolation-spacing)
2
2
3
+
-:white_check_mark: The `"extends": "plugin:vue/recommended"` property in a configuration file enables this rule.
3
4
-:wrench: The `--fix` option on the [command line](http://eslint.org/docs/user-guide/command-line-interface#fix) can automatically fix some of the problems reported by this rule.
Copy file name to clipboardExpand all lines: docs/rules/name-property-casing.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# enforce specific casing for the name property in Vue components (name-property-casing)
2
2
3
+
-:white_check_mark: The `"extends": "plugin:vue/recommended"` property in a configuration file enables this rule.
3
4
-:wrench: The `--fix` option on the [command line](http://eslint.org/docs/user-guide/command-line-interface#fix) can automatically fix some of the problems reported by this rule.
4
5
5
6
Define a style for the `name` property casing for consistency purposes.
Copy file name to clipboardExpand all lines: docs/rules/no-async-in-computed-properties.md
+2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# disallow asynchronous actions in computed properties (no-async-in-computed-properties)
2
2
3
+
-:white_check_mark: The `"extends": "plugin:vue/recommended"` property in a configuration file enables this rule.
4
+
3
5
Computed properties should be synchronous. Asynchronous actions inside them may not work as expected and can lead to an unexpected behaviour, that's why you should avoid them.
4
6
If you need async computed properties you might want to consider using additional plugin [vue-async-computed]
Copy file name to clipboardExpand all lines: docs/rules/no-multi-spaces.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# disallow multiple spaces (no-multi-spaces)
2
2
3
+
-:white_check_mark: The `"extends": "plugin:vue/recommended"` property in a configuration file enables this rule.
3
4
-:wrench: The `--fix` option on the [command line](http://eslint.org/docs/user-guide/command-line-interface#fix) can automatically fix some of the problems reported by this rule.
4
5
5
6
The `--fix` option on the command line can automatically fix some of the problems reported by this rule.
Copy file name to clipboardExpand all lines: docs/rules/require-valid-default-prop.md
+2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# enforce props default values to be valid (require-valid-default-prop)
2
2
3
+
-:white_check_mark: The `"extends": "plugin:vue/recommended"` property in a configuration file enables this rule.
4
+
3
5
This rule checks whether the default value of each prop is valid for the given type. It should report an error when default value for type `Array` or `Object` is not returned using function.
Copy file name to clipboardExpand all lines: docs/rules/v-bind-style.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# enforce `v-bind` directive style (v-bind-style)
2
2
3
+
-:white_check_mark: The `"extends": "plugin:vue/recommended"` property in a configuration file enables this rule.
3
4
-:wrench: The `--fix` option on the [command line](http://eslint.org/docs/user-guide/command-line-interface#fix) can automatically fix some of the problems reported by this rule.
4
5
5
6
This rule enforces `v-bind` directive style which you should use shorthand or long form.
Copy file name to clipboardExpand all lines: docs/rules/v-on-style.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# enforce `v-on` directive style (v-on-style)
2
2
3
+
-:white_check_mark: The `"extends": "plugin:vue/recommended"` property in a configuration file enables this rule.
3
4
-:wrench: The `--fix` option on the [command line](http://eslint.org/docs/user-guide/command-line-interface#fix) can automatically fix some of the problems reported by this rule.
4
5
5
6
This rule enforces `v-on` directive style which you should use shorthand or long form.
0 commit comments