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
|:wrench:|[@vue/no-shared-component-data](./docs/rules/no-shared-component-data.md)| enforce component's data property to be a function |
135
+
||[@vue/no-side-effects-in-computed-properties](./docs/rules/no-side-effects-in-computed-properties.md)| disallow side effects in computed properties |
136
+
||[@vue/no-template-key](./docs/rules/no-template-key.md)| disallow `key` attribute on `<template>`|
137
+
||[@vue/no-textarea-mustache](./docs/rules/no-textarea-mustache.md)| disallow mustaches in `<textarea>`|
138
+
||[@vue/no-unused-vars](./docs/rules/no-unused-vars.md)| disallow unused variable definitions of v-for directives or scope attributes |
139
+
||[@vue/require-component-is](./docs/rules/require-component-is.md)| require `v-bind:is` of `<component>` elements |
140
+
||[@vue/require-render-return](./docs/rules/require-render-return.md)| enforce render function to always return value |
141
+
||[@vue/require-v-for-key](./docs/rules/require-v-for-key.md)| require `v-bind:key` with `v-for` directives |
142
+
||[@vue/require-valid-default-prop](./docs/rules/require-valid-default-prop.md)| enforce props default values to be valid |
143
+
||[@vue/return-in-computed-property](./docs/rules/return-in-computed-property.md)| enforce that a return statement is present in computed property |
### Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
185
185
186
186
Enforce all the rules in this category, as well as all higher priority rules, with:
187
187
188
188
```json
189
189
{
190
-
"extends": "plugin:vue/recommended"
190
+
"extends": "plugin:@vue/recommended"
191
191
}
192
192
```
193
193
194
194
|| Rule ID | Description |
195
195
|:---|:--------|:------------|
196
-
|:wrench:|[vue/html-quotes](./docs/rules/html-quotes.md)| enforce quotes style of HTML attributes |
197
-
||[vue/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 |
198
-
||[vue/order-in-components](./docs/rules/order-in-components.md)| enforce order of properties in components |
199
-
||[vue/this-in-template](./docs/rules/this-in-template.md)| enforce usage of `this` in template |
196
+
|:wrench:|[@vue/html-quotes](./docs/rules/html-quotes.md)| enforce quotes style of HTML attributes |
197
+
||[@vue/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 |
198
+
||[@vue/order-in-components](./docs/rules/order-in-components.md)| enforce order of properties in components |
199
+
||[@vue/this-in-template](./docs/rules/this-in-template.md)| enforce usage of `this` in template |
200
200
201
201
### Uncategorized
202
202
203
203
|| Rule ID | Description |
204
204
|:---|:--------|:------------|
205
-
|:wrench:|[vue/html-closing-bracket-newline](./docs/rules/html-closing-bracket-newline.md)| require or disallow a line break before tag's closing brackets |
206
-
|:wrench:|[vue/html-closing-bracket-spacing](./docs/rules/html-closing-bracket-spacing.md)| require or disallow a space before tag's closing brackets |
207
-
|:wrench:|[vue/script-indent](./docs/rules/script-indent.md)| enforce consistent indentation in `<script>`|
205
+
|:wrench:|[@vue/html-closing-bracket-newline](./docs/rules/html-closing-bracket-newline.md)| require or disallow a line break before tag's closing brackets |
206
+
|:wrench:|[@vue/html-closing-bracket-spacing](./docs/rules/html-closing-bracket-spacing.md)| require or disallow a space before tag's closing brackets |
207
+
|:wrench:|[@vue/script-indent](./docs/rules/script-indent.md)| enforce consistent indentation in `<script>`|
208
208
209
209
<!--RULES_TABLE_END-->
210
210
@@ -216,8 +216,8 @@ The most rules of `eslint-plugin-vue` require `vue-eslint-parser` to check `<tem
216
216
217
217
Make sure you have one of the following settings in your **.eslintrc**:
218
218
219
-
-`"extends": ["plugin:vue/recommended"]`
220
-
-`"extends": ["plugin:vue/base"]`
219
+
-`"extends": ["plugin:@vue/recommended"]`
220
+
-`"extends": ["plugin:@vue/base"]`
221
221
222
222
If you already use other parser (e.g. `"parser": "babel-eslint"`), please move it into `parserOptions`, so it doesn't collide with the `vue-eslint-parser` used by this plugin's configuration:
Copy file name to clipboardExpand all lines: docs/rules/attribute-hyphenation.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# enforce attribute naming style in template (vue/attribute-hyphenation)
1
+
# enforce attribute naming style in template (@vue/attribute-hyphenation)
2
2
3
-
-:gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
3
+
-:gear: This rule is included in `"plugin:@vue/strongly-recommended"` and `"plugin:@vue/recommended"`.
4
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/comment-directive.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# support comment-directives in `<template>` (vue/comment-directive)
1
+
# support comment-directives in `<template>` (@vue/comment-directive)
2
2
3
-
-:gear: This rule is included in all of `"plugin:vue/base"`, `"plugin:vue/essential"`, `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
3
+
-:gear: This rule is included in all of `"plugin:@vue/base"`, `"plugin:@vue/essential"`, `"plugin:@vue/strongly-recommended"` and `"plugin:@vue/recommended"`.
4
4
5
5
Sole purpose of this rule is to provide `eslint-disable` functionality in `<template>`.
Copy file name to clipboardExpand all lines: docs/rules/html-closing-bracket-newline.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# require or disallow a line break before tag's closing brackets (vue/html-closing-bracket-newline)
1
+
# require or disallow a line break before tag's closing brackets (@vue/html-closing-bracket-newline)
2
2
3
3
-: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-closing-bracket-spacing.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# require or disallow a space before tag's closing brackets (vue/html-closing-bracket-spacing)
1
+
# require or disallow a space before tag's closing brackets (@vue/html-closing-bracket-spacing)
2
2
3
3
-: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
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# enforce end tag style (vue/html-end-tags)
1
+
# enforce end tag style (@vue/html-end-tags)
2
2
3
-
-:gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
3
+
-:gear: This rule is included in `"plugin:@vue/strongly-recommended"` and `"plugin:@vue/recommended"`.
4
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-indent.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# enforce consistent indentation in `<template>` (vue/html-indent)
1
+
# enforce consistent indentation in `<template>` (@vue/html-indent)
2
2
3
-
-:gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
3
+
-:gear: This rule is included in `"plugin:@vue/strongly-recommended"` and `"plugin:@vue/recommended"`.
4
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-quotes.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# enforce quotes style of HTML attributes (vue/html-quotes)
1
+
# enforce quotes style of HTML attributes (@vue/html-quotes)
2
2
3
-
-:gear: This rule is included in `"plugin:vue/recommended"`.
3
+
-:gear: This rule is included in `"plugin:@vue/recommended"`.
4
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.
-:gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
3
+
-:gear: This rule is included in `"plugin:@vue/strongly-recommended"` and `"plugin:@vue/recommended"`.
4
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.
5
5
6
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/jsx-uses-vars.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# prevent variables used in JSX to be marked as unused (vue/jsx-uses-vars)
1
+
# prevent variables used in JSX to be marked as unused (@vue/jsx-uses-vars)
2
2
3
-
-:gear: This rule is included in all of `"plugin:vue/base"`, `"plugin:vue/essential"`, `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
3
+
-:gear: This rule is included in all of `"plugin:@vue/base"`, `"plugin:@vue/essential"`, `"plugin:@vue/strongly-recommended"` and `"plugin:@vue/recommended"`.
4
4
5
5
Since 0.17.0 the ESLint `no-unused-vars` rule does not detect variables used in JSX ([see details](http://eslint.org/blog/2015/03/eslint-0.17.0-released#changes-to-jsxreact-handling)).
6
6
This rule will find variables used in JSX and mark them as used.
0 commit comments