File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ ESLint supports autofix on custom parsers but does not support autofix on plugin
1616$ npm install --save-dev eslint vue-eslint-parser
1717```
1818
19- - ` vue-eslint-parser ` requires ESLint 3.5 .0 or later.
19+ - ` vue-eslint-parser ` requires ESLint 3.9 .0 or later.
2020
2121## :book : Usage
2222
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ class Parser {
209209 * Parse the .vue code with the parsers that options specified.
210210 *
211211 * @param {string } code - The .vue code to be parsed.
212- * @returns {ASTNode } The result of parsing.
212+ * @returns {{ast: ASTNode, services: any} } The result of parsing.
213213 */
214214 parseComponent ( code ) {
215215 if ( ! this . isVueComponent ) {
@@ -219,7 +219,7 @@ class Parser {
219219 const info = parseComponent ( code )
220220 const result = this . parseScriptNode ( code , info . script )
221221
222- return result . ast
222+ return result
223223 }
224224}
225225
You can’t perform that action at this time.
0 commit comments