GraphQL Schema Linter
JSON →Command-line tool and library for validating GraphQL schema definitions against a configurable set of rules. Current stable version is 3.0.1, with monthly releases. It supports custom rules, multiple output formats (compact, JSON, text), and integration with pre-commit hooks via lint-staged. Unlike graphql-eslint or other query-focused tools, this linter targets schema definition files (.graphql) and enforces best practices like field descriptions, type naming conventions, and alphabetical sorting. Requires graphql as a peer dependency (v15 or v16).
Resources
packagegraphql-schema-linter ↗
API endpoints
full doc /v1/registry/graphql-schema-linter