@graphql-eslint/eslint-plugin
Version:
GraphQL plugin for ESLint
29 lines (25 loc) • 1.13 kB
JavaScript
Object.defineProperty(exports, "__esModule", {value: true});var schema_all_default = {
extends: "./configs/schema-recommended",
rules: {
"@graphql-eslint/alphabetize": [
"error",
{
definitions: true,
fields: ["ObjectTypeDefinition", "InterfaceTypeDefinition", "InputObjectTypeDefinition"],
values: true,
arguments: ["FieldDefinition", "Field", "DirectiveDefinition", "Directive"],
groups: ["id", "*", "createdAt", "updatedAt"]
}
],
"@graphql-eslint/input-name": "error",
"@graphql-eslint/no-root-type": ["error", { disallow: ["mutation", "subscription"] }],
"@graphql-eslint/no-scalar-result-type-on-mutation": "error",
"@graphql-eslint/require-deprecation-date": "error",
"@graphql-eslint/require-field-of-type-query-in-mutation-result": "error",
"@graphql-eslint/require-nullable-fields-with-oneof": "error",
"@graphql-eslint/require-nullable-result-in-root": "error",
"@graphql-eslint/require-type-pattern-with-oneof": "error"
}
};
exports.default = schema_all_default;
module.exports = exports.default;
;