chore(eslint-config): update eslint to 8 #6833
Draft
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'm updating eslint to 8
Opening as draft before I go on vacation so I don't forget the state of it
Somehow we still had a few packages with this one in dependencies
I'm not updating to 9 right away to reduce the blast radius there seems to be enough issues caused by this update already that would be nice to deal with before we're forced to adapt for the new config format on top of this
Those are 8/9 compat so we can go straight to latest with them
Some configurable eslint rules that we have changed the schema a bit, adjusted that
@typescript-eslint/no-explicit-any
@typescript-eslint/prefer-promise-reject-errors
@typescript-eslint/no-var-requires
renamed to@typescript-eslint/no-require-imports
@typescript-eslint/no-base-to-string
no-unsafe-optional-chaining
@typescript-eslint/no-redundant-type-constituents
@typescript-eslint/no-duplicate-type-constituents
@typescript-eslint/unbound-method
@typescript-eslint/no-unsafe-declaration-merging
@typescript-eslint/no-unused-expressions
@typescript-eslint/only-throw-error
@typescript-eslint/no-unsafe-enum-comparison
@typescript-eslint/no-misused-promises