Skip to content

Commit 5766096

Browse files
committed
Breaking: require ESLint 3.9.0 or later
- This is an update to release the feature to access ASTs of `<template>` and `<style>`s in the future.
1 parent efc5fc7 commit 5766096

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

lib/parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)