@code-quality/eslint-config-graphql

Extension for you eslint config with GraphQL helper support.

Usage no npm install needed!

<script type="module">
  import codeQualityEslintConfigGraphql from 'https://cdn.skypack.dev/@code-quality/eslint-config-graphql';
</script>

README

Actions Status

Eslint Config GraphQL

eslint shareable config to help you identify and report on patterns found in your code in typescript applications.

Note: This eslint configuration works only with apollo client.

Plugins

This configuration uses the following plugins:

Install

$ yarn add @code-quality/eslint-config-graphql -D

Usage

The shareable config can be configured in the eslint configuration file:

Create a .eslintrc.js file with the following contents:

module.exports = {
  extends: [
    // ...
    '@code-quality/eslint-config-graphql',
  ],
}

Additionally don't forget to have .graphqlconfig file:

{
  // ...
  "schemaPath": "schema.json",
  // ...
}