Skip to Content
This is documentation for v4 of the plugin. For v3 click here.
ESLGraphQL-ESLint
DocumentationIntroduction

Introduction

This project integrates GraphQL and ESLint, for a better developer experience.

Demo GraphQL-ESLint in VSCode

Features

  • Integrates with ESLint core (as a ESTree parser)
  • Works on .graphql files, gql usages and /* GraphQL */ magic comments
  • Lints both GraphQL schema and GraphQL operations
  • Extended type info for more advanced usages
  • Supports ESLint directives (for example: eslint-disable-next-line)
  • Easily extendable - supports custom rules based on GraphQL’s AST and ESLint API
  • Validates, lints, prettifies and checks for best practices across GraphQL schema and GraphQL operations
  • Integrates with GraphQL Config
  • Integrates and visualizes lint issues in popular IDEs (VSCode / WebStorm)

Resources

Last updated on