@graphql-eslint/eslint-plugin
Version:
GraphQL plugin for ESLint
108 lines (107 loc) • 6.91 kB
TypeScript
export declare const rules: {
alphabetize: import("../types.js").GraphQLESLintRule<{
definitions?: boolean | undefined;
selections?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<"OperationDefinition" | "FragmentDefinition">[] | undefined;
arguments?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<"Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition">[] | undefined;
values?: "EnumTypeDefinition"[] | undefined;
fields?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<"ObjectTypeDefinition" | "InterfaceTypeDefinition" | "InputObjectTypeDefinition">[] | undefined;
variables?: "OperationDefinition"[] | undefined;
groups?: string[] | undefined;
}[], false>;
'description-style': import("../types.js").GraphQLESLintRule<{
style?: "block" | "inline" | undefined;
}[], false>;
'input-name': import("../types.js").GraphQLESLintRule<{
checkInputType?: boolean | undefined;
caseSensitiveInputType?: boolean | undefined;
checkQueries?: boolean | undefined;
checkMutations?: boolean | undefined;
}[], false>;
'lone-executable-definition': import("../types.js").GraphQLESLintRule<{
ignore?: ("fragment" | "query" | "mutation" | "subscription")[] | undefined;
}[], false>;
'match-document-filename': import("../types.js").GraphQLESLintRule<{
fragment?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle"> | {
style?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle"> | undefined;
suffix?: string | undefined;
prefix?: string | undefined;
} | undefined;
query?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle"> | {
style?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle"> | undefined;
suffix?: string | undefined;
prefix?: string | undefined;
} | undefined;
mutation?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle"> | {
style?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle"> | undefined;
suffix?: string | undefined;
prefix?: string | undefined;
} | undefined;
subscription?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle"> | {
style?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle"> | undefined;
suffix?: string | undefined;
prefix?: string | undefined;
} | undefined;
fileExtension?: ".gql" | ".graphql" | undefined;
}[], false>;
'naming-convention': import("../types.js").GraphQLESLintRule<{
[x: string]: unknown;
types?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<"camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE"> | {
style?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<"camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE"> | undefined;
suffix?: string | undefined;
prefix?: string | undefined;
forbiddenPrefixes?: string[] | undefined;
forbiddenSuffixes?: string[] | undefined;
ignorePattern?: string | undefined;
} | undefined;
allowLeadingUnderscore?: boolean | undefined;
allowTrailingUnderscore?: boolean | undefined;
}[], false>;
'no-anonymous-operations': import("../types.js").GraphQLESLintRule<[], false>;
'no-case-insensitive-enum-values-duplicates': import("../types.js").GraphQLESLintRule<[], false>;
'no-deprecated': import("../types.js").GraphQLESLintRule<[], true>;
'no-duplicate-fields': import("../types.js").GraphQLESLintRule<[], false>;
'no-hashtag-description': import("../types.js").GraphQLESLintRule<[], false>;
'no-one-place-fragments': import("../types.js").GraphQLESLintRule<[], false>;
'no-root-type': import("../types.js").GraphQLESLintRule<{
disallow: ("mutation" | "subscription")[];
}[], false>;
'no-scalar-result-type-on-mutation': import("../types.js").GraphQLESLintRule<[], false>;
'no-typename-prefix': import("../types.js").GraphQLESLintRule<[], false>;
'no-unreachable-types': import("../types.js").GraphQLESLintRule<[], false>;
'no-unused-fields': import("../types.js").GraphQLESLintRule<[], false>;
'relay-arguments': import("../types.js").GraphQLESLintRule<{
includeBoth?: boolean | undefined;
}[], true>;
'relay-connection-types': import("../types.js").GraphQLESLintRule<[], false>;
'relay-edge-types': import("../types.js").GraphQLESLintRule<{
withEdgeSuffix?: boolean | undefined;
shouldImplementNode?: boolean | undefined;
listTypeCanWrapOnlyEdgeType?: boolean | undefined;
}[], true>;
'relay-page-info': import("../types.js").GraphQLESLintRule<[], false>;
'require-deprecation-date': import("../types.js").GraphQLESLintRule<{
argumentName?: string | undefined;
}[], false>;
'require-deprecation-reason': import("../types.js").GraphQLESLintRule<[], false>;
'require-description': import("../types.js").GraphQLESLintRule<import("./require-description.js").RuleOptions, false>;
'require-field-of-type-query-in-mutation-result': import("../types.js").GraphQLESLintRule<[], false>;
'require-id-when-available': import("../types.js").GraphQLESLintRule<{
fieldName?: string | string[] | undefined;
}[], true>;
'require-nullable-fields-with-oneof': import("../types.js").GraphQLESLintRule<[], false>;
'require-type-pattern-with-oneof': import("../types.js").GraphQLESLintRule<[], false>;
'selection-set-depth': import("../types.js").GraphQLESLintRule<{
ignore?: string[] | undefined;
maxDepth: number;
}[], false>;
'strict-id-in-types': import("../types.js").GraphQLESLintRule<{
acceptedIdNames?: string[] | undefined;
acceptedIdTypes?: string[] | undefined;
exceptions?: {
types?: string[] | undefined;
suffixes?: string[] | undefined;
} | undefined;
}[], false>;
'unique-fragment-name': import("../types.js").GraphQLESLintRule<[], false>;
'unique-operation-name': import("../types.js").GraphQLESLintRule<[], false>;
};