Releases: Rel1cx/eslint-react
v1.37.0 (2025-03-20)
What's Changed
🪄 Improvements
- refactor: remove
hooks-extra/prefer-use-state-lazy-initialization
from recommended presets by @Rel1cx in #1001Based on feedback of this rule, the current implementation produces more false positives than expected, so to ensure the overall quality of the rules in the recommended presets we provide, I'm removing it from the presets for now, and should add it back after we implement a better heuristic for deciding which function calls should be allowed.
Full Changelog: v1.36.3...v1.37.0
v1.36.3 (2025-03-20)
What's Changed
🐞 Fixes
- fix:
hooks-extra/prefer-use-state-lazy-initialization
false positive onuseState(use(promise))
closes #999 by @Rel1cx in #1000
Full Changelog: v1.36.2...v1.36.3
v1.36.2 (2025-03-20)
v1.36.1 (2025-03-19)
What's Changed
🪄 Improvements
- refactor(naming-convention/use-state): enhance error messaging and docs, closes #980 by @Rel1cx in #997
Full Changelog: v1.35.0...v1.36.1
v1.35.0 (2025-03-18)
What's Changed
✨ New
- feat(plugins/dom): add
no-render
rule to replaceReactDom.render()
withcreateRoot(node).render()
, closes #972 by @Rel1cx in #993 - feat(plugins/dom): add
no-hydrate
rule to replaceReactDom.hydrate()
withhydrateRoot()
, closes #973 by @Rel1cx in #995
🪄 Improvements
- refactor: rename
hooks-extra/no-useless-custom-hooks
tohooks-extra/no-unnecessary-use-prefix
by @Rel1cx in #996
📝 Changes you should be aware of
The following rules have been renamed:
react-hooks-extra/no-useless-custom-hooks
toreact-hooks-extra/no-unnecessary-use-prefix
@eslint-react/hooks-extra/no-useless-custom-hooks
to@eslint-react/hooks-extra/no-unnecessary-use-prefix
The old rule names will still be available until the next major update to avoid breaking changes.
Full Changelog: v1.34.1...v1.35.0
v1.34.1 (2025-03-15)
What's Changed
🐞 Fixes
- fix: false positive in
react-x/no-context-provider
on symbols namedProvider
which are imported from third-party libs, closes #991 by @Rel1cx in #992
Full Changelog: v1.34.0...v1.34.1
v1.34.0 (2025-03-15)
What's Changed
🪄 Improvements
- refactor: export the create function of each rule by @Rel1cx in #989
- refactor(plugins/x): rename
no-nested-components
rule tono-nested-component-definitions
and update related docs by @Rel1cx in #990
📝 Changes you should be aware of
The following rules have been renamed:
react-x/no-nested-components
toreact-x/no-nested-component-definitions
@eslint-react/no-nested-components
to@eslint-react/no-nested-component-definitions
The old rule names will still be available until the next major update to avoid breaking changes.
Full Changelog: v1.33.0...v1.34.0
v1.33.0 (2025-03-14)
What's Changed
🐞 Fixes
- fix: update rule severity for
no-flush-sync
andno-void-elements-with-children
in recommended presets by @Rel1cx in #988
🪄 Improvements
- refactor(plugins/x): rename
ensure-forward-ref-using-ref
tono-useless-forward-ref
by @Rel1cx in #987
📝 Changes you should be aware of
The following rules have been renamed:
react-x/ensure-forward-ref-using-ref
toreact-x/no-useless-forward-ref
@eslint-react/ensure-forward-ref-using-ref
to@eslint-react/no-useless-forward-ref
The old rule names will still be available until the next major update to avoid breaking changes.
Full Changelog: v1.32.1...v1.33.0
v1.32.1 (2025-03-13)
v1.32.0 (2025-03-12)
What's Changed
✨ New
- feat: revert 'feat: add naming-convention/use-state and naming-convention/context-name to recommended presets by @Rel1cx in #956' by @Rel1cx in #982
🪄 Improvements
- docs: update eslint configs in examples to use extends by @Rel1cx in #978
- docs: update ts configs in examples to use project references by @Rel1cx in #979
Full Changelog: v1.31.0...v1.32.0