Skip to content

Commit baba639

Browse files
authored
1 parent fae262b commit baba639

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

.changeset/tame-tigers-own.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-eslint/eslint-plugin': patch
3+
---
4+
5+
fix https://bit.ly/graphql-eslint-operations links

packages/plugin/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,8 +1325,8 @@ Special thanks to @connorjs
13251325

13261326
### Minor Changes
13271327

1328-
- 4693f27: [New rule] strict-id-in-types: use this to enforce output types to have a unique indentifier
1329-
field unless being in exceptions
1328+
- 4693f27: [New rule] strict-id-in-types: use this to enforce output types to have a unique
1329+
indentifier field unless being in exceptions
13301330

13311331
## 0.8.1
13321332

packages/plugin/src/rules/selection-set-depth/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const rule: GraphQLESLintRule<RuleOptions> = {
9191
siblings = requireSiblingsOperations(RULE_ID, context);
9292
} catch {
9393
logger.warn(
94-
`Rule "${RULE_ID}" works best with siblings operations loaded. For more info: https://bit.ly/graphql-eslint-operations`,
94+
`Rule "${RULE_ID}" works best with siblings operations loaded. See https://the-guild.dev/graphql/eslint/docs/usage#providing-operations for more info`,
9595
);
9696
}
9797

@@ -146,7 +146,7 @@ export const rule: GraphQLESLintRule<RuleOptions> = {
146146
});
147147
} catch (e) {
148148
logger.warn(
149-
`Rule "${RULE_ID}" check failed due to a missing siblings operations. For more info: https://bit.ly/graphql-eslint-operations`,
149+
`Rule "${RULE_ID}" check failed due to a missing siblings operations. See https://the-guild.dev/graphql/eslint/docs/usage#providing-operations for more info`,
150150
e,
151151
);
152152
}

packages/plugin/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function requireSiblingsOperations(
1313
const { siblingOperations } = context.sourceCode.parserServices;
1414
if (!siblingOperations.available) {
1515
throw new Error(
16-
`Rule \`${ruleId}\` requires graphql-config \`documents\` field to be set and loaded. See https://the-guild.dev/graphql/config/docs/user/documents for more info`,
16+
`Rule \`${ruleId}\` requires graphql-config \`documents\` field to be set and loaded. See https://the-guild.dev/graphql/eslint/docs/usage#providing-operations for more info`,
1717
);
1818
}
1919
return siblingOperations;
@@ -26,7 +26,7 @@ export function requireGraphQLSchemaFromContext(
2626
const { schema } = context.sourceCode.parserServices;
2727
if (!schema) {
2828
throw new Error(
29-
`Rule \`${ruleId}\` requires graphql-config \`schema\` field to be set and loaded. See https://the-guild.dev/graphql/config/docs/user/schema for more info`,
29+
`Rule \`${ruleId}\` requires graphql-config \`schema\` field to be set and loaded. See https://the-guild.dev/graphql/eslint/docs/usage#providing-schema for more info`,
3030
);
3131
}
3232
return schema;

website/content/docs/usage/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ export default [
6464
]
6565
```
6666

67-
### Lint GraphQL Definitions in Code Files <sup>_(Optional)_</sup>
67+
### Lint GraphQL Definitions in Code Files <sup>_(Optional)_</sup>[#lint-in-code-files]
6868

6969
If you're defining GraphQL schemas or operations directly within code files[^1], check out
7070
[the usage with `.js`/`.jsx`](./usage/js) files.
7171

72-
### Providing GraphQL Schema <sup>_(Optional)_</sup>
72+
### Providing GraphQL Schema <sup>_(Optional)_</sup>[#providing-schema]
7373

7474
Some linting rules require access to the entire GraphQL schema. For example, the
7575
[no-unreachable-types](../rules/no-unreachable-types) rule checks that all types are reachable
@@ -130,7 +130,7 @@ export default [
130130
</Tabs.Tab>
131131
</Tabs>
132132

133-
### Providing GraphQL Operations <sup>_(Optional)_</sup>
133+
### Providing GraphQL Operations <sup>_(Optional)_</sup>[#providing-operations]
134134

135135
While implementing this tool, we had to find solutions for a better integration of the GraphQL
136136
ecosystem and ESLint core.

0 commit comments

Comments
 (0)