Releases: vuejs/vue-eslint-parser
Releases · vuejs/vue-eslint-parser
v3.2.1
v3.2.0
Enhancements
- 9b947b1 added the option
parserOptions.parser:false
to skip parsing<script>
elements completely. This is useful for the language ESLint community don't provide that custom parser.
Bug fixes
v3.1.1
v3.1.0
v3.0.0
Breaking changes
- c83140f dropped the support of Node.js 4.x.
- 4e2cd77 dropped the support of ESLint 3.x and 4.x. And it upgraded
espree
andeslint-scope
packages,vue-eslint-parser
is using internally, to4.0.0
. This means it dropped the support ofparserOptions.ecmaFeatures.experimentalObjectRestSpread
option. UseecmaVersion
option instead. - 87efc6d added the support of
slot-scope
attribute to define variables which are available on inside of the element. Theslot-scope
attribute is expressed as newVSlotScopeExpression
node. And it changed the AST of<template scope>
attribute to theVSlotScopeExpression
node.
v2.0.3
v2.0.2
v2.0.1
vue-eslint-parser
has been rewritten completely!
Now vue-eslint-parser
gets the ability to parse <template>
(only HTML) in .vue
files to AST.
- New
parserServices
:defineTemplateBodyVisitor(templateVisitor, scriptVisitor)
... returns ESLint visitor to traverse<template>
.getTemplateBodyTokenStore()
... returns ESLintTokenStore
to get the tokens of<template>
.
- ast.md is
<template>
AST specification. - mustache-interpolation-spacing.js is an example.
v1.1.0-0
This is experimental version.
Features
vue-eslint-parser
parses<template>
of single file components.- Plugin rules can traverse the AST of
<template>
. - Plugin rules can get tokens of the AST to check styles.
- Plugin rules can get external references in expressions of directives to check typo or something like.
- Plugin rules can traverse the AST of
v1.0.0
No change. It gets stable.