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(rules): replace context deprecations #416

Merged
merged 1 commit into from Apr 8, 2024

Conversation

driimus
Copy link
Contributor

@driimus driimus commented Apr 8, 2024

Fixes #413 by replacing all the context methods which have been deprecated in eslint v8, and subsequently removed in v9 or are slated for removal in v10 (outlined in this blog post).

The supported eslint versions all have the new syntax:

"eslint": "^8.57.0 || ^9.0.0",

Therefore it's safe to use the replacement methods directly, without a fallback to the old methods (which they showcase in the blog post for backwards compatibility).

@driimus driimus marked this pull request as ready for review April 8, 2024 12:54
Copy link
Owner

@veritem veritem 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!!!!

@veritem veritem merged commit 575951c into veritem:main Apr 8, 2024
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.

Throwing with ESLint 9 and flat config
2 participants