Skip to content

Bug: eslint-plugin-react-hooks@6.0.0 suddenly installs the entire babel toolchain #32982

@AviVahl

Description

@AviVahl

After #32416 was merged and released as eslint-plugin-react-hooks@6.0.0, my react project suddenly got the entire babel toolchain, even though I do not use babel, or react-compiler at all.

My dependency count jumped by 37 new dependencies. I call this less than ideal, considering I do not need the react-compiler related functionality.

Having the two plugins as separate makes sense to me, as the compiler is optional.

I wonder, did you consider this when merging the two packages? Should I just fork eslint-plugin-react-hooks, as I only use react-hooks/rules-of-hooks and react-hooks/exhaustive-deps?

Thanks in advance.

Ref: wixplosives/sample-monorepo@e79349b

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions