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: 481
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: 16 days ago
Pushed at: 3 months ago
Last synced at: 2 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
v7.2.0
v7.2.0
β¨ Enhancements
- Added
parserOptions.vueFeaturesoption.- #88 Added
parserOptions.vueFeatures.interpolationAsNonHTMLoption. - #89 Added
parserOptions.vueFeatures.filteroption.
- #88 Added
π Bug fixes
- #85 Fixed type of VDirectiveKey.
- #87 Fixed the wrong location when using with
@typescript-eslint
Download
v7.0.0
v7.0.0
π₯ Breaking Changes
- 57c86241b16e3bd3670a340a0f9c117dd419191c dropped Node.js 6.x support. And the validation of
parserOptionsgot more strict (by espreeβs update).
β¨ Enhancements
- 075d3ff208fbbb73925c44ecdb50729c9cb829de added a new parser service:
parserServices.getDocumentFragment(). You can get the root node of*.vuefileβs AST.
Download
v6.0.3
v6.0.3
π Bug fixes
- 4d734ecc37d74d682b49cdad3f38e639fc3d4012 fixed unexpected behavior on dots in dynamic arguments (refs https://github.com/vuejs/vue/issues/9577)
Download
v6.0.0
v6.0.0
This release supported the new syntax in Vue.js 2.6 π
- The shorthand of
v-binddirective with.propmodifier. (actually, this is experimental and behind flag in Vue.js 2.6) - New
v-slotdirective and that shorthand. (https://vuejs.org/v2/api/#v-slot) - New dynamic arguments. (https://vuejs.org/v2/guide/syntax.html#Dynamic-Arguments)
Breaking changes
This release contains a drastic change about VDirectiveKey AST node because now the directive key have gotten to be able to have JavaScript expression.
export interface VDirectiveKey extends HasLocation, HasParent {
type: "VDirectiveKey"
parent: VAttribute
- name: string
- argument: string | null
- modifiers: string[]
- shorthand: boolean
+ name: VIdentifier
+ argument: VExpressionContainer | VIdentifier | null
+ modifiers: VIdentifier[]
}
- It changed the members
name,argument, andmodifiersto AST nodes from strings. Especially,argumentwill be aVExpressionContainernode if the directive has dynamic argument syntax. - It removed
shorthandmember. To check wheather the directive key is a shorthand or not, usename.rawNamemember.:fooβ¦directiveKey.name.rawNameis":"(anddirectiveKey.name.nameis"bind")..fooβ¦directiveKey.name.rawNameis"."(anddirectiveKey.name.nameis"bind"anddirectiveKey.modifiersincludes the identifier node of"prop").@fooβ¦directiveKey.name.rawNameis"@"(anddirectiveKey.name.nameis"on").#fooβ¦directiveKey.name.rawNameis"#"(anddirectiveKey.name.nameis"slot").
Commits
- 0f241279dc412ff4bb0faa9211233a944465f9b4β¦3c356d974b4fb49f1f8371282707b40841abe4a7
Download