upgrade Eslint to version 9 and migrated the Eslint config #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have started the ESLint upgrade to version 9 here are some things that I have already done
Migrated the Eslint config to the new convention
https://eslint.org/docs/latest/use/migrate-to-9.0.0#-new-default-config-format-eslintconfigjs
Updated the unit tests to prevent duplicate tests:
I did this by adding an index to the code (I am not 100% sure if this is the right way to go about it). This is in response to a change that was implemented on the RuleTester
eslint/eslint#18235
Removed the slash library
It gave issues in terms of import resolution which I could not find a workaround so I simply replaced it with a local function and added unit tests for said local function.
Problems
Currently, a large majority of tests are not passing most of which fail due to an incorrect amount of errors
The other ones are invalid test cases that are failing due to unexpected output
I tried to investigate what the cause could be for these, but I am not even sure where to begin to look as there were no real changes to the actually implementation, so it might be one of the packages that require some changes post upgrade but I am not sure which package it would be
I will add here that I attempted this but very soon realized I was in a bit over my head, I would love to get some feedback in terms of what else I can try to resolve the final issues
If it will be less effort to just do the migration yourself then that is also okay and I can simply abandon the PR