Releases: Rel1cx/eslint-react
Releases · Rel1cx/eslint-react
v1.5.26
What's Changed
✨ New
- Add rule
hooks-extra/no-direct-set-state-in-use-effect
. - Add rule
hooks-extra/no-direct-set-state-in-use-layout-effect
.
🐞 Fixes
- Fix false positives in rule
hooks-extra/ensure-use-memo-has-non-empty-deps
when referencing component block scope. - Fix false positives in rule
hooks-extra/ensure-use-callback-has-non-empty-deps
when referencing component block scope.
🪄 Improvements
- Add rule
hooks-extra/no-direct-set-state-in-use-effect
to recommended presets. - Add rule
hooks-extra/no-direct-set-state-in-use-layout-effect
to recommended presets. - Add rule
hooks-extra/prefer-use-state-lazy-initialization
to recommended presets.
Full Changelog: v1.5.25...v1.5.26
v1.5.25
v1.5.24
What's Changed
🐞 Fixes
- Fix rule
prefer-read-only-props
false positive when usingObjectPattern
in function arguments.
🪄 Improvements
- Change
typescript
version inpeerDependencies
to"^4.9.5 || ^5.3.3"
New Contributors
Full Changelog: v1.5.23...v1.5.24
v1.5.23
What's Changed
🐞 Fixes
- Fix rule
prefer-read-only-props
false negative when usingObjectPattern
in function arguments.
🪄 Improvements
- Improve website and documentation.
Full Changelog: v1.5.22...v1.5.23
v1.5.22
What's Changed
✨ New
- Add rule
prefer-read-only-props
.
🪄 Improvements
- Downgrade
@typescript-eslint
's packages to v7, due to stability issues with v8.
Full Changelog: v1.5.21...v1.5.22
v1.5.21
What's Changed
🐞 Fixes
- Add missing dependencies to
@eslint-react/eslint-plugin
. - Fix rule
no-nested-components
false negative when placing components inside JSX props.
🪄 Improvements
- Update
@typescript-eslint
's packages to v8. - Improve rule
no-leaked-conditional-rendering
compatibility with different versions oftypescript-eslint
.
Full Changelog: v1.5.20...v1.5.21
v1.5.20
What's Changed
🐞 Fixes
- Fix rule
prefer-destructuring-assignment
false positive when the function looks like a component.
🪄 Improvements
- Improve
utilities/jsx/is-jsx-value
to better distinguish between normal values and JSX values. - Improve
core/component-collector
to better distinguish between normal functions and components. - Prevent potential function component detection related false positives.
- Switch to a more appropriate value for
DEFAULT_COMPONENT_HINT
.
Full Changelog: v1.5.19...v1.5.20
v1.5.19
What's Changed
🪄 Improvements
- Reduce the number of dependencies by inlining tree-shaking optimized code while bundling.
- Deprecate
reactOptions
in favor ofreact-x
in ESLint Shared Settings.
Full Changelog: v1.5.18...v1.5.19
v1.5.18
What's Changed
🐞 Fixes
- Fix rule
no-useless-fragment
not respectingjsxPragma
settings.
🪄 Improvements
- Update documentation for rule
no-useless-fragment
to reflect the actual behavior of the rule.
Full Changelog: v1.5.17...v1.5.18