@graphql-eslint/eslint-plugin
Version:
GraphQL plugin for ESLint
22 lines (21 loc) • 731 B
TypeScript
import { GraphQLESLintRule } from '../types.js';
import { FromSchema } from 'json-schema-to-ts';
declare const schema: {
readonly type: "array";
readonly maxItems: 1;
readonly items: {
readonly type: "object";
readonly additionalProperties: false;
readonly minProperties: 1;
readonly properties: {
readonly includeBoth: {
readonly type: "boolean";
readonly default: true;
readonly description: "Enforce including both forward and backward pagination arguments";
};
};
};
};
export type RuleOptions = FromSchema<typeof schema>;
export declare const rule: GraphQLESLintRule<RuleOptions, true>;
export {};