UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

26 lines (23 loc) 958 B
import type { RuleConfig } from '../rule-config'; /** * A GraphQL document is only valid if all defined types have unique names. > This rule is a wrapper around a `graphql-js` validation function. * * @see [unique-type-names](https://the-guild.dev/graphql/eslint/rules/unique-type-names) */ export type UniqueTypeNamesRuleConfig = RuleConfig<[]>; /** * A GraphQL document is only valid if all defined types have unique names. > This rule is a wrapper around a `graphql-js` validation function. * * @see [unique-type-names](https://the-guild.dev/graphql/eslint/rules/unique-type-names) */ export interface UniqueTypeNamesRule { /** * A GraphQL document is only valid if all defined types have unique names. > This rule is a wrapper around a `graphql-js` validation function. * * @see [unique-type-names](https://the-guild.dev/graphql/eslint/rules/unique-type-names) */ '@graphql-eslint/unique-type-names': UniqueTypeNamesRuleConfig; }