@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
26 lines (23 loc) • 1.02 kB
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* A GraphQL document is only valid if all defined directives have unique names.
> This rule is a wrapper around a `graphql-js` validation function.
*
* @see [unique-directive-names](https://the-guild.dev/graphql/eslint/rules/unique-directive-names)
*/
export type UniqueDirectiveNamesRuleConfig = RuleConfig<[]>;
/**
* A GraphQL document is only valid if all defined directives have unique names.
> This rule is a wrapper around a `graphql-js` validation function.
*
* @see [unique-directive-names](https://the-guild.dev/graphql/eslint/rules/unique-directive-names)
*/
export interface UniqueDirectiveNamesRule {
/**
* A GraphQL document is only valid if all defined directives have unique names.
> This rule is a wrapper around a `graphql-js` validation function.
*
* @see [unique-directive-names](https://the-guild.dev/graphql/eslint/rules/unique-directive-names)
*/
'@graphql-eslint/unique-directive-names': UniqueDirectiveNamesRuleConfig;
}