Skip to content

Releases: vuejs/vue-eslint-parser

v3.2.1

24 Jul 08:15
v3.2.1
a6156b8
Compare
Choose a tag to compare

Bug fixes

  • c0e9190 made the parser throwing syntax error on the top-level commas in v-bind directives (E.g., :foo="a,b"). It was parsed to SequenceExpression wrongly before.

v3.2.0

24 Jul 06:29
v3.2.0
51a4bab
Compare
Choose a tag to compare

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

  • 7de2b86 fixed the list of void element names to be acording to WHATWG spec.
  • adbaf4b fixed the list of normal element names to be acording to WHATWG spec.
  • 7ded104 fixed the parser to handle {{}} as a part of text rather than an empty mustache.
  • 6906fb1 fixed the parser to allow empty mustaches.

v3.1.1

20 Jul 07:52
v3.1.1
e564707
Compare
Choose a tag to compare

Bug fixes

  • fa73293 fixed the bug that vue-eslint-parser parsed the v-on directive with no argument and an object expression (e.g., v-on="{foo: bar}") to a block statement. (#30)

v3.1.0

09 Jul 10:12
v3.1.0
12079c4
Compare
Choose a tag to compare

Enhancements

  • f6f42bb allows the xmlns attribute on <template> elements in order to define custom elements which are a part of SVG/MathML.

v3.0.0

03 Jul 05:44
v3.0.0
7a9bde9
Compare
Choose a tag to compare

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 and eslint-scope packages, vue-eslint-parser is using internally, to 4.0.0. This means it dropped the support of parserOptions.ecmaFeatures.experimentalObjectRestSpread option. Use ecmaVersion option instead.
  • 87efc6d added the support of slot-scope attribute to define variables which are available on inside of the element. The slot-scope attribute is expressed as new VSlotScopeExpression node. And it changed the AST of <template scope> attribute to the VSlotScopeExpression node.

v2.0.3

02 Jul 14:59
v2.0.3
de3fe7f
Compare
Choose a tag to compare

Bug fixes

  • f115c26 fixed to allow empty directive values.

v2.0.2

07 Jan 13:07
v2.0.2
6111437
Compare
Choose a tag to compare

Bug fixes

  • 812fd21 fixed a bug that context.parserServices.defineTemplateBodyVisitor() doesn't work if AST object was reused.

v2.0.1

31 Dec 04:19
340b66a
Compare
Choose a tag to compare

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 ESLint TokenStore to get the tokens of <template>.
  • ast.md is <template> AST specification.
  • mustache-interpolation-spacing.js is an example.

v1.1.0-0

22 Apr 07:24
v1.1.0-0
158cff9
Compare
Choose a tag to compare
v1.1.0-0 Pre-release
Pre-release

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.

v1.0.0

29 Dec 14:35
d21b3ac
Compare
Choose a tag to compare

No change. It gets stable.