-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
ESLint --output-file option not supported in @vue/cli-plugin-eslint #4849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We shouldake clear in the docs that CLI-only options are not supported since we don't run the eslint CLI, we import and run the |
@LinusBorg I opened #4850 which adds the
so that it is clear options not listed in the |
Also ran into this problem and have a bit of a hacky method of piping the output to a file, however when it's successful then the format is invalid (in my case XML) so that needs to be handled. Would be so much easier if it could support this as we use the output in Jenkins. |
Version
4.0.5
Reproduction link
https://github.com/ataylorme/vue-cli-lint-output-file-issue
Environment info
Steps to reproduce
Clone the
ataylorme/vue-cli-lint-output-file-issue
repositoryRun
npm install
to download dependenciesRun
npm run lint
, which is an npm script alias forvue-cli-service lint --format json --output-file lint_results.json
What is expected?
The results of
vue-cli-service lint
are saved to the filelint_results.json
in JSON formatWhat is actually happening?
The results of
vue-cli-service lint
are displayed as terminal output and thelint_results.json
is not createdThe Vue CLI ESLint plugin documentation says "Other ESLint CLI options are also supported."
--output-file
is a valid ESLint CLI option.My end goal is to save the Vue lint results in JSON format to a file, which can then be analyzed.
The text was updated successfully, but these errors were encountered: