Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-eslint-parser

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-eslint-parser - npm Package Compare versions

Comparing version 2.0.1-beta.3 to 2.0.1

2

package.json
{
"name": "vue-eslint-parser",
"version": "2.0.1-beta.3",
"version": "2.0.1",
"description": "The ESLint custom parser for `.vue` files.",

@@ -5,0 +5,0 @@ "engines": {

@@ -13,5 +13,5 @@ # vue-eslint-parser

- **This parser allows us to lint the `<template>` of `.vue` files.**
- **This parser allows us to lint the `<template>` of `.vue` files.**
We can make mistakes easily on `<template>` if we use complex directives and expressions in the template. This parser and the rules of [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) would catch some of the mistakes.
- **This parser allows us to fix our mistakes automatically.**
- **This parser allows us to fix our mistakes automatically.**
ESLint supports autofix on custom parsers but does not support autofix on plugins which have processors ([eslint/eslint#7510](https://github.com/eslint/eslint/issues/7510)). This parser supports autofix on `.vue` files.

@@ -47,3 +47,3 @@

`parserOptions` has the same properties as what [espree](https://github.com/eslint/espree#usage), the default parser of ESLint, is supporting.
`parserOptions` has the same properties as what [espree](https://github.com/eslint/espree#usage), the default parser of ESLint, is supporting.
For example:

@@ -68,3 +68,3 @@

Also, you can use `parser` property to specify a custom parser to parse `<script>` tags.
Other properties than parser would be given to the specified parser.
Other properties than parser would be given to the specified parser.
For example:

@@ -97,8 +97,8 @@

This parser provides `parserServices` to traverse `<template>`.
- This parser provides `parserServices` to traverse `<template>`.
- `defineTemplateBodyVisitor(templateVisitor, scriptVisitor)` ... returns ESLint visitor to traverse `<template>`.
- `getTemplateBodyTokenStore()` ... returns ESLint `TokenStore` to get the tokens of `<template>`.
- [ast.md](./docs/ast.md) is `<template>` AST specification.
- [mustache-interpolation-spacing.js](https://github.com/vuejs/eslint-plugin-vue/blob/b434ff99d37f35570fa351681e43ba2cf5746db3/lib/rules/mustache-interpolation-spacing.js) is an example.
The spec of `<template>` AST is [here](./docs/ast.md).
TODO: write examples.
## ⚠️ Known Limitations

@@ -105,0 +105,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc