Skip to content

Releases: rEl1cx/eslint-react

v1.15.0

11 Oct 23:28
662343b
Compare
Choose a tag to compare

What's Changed

✨ New

  • feat: add support for constructors in hooks-extra/prefer-use-state-lazy-initialization by @imjordanxd in #829
  • feat: add prefer-react-namespace-import, closes #803 by @imjordanxd in #832
  • feat: add support for allowExpressions in no-useless-fragment by @imjordanxd in #836

🐞 Fixes

  • fix: Fix false positives when 'web-api/no-leaked-event-listener' passes a signal to an intermediate variable, closes #838

🪄 Improvements

  • docs: Update hooks-extra-no-direct-set-state-in-use-effect.mdx by @neovov in #831
  • docs: use a standard mono-width font for the docs, closes #835 by @rEl1cx in #837
  • Undeprecate hooks-extra-no-direct-set-state-in-use-layout-effect and remove it from recommended presets, closes #839 by @rEl1cx in #840

New Contributors

Full Changelog: v1.14.3...v1.15.0

v1.14.3

29 Sep 15:05
ff389b1
Compare
Choose a tag to compare

What's Changed

🪄 Improvements

  • Update @typescript-eslint's packages to ^8.7.0

New Contributors

Full Changelog: v1.14.2...v1.14.3

v1.14.2

20 Sep 05:03
24d41a5
Compare
Choose a tag to compare

What's Changed

🪄 Improvements

  • Fix minor errors in README.md by @SayaOvO in #816
  • Update @typescript-eslint's packages to ^8.6.0

New Contributors

Full Changelog: v1.14.1...v1.14.2

v1.14.1

11 Sep 21:52
e6236a8
Compare
Choose a tag to compare

v1.14.1 (Thu 12 Sep 2024)

What's Changed

🐞 Fixes

  • Fixed false positives in rule web-api/no-leaked-resize-observer

New Contributors

Full Changelog: v1.14.0...v1.14.1

v1.14.0

09 Sep 17:54
ddaab6a
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • Fixed mono plugins missing default export
  • Fixed component name detection when the component name starts with a underscore

🪄 Improvements

  • Update @typescript-eslint's packages to ^8.5.0

New Contributors

Full Changelog: v1.13.1...v1.14.0

v1.13.1

08 Sep 18:31
e65898e
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • Fixed hooks-extra/no-unnecessary-use-callback and hooks-extra/no-unnecessary-use-memo false positives when there are references from nested scopes

New Contributors

Full Changelog: v1.13.0...v1.13.1

v1.13.0

04 Sep 06:02
b993139
Compare
Choose a tag to compare

What's Changed

✨ New

  • Added web-api/no-leaked-resize-observer rule to prevent leaked ResizeObserver

🐞 Fixes

  • hooks-extra/no-redundant-custom-hook should allow custom hooks with empty body

🪄 Improvements

  • Rename debug/react-hooks to debug/hook
  • Rename hooks-extra/ensure-custom-using-hooks to hooks-extra/no-redundant-custom-hook
  • Rename hooks-extra/ensure-use-memo-has-non-empty-deps to hooks-extra/no-unnecessary-use-memo
  • Rename hooks-extra/ensure-use-callback-has-non-empty-deps to hooks-extra/no-unnecessary-use-callback
  • Upgrade @typescript-eslint's packages to ^8.4.0

(The rules that were renamed in this release will still be available until the next major update to avoid breaking changes.)

Full Changelog: v1.12.4...v1.13.0

v1.12.4

31 Aug 03:09
f9ceea8
Compare
Choose a tag to compare

What's Changed

✨ New

  • Added useLayoutEffect and useInsertionEffect support to hooks-extra/no-direct-set-state-in-use-effect

🪄 Improvements

  • Deprecate rule hooks-extra/no-direct-set-state-in-use-layout-effect in favor of hooks-extra/no-direct-set-state-in-use-effect (the previous rule will still be available until the next major update to avoid breaking changes)

Full Changelog: v1.12.3...v1.12.4

v1.12.3

29 Aug 04:19
ab6122a
Compare
Choose a tag to compare

What's Changed

✨ New

  • Added support for detecting event listeners removed by abort signal in rule web-api/no-leaked-event-listener

🐞 Fixes

  • Fixed no-duplicate-key rule false positives when the key is an variable
  • Fixed web-api/no-leaked-set-timeout and web-api/no-leaked-set-interval false positives when a timer is assigned to a variable declared by let but not initialized

🪄 Improvements

  • Allow upper case letters in the rule naming-convention/component-name when the component name is less than 4 characters, e.g. UI, CSS, SVG

Full Changelog: v1.12.2...v1.12.3

v1.12.2

27 Aug 04:10
0415a1e
Compare
Choose a tag to compare

What's Changed

✨ New

  • Added type declarations for react-x settings to the @typescript-eslint/utils/ts-eslint module via the SharedConfigurationSettings interface

🪄 Improvements

  • Improve the performance of the no-missing-key and no-duplicate-key rules
  • Upgrade @typescript-eslint's packages to ^8.3.0

Full Changelog: v1.12.1...v1.12.2