Skip to content

Commit

Permalink
Breaking: require ESLint 3.9.0 or later
Browse files Browse the repository at this point in the history
- This is an update to release the feature to access ASTs of
`<template>` and `<style>`s in the future.
  • Loading branch information
mysticatea committed Dec 22, 2016
1 parent efc5fc7 commit 5766096
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -219,7 +219,7 @@ class Parser {
const info = parseComponent(code)
const result = this.parseScriptNode(code, info.script)

return result.ast
return result
}
}

Expand Down

0 comments on commit 5766096

Please sign in to comment.