0.0.6 • Published 6 years ago

tslint-plugin-graphql v0.0.6

Weekly downloads
1,041
License
ISC
Repository
github
Last release
6 years ago

tslint-plugin-graphql

Greenkeeper badge

Check your GraphQL query strings against a schema.

NPM version Build Status Dependency Status Coverage percentage experimental

Install

npm install tslint-plugin-graphql --save-dev

Usage

Example of tslint.json

{
    "extends": [
        "tslint:latest",
        "tslint-plugin-graphql"
    ],
    "rules": {
        "object-literal-sort-keys": false,
        "graphql": [
            true,
            {
                // Import default settings for your GraphQL client. Supported values:
                // 'apollo', 'relay', 'lokka'
                "env": "apollo",
                "schemaJsonFilepath": "./graphql.schema.json",
                "tagName": "Relay.QL"
                // tagName is gql by default 
            }
        ]
    }
}

API

Test

npm install
npm test