Skip to content

Commit 03674f6

Browse files
authored
Better eslint/graphql rules for unused fields (#6444)
1 parent b402ff9 commit 03674f6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ export default tseslint.config(
338338
"@graphql-eslint/no-anonymous-operations": "error",
339339
"@graphql-eslint/no-duplicate-fields": "error",
340340
"@graphql-eslint/no-deprecated": "warn",
341+
"@graphql-eslint/no-unused-fragments": "warn",
342+
"@graphql-eslint/no-unused-variables": "warn",
343+
"@graphql-eslint/no-unused-fields": "warn",
341344
},
342345
}, // Disable any rules that conflict with Prettier
343346
prettierConfig,

0 commit comments

Comments
 (0)