Releases: Rel1cx/eslint-react
v1.37.1 (2025-03-22)
v1.37.0 (2025-03-20)
What's Changed
🪄 Improvements
- refactor: remove
hooks-extra/prefer-use-state-lazy-initializationfrom 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-initializationfalse 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-renderrule to replaceReactDom.render()withcreateRoot(node).render(), closes #972 by @Rel1cx in #993 - feat(plugins/dom): add
no-hydraterule to replaceReactDom.hydrate()withhydrateRoot(), closes #973 by @Rel1cx in #995
🪄 Improvements
- refactor: rename
hooks-extra/no-useless-custom-hookstohooks-extra/no-unnecessary-use-prefixby @Rel1cx in #996
📝 Changes you should be aware of
The following rules have been renamed:
react-hooks-extra/no-useless-custom-hookstoreact-hooks-extra/no-unnecessary-use-prefix@eslint-react/hooks-extra/no-useless-custom-hooksto@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-provideron symbols namedProviderwhich 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-componentsrule tono-nested-component-definitionsand update related docs by @Rel1cx in #990
📝 Changes you should be aware of
The following rules have been renamed:
react-x/no-nested-componentstoreact-x/no-nested-component-definitions@eslint-react/no-nested-componentsto@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-syncandno-void-elements-with-childrenin recommended presets by @Rel1cx in #988
🪄 Improvements
- refactor(plugins/x): rename
ensure-forward-ref-using-reftono-useless-forward-refby @Rel1cx in #987
📝 Changes you should be aware of
The following rules have been renamed:
react-x/ensure-forward-ref-using-reftoreact-x/no-useless-forward-ref@eslint-react/ensure-forward-ref-using-refto@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