From 8a1cd678d4e3ee5d948543294948eb9d8218fdba Mon Sep 17 00:00:00 2001 From: dimitri Date: Tue, 25 May 2021 03:20:24 +0200 Subject: [PATCH] chore: `graphql-js` migrate to typescript, fix links --- .changeset/sixty-rings-flash.md | 5 +++++ docs/rules/executable-definitions.md | 2 +- docs/rules/fields-on-correct-type.md | 2 +- docs/rules/fragments-on-composite-type.md | 2 +- docs/rules/known-argument-names.md | 2 +- docs/rules/known-directives.md | 2 +- docs/rules/known-fragment-names.md | 2 +- docs/rules/known-type-names.md | 2 +- docs/rules/lone-anonymous-operation.md | 2 +- docs/rules/lone-schema-definition.md | 2 +- docs/rules/no-fragment-cycles.md | 2 +- docs/rules/no-undefined-variables.md | 2 +- docs/rules/no-unused-fragments.md | 2 +- docs/rules/no-unused-variables.md | 2 +- docs/rules/one-field-subscriptions.md | 2 +- docs/rules/overlapping-fields-can-be-merged.md | 2 +- docs/rules/possible-fragment-spread.md | 2 +- docs/rules/possible-type-extension.md | 2 +- docs/rules/provided-required-arguments.md | 2 +- docs/rules/scalar-leafs.md | 2 +- docs/rules/unique-argument-names.md | 2 +- docs/rules/unique-directive-names-per-location.md | 2 +- docs/rules/unique-directive-names.md | 2 +- docs/rules/unique-enum-value-names.md | 2 +- docs/rules/unique-field-definition-names.md | 2 +- docs/rules/unique-input-field-names.md | 2 +- docs/rules/unique-operation-types.md | 2 +- docs/rules/unique-type-names.md | 2 +- docs/rules/unique-variable-names.md | 2 +- docs/rules/value-literals-of-correct-type.md | 2 +- docs/rules/variables-are-input-types.md | 2 +- docs/rules/variables-in-allowed-position.md | 2 +- packages/plugin/src/rules/graphql-js-validation.ts | 2 +- 33 files changed, 37 insertions(+), 32 deletions(-) create mode 100644 .changeset/sixty-rings-flash.md diff --git a/.changeset/sixty-rings-flash.md b/.changeset/sixty-rings-flash.md new file mode 100644 index 00000000000..8ab63a5dd81 --- /dev/null +++ b/.changeset/sixty-rings-flash.md @@ -0,0 +1,5 @@ +--- +'@graphql-eslint/eslint-plugin': patch +--- + +graphql-js migrate to .ts, fix links diff --git a/docs/rules/executable-definitions.md b/docs/rules/executable-definitions.md index 9f5fef8d34e..4112b7facb8 100644 --- a/docs/rules/executable-definitions.md +++ b/docs/rules/executable-definitions.md @@ -7,4 +7,4 @@ A GraphQL document is only valid for execution if all definitions are either operation or fragment definitions. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/ExecutableDefinitionsRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/ExecutableDefinitionsRule.ts). \ No newline at end of file diff --git a/docs/rules/fields-on-correct-type.md b/docs/rules/fields-on-correct-type.md index e0c25776fd8..2dba016ce44 100644 --- a/docs/rules/fields-on-correct-type.md +++ b/docs/rules/fields-on-correct-type.md @@ -7,4 +7,4 @@ A GraphQL document is only valid if all fields selected are defined by the parent type, or are an allowed meta field such as __typename. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/FieldsOnCorrectTypeRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/FieldsOnCorrectTypeRule.ts). \ No newline at end of file diff --git a/docs/rules/fragments-on-composite-type.md b/docs/rules/fragments-on-composite-type.md index f5039c52b0b..5f53911fc65 100644 --- a/docs/rules/fragments-on-composite-type.md +++ b/docs/rules/fragments-on-composite-type.md @@ -7,4 +7,4 @@ Fragments use a type condition to determine if they apply, since fragments can only be spread into a composite type (object, interface, or union), the type condition must also be a composite type. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/FragmentsOnCompositeTypesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/FragmentsOnCompositeTypesRule.ts). \ No newline at end of file diff --git a/docs/rules/known-argument-names.md b/docs/rules/known-argument-names.md index dcf53ec7a1e..049418b1deb 100644 --- a/docs/rules/known-argument-names.md +++ b/docs/rules/known-argument-names.md @@ -7,4 +7,4 @@ A GraphQL field is only valid if all supplied arguments are defined by that field. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/KnownArgumentNamesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/KnownArgumentNamesRule.ts). \ No newline at end of file diff --git a/docs/rules/known-directives.md b/docs/rules/known-directives.md index a9aba08e121..d850f790ad8 100644 --- a/docs/rules/known-directives.md +++ b/docs/rules/known-directives.md @@ -7,4 +7,4 @@ A GraphQL document is only valid if all `@directives` are known by the schema and legally positioned. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/KnownDirectivesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/KnownDirectivesRule.ts). \ No newline at end of file diff --git a/docs/rules/known-fragment-names.md b/docs/rules/known-fragment-names.md index d8eddb6d2e3..36e420270ed 100644 --- a/docs/rules/known-fragment-names.md +++ b/docs/rules/known-fragment-names.md @@ -7,4 +7,4 @@ A GraphQL document is only valid if all `...Fragment` fragment spreads refer to fragments defined in the same document. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/KnownFragmentNamesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/KnownFragmentNamesRule.ts). \ No newline at end of file diff --git a/docs/rules/known-type-names.md b/docs/rules/known-type-names.md index 5d95e59c210..f99ae81075f 100644 --- a/docs/rules/known-type-names.md +++ b/docs/rules/known-type-names.md @@ -7,4 +7,4 @@ A GraphQL document is only valid if referenced types (specifically variable definitions and fragment conditions) are defined by the type schema. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/KnownTypeNamesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/KnownTypeNamesRule.ts). \ No newline at end of file diff --git a/docs/rules/lone-anonymous-operation.md b/docs/rules/lone-anonymous-operation.md index f17474a5287..9138a66b34e 100644 --- a/docs/rules/lone-anonymous-operation.md +++ b/docs/rules/lone-anonymous-operation.md @@ -7,4 +7,4 @@ A GraphQL document is only valid if when it contains an anonymous operation (the query short-hand) that it contains only that one operation definition. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/LoneAnonymousOperationRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/LoneAnonymousOperationRule.ts). \ No newline at end of file diff --git a/docs/rules/lone-schema-definition.md b/docs/rules/lone-schema-definition.md index bbfe7d9a470..c3d3da5beb5 100644 --- a/docs/rules/lone-schema-definition.md +++ b/docs/rules/lone-schema-definition.md @@ -7,4 +7,4 @@ A GraphQL document is only valid if it contains only one schema definition. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/LoneSchemaDefinitionRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/LoneSchemaDefinitionRule.ts). \ No newline at end of file diff --git a/docs/rules/no-fragment-cycles.md b/docs/rules/no-fragment-cycles.md index a1c40c3feab..d91a38cba5c 100644 --- a/docs/rules/no-fragment-cycles.md +++ b/docs/rules/no-fragment-cycles.md @@ -7,4 +7,4 @@ A GraphQL fragment is only valid when it does not have cycles in fragments usage. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/NoFragmentCyclesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/NoFragmentCyclesRule.ts). \ No newline at end of file diff --git a/docs/rules/no-undefined-variables.md b/docs/rules/no-undefined-variables.md index 4e68ff0df39..8f88dccb4ed 100644 --- a/docs/rules/no-undefined-variables.md +++ b/docs/rules/no-undefined-variables.md @@ -7,4 +7,4 @@ A GraphQL operation is only valid if all variables encountered, both directly and via fragment spreads, are defined by that operation. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/NoUndefinedVariablesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/NoUndefinedVariablesRule.ts). \ No newline at end of file diff --git a/docs/rules/no-unused-fragments.md b/docs/rules/no-unused-fragments.md index 6cac288ac7c..4949bee549c 100644 --- a/docs/rules/no-unused-fragments.md +++ b/docs/rules/no-unused-fragments.md @@ -7,4 +7,4 @@ A GraphQL document is only valid if all fragment definitions are spread within operations, or spread within other fragments spread within operations. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/NoUnusedFragmentsRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/NoUnusedFragmentsRule.ts). \ No newline at end of file diff --git a/docs/rules/no-unused-variables.md b/docs/rules/no-unused-variables.md index fd69d0a6bbe..00725ad7648 100644 --- a/docs/rules/no-unused-variables.md +++ b/docs/rules/no-unused-variables.md @@ -7,4 +7,4 @@ A GraphQL operation is only valid if all variables defined by an operation are used, either directly or within a spread fragment. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/NoUnusedVariablesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/NoUnusedVariablesRule.ts). \ No newline at end of file diff --git a/docs/rules/one-field-subscriptions.md b/docs/rules/one-field-subscriptions.md index 7271ed65afd..9522db2dc7b 100644 --- a/docs/rules/one-field-subscriptions.md +++ b/docs/rules/one-field-subscriptions.md @@ -7,4 +7,4 @@ A GraphQL subscription is valid only if it contains a single root field. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/SingleFieldSubscriptionsRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/SingleFieldSubscriptionsRule.ts). \ No newline at end of file diff --git a/docs/rules/overlapping-fields-can-be-merged.md b/docs/rules/overlapping-fields-can-be-merged.md index 730eff171f2..20254d38897 100644 --- a/docs/rules/overlapping-fields-can-be-merged.md +++ b/docs/rules/overlapping-fields-can-be-merged.md @@ -7,4 +7,4 @@ A selection set is only valid if all fields (including spreading any fragments) either correspond to distinct response names or can be merged without ambiguity. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/OverlappingFieldsCanBeMergedRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/OverlappingFieldsCanBeMergedRule.ts). \ No newline at end of file diff --git a/docs/rules/possible-fragment-spread.md b/docs/rules/possible-fragment-spread.md index d624405385e..d6a7d8898ee 100644 --- a/docs/rules/possible-fragment-spread.md +++ b/docs/rules/possible-fragment-spread.md @@ -7,4 +7,4 @@ A fragment spread is only valid if the type condition could ever possibly be true: if there is a non-empty intersection of the possible parent types, and possible types which pass the type condition. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/PossibleFragmentSpreadsRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/PossibleFragmentSpreadsRule.ts). \ No newline at end of file diff --git a/docs/rules/possible-type-extension.md b/docs/rules/possible-type-extension.md index bd5c8a2f849..8e98edc6082 100644 --- a/docs/rules/possible-type-extension.md +++ b/docs/rules/possible-type-extension.md @@ -7,4 +7,4 @@ A type extension is only valid if the type is defined and has the same kind. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/PossibleTypeExtensionsRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/PossibleTypeExtensionsRule.ts). \ No newline at end of file diff --git a/docs/rules/provided-required-arguments.md b/docs/rules/provided-required-arguments.md index 13bd1a5cc1a..c3b6b35123c 100644 --- a/docs/rules/provided-required-arguments.md +++ b/docs/rules/provided-required-arguments.md @@ -7,4 +7,4 @@ A field or directive is only valid if all required (non-null without a default value) field arguments have been provided. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/ProvidedRequiredArgumentsRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/ProvidedRequiredArgumentsRule.ts). \ No newline at end of file diff --git a/docs/rules/scalar-leafs.md b/docs/rules/scalar-leafs.md index 5af22cc2983..e7d09bb303a 100644 --- a/docs/rules/scalar-leafs.md +++ b/docs/rules/scalar-leafs.md @@ -7,4 +7,4 @@ A GraphQL document is valid only if all leaf fields (fields without sub selections) are of scalar or enum types. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/ScalarLeafsRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/ScalarLeafsRule.ts). \ No newline at end of file diff --git a/docs/rules/unique-argument-names.md b/docs/rules/unique-argument-names.md index f4de3e55039..5ab8bf4e4a5 100644 --- a/docs/rules/unique-argument-names.md +++ b/docs/rules/unique-argument-names.md @@ -7,4 +7,4 @@ A GraphQL field or directive is only valid if all supplied arguments are uniquely named. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueArgumentNamesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueArgumentNamesRule.ts). \ No newline at end of file diff --git a/docs/rules/unique-directive-names-per-location.md b/docs/rules/unique-directive-names-per-location.md index 424f4c71893..16aad1966e2 100644 --- a/docs/rules/unique-directive-names-per-location.md +++ b/docs/rules/unique-directive-names-per-location.md @@ -7,4 +7,4 @@ A GraphQL document is only valid if all non-repeatable directives at a given location are uniquely named. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueDirectivesPerLocationRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueDirectivesPerLocationRule.ts). \ No newline at end of file diff --git a/docs/rules/unique-directive-names.md b/docs/rules/unique-directive-names.md index f1d6383dae3..b6fddaa83c2 100644 --- a/docs/rules/unique-directive-names.md +++ b/docs/rules/unique-directive-names.md @@ -7,4 +7,4 @@ A GraphQL document is only valid if all defined directives have unique names. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueDirectiveNamesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueDirectiveNamesRule.ts). \ No newline at end of file diff --git a/docs/rules/unique-enum-value-names.md b/docs/rules/unique-enum-value-names.md index b611037acff..c54bcf8d968 100644 --- a/docs/rules/unique-enum-value-names.md +++ b/docs/rules/unique-enum-value-names.md @@ -7,4 +7,4 @@ A GraphQL enum type is only valid if all its values are uniquely named. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueEnumValueNamesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueEnumValueNamesRule.ts). \ No newline at end of file diff --git a/docs/rules/unique-field-definition-names.md b/docs/rules/unique-field-definition-names.md index 7209a2441b6..fe1f85879ea 100644 --- a/docs/rules/unique-field-definition-names.md +++ b/docs/rules/unique-field-definition-names.md @@ -7,4 +7,4 @@ A GraphQL complex type is only valid if all its fields are uniquely named. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueFieldDefinitionNamesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueFieldDefinitionNamesRule.ts). \ No newline at end of file diff --git a/docs/rules/unique-input-field-names.md b/docs/rules/unique-input-field-names.md index 8a7bb745097..64c182df575 100644 --- a/docs/rules/unique-input-field-names.md +++ b/docs/rules/unique-input-field-names.md @@ -7,4 +7,4 @@ A GraphQL input object value is only valid if all supplied fields are uniquely named. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueInputFieldNamesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueInputFieldNamesRule.ts). \ No newline at end of file diff --git a/docs/rules/unique-operation-types.md b/docs/rules/unique-operation-types.md index 4fd34b75612..01427b10315 100644 --- a/docs/rules/unique-operation-types.md +++ b/docs/rules/unique-operation-types.md @@ -7,4 +7,4 @@ A GraphQL document is only valid if it has only one type per operation. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueOperationTypesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueOperationTypesRule.ts). \ No newline at end of file diff --git a/docs/rules/unique-type-names.md b/docs/rules/unique-type-names.md index 7af5591ed60..9682627dc07 100644 --- a/docs/rules/unique-type-names.md +++ b/docs/rules/unique-type-names.md @@ -7,4 +7,4 @@ A GraphQL document is only valid if all defined types have unique names. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueTypeNamesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueTypeNamesRule.ts). \ No newline at end of file diff --git a/docs/rules/unique-variable-names.md b/docs/rules/unique-variable-names.md index 1f510dbeda2..03fb81c41ee 100644 --- a/docs/rules/unique-variable-names.md +++ b/docs/rules/unique-variable-names.md @@ -7,4 +7,4 @@ A GraphQL operation is only valid if all its variables are uniquely named. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueVariableNamesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/UniqueVariableNamesRule.ts). \ No newline at end of file diff --git a/docs/rules/value-literals-of-correct-type.md b/docs/rules/value-literals-of-correct-type.md index 49815cb12fd..a1b64af8182 100644 --- a/docs/rules/value-literals-of-correct-type.md +++ b/docs/rules/value-literals-of-correct-type.md @@ -7,4 +7,4 @@ A GraphQL document is only valid if all value literals are of the type expected at their position. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/ValuesOfCorrectTypeRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/ValuesOfCorrectTypeRule.ts). \ No newline at end of file diff --git a/docs/rules/variables-are-input-types.md b/docs/rules/variables-are-input-types.md index 73b456305b6..6d94708de6a 100644 --- a/docs/rules/variables-are-input-types.md +++ b/docs/rules/variables-are-input-types.md @@ -7,4 +7,4 @@ A GraphQL operation is only valid if all the variables it defines are of input types (scalar, enum, or input object). -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/VariablesAreInputTypesRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/VariablesAreInputTypesRule.ts). \ No newline at end of file diff --git a/docs/rules/variables-in-allowed-position.md b/docs/rules/variables-in-allowed-position.md index 0f00bba6410..e5258cbc06b 100644 --- a/docs/rules/variables-in-allowed-position.md +++ b/docs/rules/variables-in-allowed-position.md @@ -7,4 +7,4 @@ Variables passed to field arguments conform to type. -> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/VariablesInAllowedPositionRule.js). \ No newline at end of file +> This rule is a wrapper around a `graphql-js` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/VariablesInAllowedPositionRule.ts). \ No newline at end of file diff --git a/packages/plugin/src/rules/graphql-js-validation.ts b/packages/plugin/src/rules/graphql-js-validation.ts index 849406c6d95..ba9c2cb384c 100644 --- a/packages/plugin/src/rules/graphql-js-validation.ts +++ b/packages/plugin/src/rules/graphql-js-validation.ts @@ -74,7 +74,7 @@ const validationToRule = ( ...meta.docs, description: meta.docs.description + - `\n\n> This rule is a wrapper around a \`graphql-js\` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/${ruleName}Rule.js).`, + `\n\n> This rule is a wrapper around a \`graphql-js\` validation function. [You can find it's source code here](https://github.com/graphql/graphql-js/blob/main/src/validation/rules/${ruleName}Rule.ts).`, }, }, create: context => {