OPHJOD-1009: Update outdated dependencies #182
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.
Description
Updated the following packages reported by
npm outdated
:ESLint and Prettier package updates were not straightforward so their changes are in a separate commit in this PR
Updated packages:
sonarjs plugin had a big version bump from
0.24.0
to2.0.4
which introduced many issues that had to be fixed.ESLInt latest version is 9.x.x, but it wasn't possible to update since
@typescript-eslint
packages don't support it yet.Tested each component in storybook, all worked as intended.
Other changes:
vi.fn
should bevi.fn()
. I wonder why it worked before 🤷SelectionCard
, useuseState
from storybook instead of React to avoid error in storybook while rendering the component.Related JIRA ticket
https://jira.eduuni.fi/browse/OPHJOD-1009
https://jira.eduuni.fi/browse/OPHJOD-1024