You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-12Lines changed: 17 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,19 +8,24 @@
8
8
9
9
The ESLint custom parser for `.vue` files.
10
10
11
-
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)). The motivation of this custom parser is that it supports autofix on `.vue` files.
11
+
## ⤴️ Motivation
12
12
13
-
## :cd: Installation
13
+
-**This parser allows us to lint the `<template>` of `.vue` files.**
14
+
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.
15
+
-**This parser allows us to fix our mistakes automatically.**
16
+
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.
17
+
18
+
## 💿 Installation
14
19
15
20
```bash
16
21
$ npm install --save-dev eslint vue-eslint-parser
17
22
```
18
23
19
24
-`vue-eslint-parser` requires ESLint 3.9.0 or later.
20
25
21
-
## :book: Usage
26
+
## 📖 Usage
22
27
23
-
1. Write `parser` option in your `.eslintrc.*` file.
28
+
1. Write `parser` option into your `.eslintrc.*` file.
0 commit comments