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
Currently @nx/eslint:lint throws an error when no files are found to lint (or all found files are ignored). I would like to have the option to suppress this error in order to support partial linting in CI. My goal is to pass all of the files changed in the PR to lintFilePatterns. I don't want to have to curate the list or conditionally run the task, I would simply like the lint executor to figure out what to lint and succeed if there are no files found.
Motivation
This would be a significant performance improvement on my large repo, only linting files that have changed
Suggested Implementation
Add an option to the executor: errorOnUnmatchedPattern (ESlint has a similar CLI flag: --no-error-on-unmatched-pattern) that defaults to true. Use this option to protect the throws
Alternate Implementations
I can't think of an alternative
The text was updated successfully, but these errors were encountered:
Description
Currently @nx/eslint:lint throws an error when no files are found to lint (or all found files are ignored). I would like to have the option to suppress this error in order to support partial linting in CI. My goal is to pass all of the files changed in the PR to lintFilePatterns. I don't want to have to curate the list or conditionally run the task, I would simply like the lint executor to figure out what to lint and succeed if there are no files found.
Motivation
This would be a significant performance improvement on my large repo, only linting files that have changed
Suggested Implementation
Add an option to the executor:
errorOnUnmatchedPattern
(ESlint has a similar CLI flag:--no-error-on-unmatched-pattern
) that defaults totrue
. Use this option to protect the throwsAlternate Implementations
I can't think of an alternative
The text was updated successfully, but these errors were encountered: