-
Notifications
You must be signed in to change notification settings - Fork 41
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
Conversation
d574cdf
to
076aac4
Compare
There was a problem hiding this 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
There was a problem hiding this 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.
site needed some babel deps.
076aac4
to
8cb1190
Compare
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 withreact-spring/web
Fixed also all eslint warnings, which was surprisingly huge effort.
Fixed also old/new ts errors and other warnings raised by
yarn
oryarn 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