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: docs/user-guide/README.md
+15-4Lines changed: 15 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ If you want to disallow `eslint-disable` functionality in `<template>`, disable
131
131
132
132
## :computer: Editor integrations
133
133
134
-
####Visual Studio Code
134
+
### Visual Studio Code
135
135
136
136
Use the [dbaeumer.vscode-eslint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) extension that Microsoft provides officially.
137
137
@@ -151,7 +151,7 @@ Example **.vscode/settings.json**:
151
151
152
152
If you use the `Vetur` plugin, set `"vetur.validation.template": false` to avoid default Vetur template validation. Check out [vetur documentation](https://vuejs.github.io/vetur/linting-error.html) for more info.
153
153
154
-
####Sublime Text
154
+
### Sublime Text
155
155
156
156
Use Package Control to install **SublimeLinter** and its ESLint extension **[SublimeLinter-eslint](https://github.com/SublimeLinter/SublimeLinter-eslint)**.
157
157
@@ -167,11 +167,11 @@ In the menu go to `Preferences > Package Settings > SublimeLinter > Settings` an
167
167
}
168
168
```
169
169
170
-
####Atom editor
170
+
### Atom editor
171
171
172
172
Go into `Settings -> Packages -> linter-eslint`, under the option "List of scopes to run eslint on", add `text.html.vue`. You may need to restart Atom.
173
173
174
-
####IntelliJ IDEA / JetBrains WebStorm
174
+
### IntelliJ IDEA / JetBrains WebStorm
175
175
176
176
In the **Settings/Preferences** dialog (`Cmd+,`/`Ctrl+Alt+S`), choose JavaScript under **Languages and Frameworks** and then choose **ESLint** under **Code Quality Tools**.
177
177
On the **ESLint page** that opens, select the *Enable* checkbox.
@@ -284,3 +284,14 @@ See also [ESLint - Specifying Parser Options](https://eslint.org/docs/user-guide
284
284
The same configuration is required when using JSX with TypeScript (TSX) in the `.vue` file.
285
285
See also [here](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/README.md#parseroptionsecmafeaturesjsx).
286
286
Note that you cannot use angle-bracket type assertion style (`var x = <foo>bar;`) when using `jsx: true`.
287
+
288
+
### Trouble with Visual Studio Code
289
+
290
+
- Turning off the rule in the ESLint configuration file does not ignore the warning.
291
+
- Using the `<!-- eslint-disable -->` comment does not suppress warnings.
292
+
- Duplicate warnings are displayed.
293
+
- Used `babel-eslint`, but the template still show `vue/no-parsing-error` warnings.
294
+
295
+
You need to turn off Vetur's template validation by adding `vetur.validation.template: false` to your `.vscode/settings.json`.
296
+
297
+
See also: "[Visual Studio Code](#editor-integrations)" section and [Vetur - Linting / Error Checking > Linting](https://vuejs.github.io/vetur/linting-error.html#linting).
0 commit comments