npm eslint-plugin-react-you-might-not-need-an-effect 1.2.0
v1.2.0

one hour ago

1.2.0 (2026-11-08)

Features

  • see through TypeScript-only syntax (4eeb4ad)
  • support popular third-party effect wrappers (2b32a9e)
  • treat context values as props (8c1c7ec)

Bug Fixes

  • analyze const Component = function() {} components (d26fee7)
  • analyze effects with omitted or variable deps (3e7dc7e)
  • don't fall-through to entire enclosing body when useEffect fn arg is opaque (a7039f3)
  • follow member access on aliases (0faca35)
  • follow only stable, invoked aliases in call chains (54c13f6)
  • handle defaults in useState destructuring (36bda5f)
  • ignore non-function effect callbacks (e6fa03b)
  • no-initialize-state: treat aliased setters in deps as setters (997216e)
  • no-pass-live-state-to-parent: remove duplicated quotes from message (96a22c5)
  • no-reset-all-state-on-prop-change: count useState calls instead of state reads (23e5bea)
  • no-reset-all-state-on-prop-change: flag when the same setter is called twice (80a0ec0)
  • no-reset-all-state-on-prop-change: handle wrapper setters (493d052)
  • report the written state for wrapper setters (7bf9dc9)

Don't miss a new eslint-plugin-react-you-might-not-need-an-effect release

NewReleases is sending notifications on new releases.