Releases: Rel1cx/eslint-react
Releases · Rel1cx/eslint-react
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
v1.9.1
What's Changed
🐞 Fixes
- Fixed
dom/no-missing-iframe-sandbox
false positive when thesandbox
attribute is set tosandbox=""
- Fixed
all
andall-legacy
presets not includinghooks-extra
rules
Full Changelog: v1.9.0...v1.9.1
v1.9.0
What's Changed
✨ New
- Add
core
preset that includes the most essential rules
🪄 Improvements
- Upgrade
@typescript-eslint
's packages to8.0.1
Full Changelog: v1.8.1...v1.9.0