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
Upgrade react-scripts to 5.0.1 #505
Conversation
58a2ef4
to
b6189a4
Compare
Codecov Report
@@ Coverage Diff @@
## master #505 +/- ##
==========================================
- Coverage 57.52% 57.43% -0.09%
==========================================
Files 86 86
Lines 3597 3656 +59
Branches 753 812 +59
==========================================
+ Hits 2069 2100 +31
- Misses 1519 1547 +28
Partials 9 9
... and 24 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
bf1df13
to
c70230f
Compare
This is a workaround for a known bug in react-scripts v5. Solution was suggested at facebook/create-react-app#11770 (comment)
Rename eslint configuration file
They are useless anyways, as we do not have definition of camelcase rules in config
Some errors and warnings are fixed and some are suppressed
728aaaa
to
820b536
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.
Curious, why so many lines with eslint-disable-next-line?
I can't get this to work against newest backend master, exception from backend when clicking on "Profiles".
Otherwise most of the changes seems to be turning off eslint.
Eslint rules are useful most of time, but sometimes they can be a hindrance (f.e. exhaustive deps rule in hooks makes it impossible to have a "on-mount" and "on-unmount" useEffect). But there are some eslint-disable-next-line in the code base that can be removed. |
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.
Survived quick manual test
react-scripts 5.0.1 introduced breaking changes. Read more in create-react-app changelog.
Breaking changes relevant for Argus were:
Changes made:
NB
package.json is changed and package-lock.json is committed in this PR