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

HDS-1514: dependency warning fixes #1215

Merged
merged 13 commits into from
Feb 23, 2024

Conversation

NikoHelle
Copy link
Contributor

@NikoHelle NikoHelle commented Jan 18, 2024

Description

Users of hds-react can see "unmet peer dependency" warnings. Some listed warnings were outdated. Other projects could still see issue with react-spring. That was easily fixed with react-spring/web

Fixed also all eslint warnings, which was surprisingly huge effort.

Fixed also old/new ts errors and other warnings raised by yarn or yarn build

Left Gatsby and Storybook related warnings. Those require major update HDS-1438.

Related Issue

Closes #1514

How Has This Been Tested?

Locally.

Add to changelog

  • [x ] Added needed line to changelog

@NikoHelle NikoHelle requested a review from a team January 18, 2024 10:59
@NikoHelle NikoHelle force-pushed the hds-1514-depencency-warning-fixes branch 2 times, most recently from d574cdf to 076aac4 Compare January 19, 2024 08:01
@laurakarhu laurakarhu requested a review from a team January 22, 2024 06:24
@mrTuomoK mrTuomoK self-assigned this Jan 31, 2024
Copy link
Contributor

@mrTuomoK mrTuomoK left a comment

Choose a reason for hiding this comment

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

All ok, good work again :) Good to merge after the changelog-conflicts are fixed (and now the test conflict) 👍 ping @NikoHelle

Copy link
Contributor

@laurakarhu laurakarhu left a comment

Choose a reason for hiding this comment

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

Thanks for reducing the warnings!

Gatsby uses latest (1.4.5-lts.1) but for some vulnerability reason it has been forced to be 1.4.4.

Could not find open vulnerability for 1.4.4. or 1.4.5 so changed to newer
Splitted the resolutions to two versions instead forcing all to v2.
Also had to update plugins and prettier.

Also removed some plugins/rules that have been merged into prettier/eslint-config-prettier:
prettier/@typescript-eslint
prettier/react

Changed some rules which caused hundreds of errors in the /src.
Autofixed what could, and the manually.

Fix warnings for missing labels

The warning was: "A control must be associated with a text label"
Stepper had invalid props for file input and a copy-paste error.
tsconfig had extra comma

Add build:code to scripts

No need to build site everytime core+React is needed

Removed ununsed code

Lines 190 - 201 was deleted. Other changes are due autoformat.
Yarn start did not work anymore and changing eslintrc.json did not work

Error: facebook/create-react-app#11864

Fixed by updating some eslint related packages by removing them from yarn.lock and running yarn.

Added react as plugin to eslintrc.
postcss and @testing-library/dom added to actual (dev)/dependencies.

PostCss is a devDep and peerDep

Used postCss version jumped from 7 to 8.

Reason is in migration guide
https://evilmartians.com/chronicles/postcss-8-plugin-migration
There was a warning about 2 mocks with same name. Merged and moved to utils.
@NikoHelle NikoHelle force-pushed the hds-1514-depencency-warning-fixes branch from 076aac4 to 8cb1190 Compare February 23, 2024 12:33
@NikoHelle NikoHelle merged commit 90096b7 into development Feb 23, 2024
6 checks passed
@NikoHelle NikoHelle deleted the hds-1514-depencency-warning-fixes branch February 23, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants