Add eslint-disable and TypeScript generics to graph hooks
Centralized graph files (hooks/graph/*.ts) define GraphQL queries consumed by multiple page components. This architecture intentionally separates field definitions from usage, triggering relay/unused-fields and relay/must-colocate-fragment-spreads. File-level eslint-disable comments suppress these false positives. Also adds explicit TypeScript generics to useMutation and usePaginationFragment calls to satisfy relay/generated-typescript-types without eslint-disable. Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -6,6 +6,8 @@ import { graphql } from "relay-runtime";
|
||||
|
||||
import type { PeopleGraphQuery } from "#/__generated__/core/PeopleGraphQuery.graphql";
|
||||
|
||||
/* eslint-disable relay/unused-fields */
|
||||
|
||||
export const peopleQuery = graphql`
|
||||
query PeopleGraphQuery($organizationId: ID!, $filter: ProfileFilter) {
|
||||
organization: node(id: $organizationId) {
|
||||
|
||||
Reference in New Issue
Block a user