@graphql-eslint/eslint-plugin
Version:
GraphQL plugin for ESLint
32 lines (31 loc) • 1.18 kB
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 withEdgeSuffix: {
readonly type: "boolean";
readonly default: true;
readonly description: "Edge type name must end in \"Edge\".";
};
readonly shouldImplementNode: {
readonly type: "boolean";
readonly default: true;
readonly description: "Edge type's field `node` must implement `Node` interface.";
};
readonly listTypeCanWrapOnlyEdgeType: {
readonly type: "boolean";
readonly default: true;
readonly description: "A list type should only wrap an edge type.";
};
};
};
};
export type RuleOptions = FromSchema<typeof schema>;
export declare const rule: GraphQLESLintRule<RuleOptions, true>;
export {};