5.1.0 • Published 5 months ago

@zakodium/eslint-config-graphql v5.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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.

5.1.0

5 months ago

5.0.1

1 year ago

5.0.0

1 year ago

4.0.1

2 years ago

4.0.0

2 years ago

4.0.2

2 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago