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

package.json: bump eslint to ^8.0.0 and all eslint-x dependencies #554

Conversation

KKoukiou
Copy link
Contributor

@KKoukiou KKoukiou commented Apr 9, 2022

So as to satisfy the new eslint peer dependency.

In addition drop eslint-config-standard-react as it does not release
anymore, and eslint 8.x is not compatible with the available last
release.
standard/eslint-config-standard-react#69

Replace it with https://github.com/facebook/create-react-app#readme
which is actively maintained.

Lastly drop the deprecated
https://github.com/standard/eslint-plugin-standard

@KKoukiou
Copy link
Contributor Author

KKoukiou commented Apr 9, 2022

So at to keep starter-kit as template project, let's fix here possible issues and then apply to external projects as rhinstaller/anaconda#4035 (comment)

@martinpitt
Copy link
Member

martinpitt commented Apr 11, 2022

Fails to build in CentOS 8 stream:

DEBUG: NODE_ENV=production node_modules/.bin/webpack
DEBUG: ERROR in Module.createRequire is not a function
DEBUG: webpack compiled with 1 error

... too old node.js?

Let's fix that by not running eslint during RPM build -- it doesn't do anything good there, just waste time.

martinpitt and others added 2 commits April 11, 2022 06:48
It's useless there -- any style error that may happen there has already
slipped through the upstream release, and at RPM build time there is
nothing that can be done about it. It just wastes time.

This allows us to bump eslint to a newer version which is incompatible
with the older node.js on RHEL/CentOS 8.
So as to satisfy the new eslint peer dependency.

In addition drop eslint-config-standard-react as it does not release
anymore, and eslint 8.x is not compatible with the available last
release.
standard/eslint-config-standard-react#69

Replace it with https://github.com/facebook/create-react-app#readme
which is actively maintained.

Lastly drop the deprecated
https://github.com/standard/eslint-plugin-standard
@martinpitt martinpitt force-pushed the drop-depr-eslint-config-standard-react branch from c44587c to 3d490c6 Compare April 11, 2022 04:52
Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

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

Many thanks! I was stumbling over this several times, in some naïve attempts to update to eslint 8. Glad to apply this to our other projects!

LGTM, but as I added a second commit this now needs to be reviewed by someone else.

Copy link
Member

@marusak marusak left a comment

Choose a reason for hiding this comment

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

Thanks!

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