Skip to content

Commit 8f1324c

Browse files
authored
docs: update description of ESlint default linted files (#6199)
1 parent 3eaef4d commit 8f1324c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/core-plugins/eslint.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@
1717
--max-warnings specify number of warnings to make build failed (default: Infinity)
1818
```
1919

20-
Lints and fixes files. If no specific files are given, it lints all files in `src` and `tests`.
20+
Lints and fixes files. If no specific files are given, it lints all files in `src` and `tests`, as well as all JavaScript files in the root directory (these are most often config files such as `babel.config.js` or `.eslintrc.js`).
21+
22+
Other [ESLint CLI options](https://eslint.org/docs/user-guide/command-line-interface#options) are also supported.
23+
24+
::: tip
25+
`vue-cli-service lint` will lint dotfiles `.*.js` by default. If you want to follow ESLint's default behavior instead, consider adding a `.eslintignore` file in your project.
26+
:::
2127

22-
Other [ESLint CLI options](https://eslint.org/docs/user-guide/command-line-interface#options) are also supported.
2328

2429
## Configuration
2530

0 commit comments

Comments
 (0)