Skip to content
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

New: Add no-error-on-unmatched-pattern flag (fixes #10587) #12377

Merged
merged 2 commits into from Dec 20, 2019

Conversation

ncraley
Copy link
Contributor

@ncraley ncraley commented Oct 4, 2019

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[x] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:

Fixes #10587

What changes did you make? (Give an overview)

Added a flag to prevent errors when an unquoted glob pattern or --ext is not matched.

Is there anything you'd like reviewers to focus on?

I still need to confirm behavior when combined with other CLI options (and possibly add tests for that), but wanted to go ahead and put this out for initial feedback.

Add flag to prevent errors when a pattern or --ext is not matched
@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Oct 4, 2019
@kaicataldo kaicataldo added accepted There is consensus among the team that this change meets the criteria for inclusion cli Relates to ESLint's command-line interface enhancement This change enhances an existing feature of ESLint and removed triage An ESLint team member will look at this issue soon labels Oct 24, 2019
@arthurdenner
Copy link
Contributor

@ncraley, can you solve the conflicts here, please? I'm not a maintainer, but I think this may help get this merged soon. cc @kaicataldo

Copy link
Member

@kaicataldo kaicataldo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry this fell through the cracks. Thanks for the ping!

Pending resolving the merge conflicts, this LGTM, though I’d love another pair of eyes on this.

@ncraley
Copy link
Contributor Author

ncraley commented Nov 22, 2019

@arthurdenner thanks, I'll knock out those conflicts tomorrow.

Copy link
Member

@platinumazure platinumazure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for contributing!

Copy link
Member

@kaicataldo kaicataldo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copy link
Member

@btmills btmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion cli Relates to ESLint's command-line interface enhancement This change enhances an existing feature of ESLint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option to not throw an error on an unmatched pattern
5 participants