@graphql-eslint/eslint-plugin
Version:
GraphQL plugin for ESLint
33 lines (32 loc) • 1.08 kB
JavaScript
;
/*
* 🚨 IMPORTANT! Do not manually modify this file. Run: `yarn generate-configs`
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
extends: './configs/operations-recommended',
rules: {
'@graphql-eslint/alphabetize': [
'error',
{
selections: ['OperationDefinition', 'FragmentDefinition'],
variables: ['OperationDefinition'],
arguments: ['Field', 'Directive'],
},
],
'@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/unique-fragment-name': 'error',
'@graphql-eslint/unique-operation-name': 'error',
},
};
module.exports = exports.default;