Skip to content

Releases: Rel1cx/eslint-react

v1.8.2

03 Aug 05:07
6efdc0b
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • Fixed legacy presets not being exported correctly in @eslint-react/eslint-plugin

Full Changelog: v1.8.1...v1.8.2

v1.8.1

03 Aug 01:31
3863de6
Compare
Choose a tag to compare

What's Changed

🪄 Improvements

  • Enhance rule hooks-extra/no-direct-set-state-in-use-effect and hooks-extra/no-direct-set-state-in-use-layout-effect to support set function directly passed to useCallback and useMemo without explicitly calling it
  • Improve website and documentation

Full Changelog: v1.8.0...v1.8.1

v1.8.0

01 Aug 19:06
0dea5eb
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • Fixed ESLintReactSettings type not being exported correctly
  • Fixed the set function calls that are wrapped in a useMemo or useCallback like hook not being detected by hooks-extra/no-direct-set-state-in-use-effect and hooks-extra/no-direct-set-state-in-use-layout-effect

🪄 Improvements

  • Upgrade @typescript-eslint's packages to 8.0.0
  • Improve website and documentation

Full Changelog: v1.7.1...v1.8.0

v1.7.1

30 Jul 21:48
7a53f57
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • Fixed the spread attributes support for dom related rules
  • Fixed the issue where the overridden value was retrieved when there were duplicate attributes on a JSX element

🪄 Improvements

  • Rule no-leaked-conditional-rendering now allows a falsy boolean literal to be used on the left side of the logical expression. by @AhmedBaset in #672
  • Tweaked the default settings shipped with various presets
  • Overall performance improvements

New Contributors

Full Changelog: v1.7.0...v1.7.1

v1.7.0

29 Jul 20:37
ea47bb4
Compare
Choose a tag to compare

What's Changed

✨ New

  • Add settings["react-x"].polymorphicPropName setting to specify the name of the prop that is used to determine the component type

🪄 Improvements

  • Dropped the current incomplete lint support for React.createElement to improve performance and subsequent code maintainability

Full Changelog: v1.6.0...v1.7.0

v1.6.0

27 Jul 06:00
1eeeb5f
Compare
Choose a tag to compare

What's Changed

✨ New

  • Add controlled setting to settings["react-x"].additionalComponents' attributes object to set whether it is controlled or not
  • Add glob support to settings["react-x"].additionalComponents' name setting
  • Add default settings for react-x settings to presets
  • Undeprecate rule no-implicit-key and improve its usefulness
  • Undeprecate rule no-complicated-conditional-rendering and rename it to no-complex-conditional-rendering (the previous rule will still be available until the next major update to avoid breaking changes)

🐞 Fixes

  • no-direct-set-state-in-use-(layout?)-effect should warn only for the set function

🪄 Improvements

  • Remove no-direct-set-state-in-use-(layout?)-effect from recommended presets

New Contributors

Full Changelog: v1.5.30...v1.6.0

v1.5.30

22 Jul 11:54
15494d7
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • Revert change @typescript-eslint's packages in dependencies to "^7.16.1 || ^rc-v8" as this format is not supported by all package managers

Full Changelog: v1.5.29...v1.5.30

v1.5.29

22 Jul 07:48
b160680
Compare
Choose a tag to compare

What's Changed

✨ New

  • Add rule no-prop-types
  • Add rule no-default-props
  • Add experimental settings["react-x"].additionalComponents settings (currently only the no-unsafe-target-blank rule uses it, but more rules will use it in the future)

🪄 Improvements

  • Add rule no-prop-types to recommended presets
  • Add rule no-default-props to recommended presets
  • Remove rule no-useless-fragment from recommended presets
  • Optimize performance of rule no-create-ref
  • Change @typescript-eslint' packages in dependencies to "^7.16.1 || ^rc-v8"

Full Changelog: v1.5.28...v1.5.29

v1.5.28

20 Jul 10:39
e34ee7d
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • Fix false positives and negatives in rule hooks-extra/no-direct-set-state-in-use-effect
  • Fix false positives and negatives in rule hooks-extra/no-direct-set-state-in-use-layout-effect
  • Fix rule prefer-read-only-props reports only the first component in a file

🪄 Improvements

  • Improve website and documentation

New Contributors

Full Changelog: v1.5.27...v1.5.28

v1.5.27

16 Jul 13:51
4ca3e46
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • Fix rule prefer-read-only-props that was accidentally added to the recommended type-checked presets
  • Fix false negatives in rule hooks-extra/no-direct-set-state-in-use-effect when call set function inside a non-function scope
  • Fix false negatives in rule hooks-extra/no-direct-set-state-in-use-layout-effect when call set function inside a non-function scope

🪄 Improvements

  • Rule no-leaked-conditional-rendering now supports BigInt literals on the left side of the logical expression
  • Rule no-leaked-conditional-rendering now allows a truthy number literal to be used on the left side of the logical expression
  • Optimize bundle size

Full Changelog: v1.5.26...v1.5.27