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/index.md
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -154,13 +154,12 @@ If you have issues with these, please also refer to the [FAQ](#does-not-work-wel
154
154
155
155
### Running ESLint from the command line
156
156
157
-
If you want to run `eslint` from the command line, make sure you include the `.vue` extension using [the `--ext` option](https://eslint.org/docs/user-guide/configuring#specifying-target-files-to-lint) or a glob pattern, because ESLint targets only `.js` files by default.
157
+
If you want to run `eslint` from the command line, ESLint will automatically check for the `.vue` extension if you use the config provided by the plugin.
158
158
159
159
Examples:
160
160
161
161
```bash
162
-
eslint --ext .js,.vue src
163
-
eslint "src/**/*.{js,vue}"
162
+
eslint src
164
163
```
165
164
166
165
::: tip
@@ -393,7 +392,7 @@ See also: "[How to use a custom parser?](#how-to-use-a-custom-parser)" section.
393
392
394
393
1. Make sure your tool is set to lint `.vue` files.
395
394
396
-
-CLI targets only `.js` files by default. You have to specify additional extensions with the `--ext` option or glob patterns. E.g. `eslint "src/**/*.{js,vue}"` or `eslint src --ext .vue`. If you use `@vue/cli-plugin-eslint` and the `vue-cli-service lint` command - you don't have to worry about it.
395
+
-Make sure you are using the shareable config provided by `eslint-plugin-vue`.
397
396
- If you are having issues with configuring editor, please read [editor integrations](#editor-integrations)
0 commit comments