Releases: Rel1cx/eslint-react
Releases · Rel1cx/eslint-react
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
v1.12.1
What's Changed
✨ New
- Add the options
allowAllCaps
,allowNamespace
,allowLeadingUnderscore
tonaming-convention/component-name
and set their default values tofalse
🪄 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
What's Changed
✨ New
- Added
hooks-extra
rules torecommended
andrecommended-legacy
presets
Full Changelog: v1.11.0...v1.12.0
v1.11.0
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 leakedsetTimeout
- Added
web-api/no-leaked-interval
rule to prevent leakedsetInterval
- Added
web-api/no-leaked-event-listener
rule to prevent leakedaddEventListener
- Added
web-api
andweb-api-legacy
presets to enable all rules provided byeslint-plugin-react-web-api
- Added
react-web-api/no-leaked-event-listener
torecommended
andrecommended-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
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
What's Changed
✨ New
- Add
disable-type-checked
anddisable-type-checked-legacy
presets to disable all type-checked rules
🪄 Improvements
- Rename
off-dom
andoff-dom-legacy
presets todisable-dom
anddisable-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