add maxWarnings option to eslint plugins inferred lint task #30657
jgannonjr
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using the eslint plugin's inferred task, there's no way to set the maxWarnings option (or other options).
The relevant code block is:
nx/packages/eslint/src/plugins/plugin.ts
Lines 462 to 525 in 5feafd6
The inferred target
TargetConfiguration
is using a eslint 'command', it seems that it would make more sense to use the@nx/eslint:lint
'executor'. This would be my proposed solution. That way the targetDefaults can be set in nx.json for@nx/eslint:lint
, and this can be used to set themaxWarnings
as well as other configuration options for the executor.An alternative solution would be adding a plugin configuration option to set this and continue using the 'command', but this seems less ideal since these options are already supported in the executor.
Beta Was this translation helpful? Give feedback.
All reactions