diff --git a/docs/core-plugins/eslint.md b/docs/core-plugins/eslint.md index fd783e26f1..bb9037b9a7 100644 --- a/docs/core-plugins/eslint.md +++ b/docs/core-plugins/eslint.md @@ -17,9 +17,14 @@ --max-warnings specify number of warnings to make build failed (default: Infinity) ``` - Lints and fixes files. If no specific files are given, it lints all files in `src` and `tests`. +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`). + +Other [ESLint CLI options](https://eslint.org/docs/user-guide/command-line-interface#options) are also supported. + +::: tip +`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. +::: - Other [ESLint CLI options](https://eslint.org/docs/user-guide/command-line-interface#options) are also supported. ## Configuration