An open API service providing repository metadata for many open source software ecosystems.

GitHub / vuejs / vue-eslint-parser

The ESLint custom parser for `.vue` files.

JSON API: http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vuejs%2Fvue-eslint-parser
PURL: pkg:github/vuejs/vue-eslint-parser

Stars: 482
Forks: 77
Open issues: 24

License: mit
Language: TypeScript
Size: 2.23 MB
Dependencies parsed at: Pending

Created at: almost 9 years ago
Updated at: 5 days ago
Pushed at: 4 months ago
Last synced at: 4 days ago

Commit Stats

Commits: 385
Authors: 15
Mean commits per author: 25.67
Development Distribution Score: 0.366
More commit stats: https://commits.ecosyste.ms/hosts/GitHub/repositories/vuejs/vue-eslint-parser

Topics: eslint, eslint-custom-parser, javascript, single-file-component, static-code-analysis, vue, vuejs

Funding Links https://github.com/sponsors/ota-meshi, https://github.com/sponsors/mysticatea

Releases
v3.1.0

v3.1.0

Enhancements

  • f6f42bb075cf186cdc19e3b55469a0c6c95f7257 allows the xmlns attribute on <template> elements in order to define custom elements which are a part of SVG/MathML.
over 7 years ago
Download
v3.0.0

v3.0.0

Breaking changes

  • c83140fea45537fc16beb50a2bb210afd4ce4911 dropped the support of Node.js 4.x.
  • 4e2cd771dcf011b040eeccf7a748f40aba001201 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.
  • 87efc6d22d03a3e56c0e8097b33d826b69a35e29 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.
over 7 years ago
Download
v2.0.3

v2.0.3

Bug fixes

  • f115c263200479f617de7c311712972c33173a58 fixed to allow empty directive values.
over 7 years ago
Download
v2.0.2

v2.0.2

Bug fixes

  • 812fd21a596e590eeade692298292e4b3ce950b0 fixed a bug that context.parserServices.defineTemplateBodyVisitor() doesn’t work if AST object was reused.
almost 8 years ago
Download
v2.0.1

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 ESLint TokenStore to get the tokens of <template>.
  • ast.md is <template> AST specification.
  • mustache-interpolation-spacing.js is an example.
almost 8 years ago
Download
v1.1.0-0

v1.1.0-0 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.
over 8 years ago
Download
v1.0.0

v1.0.0

No change. It gets stable.

almost 9 years ago
Download
v0.2.0

v0.2.0 Pre-release

Breaking changes

  • 5766096687a0b1420b1f0780d1970c13e9044351 changed the minimum ESLint version vue-eslint-parser supports. It requires 3.9.0 or later.
    The reason is that vue-eslint-parser needs parserServices feature to release the capabilities to access ASTs of <template> in future.

If no problem, I will release 1.0.0 with this version after a few day.

almost 9 years ago
Download
v0.1.4

v0.1.4 Pre-release

Bug fixes

  • fba86130e1f82d3d0b63abddb192d102589b1e36 removed postinstall script which has caused an installation problem.
almost 9 years ago
Download
v0.1.3

v0.1.3 Pre-release

Features

  • b16a6c1402276631b286b8e4d8e5ac2a199d3563 added the feature to use custom parsers to parse the inside of <script> tags (#1).
    See also README.md#options.

Docs

  • 5f7f5fcc01502c22ee492c42cc478c1e17181d54 added the notation about the rules which are working incorrectly to “known limitations” section.
    See also README.md#known-limitations.

Chore

almost 9 years ago
Download