Sourced from eslint-plugin-react-hooks's changelog.
6.1.0
Note: Version 6.0.0 was mistakenly released and immediately deprecated and untagged on npm. This is the first official 6.x major release and includes breaking changes.
- Breaking: Require Node.js 18 or newer. (
@michaelfaithin #32458)- Breaking: Flat config is now the default
recommendedpreset. Legacy config moved torecommended-legacy. (@michaelfaithin #32457)- New Violations: Disallow calling
usewithin try/catch blocks. (@potetoin #34040)- New Violations: Disallow calling
useEffectEventfunctions in arbitrary closures. (@jbrown215in #33544)- Handle
React.useEffectin addition touseEffectin rules-of-hooks. (@Ayc0in #34076)- Added
react-hookssettings config option that to acceptadditionalEffectHooksthat are used across exhaustive-deps and rules-of-hooks rules. (@jbrown215) in #344976.0.0
Accidentally released. See 6.1.0 for the actual changes.