Skip to content

Commit

Permalink
SKIP-123: add link to backstage
Browse files Browse the repository at this point in the history
Adds link to pb.dev portal for more detailed explanation.
  • Loading branch information
comatory committed Aug 18, 2023
1 parent 68291db commit d9d13f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/rule-must-colocate-fragment-spreads.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ function checkColocation(context) {
`to query for it's own data, and such fragment should be spread in the parent component.` +
`The naming convention is <nameOfComponentCamelCase>_<optionalSuffix>. ` +
`The <nameOfComponentCamelCase> must match the import name. The optional suffix should be separated ` +
`by underscore (usually when you need to pass multiple fragments to the same component).\n`
`by underscore (usually when you need to pass multiple fragments to the same component).` +
`See: https://pb.dev/docs/default/component/pb-frontend/data-fetching/02-relay-patterns/#fragments\n`
});
}
}
Expand Down
3 changes: 2 additions & 1 deletion test/must-colocate-fragment-spreads.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ function unusedFieldsWarning(fragment) {
`to query for it's own data, and such fragment should be spread in the parent component.` +
`The naming convention is <nameOfComponentCamelCase>_<optionalSuffix>. ` +
`The <nameOfComponentCamelCase> must match the import name. The optional suffix should be separated ` +
`by underscore (usually when you need to pass multiple fragments to the same component).\n`
`by underscore (usually when you need to pass multiple fragments to the same component).` +
`See: https://pb.dev/docs/default/component/pb-frontend/data-fetching/02-relay-patterns/#fragments\n`
);
}

Expand Down

0 comments on commit d9d13f8

Please sign in to comment.