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

Ignore unexpected case in catch-error-name and prefer-set-has #1077

Merged
merged 9 commits into from Jan 27, 2021

Conversation

fisker
Copy link
Collaborator

@fisker fisker commented Jan 27, 2021

Ref #1075

@fisker fisker mentioned this pull request Jan 27, 2021
@fisker
Copy link
Collaborator Author

fisker commented Jan 27, 2021

Tried a lot, can't reproduce #1075 (comment)

@fisker fisker changed the title ISSUE-1075 test catch-error-name: Add more tests Jan 27, 2021
@fisker fisker changed the title catch-error-name: Add more tests catch-error-name: Fix crash on unexpected case Jan 27, 2021
@fisker fisker marked this pull request as ready for review January 27, 2021 08:14
@fisker fisker marked this pull request as draft January 27, 2021 08:15
@fisker fisker changed the title catch-error-name: Fix crash on unexpected case Fix unexpected case in catch-error-name and prefer-set-has Jan 27, 2021
@fisker fisker changed the title Fix unexpected case in catch-error-name and prefer-set-has Ignore unexpected case in catch-error-name and prefer-set-has Jan 27, 2021
@fisker fisker marked this pull request as ready for review January 27, 2021 08:33
@@ -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
Copy link
Owner

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.

Copy link
Collaborator Author

@fisker fisker Jan 27, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants