UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 1.04 kB
import type { RuleConfig } from '../rule-config'; /** * Disallow usage of shouldComponentUpdate when extending React.PureComponent. * * @see [no-redundant-should-component-update](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-redundant-should-component-update.md) */ export type NoRedundantShouldComponentUpdateRuleConfig = RuleConfig<[]>; /** * Disallow usage of shouldComponentUpdate when extending React.PureComponent. * * @see [no-redundant-should-component-update](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-redundant-should-component-update.md) */ export interface NoRedundantShouldComponentUpdateRule { /** * Disallow usage of shouldComponentUpdate when extending React.PureComponent. * * @see [no-redundant-should-component-update](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-redundant-should-component-update.md) */ 'react/no-redundant-should-component-update': NoRedundantShouldComponentUpdateRuleConfig; }