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.