Skip to content

Commit

Permalink
Fix broken suggestion URLs in rules (#1716)
Browse files Browse the repository at this point in the history
Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
  • Loading branch information
BlakeGardner and dimaMachina committed Jun 30, 2023
1 parent d587d89 commit 40c1523
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/spicy-books-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-eslint/eslint-plugin': patch
---

broken rule url for `require-import-fragment` and `require-nullable-result-in-root`
2 changes: 1 addition & 1 deletion packages/plugin/src/rules/require-import-fragment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const rule: GraphQLESLintRule = {
docs: {
category: 'Operations',
description: 'Require fragments to be imported via an import expression.',
url: `https://github.com/B2o5T/graphql-eslint/blob/master/docs/rules/${RULE_ID}.md`,
url: `https://the-guild.dev/graphql/eslint/rules/${RULE_ID}`,
examples: [
{
title: 'Incorrect',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const rule: GraphQLESLintRule = {
docs: {
category: 'Schema',
description: 'Require nullable fields in root types.',
url: `https://github.com/B2o5T/graphql-eslint/blob/master/docs/rules/${RULE_ID}.md`,
url: `https://the-guild.dev/graphql/eslint/rules/${RULE_ID}`,
requiresSchema: true,
examples: [
{
Expand Down
2 changes: 1 addition & 1 deletion scripts/create-rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const rule: GraphQLESLintRule = {
docs: {
category: '${category}',
description: '${description}',
url: \`https://github.com/B2o5T/graphql-eslint/blob/master/docs/rules/\${RULE_ID}.md\`,
url: \`https://the-guild.dev/graphql/eslint/rules/\${RULE_ID}\`,
examples: [
{
title: 'Incorrect',
Expand Down

0 comments on commit 40c1523

Please sign in to comment.