Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SKIP-123: add colocation rule link #8

Merged
merged 1 commit into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading