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

[Eslint 9] Use new context API #368

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Conversation

ej612
Copy link
Contributor

@ej612 ej612 commented Jun 10, 2024

Description

Eslint 9 has removed a couple of methods from the context object. Adapt the code to work with both the new and old eslint runtime.

More info:
https://eslint.org/blog/2023/09/preparing-custom-rules-eslint-v9/

How has this been tested?

Manually, with an installation of eslint 9.

Types of changes

  • Test change (non-breaking change which adds additional test scenarios)
  • Refactor change (non-breaking change updates coding styles)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have ran npm run test and everything passes
  • My code follows the code style of this project
  • I have updated the documentation where necessary
  • I have read the CONTRIBUTING document
  • I have added tests to cover my changes
  • All new and existing tests pass

Eslint 9 has removed a couple of methods from the `context` object. Adapt the code to work with both the new and old eslint runtime.

More info:
https://eslint.org/blog/2023/09/preparing-custom-rules-eslint-v9/
@tlvince tlvince merged commit f9e0798 into tlvince:master Jun 13, 2024
2 checks passed
Copy link

🎉 This PR is included in version 4.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ej612 ej612 deleted the context_methods branch June 13, 2024 18:49
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.

None yet

2 participants