@graphql-eslint/eslint-plugin
Version:
GraphQL plugin for ESLint
25 lines (24 loc) • 647 B
JSON
{
"extends": ["./base.json", "./operations-recommended.json"],
"rules": {
"@graphql-eslint/alphabetize": [
"error",
{
"selections": ["OperationDefinition", "FragmentDefinition"],
"variables": ["OperationDefinition"],
"arguments": ["Field", "Directive"]
}
],
"@graphql-eslint/match-document-filename": [
"error",
{
"query": "kebab-case",
"mutation": "kebab-case",
"subscription": "kebab-case",
"fragment": "kebab-case"
}
],
"@graphql-eslint/unique-fragment-name": "error",
"@graphql-eslint/unique-operation-name": "error"
}
}