UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

26 lines (23 loc) 1 kB
import type { RuleConfig } from '../rule-config'; /** * A GraphQL document is only valid if it has only one type per operation. > This rule is a wrapper around a `graphql-js` validation function. * * @see [unique-operation-types](https://the-guild.dev/graphql/eslint/rules/unique-operation-types) */ export type UniqueOperationTypesRuleConfig = RuleConfig<[]>; /** * A GraphQL document is only valid if it has only one type per operation. > This rule is a wrapper around a `graphql-js` validation function. * * @see [unique-operation-types](https://the-guild.dev/graphql/eslint/rules/unique-operation-types) */ export interface UniqueOperationTypesRule { /** * A GraphQL document is only valid if it has only one type per operation. > This rule is a wrapper around a `graphql-js` validation function. * * @see [unique-operation-types](https://the-guild.dev/graphql/eslint/rules/unique-operation-types) */ '@graphql-eslint/unique-operation-types': UniqueOperationTypesRuleConfig; }