feat: update to eslint 9 and node 20 #28
Merged
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.
About the Contributor
This pull request is posted on behalf of the BBC
Type of Contribution
This is a: Feature
Current Behavior
New Behavior
Updates eslint config to be for v9.
This required a large rewrite of the config convert it to the new flat-config structure.
To make sure this worked, I refined the config while building new config files inside sofie-core. There are some new failures due to new rules, but not ridiculous amounts of them or any rules which look misconfigured.
Updates required typescript to latest (5.7.3)
Updated typescript-eslint to latest, resuliting in a bunch of new/renamed/refined rules. This causes a bunch of linter failures that will need tackling per project when updating.
Various tools which were dependencies are now peerDependencies.
This is because yarn 4 does not allow them to be invoked easily, requiring workaround to do so. This now avoids that as it is expected that consumers can install the ones they need and invoke them. Most of these required configs setting up anyway, so shouldn't add much extra maintainance.
Prettier is updated to v3, resulting in some formatting changes, that cause a lot of linter errors.
Testing Instructions
Other Information
Status