@graphql-eslint/eslint-plugin
Version:
GraphQL plugin for ESLint
30 lines (27 loc) • 831 B
text/typescript
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 maxItems: 1;
readonly items: {
readonly type: "object";
readonly additionalProperties: false;
readonly minProperties: 1;
readonly properties: {
readonly style: {
readonly enum: readonly ["block", "inline"];
readonly default: "block";
};
};
};
};
type RuleOptions = FromSchema<typeof schema>;
declare const rule: GraphQLESLintRule<RuleOptions>;
export { type RuleOptions, rule };