@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
23 lines (20 loc) • 1.01 kB
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Disallow usage of referential-type variables as default param in functional component.
*
* @see [no-object-type-as-default-prop](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-object-type-as-default-prop.md)
*/
export type NoObjectTypeAsDefaultPropRuleConfig = RuleConfig<[]>;
/**
* Disallow usage of referential-type variables as default param in functional component.
*
* @see [no-object-type-as-default-prop](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-object-type-as-default-prop.md)
*/
export interface NoObjectTypeAsDefaultPropRule {
/**
* Disallow usage of referential-type variables as default param in functional component.
*
* @see [no-object-type-as-default-prop](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-object-type-as-default-prop.md)
*/
'react/no-object-type-as-default-prop': NoObjectTypeAsDefaultPropRuleConfig;
}