@zakodium/eslint-config-graphql

5.1.0 • Public • Published

eslint-config-graphql

Shared ESLint config for frontend and backend projects using graphql

Installation

npx i -D @zakodium/eslint-config-graphql eslint

graphql is also a peer dependency and would usually be in the dependencies of your project

npm i graphql

Usage

Create a .eslintrc.yml with the following contents:

extends: zakodium-graphql

Create a .graphqlrc or .graphqlconfig file with your graphql configuration

Or alternatively, specify the options in the eslint config

extends: zakodium-graphql
overrides:
    files:
      - *.graphql
    parserOptions:
      schema: path/to/your/schema/**/*.graphql
      operations path/to/your/operations/**/*.graphql

You can then customize the config for your project by changing rules in this file.

/@zakodium/eslint-config-graphql/

    Package Sidebar

    Install

    npm i @zakodium/eslint-config-graphql

    Weekly Downloads

    1

    Version

    5.1.0

    License

    MIT

    Unpacked Size

    11.7 kB

    Total Files

    6

    Last publish

    Collaborators

    • stropitek
    • targos
    • lpatiny
    • zakodium-bot