vue-eslint-parser
Advanced tools
Comparing version 2.0.1-beta.3 to 2.0.1
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
664391
3955
0