5.1.0 • Published 5 months ago
@zakodium/eslint-config-graphql v5.1.0
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.