-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
ESLint '--quiet' Option has no effect #4560
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
vue-cli-service lint does not support CLI-only options, since it uses the CLIEngine programmatically. You can however run eslint directly if you want to use these options - Concerning the overlay, we would need a new issue with a reproduction. It sounds like it would be relared to eslint-loader, though - not Vue CLI. |
I believe i was running into the same issue as @sense-it-gmbh . Every time an error would occur within eslint, it would also throw dozens of warnings. I'm getting the handle of Vue, so of course I'm going to have a few errors. Every time an error happens, I'd have to scroll through dozens of warnings just to get to the cause of the error... that caused the warnings. I'm using hotloading, and was linting on save. So, to only show errors on save - in chainWebpack: config => {
config.module
.rule('eslint')
.use('eslint-loader')
.options({quiet: true});
} For accomplishing the same goal on manual saves - In "lint": "vue-cli-service lint --quiet" |
@LinusBorg id like to quote you and the @vue/cli-plugin-eslint here. You said:
But the docs say:
Which is true? |
@casperwilkes |
@ysyzqq Did you try both methods in my original answer? |
@casperwilkes I'm showing up to a dead thread, but I've tried your suggestions yet I see nothing change (adding the chained webpack config or appending For the record, |
@TrobbinsForNow {
"scripts": {
"lint": "vue-cli-service lint --no-fix",
"lint:quiet": "eslint --quiet \"{tests,src}/**/*.{js,vue}\"",
"lint:fix": "vue-cli-service lint"
}
}
|
In vue-cli 5, the ESlint plugin has changed ; from the migration docs:
So I had to change the previous
Hope it helps! |
Version
3.11.0
Environment info
Steps to reproduce
@vue/cli-plugin-eslint
npm run lint --quiet
What is expected?
A list of all errors but no linter-warnings
What is actually happening?
A list of all linter-warnings and errors
Also, setting:
in
vue.config.js
does not cause all errors to be displayed. It seems like 'fixable' errors are skipped.The text was updated successfully, but these errors were encountered: