Skip to content

Releases: Rel1cx/eslint-react

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

v1.12.1

22 Aug 14:24
fdd765f
Compare
Choose a tag to compare

What's Changed

✨ New

  • Add the options allowAllCaps, allowNamespace, allowLeadingUnderscore to naming-convention/component-name and set their default values to false

🪄 Improvements

  • Normalize the component name in rule naming-convention/component-name before checking it against the pattern

Full Changelog: v1.12.0...v1.12.1

v1.12.0

21 Aug 02:54
61569e1
Compare
Choose a tag to compare

What's Changed

✨ New

  • Added hooks-extra rules to recommended and recommended-legacy presets

Full Changelog: v1.11.0...v1.12.0

v1.11.0

20 Aug 14:00
be63132
Compare
Choose a tag to compare

What's Changed

✨ New

  • Added eslint-plugin-react-web-api - A plugin that provides rules for interacting with Web APIs in React applications
  • Added web-api/no-leaked-timeout rule to prevent leaked setTimeout
  • Added web-api/no-leaked-interval rule to prevent leaked setInterval
  • Added web-api/no-leaked-event-listener rule to prevent leaked addEventListener
  • Added web-api and web-api-legacy presets to enable all rules provided by eslint-plugin-react-web-api
  • Added react-web-api/no-leaked-event-listener to recommended and recommended-legacy presets

🪄 Improvements

  • Improve performance by skipping unnecessary checks when possible
  • Improve dts generation of the @eslint-react/eslint-plugin package
  • Improve website and documentation
  • Upgrade @typescript-eslint's packages to ^8.2.0

Full Changelog: v1.10.1...v1.11.0

v1.10.1

13 Aug 13:35
aa5d1c8
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • Fixed hooks-extra/prefer-use-state-lazy-initialization false positive when using an initializer function

🪄 Improvements

  • Improve rule no-implicit-key error marker position and range
  • Upgrade @typescript-eslint's packages to ^8.1.0
  • Improve website and documentation

Full Changelog: v1.10.0...v1.10.1

v1.10.0

11 Aug 11:37
530bb87
Compare
Choose a tag to compare

What's Changed

✨ New

  • Add disable-type-checked and disable-type-checked-legacy presets to disable all type-checked rules

🪄 Improvements

  • Rename off-dom and off-dom-legacy presets to disable-dom and disable-dom-legacy (the old names will still be available until the next major update to avoid breaking changes)

Full Changelog: v1.9.1...v1.10.0