Files
probo/relay.config.json
Émile Ré e93faf4caa Enforce Relay module-name prefix in naming
Relay 21 made the filename-prefix requirement opt-in for non-Haste
projects, and the relay/graphql-naming lint rule only covers
operations and legacy fragment containers, leaving hooks-based
fragment names unguarded. Re-enable compiler enforcement via
enforce_module_name_prefix_for_non_haste so fragments keep the
collision-free, navigable <ModuleName>_<localName> convention, and
document the rationale in the Relay guide. The compiler accepts the
current sources unchanged, so existing names already comply.

Signed-off-by: Émile Ré <emile@probo.com>
2026-06-26 18:52:05 +02:00

67 lines
1.8 KiB
JSON

{
"root": ".",
"featureFlags": {
"enforce_fragment_alias_where_ambiguous": { "kind": "disabled" },
"enforce_module_name_prefix_for_non_haste": true
},
"sources": {
"apps/console/src/pages/iam": "iam",
"apps/console/src": "core",
"apps/trust/src": "trust",
"apps/compliance-portal/src": "complianceportal"
},
"projects": {
"core": {
"schema": "pkg/server/api/console/v1/schema.graphql",
"language": "typescript",
"noFutureProofEnums": true,
"output": "apps/console/src/__generated__/core",
"relativizeJsModulePaths": false,
"customScalarTypes": {
"Datetime": "string",
"GID": "string",
"CursorKey": "string",
"Duration": "string",
"BigInt": "number",
"EmailAddr": "string"
}
},
"iam": {
"schema": "pkg/server/api/connect/v1/schema.graphql",
"language": "typescript",
"noFutureProofEnums": true,
"output": "apps/console/src/__generated__/iam",
"relativizeJsModulePaths": false,
"customScalarTypes": {
"Datetime": "string",
"GID": "string",
"CursorKey": "string",
"Duration": "string",
"BigInt": "number",
"EmailAddr": "string",
"OAuth2Scope": "string"
}
},
"trust": {
"schema": "pkg/server/api/trust/v1/schema.graphql",
"language": "typescript",
"noFutureProofEnums": true,
"customScalarTypes": {
"Datetime": "string",
"CursorKey": "string",
"EmailAddr": "string"
}
},
"complianceportal": {
"schema": "pkg/server/api/trust/v1/schema.graphql",
"language": "typescript",
"noFutureProofEnums": true,
"customScalarTypes": {
"Datetime": "string",
"CursorKey": "string",
"EmailAddr": "string"
}
}
}
}