-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Peer dependencies of eslint-config-react-app should probably be regular dependencies #6129
Comments
Hi @kirill-konshin, I understand what you're saying, and in a way I agree with you - but I also think there are a lot of strengths in the peer-dependency approach. For one, it helps to eliminate issues where multiple versions of the same dependency are installed - which can cause problems. The obvious problem with peer dependencies, which I've faced too, is that they can be outdated at times and even if the new version is compatible, you keep seeing errors upon install (which is annoying). The other issue which you've raised above is the optional dependency issue - this isn't supported by Perhaps the better approach is for us to publish a base config, and then a flow config that extends the base config - then you won't hit this issue. What are your thoughts on that? |
I agree, it does makes sense to divide packages (or configs) into a more granular set. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
Anti-stale-bot-ping ) |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
Anti stale bot ping |
I have a project that is just a component library so I'm not using create-react-app but I wanted the tooling to be consistent with our CRA projects so using babel-preset-react-app and eslint-config-react-app is a great option (I really appreciate that they are published as they are). I did find it odd that babel-preset-react-app includes all of the plugins as dependencies and eslint-config-react-app uses peer dependencies. I admit that I could totally be missing the reason for why they are different, but in my case this change would be helpful. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
I agree with @kirill-konshin and @skoestler that I set up a project that mirrors |
Hi!
Where After I run
BUT after I make some changes and hot-reload updates the app, I see the following warnings in the console:
|
In
Can this issue be closed now? I found this issue, because in my created issue #9083 i suggest something different: to be able to use own installed versions of eslint-plugins. But probably this doesn't mean, that they cannot be defined as regular dependencies when being able to resolve them with an .env flag from root directory in webpack config (see proposal of #9083) |
This is related to the discussion here, so I think we can close this - thanks @tobiaskraus for the reminder. |
Why is this closed? Package.json of |
@kirill-konshin please see the discussion I linked to. |
@mrmckeb yes, I'm well aware of the issues with shared configs and ESLint, especially with Yarn 2 with PNP mode on: eslint/eslint#3458. The issue has to remain open because at some point ESLint will be fixed. |
@kirill-konshin when the root problem is fixed, we'll definitely make the required changes. All of the team are tracking this. As this issue stands, it's not possible to resolve, and leaving it open creates confusion and noise for the volunteers working on this project. |
If user wants only the config and nothing else the one should still install all the deps, which can be done automatically and with no hassle.
Currently, I have to install
eslint-plugin-flowtype
which I am not even using in my project...Moreover, version of
babel-eslint
is outdated (available: 10, listed: 9).As one of the solutions, maybe, we can create one extra package in this repo and name it like
eslint-config-react-app-pack
, which will have all the needed deps?The text was updated successfully, but these errors were encountered: