Skip to content

Commit d959c55

Browse files
committed
more
1 parent a691206 commit d959c55

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.changeset/lovely-emus-shake.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
'@graphql-eslint/eslint-plugin': major
33
---
44

5-
Add new config option `ignoredFieldSelectors` to `no-unused-fields` rule to ignore all the relay pagination fields for every connection exposed in schema for example
5+
Add new config option `ignoredFieldSelectors` to `no-unused-fields` rule to ignore all the relay
6+
pagination fields for every connection exposed in schema for example

packages/plugin/src/rules/no-unused-fields/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { GraphQLProjectConfig } from 'graphql-config';
33
import { FromSchema } from 'json-schema-to-ts';
44
import { ModuleCache } from '../../cache.js';
55
import { SiblingOperations } from '../../siblings.js';
6-
import { GraphQLESLintRule, GraphQLESLintRuleListener, GraphQLESTreeNode } from '../../types.js';
6+
import { GraphQLESLintRule, GraphQLESTreeNode } from '../../types.js';
77
import { requireGraphQLSchemaFromContext, requireSiblingsOperations } from '../../utils.js';
88

99
const RULE_ID = 'no-unused-fields';

scripts/generate-docs.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ async function generateDocs(): Promise<void> {
5555
const prettierConfigTs = await prettier.resolveConfig('./_meta.ts');
5656

5757
const result = Object.entries(rules).map(async ([ruleName, rule]) => {
58-
const frontMatterDescription = rule.meta.docs!.description!.replace(/\n.*/g, '').replace(MARKDOWN_LINK_RE, '$1')
58+
const frontMatterDescription = rule.meta
59+
.docs!.description!.replace(/\n.*/g, '')
60+
.replace(MARKDOWN_LINK_RE, '$1');
5961
const blocks: string[] = [
6062
'---',
6163
`description: ${JSON.stringify(frontMatterDescription)}`,

0 commit comments

Comments
 (0)