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

Chore: update no-unused-vars caughtErrors in eslint-config-eslint #13351

Merged
merged 1 commit into from Jun 1, 2020

Conversation

mdjermanovic
Copy link
Member

@mdjermanovic mdjermanovic commented May 24, 2020

Prerequisites checklist

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

[X] Other, please explain:

Updates eslint-config-eslint

What changes did you make? (Give an overview)

Added caughtErrors: "all" to no-unused-vars in order to enforce omission of catch binding in cases where the caught error would not be used.

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

Does this change make sense? Also, please verify that all supported Node versions support optional catch binding.

@mdjermanovic mdjermanovic added the chore This change is not user-facing label May 24, 2020
@aladdin-add
Copy link
Member

image

the supported Node versions seems fine.(and the CI passed)

@yeonjuan
Copy link
Member

yeonjuan commented May 28, 2020

@mdjermanovic
I test it in node v10.12.0 and it looks fine.
Maybe should we update the engine field in eslint-config-eslint package.json?
It's still "node": "^8.10.0 || ^10.13.0 || >=11.10.1"

@kaicataldo
Copy link
Member

Even though it won't cause any issues, I think it does makes sense to have it match the engines range in eslint's package.json.

@mdjermanovic
Copy link
Member Author

Maybe should we update the engine field in eslint-config-eslint package.json?
It's still "node": "^8.10.0 || ^10.13.0 || >=11.10.1"

Should we update the engine field in this PR, because the change made so far in this PR basically requires catch {}, which isn't supported in 8.10.0?

@yeonjuan
Copy link
Member

yeonjuan commented Jun 1, 2020

Should we update the engine field in this PR, because the change made so far in this PR basically requires catch {}, which isn't supported in 8.10.0?

IMO, it's not strongly necessary for this PR. 😀

Copy link
Member

@yeonjuan yeonjuan 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 :)

@aladdin-add
Copy link
Member

well, I've created a PR #13379 to update it.

@kaicataldo kaicataldo merged commit 578efad into master Jun 1, 2020
@kaicataldo kaicataldo deleted the eslintconfigeslint-caughterrors branch June 1, 2020 19:05
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Nov 29, 2020
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Nov 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion chore This change is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants