diff --git a/.changeset/tame-tigers-own.md b/.changeset/tame-tigers-own.md new file mode 100644 index 00000000000..797b9286e9c --- /dev/null +++ b/.changeset/tame-tigers-own.md @@ -0,0 +1,5 @@ +--- +'@graphql-eslint/eslint-plugin': patch +--- + +fix https://bit.ly/graphql-eslint-operations links diff --git a/packages/plugin/CHANGELOG.md b/packages/plugin/CHANGELOG.md index 61a036c1d60..76f0c1b2db5 100644 --- a/packages/plugin/CHANGELOG.md +++ b/packages/plugin/CHANGELOG.md @@ -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 diff --git a/packages/plugin/src/rules/selection-set-depth/index.ts b/packages/plugin/src/rules/selection-set-depth/index.ts index 20f3461f6ff..8cb01cc7060 100644 --- a/packages/plugin/src/rules/selection-set-depth/index.ts +++ b/packages/plugin/src/rules/selection-set-depth/index.ts @@ -91,7 +91,7 @@ export const rule: GraphQLESLintRule = { 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`, ); } @@ -146,7 +146,7 @@ export const rule: GraphQLESLintRule = { }); } 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, ); } diff --git a/packages/plugin/src/utils.ts b/packages/plugin/src/utils.ts index ec7c21d7f47..1c20b55a8e4 100644 --- a/packages/plugin/src/utils.ts +++ b/packages/plugin/src/utils.ts @@ -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; @@ -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; diff --git a/website/content/docs/usage/index.mdx b/website/content/docs/usage/index.mdx index 1be8b7c5228..0fb5668ac09 100644 --- a/website/content/docs/usage/index.mdx +++ b/website/content/docs/usage/index.mdx @@ -64,12 +64,12 @@ export default [ ] ``` -### Lint GraphQL Definitions in Code Files _(Optional)_ +### Lint GraphQL Definitions in Code Files _(Optional)_[#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 _(Optional)_ +### Providing GraphQL Schema _(Optional)_[#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 @@ -130,7 +130,7 @@ export default [ -### Providing GraphQL Operations _(Optional)_ +### Providing GraphQL Operations _(Optional)_[#providing-operations] While implementing this tool, we had to find solutions for a better integration of the GraphQL ecosystem and ESLint core.