no-is-mounted
Configuration
rslint.config.ts
Disallow usage of isMounted.
isMounted is an anti-pattern, is not available when using ES6 classes, and is
officially deprecated
by the React team.
Rule Details
This rule flags calls to this.isMounted() inside properties of an object
literal (e.g. a createReactClass spec) or inside methods / getters / setters /
constructors of a class. Calls outside any such method are ignored.
Examples of incorrect code for this rule:
Examples of correct code for this rule: