@graphql-eslint/eslint-plugin
Version:
GraphQL plugin for ESLint
29 lines (28 loc) • 882 B
TypeScript
import { GraphQLESLintRule } from '../types.js';
import { FromSchema } from 'json-schema-to-ts';
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";
};
};
};
};
};
export type RuleOptions = FromSchema<typeof schema>;
export declare const rule: GraphQLESLintRule<RuleOptions>;
export {};