no-redundant-should-component-update
Configuration
rslint.config.ts
Rule Details
Disallow usage of shouldComponentUpdate when extending React.PureComponent.
React.PureComponent already implements shouldComponentUpdate with a shallow
prop and state comparison. Defining your own shouldComponentUpdate defeats
the purpose of extending PureComponent — at that point you should extend
React.Component instead.
Examples of incorrect code for this rule:
Examples of correct code for this rule: