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

fix: Replace deprecated scope.resolve method #70

Merged

Conversation

ertrzyiks
Copy link
Contributor

@ertrzyiks ertrzyiks commented Sep 24, 2020

Fixes #69

As pointed out in the developer guide
https://eslint.org/docs/developer-guide/scope-manager-interface#deprecated-members-2

scope.resolve method is deprecated. For that reason it was not implemented
in typescript-eslint/typescript-eslint and no-unnecessary-waiting rule
fails with version 4.x of the typescript eslint parser.

The eslint developer guide suggest to use scope.references.find instead.

As pointed out in the developer guide
https://eslint.org/docs/developer-guide/scope-manager-interface#deprecated-members-2

scope.resolve method is deprecated. For that reason it was not implemented
in typescript-eslint/typescript-eslint and no-unnecessary-waiting rule
fails with version 4.x of the typescript eslint parser.

The eslint developer guide suggest to use `scope.references.find` instead.
Copy link
Contributor

@chrisbreiding chrisbreiding left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@chrisbreiding chrisbreiding changed the title fix: migrate away from deprecated scope.resolve method fix: Replace deprecated scope.resolve method Sep 28, 2020
@chrisbreiding chrisbreiding merged commit 9bcf51e into cypress-io:master Sep 28, 2020
@chrisbreiding
Copy link
Contributor

🎉 This PR is included in version 2.11.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ertrzyiks ertrzyiks deleted the migrate-away-from-scope-resolve branch September 28, 2020 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scope.resolve is not a function when running eslint
2 participants