Skip to content

v5.0.0

Latest

Choose a tag to compare

@tatethurston tatethurston released this 28 Nov 19:15
· 2 commits to main since this release
d688c9f

v5.0.0

  • allowComponentDidCatch has been replaced with allowErrorBoundary. Like allowComponentDidCatch, allowErrorBoundary defaults to true, but allowErrorBoundary allows class components that use componentDidCatch and/or getDerivedStateFromError. No change is required if you're using the defaults for this lint rule. If you've disabled allowComponentDidCatch, you'll need to make the following change:
  rules: {
    "react-prefer-function-component/react-prefer-function-component": [
      "error",
-     { allowComponentDidCatch: false },
+     { allowErrorBoundary: false },
    ],
  },

See #29, thanks @henryqdineen!

New Contributors

Full Changelog: v4.0.1...v5.0.0