@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
26 lines (23 loc) • 1.03 kB
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* A type extension is only valid if the type is defined and has the same kind.
> This rule is a wrapper around a `graphql-js` validation function.
*
* @see [possible-type-extension](https://the-guild.dev/graphql/eslint/rules/possible-type-extension)
*/
export type PossibleTypeExtensionRuleConfig = RuleConfig<[]>;
/**
* A type extension is only valid if the type is defined and has the same kind.
> This rule is a wrapper around a `graphql-js` validation function.
*
* @see [possible-type-extension](https://the-guild.dev/graphql/eslint/rules/possible-type-extension)
*/
export interface PossibleTypeExtensionRule {
/**
* A type extension is only valid if the type is defined and has the same kind.
> This rule is a wrapper around a `graphql-js` validation function.
*
* @see [possible-type-extension](https://the-guild.dev/graphql/eslint/rules/possible-type-extension)
*/
'@graphql-eslint/possible-type-extension': PossibleTypeExtensionRuleConfig;
}