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
-`plugin:vue/base` - contains necessary settings for this plugin to work properly
79
-
-`plugin:vue/recommended` - extends base config with recommended rules (the ones with check mark :white_check_mark: in the table below)
78
+
-`plugin:vue/base` - Settings and rules to enable correct ESLint parsing
79
+
-`plugin:vue/essential` - Above, plus rules to prevent errors or unintended behavior
80
+
-`plugin:vue/strongly-recommended` - Above, plus rules to considerably improve code readability and/or dev experience
81
+
-`plugin:vue/recommended` - Above, plus rules to enforce subjective community defaults to ensure consistency
80
82
81
83
## :bulb: Rules
82
84
83
-
Rules are grouped by category to help you understand their purpose.
85
+
Rules are grouped by priority to help you understand their purpose. The `--fix` option on the command line automatically fixes problems reported by rules which have a wrench :wrench: below.
84
86
85
-
No rules are enabled by `plugin:vue/base` config. The `plugin:vue/recommended` config enables rules that report common problems, which have a check mark :white_check_mark: below.
87
+
<!--RULES_TABLE_START-->
86
88
87
-
The `--fix` option on the command line automatically fixes problems reported by rules which have a wrench :wrench: below.
89
+
### Base Rules (Enabling Correct ESLint Parsing)
88
90
89
-
<!--RULES_TABLE_START-->
91
+
Enforce all the rules in this category, as well as all higher priority rules, with:
90
92
91
-
### Possible Errors
93
+
```json
94
+
"extends": "plugin:vue/base"
95
+
```
92
96
93
97
|| Rule ID | Description |
94
98
|:---|:--------|:------------|
99
+
||[jsx-uses-vars](./docs/rules/jsx-uses-vars.md)| prevent variables used in JSX to be marked as unused |
100
+
101
+
102
+
### Priority A: Essential (Error Prevention)
103
+
104
+
Enforce all the rules in this category, as well as all higher priority rules, with:
105
+
106
+
```json
107
+
"extends": "plugin:vue/essential"
108
+
```
109
+
110
+
|| Rule ID | Description |
111
+
|:---|:--------|:------------|
112
+
||[no-async-in-computed-properties](./docs/rules/no-async-in-computed-properties.md)| disallow asynchronous actions in computed properties |
95
113
||[no-dupe-keys](./docs/rules/no-dupe-keys.md)| disallow duplication of field names |
96
-
|:white_check_mark:|[no-parsing-error](./docs/rules/no-parsing-error.md)| disallow parsing errors in `<template>`|
114
+
||[no-duplicate-attributes](./docs/rules/no-duplicate-attributes.md)| disallow duplication of attributes |
115
+
||[no-parsing-error](./docs/rules/no-parsing-error.md)| disallow parsing errors in `<template>`|
Copy file name to clipboardExpand all lines: docs/rules/html-indent.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ This rule enforces a consistent indentation style in `<template>`. The default s
65
65
}
66
66
```
67
67
68
-
-`type` (`number | "tab"`) ... The type of indentation. Default is `4`. 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.
68
+
-`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.
69
69
-`attribute` (`integer`) ... The multiplier of indentation for attributes. Default is `1`.
70
70
-`closeBracket` (`integer`) ... The multiplier of indentation for right brackets. Default is `0`.
71
71
-`ignores` (`string[]`) ... The selector to ignore nodes. The AST spec is [here](https://github.com/mysticatea/vue-eslint-parser/blob/master/docs/ast.md). You can use [esquery](https://github.com/estools/esquery#readme) to select nodes. Default is an empty array.
0 commit comments