UNPKG

@graphql-eslint/eslint-plugin

Version:
44 lines (41 loc) 1.52 kB
import { FromSchema } from 'json-schema-to-ts'; import { f as GraphQLESLintRule } from '../types-8d5f4ae0.js'; import '@graphql-tools/utils'; import 'eslint'; import 'estree'; import 'graphql'; import 'graphql-config'; import '../estree-converter/types.js'; declare const schema: { readonly type: "array"; readonly maxItems: 1; readonly items: { readonly type: "object"; readonly additionalProperties: false; readonly properties: { readonly checkInputType: { readonly type: "boolean"; readonly default: false; readonly description: "Check that the input type name follows the convention \\<mutationName>Input"; }; readonly caseSensitiveInputType: { readonly type: "boolean"; readonly default: true; readonly description: "Allow for case discrepancies in the input type name"; }; readonly checkQueries: { readonly type: "boolean"; readonly default: false; readonly description: "Apply the rule to Queries"; }; readonly checkMutations: { readonly type: "boolean"; readonly default: true; readonly description: "Apply the rule to Mutations"; }; }; }; }; type RuleOptions = FromSchema<typeof schema>; declare const rule: GraphQLESLintRule<RuleOptions>; export { RuleOptions, rule };