GraphQL config not recognized by graphql-eslint #2803
-
I started migrating to graphql-eslint v4 now. My minimal ESLint configuration ( module.exports = {
root: true,
overrides: [
{
files: '**/*.graphql',
extends: 'plugin:@graphql-eslint/operations-recommended',
},
],
} There is a
I investigated a bit by adding
So I think that the logic for finding the nearest GraphQL config file is wrong, since it doesn't traverse up the directory tree (until the working directory, or until the directory that the ESLint config file is in), or do I miss something? Also, the location of the GraphQL config file can't be specified, so there is no way around the issue, right? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi, please try to make this test fail https://github.com/dimaMachina/graphql-eslint/blob/d455b5be393fdc4b1afdf83f66c572681036196e/packages/plugin/__tests__/schema.spec.ts#L115 |
Beta Was this translation helpful? Give feedback.
I tried but couldn't. But thanks for the hint anyway.
In the end I updated the (transitive)
graphql-config
dependency from 5.1.2 to 5.1.3 and that fixed it 🥳