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: eslint v9 compatibility issues #532

Merged
merged 3 commits into from
Aug 16, 2024

Conversation

LucasHill
Copy link
Contributor

@LucasHill LucasHill commented Aug 14, 2024

Fixes #499

I verified all tests pass under eslint v9, but also maintained backward compatibility. Tests require updates that are not v8 compatible so I have another branch where I tested against v9. https://github.com/LucasHill/eslint-plugin-qunit/tree/test_fixes_for_eslint_v9

A future improvement would be to run this plugin against multiple eslint versions, as I can't include the test changes without committing to only testing on v9. If this is desired, I can bring those changes into this branch and the project will be upgraded to test against v9.

I do think it could be worth releasing this in a patch version as the changes are minimal, and intentionally backwards compatible. I know there are plans brewing for the v9 version of this library, but getting folks unblocked now would be awesome! This addon is particularly heavily used in the ember community so I'm trying to push all the eslint plugins in our ecosystem up to v9 compatibility.

Thank you!

@LucasHill LucasHill mentioned this pull request Aug 14, 2024
bmish
bmish previously approved these changes Aug 14, 2024
Copy link
Collaborator

@bmish bmish left a comment

Choose a reason for hiding this comment

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

I'm good with this fix and I know it's badly needed for ESLint v9 users. It's hard to test both ESLint versions at the same time, so we can just leave testing alone for now.

Can you also add some istanbul ignore comments so that these new lines don't require test coverage?

ERROR: Coverage for branches (98.51%) does not meet global threshold (100%)

@LucasHill
Copy link
Contributor Author

@bmish thanks! pushed up those ignores and code coverage passed locally

@bmish bmish added the bug label Aug 15, 2024
@coveralls
Copy link

Coverage Status

coverage: 100.0%. remained the same
when pulling 0e006c4 on LucasHill:fix_eslint_v9_compat_issues
into a74e161 on platinumazure:main.

@bmish bmish merged commit 02b4c8e into platinumazure:main Aug 16, 2024
11 checks passed
@bmish bmish changed the title Fix eslint v9 compatibility issues fix: eslint v9 compatibility issues Aug 16, 2024
@bmish
Copy link
Collaborator

bmish commented Aug 16, 2024

@platinumazure could you release this? Having some trouble with the release command.

@bmish
Copy link
Collaborator

bmish commented Aug 22, 2024

I have released the new 8.1.2 version to npm, can you folks test that?

@platinumazure there are a few more steps to finish up this release, described in:

@bmish
Copy link
Collaborator

bmish commented Aug 31, 2024

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.

ESLint 9 support
3 participants