Skip to content
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
5 changes: 5 additions & 0 deletions .changeset/tame-tigers-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-eslint/eslint-plugin': patch
---

fix https://bit.ly/graphql-eslint-operations links
4 changes: 2 additions & 2 deletions packages/plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1325,8 +1325,8 @@ Special thanks to @connorjs

### Minor Changes

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

## 0.8.1

Expand Down
4 changes: 2 additions & 2 deletions packages/plugin/src/rules/selection-set-depth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const rule: GraphQLESLintRule<RuleOptions> = {
siblings = requireSiblingsOperations(RULE_ID, context);
} catch {
logger.warn(
`Rule "${RULE_ID}" works best with siblings operations loaded. For more info: https://bit.ly/graphql-eslint-operations`,
`Rule "${RULE_ID}" works best with siblings operations loaded. See https://the-guild.dev/graphql/eslint/docs/usage#providing-operations for more info`,
);
}

Expand Down Expand Up @@ -146,7 +146,7 @@ export const rule: GraphQLESLintRule<RuleOptions> = {
});
} catch (e) {
logger.warn(
`Rule "${RULE_ID}" check failed due to a missing siblings operations. For more info: https://bit.ly/graphql-eslint-operations`,
`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`,
e,
);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function requireSiblingsOperations(
const { siblingOperations } = context.sourceCode.parserServices;
if (!siblingOperations.available) {
throw new Error(
`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`,
`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`,
);
}
return siblingOperations;
Expand All @@ -26,7 +26,7 @@ export function requireGraphQLSchemaFromContext(
const { schema } = context.sourceCode.parserServices;
if (!schema) {
throw new Error(
`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`,
`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`,
);
}
return schema;
Expand Down
6 changes: 3 additions & 3 deletions website/content/docs/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ export default [
]
```

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

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

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

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

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

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