@graphql-eslint/eslint-plugin
Version:
GraphQL plugin for ESLint
33 lines (29 loc) • 909 B
JavaScript
Object.defineProperty(exports, "__esModule", {value: true});var operations_all_default = {
extends: "./configs/operations-recommended",
rules: {
"@graphql-eslint/alphabetize": [
"error",
{
definitions: true,
selections: ["OperationDefinition", "FragmentDefinition"],
variables: true,
arguments: ["Field", "Directive"],
groups: ["...", "id", "*", "{"]
}
],
"@graphql-eslint/lone-executable-definition": "error",
"@graphql-eslint/match-document-filename": [
"error",
{
query: "kebab-case",
mutation: "kebab-case",
subscription: "kebab-case",
fragment: "kebab-case"
}
],
"@graphql-eslint/no-one-place-fragments": "error",
"@graphql-eslint/require-import-fragment": "error"
}
};
exports.default = operations_all_default;
module.exports = exports.default;
;