Skip to content

Releases: Rel1cx/eslint-react

v1.37.0 (2025-03-20)

20 Mar 06:53
c440fbc
Compare
Choose a tag to compare

What's Changed

🪄 Improvements

  • refactor: remove hooks-extra/prefer-use-state-lazy-initialization from recommended presets by @Rel1cx in #1001

    Based 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)

20 Mar 03:48
0464cf2
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • fix: hooks-extra/prefer-use-state-lazy-initialization false positive on useState(use(promise)) closes #999 by @Rel1cx in #1000

Full Changelog: v1.36.2...v1.36.3

v1.36.2 (2025-03-20)

19 Mar 21:19
b68f267
Compare
Choose a tag to compare

What's Changed

No notable changes have been made in this release.

Full Changelog: v1.36.1...v1.36.2

v1.36.1 (2025-03-19)

19 Mar 03:00
aa3b46b
Compare
Choose a tag to compare

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)

17 Mar 21:36
0fdc3c8
Compare
Choose a tag to compare

What's Changed

✨ New

  • feat(plugins/dom): add no-render rule to replace ReactDom.render() with createRoot(node).render(), closes #972 by @Rel1cx in #993
  • feat(plugins/dom): add no-hydrate rule to replace ReactDom.hydrate() with hydrateRoot(), closes #973 by @Rel1cx in #995

🪄 Improvements

  • refactor: rename hooks-extra/no-useless-custom-hooks to hooks-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 to react-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)

15 Mar 06:27
526fa95
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • fix: false positive in react-x/no-context-provider on symbols named Provider 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)

14 Mar 19:07
2f605cf
Compare
Choose a tag to compare

What's Changed

🪄 Improvements

  • refactor: export the create function of each rule by @Rel1cx in #989
  • refactor(plugins/x): rename no-nested-components rule to no-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 to react-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)

13 Mar 16:45
a8cbb46
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • fix: update rule severity for no-flush-sync and no-void-elements-with-children in recommended presets by @Rel1cx in #988

🪄 Improvements

  • refactor(plugins/x): rename ensure-forward-ref-using-ref to no-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 to react-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)

12 Mar 22:56
36e1aef
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • fix: fixed no-context-provider replaces <Provider> with <>, closes #984 by @Rel1cx in #985

Full Changelog: v1.32.0...v1.32.1

v1.32.0 (2025-03-12)

11 Mar 20:24
6a06d53
Compare
Choose a tag to compare

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