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
ESLint has a --max-warnings command line options that triggers an return code > 0 when eslint detects more than n warnings.
This is really useful for example to allow developpers to work without worrying about eslint warnings, but make the CI build fail if there are some warnings.
Since @vue/cli-plugin-eslint uses eslint's CLIEngine instead of the cli object, this option is not supported (it is handled by cli.js, not cli-engine.js). It would be nice to have this feature in vue cli, either by re-implementing it, or by using the cli.js script of eslint.
What does the proposed API look like?
vue-cli-service lint --max-warnings=0
The text was updated successfully, but these errors were encountered:
@posva Is it really a duplicate though ? The issue you linked seems to be about passing arguments to cli engine. This wouldn't solve this. Unless it's a broader issue ? What is the preferred way to cover my specific use case ? Reimplement the functionality or switch to using cli.js ?
What problem does this feature solve?
ESLint has a
--max-warnings
command line options that triggers an return code > 0 when eslint detects more than n warnings.This is really useful for example to allow developpers to work without worrying about eslint warnings, but make the CI build fail if there are some warnings.
Since @vue/cli-plugin-eslint uses eslint's
CLIEngine
instead of the cli object, this option is not supported (it is handled bycli.js
, notcli-engine.js
). It would be nice to have this feature in vue cli, either by re-implementing it, or by using thecli.js
script of eslint.What does the proposed API look like?
vue-cli-service lint --max-warnings=0
The text was updated successfully, but these errors were encountered: