UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

26 lines (23 loc) 1.13 kB
import type { RuleConfig } from '../rule-config'; /** * A GraphQL document is only valid if all `...Fragment` fragment spreads refer to fragments defined in the same document. > This rule is a wrapper around a `graphql-js` validation function. * * @see [known-fragment-names](https://the-guild.dev/graphql/eslint/rules/known-fragment-names) */ export type KnownFragmentNamesRuleConfig = RuleConfig<[]>; /** * A GraphQL document is only valid if all `...Fragment` fragment spreads refer to fragments defined in the same document. > This rule is a wrapper around a `graphql-js` validation function. * * @see [known-fragment-names](https://the-guild.dev/graphql/eslint/rules/known-fragment-names) */ export interface KnownFragmentNamesRule { /** * A GraphQL document is only valid if all `...Fragment` fragment spreads refer to fragments defined in the same document. > This rule is a wrapper around a `graphql-js` validation function. * * @see [known-fragment-names](https://the-guild.dev/graphql/eslint/rules/known-fragment-names) */ '@graphql-eslint/known-fragment-names': KnownFragmentNamesRuleConfig; }