jsx-eslint / eslint-plugin-react

React-specific linting rules for ESLint
MIT License
9.01k stars 2.77k forks source link

[Fix] `no-is-mounted`: fix logic in method name check #3821

Closed Mathias-S closed 2 months ago

Mathias-S commented 2 months ago

The last change to no-is-mounted caused the rule to error with any method name, not just with "isMounted".

Fixes #3819

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.97%. Comparing base (1df23d2) to head (a09083b). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3821 +/- ## ========================================== + Coverage 94.52% 95.97% +1.44% ========================================== Files 133 136 +3 Lines 9916 9929 +13 Branches 3676 3677 +1 ========================================== + Hits 9373 9529 +156 + Misses 543 400 -143 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.