UNPKG

@graphql-eslint/eslint-plugin

Version:
38 lines (35 loc) 1.08 kB
import { FromSchema } from 'json-schema-to-ts'; import { GraphQLESLintRule } from '../../types.cjs'; import 'eslint'; import 'estree'; import 'graphql'; import 'graphql-config'; import '../../estree-converter/types.cjs'; import '../../siblings.cjs'; import '@graphql-tools/utils'; declare const schema: { readonly type: "array"; readonly minItems: 1; readonly maxItems: 1; readonly items: { readonly type: "object"; readonly additionalProperties: false; readonly required: readonly ["maxDepth"]; readonly properties: { readonly maxDepth: { readonly type: "number"; }; readonly ignore: { readonly type: "array"; readonly uniqueItems: true; readonly minItems: 1; readonly items: { readonly type: "string"; }; }; }; }; }; type RuleOptions = FromSchema<typeof schema>; declare const rule: GraphQLESLintRule<RuleOptions>; export { type RuleOptions, rule };