Dimitri POSTOLOV
Dimitri POSTOLOV
Itβs works perfectly fine, provide full schema for graphql-eslint ```diff parserOptions: schema: - './src/schema.graphql' + - './src/subgraph.graphql' ```
Hi @therealgilles what is the use case of this change? And very thankful for your contributions!
For applying specific rules on specific files you can use overrides sections in eslint config. Take a look of config in monorepo example https://github.com/B2o5T/graphql-eslint/blob/master/examples/monorepo/.eslintrc.cjs
Hi @TimoWilhelm, can you provide a reproduction repo of your problem? This will be helpful π
1. You should use `parserOptions.operations` or `graphql-config` file but not a both in same time, remove `parserOptions.operations` from eslint config and add `documents: ./**/*.graphql` in your graphql-config. 2. Why do...
Hi @milashkaJason, does your issue related to `require-id-when-available`? Can you give more context or maybe make a reproduction repo?
Thanks, would you want send a PR to this change? Also, in next major (v4) field `parserOptions.operations` will be renamed to `parserOptions.documents` to make consistency with graphql-config
Otherwise we need to install: - @graphql-tools/graphql-file-loader - @graphql-tools/code-file-loader - @graphql-tools/load - @graphql-tools/url-loader - @graphql-tools/json-file-loader All of them already included in `graphql-config`, so we simple install `graphql-config` and use him...
@dotansimha As an idea, we can reduce the bundle by publishing `GraphQLRuleTester` as own package `@graphql-eslint/rule-tester` because only rule tester uses `@babel/code-frame` https://github.com/dotansimha/graphql-eslint/blob/master/packages/plugin/package.json#L37
This rule seems great, but I think this will be impossible without false-positive cases due to `props dribbling` when we pass `data` to some child component