diff --git a/README.md b/README.md index dfcd3a03..7ee0c833 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ESLint supports autofix on custom parsers but does not support autofix on plugin $ npm install --save-dev eslint vue-eslint-parser ``` -- `vue-eslint-parser` requires ESLint 3.5.0 or later. +- `vue-eslint-parser` requires ESLint 3.9.0 or later. ## :book: Usage diff --git a/lib/parser.js b/lib/parser.js index b412137b..d5b7e186 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -209,7 +209,7 @@ class Parser { * Parse the .vue code with the parsers that options specified. * * @param {string} code - The .vue code to be parsed. - * @returns {ASTNode} The result of parsing. + * @returns {{ast: ASTNode, services: any}} The result of parsing. */ parseComponent(code) { if (!this.isVueComponent) { @@ -219,7 +219,7 @@ class Parser { const info = parseComponent(code) const result = this.parseScriptNode(code, info.script) - return result.ast + return result } }