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
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,6 +113,30 @@ The `--fix` option on the command line automatically fixes problems reported by
113
113
114
114
<!--RULES_TABLE_END-->
115
115
116
+
## :couple: FAQ
117
+
118
+
### What is the "Use the latest vue-eslint-parser" error?
119
+
120
+
The most rules of `eslint-plugin-vue` require `vue-eslint-parser` to check `<template>` ASTs.
121
+
122
+
Make sure you have one of the following settings in your **.eslintrc**:
123
+
124
+
-`"extends": ["plugin:vue/recommended"]`
125
+
-`"extends": ["plugin:vue/base"]`
126
+
127
+
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:
128
+
129
+
```diff
130
+
- "parser": "babel-eslint",
131
+
"parserOptions": {
132
+
+ "parser": "babel-eslint",
133
+
"ecmaVersion": 2017,
134
+
"sourceType": "module"
135
+
}
136
+
```
137
+
138
+
The `vue-eslint-parser` uses the parser which is set by `parserOptions.parser` to parse scripts.
139
+
116
140
## :anchor: Semantic Versioning Policy
117
141
118
142
This plugin follows [semantic versioning](http://semver.org/) and [ESLint's Semantic Versioning Policy](https://github.com/eslint/eslint#semantic-versioning-policy).
0 commit comments