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
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
espreeandeslint-scopepackages,vue-eslint-parseris using internally, to4.0.0. This means it dropped the support ofparserOptions.ecmaFeatures.experimentalObjectRestSpreadoption. UseecmaVersionoption instead. - 87efc6d22d03a3e56c0e8097b33d826b69a35e29 added the support of
slot-scopeattribute to define variables which are available on inside of the element. Theslot-scopeattribute is expressed as newVSlotScopeExpressionnode. And it changed the AST of<template scope>attribute to theVSlotScopeExpressionnode.
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 ESLintTokenStoreto get the tokens of<template>.
- ast.md is
<template>AST specification. - mustache-interpolation-spacing.js is an example.
Download
v1.1.0-0
v1.1.0-0 Pre-release
This is experimental version.
Features
vue-eslint-parserparses<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
Download
v0.2.0
v0.2.0 Pre-release
Breaking changes
- 5766096687a0b1420b1f0780d1970c13e9044351 changed the minimum ESLint version
vue-eslint-parsersupports. It requires 3.9.0 or later.
The reason is thatvue-eslint-parserneedsparserServicesfeature 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.
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
- https://github.com/mysticatea/vue-eslint-parser/compare/b16a6c1402276631b286b8e4d8e5ac2a199d3563...fd92c13bc9440ab8035f25171a64467755e6fb2f added tests more than 10000 cases. It runs the tests of ESLint core rules as making a use of this custom parser.
Download