Skip to content

New releases for updated peer dependency on eslint-plugin-react #3075

Open

Description

@mikevoets

There has not been an update for eslint-config-airbnb and eslint-config-airbnb-base for 3 years. The peer dependencies declarations are quite far behind the latest, however on master these peer dependencies have been updated to newer versions. Can we release the latest on master in new packages so we get rid of peer dependency mismatch warnings?

For example:

> yarn
➤ YN0000: · Yarn 4.2.2
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Post-resolution validation
➤ YN0060: │ eslint-plugin-react-hooks is listed by your project with version 5.1.0, which doesn't satisfy what eslint-config-airbnb (pfeef2) requests (^4.3.0).

Thank you!

Activity

  1. ljharb commented on Jan 9, 2025

    @ljharb
    Collaborator

    You say "for example", but I'm quite certain that's the only one that would need a release here to update - all the others are in-range. Is that accurate?

  2. mikevoets commented on Jan 9, 2025

    @mikevoets
    Author

    Yes, that is actually correct. I didn't notice that until now.

  3. changed the title [-]New releases for updated peer dependencies[/-] [+]New releases for updated peer dependency on eslint-plugin-react[/+] on Jan 9, 2025
  4. ljharb commented on Jan 9, 2025

    @ljharb
    Collaborator

    I believe we're still waiting on them to support eslint 9 and flat config, at which point we're basically ready to publish updates.

  5. mikevoets commented on Jan 9, 2025

    @mikevoets
    Author

    I believe we're still waiting on them to support eslint 9 and flat config, at which point we're basically ready to publish updates.

    It looks like they support eslint 9 now:

    > npm info "eslint-plugin-react-hooks@latest" peerDependencies
    {
      eslint: '^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0'
    }
    
  6. ljharb commented on Jan 9, 2025

    @ljharb
    Collaborator

    yes, but not flat config - react/react#28313

  7. stalkerg commented on Jan 23, 2025

    @stalkerg

    @ljharb seems like flat config as well now.

  8. ljharb commented on Jan 23, 2025

    @ljharb
    Collaborator

    yep, thanks, i'm aware.

  9. heath-freenome commented on Jan 27, 2025

    @heath-freenome

    @ljharb Given that eslint 8 is deprecated and no longer supported, does it make sense to just create a major version of this library that only supports eslint 9 rather than dealing with the pain of having to be backwards compatible with 8 and 7? Breaking changes are always expected in a major version.

    I see this in all my NPM installs since I'm waiting for this one library to support eslint 9 before I can upgrade.

    npm warn deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.
    
  10. stalkerg commented on Jan 29, 2025

    @stalkerg
  11. ljharb commented on Jan 29, 2025

    @ljharb
  12. ljharb commented on Jan 29, 2025

    @ljharb
    Collaborator

    @heath-freenome nope, it doesn't make sense - yet.

  13. heath-freenome commented on Jan 29, 2025

    @heath-freenome

    @ljharb Say more about... yet please? What are your thoughts?

  14. ljharb commented on Jan 29, 2025

    @ljharb
    Collaborator

    Before a major release, we're definitely going to have a version that supports both 8 and 9. At some undetermined point after that, we'll drop 8, and go flat-config only.

  15. heath-freenome commented on Jan 30, 2025

    @heath-freenome

    I get it... Why not just bump the major release now with 9 support only? Is it your policy to add major version upgrades of internal dependencies in a minor release first?

  16. ljharb commented on Jan 30, 2025

    @ljharb
    Collaborator

    Yes.

  17. heath-freenome commented on Jan 30, 2025

    @heath-freenome

    what if the major version upgrade of an peer dependency has extreme breaking changes? As a maintainer of the rjsf project, once we reach a point where a major version of a peer dependency has breaking changes that are really hard to accommodate in a simple way, we tend to cut our losses and cut a major version ourself with a breaking change indicating that we don't support earlier versions of the peer dependency

  18. ljharb commented on Jan 30, 2025

    @ljharb
    Collaborator

    In the past, we've just done the work rather than cut losses. "What if" isn't really worth asking until it happens, and it's not happening now.

  19. heath-freenome commented on Jan 30, 2025

    @heath-freenome

    Fair enough. So where are you at in supporting eslint 9?

  20. ljharb commented on Jan 30, 2025

    @ljharb
    Collaborator

    See #2961, which is pinned on the repo.

  21. heath-freenome commented on Jan 30, 2025

    @heath-freenome

    So close...

  22. birdofpreyru commented on Feb 22, 2025

    @birdofpreyru
  23. ljharb commented on Feb 23, 2025

    @ljharb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions