graphql-eslint

ESLint parser, plugin and set rules for GraphQL (for schema and operations). Easily customizable with custom rules. Integrates with IDEs and modern GraphQL tools.

MIT License

Stars
762
Committers
47

Bot releases are visible (Hide)

graphql-eslint - September 26, 2022

Published by github-actions[bot] about 2 years ago

@graphql-eslint/[email protected]

Patch Changes

  • #1170 0b8acdc Thanks @B2o5T! - fix race condition of loading loadGraphQLConfig() when processor.preprocess() can be called before parseForESLint()
graphql-eslint - September 26, 2022

Published by github-actions[bot] about 2 years ago

@graphql-eslint/[email protected]

Patch Changes

  • #1168 9bc4e1b Thanks @B2o5T! - return code as-is in preprocess in case of parsing error, sort eslint/graphql-eslint errors in postprocess by line/column

  • #1165 eab5492 Thanks @B2o5T! - fix race condition of loadGraphQLConfig()

  • #1167 2f6c02f Thanks @B2o5T! - make RuleDocsInfo type optional

graphql-eslint - September 23, 2022

Published by github-actions[bot] about 2 years ago

@graphql-eslint/[email protected]

Minor Changes

  • #1156 6ac42cf Thanks @JimmyPaolini! - Using configuration options for graphql-tag-pluck through graphql-config
    Allow setup custom globalGqlIdentifierName, modules.identifier and gqlMagicComment

  • #1163 0d3fe5b Thanks @B2o5T! - improve RuleDocsInfo type, set description and url as required fields

graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • b6de7ff: fix(GraphQLRuleTester): provide output field for GraphQLInvalidTestCase type
graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 39ab684: fix(alphabetize): should not fail when selection is aliased
graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 712a8fe: fix(selection-set-depth): fix TypeError from ESLint suggestions, don't provide suggestions for fragment that can be in a separate file
  • 01421ae: fix(no-unreachable-types): ignore directives with Request Definitions locations
graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 5593891: fix(known-directives): support ignoreClientDirectives for OperationDefinition
graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 8a3b584: fix broken report highlighting when processor is used
graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • daa04bb: feat: support select id field with an alias in require-id-when-available rule
  • 2efc772: fix: processor should always return code string in preprocess method
graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • cf687a5: [relay-page-info]: force to have nullable startCursor and endCursor if there are no results. More info from spec
graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • 7251269: feat: new rule relay-connection-types
  • 7251269: feat: new rule relay-edge-types
  • 7251269: feat: new rule relay-page-info
  • 7251269: feat: new rule relay-arguments
  • 7251269: feat: new config plugin:@graphql-eslint/relay
  • 7251269: fix: adjust suggestion fix location for code-files
  • edbec90: feat: update graphql-config to fix loading schema via url

Patch Changes

  • 4bcee4a: fix: surface the original error while loading schema in ESLint server
  • 4bcee4a: fix: clarify error message for outdated version of graphql package
  • 3e821de: fix: allow single letter for snake_case and UPPER_CASE in naming-convention rule

Special thanks to @connorjs

graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 56d6ff3: [known-fragment-names]: fix when fragment used on interface and union
  • 3fe3761: print debug information with DEBUG env variable, example DEBUG=graphql-eslint:* eslint .
graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • 9c575c6: feat: add definitions option for alphabetize rule
  • bcbda42: feat: add suggestions for require-id-when-available, require-deprecation-date, no-deprecated and no-scalar-result-type-on-mutation rules
  • 1f697f0: feat: add suggestions for no-duplicate-fields, no-hashtag-description and selection-set-depth rules
  • db22ba5: feat: add suggestions for no-typename-prefix, no-root-type, no-case-insensitive-enum-values-duplicates rules
  • b04a8d5: feat: add ignoreClientDirectives option for known-directives rule
  • 63c5c78: feat: add suggestions for description-style, input-name and no-anonymous-operations rules

Patch Changes

  • 58b5bfd: fix: false negative case when nested fragments used in require-id-when-available rule
  • 2cbaa60: fix: check nested selections in fragments in require-id-when-available rule
  • d9386ad: fix autofix sort for variables in alphabetize rule

Thanks to @jycouet for improving require-id-when-available 58b5bfd

graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • 0da135f: feat: add new option OperationDefinition in require-description rule
  • 1729313: feat: add autofix for alphabetize rule and change sort order to lexicographic
  • d9bdbd3: feat: add new style matchDocumentStyle for match-document-filename rule

Patch Changes

  • 7a5ebe0: fix error in no-unreachable-types rule on [email protected]
  • af22d9d: chore: clarify report message for require-description rule
  • 1729313: fix ESTree parser, convert loc.column to 0-based column number
graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • 6f8c3b6: fix: find graphqlrc files relative to linted file
graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] almost 3 years ago

Minor Changes

  • 624d604: fix: ignore root types in strict-id-in-types rule
graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] almost 3 years ago

Minor Changes

  • cc9a561: feat: ignore fragments in require-id-when-available rule
graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] almost 3 years ago

Minor Changes

  • 75ec7d1: fix false positive case in possible-type-extension rule when schema is separate into multiple files
graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] almost 3 years ago

Minor Changes

  • b4c5d55: feat: add new option ignorePattern for naming-convention rule
  • f20f7de: feat: remove the need of #import comments in favor of parserOptions.operations
graphql-eslint - @graphql-eslint/[email protected]

Published by github-actions[bot] almost 3 years ago

Minor Changes

  • 2c73cb7: feat: add suggestions for naming-convention rule
  • 11b3af6: feat: support multiple id field names in require-id-when-available rule

Patch Changes

  • 503dd9f: fix error report location for graphql-js rules
  • 9378d24: Fix exports in package.json for react-native projects
Badges
Extracted from project README
GraphQLConf 2024 Banner: September 10-12, San Francisco. Hosted by the GraphQL Foundation npm version
Related Projects