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
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 "Use the latest vue-eslint-parser" errors?
119
+
120
+
The most rules of `eslint-plugin-vue` requires `vue-eslint-parser` to check `<template>` ASTs.
121
+
122
+
Please add one of the following settings into your configuration:
123
+
124
+
-`"extends": ["plugin:vue/recommended"]`
125
+
-`"extends": ["plugin:vue/base"]`
126
+
-`"parser": "vue-eslint-parser"` (and do `npm install -D vue-eslint-parser`)
127
+
128
+
If you have `"parser": "babel-eslint"` setting or something like in your configuration, please move it into `parserOptions`.
129
+
The `vue-eslint-parser` uses the parser which is set by `parserOptions.parser` to parse scripts.
130
+
131
+
```diff
132
+
- "parser": "babel-eslint",
133
+
"parserOptions": {
134
+
+ "parser": "babel-eslint",
135
+
"ecmaVersion": 2017,
136
+
"sourceType": "module"
137
+
}
138
+
```
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).
message: 'Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-use-the-latest-vue-eslint-parser-errors'
0 commit comments