-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Ignore unexpected case in catch-error-name
and prefer-set-has
#1077
Conversation
Tried a lot, can't reproduce #1075 (comment) |
catch-error-name
: Add more testscatch-error-name
: Fix crash on unexpected case
catch-error-name
: Fix crash on unexpected casecatch-error-name
and prefer-set-has
catch-error-name
and prefer-set-has
catch-error-name
and prefer-set-has
@@ -69,6 +69,13 @@ const create = context => { | |||
const scope = context.getScope(); | |||
const variable = findVariable(scope, node); | |||
|
|||
// This was reported https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1075#issuecomment-768072967 | |||
// But can't reproduce, just ignore this case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this still apply? I noticed you added some tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know, the smoke test failed 3days ago, I can't reproduce. Very strange, same thing happened few days ago https://github.com/sindresorhus/eslint-plugin-unicorn/pull/1045/files#diff-10f1d5918272c29964d48236585e1df3b35709537364651b22f63e9a7e21a3c7R174
Ref #1075