Skip to content

Releases: Rel1cx/eslint-react

v1.5.26

15 Jul 03:24
23f2ab0
Compare
Choose a tag to compare

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

13 Jul 06:17
c43cb0f
Compare
Choose a tag to compare

What's Changed

🪄 Improvements

  • Optimize bundle size.

Full Changelog: v1.5.24...v1.5.25

v1.5.24

11 Jul 00:21
453c1ee
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • Fix rule prefer-read-only-props false positive when using ObjectPattern in function arguments.

🪄 Improvements

  • Change typescript version in peerDependencies to "^4.9.5 || ^5.3.3"

New Contributors

Full Changelog: v1.5.23...v1.5.24

v1.5.23

06 Jul 18:16
d08312e
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • Fix rule prefer-read-only-props false negative when using ObjectPattern in function arguments.

🪄 Improvements

  • Improve website and documentation.

Full Changelog: v1.5.22...v1.5.23

v1.5.22

04 Jul 18:27
bf17ba0
Compare
Choose a tag to compare

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

03 Jul 14:03
dc45174
Compare
Choose a tag to compare

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 of typescript-eslint.

Full Changelog: v1.5.20...v1.5.21

v1.5.20

01 Jul 22:05
585fc1b
Compare
Choose a tag to compare

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

29 Jun 19:08
5ee4fb5
Compare
Choose a tag to compare

What's Changed

🪄 Improvements

  • Reduce the number of dependencies by inlining tree-shaking optimized code while bundling.
  • Deprecate reactOptions in favor of react-x in ESLint Shared Settings.

Full Changelog: v1.5.18...v1.5.19

v1.5.18

28 Jun 07:50
55683d1
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • Fix rule no-useless-fragment not respecting jsxPragma 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

v1.5.17

26 Jun 03:02
406d57e
Compare
Choose a tag to compare

What's Changed

🪄 Improvements

  • Remove rule no-children-prop from recommended presets.
  • Improve documentation for rule no-useless-fragment.

New Contributors

  • @liby made their first contribution in #596

Full Changelog: v1.5.16...v1.5.17