no-unused-class-component-methods
Configuration
rslint.config.ts
Rule Details
Warns you if you have defined a method or property but it is never being used anywhere.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Canonical React lifecycle methods (e.g. componentDidMount, render,
shouldComponentUpdate) and reserved property names (state on ES6 classes;
getInitialState, getDefaultProps, mixins on createReactClass) are
always ignored, even when unused.