@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
23 lines (20 loc) • 703 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Disallow usage of deprecated methods.
*
* @see [no-deprecated](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-deprecated.md)
*/
export type NoDeprecatedRuleConfig = RuleConfig<[]>;
/**
* Disallow usage of deprecated methods.
*
* @see [no-deprecated](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-deprecated.md)
*/
export interface NoDeprecatedRule {
/**
* Disallow usage of deprecated methods.
*
* @see [no-deprecated](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-deprecated.md)
*/
'react/no-deprecated': NoDeprecatedRuleConfig;
}