Releases: rEl1cx/eslint-react
Releases · rEl1cx/eslint-react
v1.15.0
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
inno-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
- @imjordanxd made their first contribution in #829
- @neovov made their first contribution in #831
Full Changelog: v1.14.3...v1.15.0
v1.14.3
What's Changed
🪄 Improvements
- Update
@typescript-eslint
's packages to^8.7.0
New Contributors
- @PinkChampagne17 made their first contribution in #827
Full Changelog: v1.14.2...v1.14.3
v1.14.2
v1.14.1
v1.14.0
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
- @karlhorky made their first contribution in #799
Full Changelog: v1.13.1...v1.14.0
v1.13.1
What's Changed
🐞 Fixes
- Fixed
hooks-extra/no-unnecessary-use-callback
andhooks-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
What's Changed
✨ New
- Added
web-api/no-leaked-resize-observer
rule to prevent leakedResizeObserver
🐞 Fixes
hooks-extra/no-redundant-custom-hook
should allow custom hooks with empty body
🪄 Improvements
- Rename
debug/react-hooks
todebug/hook
- Rename
hooks-extra/ensure-custom-using-hooks
tohooks-extra/no-redundant-custom-hook
- Rename
hooks-extra/ensure-use-memo-has-non-empty-deps
tohooks-extra/no-unnecessary-use-memo
- Rename
hooks-extra/ensure-use-callback-has-non-empty-deps
tohooks-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
What's Changed
✨ New
- Added
useLayoutEffect
anduseInsertionEffect
support tohooks-extra/no-direct-set-state-in-use-effect
🪄 Improvements
- Deprecate rule
hooks-extra/no-direct-set-state-in-use-layout-effect
in favor ofhooks-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
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
andweb-api/no-leaked-set-interval
false positives when a timer is assigned to a variable declared bylet
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
What's Changed
✨ New
- Added type declarations for
react-x
settings to the@typescript-eslint/utils/ts-eslint
module via theSharedConfigurationSettings
interface
🪄 Improvements
- Improve the performance of the
no-missing-key
andno-duplicate-key
rules - Upgrade
@typescript-eslint
's packages to^8.3.0
Full Changelog: v1.12.1...v1.12.2