UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

26 lines (23 loc) 1.06 kB
import type { RuleConfig } from '../rule-config'; /** * A GraphQL input object value is only valid if all supplied fields are uniquely named. > This rule is a wrapper around a `graphql-js` validation function. * * @see [unique-input-field-names](https://the-guild.dev/graphql/eslint/rules/unique-input-field-names) */ export type UniqueInputFieldNamesRuleConfig = RuleConfig<[]>; /** * A GraphQL input object value is only valid if all supplied fields are uniquely named. > This rule is a wrapper around a `graphql-js` validation function. * * @see [unique-input-field-names](https://the-guild.dev/graphql/eslint/rules/unique-input-field-names) */ export interface UniqueInputFieldNamesRule { /** * A GraphQL input object value is only valid if all supplied fields are uniquely named. > This rule is a wrapper around a `graphql-js` validation function. * * @see [unique-input-field-names](https://the-guild.dev/graphql/eslint/rules/unique-input-field-names) */ '@graphql-eslint/unique-input-field-names': UniqueInputFieldNamesRuleConfig; }