From 4615d3b4da2d253133058a90c7e4a3501f48d7e1 Mon Sep 17 00:00:00 2001 From: Dimitri POSTOLOV Date: Mon, 18 Nov 2024 01:57:35 +0700 Subject: [PATCH] use mdx --- scripts/generate-docs.ts | 2 +- .../rules/{alphabetize.md => alphabetize.mdx} | 0 website/src/pages/rules/deprecated-rules.md | 32 ------------------- ...ription-style.md => description-style.mdx} | 0 ...initions.md => executable-definitions.mdx} | 0 ...ect-type.md => fields-on-correct-type.mdx} | 0 ...ype.md => fragments-on-composite-type.mdx} | 0 .../rules/{input-name.md => input-name.mdx} | 0 ...ment-names.md => known-argument-names.mdx} | 0 ...own-directives.md => known-directives.mdx} | 0 ...ment-names.md => known-fragment-names.mdx} | 0 ...own-type-names.md => known-type-names.mdx} | 0 ...ration.md => lone-anonymous-operation.mdx} | 0 ...tion.md => lone-executable-definition.mdx} | 0 ...finition.md => lone-schema-definition.mdx} | 0 ...ilename.md => match-document-filename.mdx} | 0 ...ng-convention.md => naming-convention.mdx} | 0 ...rations.md => no-anonymous-operations.mdx} | 0 .../{no-deprecated.md => no-deprecated.mdx} | 0 ...cate-fields.md => no-duplicate-fields.mdx} | 0 ...gment-cycles.md => no-fragment-cycles.mdx} | 0 ...cription.md => no-hashtag-description.mdx} | 0 ...ragments.md => no-one-place-fragments.mdx} | 0 .../{no-root-type.md => no-root-type.mdx} | 0 ... => no-scalar-result-type-on-mutation.mdx} | 0 ...ename-prefix.md => no-typename-prefix.mdx} | 0 ...ariables.md => no-undefined-variables.mdx} | 0 ...able-types.md => no-unreachable-types.mdx} | 0 ...-unused-fields.md => no-unused-fields.mdx} | 0 ...d-fragments.md => no-unused-fragments.mdx} | 0 ...d-variables.md => no-unused-variables.mdx} | 0 ...iptions.md => one-field-subscriptions.mdx} | 0 ...d => overlapping-fields-can-be-merged.mdx} | 0 ...spread.md => possible-fragment-spread.mdx} | 0 ...tension.md => possible-type-extension.mdx} | 0 website/src/pages/rules/prettier.md | 28 ---------------- ...nts.md => provided-required-arguments.mdx} | 0 ...relay-arguments.md => relay-arguments.mdx} | 0 ...on-types.md => relay-connection-types.mdx} | 0 ...lay-edge-types.md => relay-edge-types.mdx} | 0 ...relay-page-info.md => relay-page-info.mdx} | 0 ...n-date.md => require-deprecation-date.mdx} | 0 ...ason.md => require-deprecation-reason.mdx} | 0 ...description.md => require-description.mdx} | 0 ...ield-of-type-query-in-mutation-result.mdx} | 0 ...ragment.md => require-import-fragment.mdx} | 0 ...=> require-nullable-fields-with-oneof.mdx} | 0 ...md => require-nullable-result-in-root.mdx} | 0 ...e-selections.md => require-selections.mdx} | 0 ...md => require-type-pattern-with-oneof.mdx} | 0 .../{scalar-leafs.md => scalar-leafs.mdx} | 0 ...n-set-depth.md => selection-set-depth.mdx} | 0 ...-id-in-types.md => strict-id-in-types.mdx} | 0 ...ent-names.md => unique-argument-names.mdx} | 0 ...> unique-directive-names-per-location.mdx} | 0 ...ve-names.md => unique-directive-names.mdx} | 0 ...e-names.md => unique-enum-value-names.mdx} | 0 ...s.md => unique-field-definition-names.mdx} | 0 ...gment-name.md => unique-fragment-name.mdx} | 0 ...-names.md => unique-input-field-names.mdx} | 0 ...tion-name.md => unique-operation-name.mdx} | 0 ...on-types.md => unique-operation-types.mdx} | 0 ...ue-type-names.md => unique-type-names.mdx} | 0 ...ble-names.md => unique-variable-names.mdx} | 0 ....md => value-literals-of-correct-type.mdx} | 0 ...types.md => variables-are-input-types.mdx} | 0 ...n.md => variables-in-allowed-position.mdx} | 0 67 files changed, 1 insertion(+), 61 deletions(-) rename website/src/pages/rules/{alphabetize.md => alphabetize.mdx} (100%) delete mode 100644 website/src/pages/rules/deprecated-rules.md rename website/src/pages/rules/{description-style.md => description-style.mdx} (100%) rename website/src/pages/rules/{executable-definitions.md => executable-definitions.mdx} (100%) rename website/src/pages/rules/{fields-on-correct-type.md => fields-on-correct-type.mdx} (100%) rename website/src/pages/rules/{fragments-on-composite-type.md => fragments-on-composite-type.mdx} (100%) rename website/src/pages/rules/{input-name.md => input-name.mdx} (100%) rename website/src/pages/rules/{known-argument-names.md => known-argument-names.mdx} (100%) rename website/src/pages/rules/{known-directives.md => known-directives.mdx} (100%) rename website/src/pages/rules/{known-fragment-names.md => known-fragment-names.mdx} (100%) rename website/src/pages/rules/{known-type-names.md => known-type-names.mdx} (100%) rename website/src/pages/rules/{lone-anonymous-operation.md => lone-anonymous-operation.mdx} (100%) rename website/src/pages/rules/{lone-executable-definition.md => lone-executable-definition.mdx} (100%) rename website/src/pages/rules/{lone-schema-definition.md => lone-schema-definition.mdx} (100%) rename website/src/pages/rules/{match-document-filename.md => match-document-filename.mdx} (100%) rename website/src/pages/rules/{naming-convention.md => naming-convention.mdx} (100%) rename website/src/pages/rules/{no-anonymous-operations.md => no-anonymous-operations.mdx} (100%) rename website/src/pages/rules/{no-deprecated.md => no-deprecated.mdx} (100%) rename website/src/pages/rules/{no-duplicate-fields.md => no-duplicate-fields.mdx} (100%) rename website/src/pages/rules/{no-fragment-cycles.md => no-fragment-cycles.mdx} (100%) rename website/src/pages/rules/{no-hashtag-description.md => no-hashtag-description.mdx} (100%) rename website/src/pages/rules/{no-one-place-fragments.md => no-one-place-fragments.mdx} (100%) rename website/src/pages/rules/{no-root-type.md => no-root-type.mdx} (100%) rename website/src/pages/rules/{no-scalar-result-type-on-mutation.md => no-scalar-result-type-on-mutation.mdx} (100%) rename website/src/pages/rules/{no-typename-prefix.md => no-typename-prefix.mdx} (100%) rename website/src/pages/rules/{no-undefined-variables.md => no-undefined-variables.mdx} (100%) rename website/src/pages/rules/{no-unreachable-types.md => no-unreachable-types.mdx} (100%) rename website/src/pages/rules/{no-unused-fields.md => no-unused-fields.mdx} (100%) rename website/src/pages/rules/{no-unused-fragments.md => no-unused-fragments.mdx} (100%) rename website/src/pages/rules/{no-unused-variables.md => no-unused-variables.mdx} (100%) rename website/src/pages/rules/{one-field-subscriptions.md => one-field-subscriptions.mdx} (100%) rename website/src/pages/rules/{overlapping-fields-can-be-merged.md => overlapping-fields-can-be-merged.mdx} (100%) rename website/src/pages/rules/{possible-fragment-spread.md => possible-fragment-spread.mdx} (100%) rename website/src/pages/rules/{possible-type-extension.md => possible-type-extension.mdx} (100%) delete mode 100644 website/src/pages/rules/prettier.md rename website/src/pages/rules/{provided-required-arguments.md => provided-required-arguments.mdx} (100%) rename website/src/pages/rules/{relay-arguments.md => relay-arguments.mdx} (100%) rename website/src/pages/rules/{relay-connection-types.md => relay-connection-types.mdx} (100%) rename website/src/pages/rules/{relay-edge-types.md => relay-edge-types.mdx} (100%) rename website/src/pages/rules/{relay-page-info.md => relay-page-info.mdx} (100%) rename website/src/pages/rules/{require-deprecation-date.md => require-deprecation-date.mdx} (100%) rename website/src/pages/rules/{require-deprecation-reason.md => require-deprecation-reason.mdx} (100%) rename website/src/pages/rules/{require-description.md => require-description.mdx} (100%) rename website/src/pages/rules/{require-field-of-type-query-in-mutation-result.md => require-field-of-type-query-in-mutation-result.mdx} (100%) rename website/src/pages/rules/{require-import-fragment.md => require-import-fragment.mdx} (100%) rename website/src/pages/rules/{require-nullable-fields-with-oneof.md => require-nullable-fields-with-oneof.mdx} (100%) rename website/src/pages/rules/{require-nullable-result-in-root.md => require-nullable-result-in-root.mdx} (100%) rename website/src/pages/rules/{require-selections.md => require-selections.mdx} (100%) rename website/src/pages/rules/{require-type-pattern-with-oneof.md => require-type-pattern-with-oneof.mdx} (100%) rename website/src/pages/rules/{scalar-leafs.md => scalar-leafs.mdx} (100%) rename website/src/pages/rules/{selection-set-depth.md => selection-set-depth.mdx} (100%) rename website/src/pages/rules/{strict-id-in-types.md => strict-id-in-types.mdx} (100%) rename website/src/pages/rules/{unique-argument-names.md => unique-argument-names.mdx} (100%) rename website/src/pages/rules/{unique-directive-names-per-location.md => unique-directive-names-per-location.mdx} (100%) rename website/src/pages/rules/{unique-directive-names.md => unique-directive-names.mdx} (100%) rename website/src/pages/rules/{unique-enum-value-names.md => unique-enum-value-names.mdx} (100%) rename website/src/pages/rules/{unique-field-definition-names.md => unique-field-definition-names.mdx} (100%) rename website/src/pages/rules/{unique-fragment-name.md => unique-fragment-name.mdx} (100%) rename website/src/pages/rules/{unique-input-field-names.md => unique-input-field-names.mdx} (100%) rename website/src/pages/rules/{unique-operation-name.md => unique-operation-name.mdx} (100%) rename website/src/pages/rules/{unique-operation-types.md => unique-operation-types.mdx} (100%) rename website/src/pages/rules/{unique-type-names.md => unique-type-names.mdx} (100%) rename website/src/pages/rules/{unique-variable-names.md => unique-variable-names.mdx} (100%) rename website/src/pages/rules/{value-literals-of-correct-type.md => value-literals-of-correct-type.mdx} (100%) rename website/src/pages/rules/{variables-are-input-types.md => variables-are-input-types.mdx} (100%) rename website/src/pages/rules/{variables-in-allowed-position.md => variables-in-allowed-position.mdx} (100%) diff --git a/scripts/generate-docs.ts b/scripts/generate-docs.ts index 74130cfae25..2e20745b3a3 100644 --- a/scripts/generate-docs.ts +++ b/scripts/generate-docs.ts @@ -156,7 +156,7 @@ async function generateDocs(): Promise { ); } return { - path: resolve(RULES_PATH, `${ruleName}.md`), + path: resolve(RULES_PATH, `${ruleName}.mdx`), content: blocks.join('\n'), }; }); diff --git a/website/src/pages/rules/alphabetize.md b/website/src/pages/rules/alphabetize.mdx similarity index 100% rename from website/src/pages/rules/alphabetize.md rename to website/src/pages/rules/alphabetize.mdx diff --git a/website/src/pages/rules/deprecated-rules.md b/website/src/pages/rules/deprecated-rules.md deleted file mode 100644 index 94c532c1033..00000000000 --- a/website/src/pages/rules/deprecated-rules.md +++ /dev/null @@ -1,32 +0,0 @@ -# Deprecated Rules - -## `avoid-duplicate-fields` - -This rule was renamed to [`no-duplicate-fields`](/rules/no-duplicate-fields). - -## `avoid-scalar-result-type-on-mutation` - -This rule was renamed to -[`no-scalar-result-type-on-mutation`](/rules/no-scalar-result-type-on-mutation). - -## `avoid-typename-prefix` - -This rule was renamed to [`no-typename-prefix`](/rules/no-typename-prefix). - -## `avoid-operation-name-prefix` - -This rule was removed because the same things can be validated using -[`naming-convention`](/rules/naming-convention). - -## `no-operation-name-suffix` - -This rule was removed because the same things can be validated using -[`naming-convention`](/rules/naming-convention). - -## `require-id-when-available` - -This rule was renamed to [`require-selections`](/rules/require-selections). - -## `no-case-insensitive-enum-values-duplicates` - -This rule was renamed to [`unique-enum-value-names`](/rules/unique-enum-value-names). diff --git a/website/src/pages/rules/description-style.md b/website/src/pages/rules/description-style.mdx similarity index 100% rename from website/src/pages/rules/description-style.md rename to website/src/pages/rules/description-style.mdx diff --git a/website/src/pages/rules/executable-definitions.md b/website/src/pages/rules/executable-definitions.mdx similarity index 100% rename from website/src/pages/rules/executable-definitions.md rename to website/src/pages/rules/executable-definitions.mdx diff --git a/website/src/pages/rules/fields-on-correct-type.md b/website/src/pages/rules/fields-on-correct-type.mdx similarity index 100% rename from website/src/pages/rules/fields-on-correct-type.md rename to website/src/pages/rules/fields-on-correct-type.mdx diff --git a/website/src/pages/rules/fragments-on-composite-type.md b/website/src/pages/rules/fragments-on-composite-type.mdx similarity index 100% rename from website/src/pages/rules/fragments-on-composite-type.md rename to website/src/pages/rules/fragments-on-composite-type.mdx diff --git a/website/src/pages/rules/input-name.md b/website/src/pages/rules/input-name.mdx similarity index 100% rename from website/src/pages/rules/input-name.md rename to website/src/pages/rules/input-name.mdx diff --git a/website/src/pages/rules/known-argument-names.md b/website/src/pages/rules/known-argument-names.mdx similarity index 100% rename from website/src/pages/rules/known-argument-names.md rename to website/src/pages/rules/known-argument-names.mdx diff --git a/website/src/pages/rules/known-directives.md b/website/src/pages/rules/known-directives.mdx similarity index 100% rename from website/src/pages/rules/known-directives.md rename to website/src/pages/rules/known-directives.mdx diff --git a/website/src/pages/rules/known-fragment-names.md b/website/src/pages/rules/known-fragment-names.mdx similarity index 100% rename from website/src/pages/rules/known-fragment-names.md rename to website/src/pages/rules/known-fragment-names.mdx diff --git a/website/src/pages/rules/known-type-names.md b/website/src/pages/rules/known-type-names.mdx similarity index 100% rename from website/src/pages/rules/known-type-names.md rename to website/src/pages/rules/known-type-names.mdx diff --git a/website/src/pages/rules/lone-anonymous-operation.md b/website/src/pages/rules/lone-anonymous-operation.mdx similarity index 100% rename from website/src/pages/rules/lone-anonymous-operation.md rename to website/src/pages/rules/lone-anonymous-operation.mdx diff --git a/website/src/pages/rules/lone-executable-definition.md b/website/src/pages/rules/lone-executable-definition.mdx similarity index 100% rename from website/src/pages/rules/lone-executable-definition.md rename to website/src/pages/rules/lone-executable-definition.mdx diff --git a/website/src/pages/rules/lone-schema-definition.md b/website/src/pages/rules/lone-schema-definition.mdx similarity index 100% rename from website/src/pages/rules/lone-schema-definition.md rename to website/src/pages/rules/lone-schema-definition.mdx diff --git a/website/src/pages/rules/match-document-filename.md b/website/src/pages/rules/match-document-filename.mdx similarity index 100% rename from website/src/pages/rules/match-document-filename.md rename to website/src/pages/rules/match-document-filename.mdx diff --git a/website/src/pages/rules/naming-convention.md b/website/src/pages/rules/naming-convention.mdx similarity index 100% rename from website/src/pages/rules/naming-convention.md rename to website/src/pages/rules/naming-convention.mdx diff --git a/website/src/pages/rules/no-anonymous-operations.md b/website/src/pages/rules/no-anonymous-operations.mdx similarity index 100% rename from website/src/pages/rules/no-anonymous-operations.md rename to website/src/pages/rules/no-anonymous-operations.mdx diff --git a/website/src/pages/rules/no-deprecated.md b/website/src/pages/rules/no-deprecated.mdx similarity index 100% rename from website/src/pages/rules/no-deprecated.md rename to website/src/pages/rules/no-deprecated.mdx diff --git a/website/src/pages/rules/no-duplicate-fields.md b/website/src/pages/rules/no-duplicate-fields.mdx similarity index 100% rename from website/src/pages/rules/no-duplicate-fields.md rename to website/src/pages/rules/no-duplicate-fields.mdx diff --git a/website/src/pages/rules/no-fragment-cycles.md b/website/src/pages/rules/no-fragment-cycles.mdx similarity index 100% rename from website/src/pages/rules/no-fragment-cycles.md rename to website/src/pages/rules/no-fragment-cycles.mdx diff --git a/website/src/pages/rules/no-hashtag-description.md b/website/src/pages/rules/no-hashtag-description.mdx similarity index 100% rename from website/src/pages/rules/no-hashtag-description.md rename to website/src/pages/rules/no-hashtag-description.mdx diff --git a/website/src/pages/rules/no-one-place-fragments.md b/website/src/pages/rules/no-one-place-fragments.mdx similarity index 100% rename from website/src/pages/rules/no-one-place-fragments.md rename to website/src/pages/rules/no-one-place-fragments.mdx diff --git a/website/src/pages/rules/no-root-type.md b/website/src/pages/rules/no-root-type.mdx similarity index 100% rename from website/src/pages/rules/no-root-type.md rename to website/src/pages/rules/no-root-type.mdx diff --git a/website/src/pages/rules/no-scalar-result-type-on-mutation.md b/website/src/pages/rules/no-scalar-result-type-on-mutation.mdx similarity index 100% rename from website/src/pages/rules/no-scalar-result-type-on-mutation.md rename to website/src/pages/rules/no-scalar-result-type-on-mutation.mdx diff --git a/website/src/pages/rules/no-typename-prefix.md b/website/src/pages/rules/no-typename-prefix.mdx similarity index 100% rename from website/src/pages/rules/no-typename-prefix.md rename to website/src/pages/rules/no-typename-prefix.mdx diff --git a/website/src/pages/rules/no-undefined-variables.md b/website/src/pages/rules/no-undefined-variables.mdx similarity index 100% rename from website/src/pages/rules/no-undefined-variables.md rename to website/src/pages/rules/no-undefined-variables.mdx diff --git a/website/src/pages/rules/no-unreachable-types.md b/website/src/pages/rules/no-unreachable-types.mdx similarity index 100% rename from website/src/pages/rules/no-unreachable-types.md rename to website/src/pages/rules/no-unreachable-types.mdx diff --git a/website/src/pages/rules/no-unused-fields.md b/website/src/pages/rules/no-unused-fields.mdx similarity index 100% rename from website/src/pages/rules/no-unused-fields.md rename to website/src/pages/rules/no-unused-fields.mdx diff --git a/website/src/pages/rules/no-unused-fragments.md b/website/src/pages/rules/no-unused-fragments.mdx similarity index 100% rename from website/src/pages/rules/no-unused-fragments.md rename to website/src/pages/rules/no-unused-fragments.mdx diff --git a/website/src/pages/rules/no-unused-variables.md b/website/src/pages/rules/no-unused-variables.mdx similarity index 100% rename from website/src/pages/rules/no-unused-variables.md rename to website/src/pages/rules/no-unused-variables.mdx diff --git a/website/src/pages/rules/one-field-subscriptions.md b/website/src/pages/rules/one-field-subscriptions.mdx similarity index 100% rename from website/src/pages/rules/one-field-subscriptions.md rename to website/src/pages/rules/one-field-subscriptions.mdx diff --git a/website/src/pages/rules/overlapping-fields-can-be-merged.md b/website/src/pages/rules/overlapping-fields-can-be-merged.mdx similarity index 100% rename from website/src/pages/rules/overlapping-fields-can-be-merged.md rename to website/src/pages/rules/overlapping-fields-can-be-merged.mdx diff --git a/website/src/pages/rules/possible-fragment-spread.md b/website/src/pages/rules/possible-fragment-spread.mdx similarity index 100% rename from website/src/pages/rules/possible-fragment-spread.md rename to website/src/pages/rules/possible-fragment-spread.mdx diff --git a/website/src/pages/rules/possible-type-extension.md b/website/src/pages/rules/possible-type-extension.mdx similarity index 100% rename from website/src/pages/rules/possible-type-extension.md rename to website/src/pages/rules/possible-type-extension.mdx diff --git a/website/src/pages/rules/prettier.md b/website/src/pages/rules/prettier.md deleted file mode 100644 index 8c42d032d6e..00000000000 --- a/website/src/pages/rules/prettier.md +++ /dev/null @@ -1,28 +0,0 @@ -# `prettier` Rule - -`eslint-plugin-prettier` supports `.graphql` files, and `v4.1.0` supports `graphql` blocks even -better. You need to do the following: - -```json filename=".eslintrc.json" -{ - "overrides": [ - { - "files": ["*.js"], - "processor": "@graphql-eslint/graphql", - "extends": ["plugin:prettier/recommended"] - }, - { - "files": ["*.graphql"], - "parser": "@graphql-eslint/eslint-plugin", - "plugins": ["@graphql-eslint"], - "rules": { - "prettier/prettier": "error" - } - } - ] -} -``` - -You can take -[`this repository`](https://github.com/B2o5T/graphql-eslint/tree/master/examples/prettier) as -example. diff --git a/website/src/pages/rules/provided-required-arguments.md b/website/src/pages/rules/provided-required-arguments.mdx similarity index 100% rename from website/src/pages/rules/provided-required-arguments.md rename to website/src/pages/rules/provided-required-arguments.mdx diff --git a/website/src/pages/rules/relay-arguments.md b/website/src/pages/rules/relay-arguments.mdx similarity index 100% rename from website/src/pages/rules/relay-arguments.md rename to website/src/pages/rules/relay-arguments.mdx diff --git a/website/src/pages/rules/relay-connection-types.md b/website/src/pages/rules/relay-connection-types.mdx similarity index 100% rename from website/src/pages/rules/relay-connection-types.md rename to website/src/pages/rules/relay-connection-types.mdx diff --git a/website/src/pages/rules/relay-edge-types.md b/website/src/pages/rules/relay-edge-types.mdx similarity index 100% rename from website/src/pages/rules/relay-edge-types.md rename to website/src/pages/rules/relay-edge-types.mdx diff --git a/website/src/pages/rules/relay-page-info.md b/website/src/pages/rules/relay-page-info.mdx similarity index 100% rename from website/src/pages/rules/relay-page-info.md rename to website/src/pages/rules/relay-page-info.mdx diff --git a/website/src/pages/rules/require-deprecation-date.md b/website/src/pages/rules/require-deprecation-date.mdx similarity index 100% rename from website/src/pages/rules/require-deprecation-date.md rename to website/src/pages/rules/require-deprecation-date.mdx diff --git a/website/src/pages/rules/require-deprecation-reason.md b/website/src/pages/rules/require-deprecation-reason.mdx similarity index 100% rename from website/src/pages/rules/require-deprecation-reason.md rename to website/src/pages/rules/require-deprecation-reason.mdx diff --git a/website/src/pages/rules/require-description.md b/website/src/pages/rules/require-description.mdx similarity index 100% rename from website/src/pages/rules/require-description.md rename to website/src/pages/rules/require-description.mdx diff --git a/website/src/pages/rules/require-field-of-type-query-in-mutation-result.md b/website/src/pages/rules/require-field-of-type-query-in-mutation-result.mdx similarity index 100% rename from website/src/pages/rules/require-field-of-type-query-in-mutation-result.md rename to website/src/pages/rules/require-field-of-type-query-in-mutation-result.mdx diff --git a/website/src/pages/rules/require-import-fragment.md b/website/src/pages/rules/require-import-fragment.mdx similarity index 100% rename from website/src/pages/rules/require-import-fragment.md rename to website/src/pages/rules/require-import-fragment.mdx diff --git a/website/src/pages/rules/require-nullable-fields-with-oneof.md b/website/src/pages/rules/require-nullable-fields-with-oneof.mdx similarity index 100% rename from website/src/pages/rules/require-nullable-fields-with-oneof.md rename to website/src/pages/rules/require-nullable-fields-with-oneof.mdx diff --git a/website/src/pages/rules/require-nullable-result-in-root.md b/website/src/pages/rules/require-nullable-result-in-root.mdx similarity index 100% rename from website/src/pages/rules/require-nullable-result-in-root.md rename to website/src/pages/rules/require-nullable-result-in-root.mdx diff --git a/website/src/pages/rules/require-selections.md b/website/src/pages/rules/require-selections.mdx similarity index 100% rename from website/src/pages/rules/require-selections.md rename to website/src/pages/rules/require-selections.mdx diff --git a/website/src/pages/rules/require-type-pattern-with-oneof.md b/website/src/pages/rules/require-type-pattern-with-oneof.mdx similarity index 100% rename from website/src/pages/rules/require-type-pattern-with-oneof.md rename to website/src/pages/rules/require-type-pattern-with-oneof.mdx diff --git a/website/src/pages/rules/scalar-leafs.md b/website/src/pages/rules/scalar-leafs.mdx similarity index 100% rename from website/src/pages/rules/scalar-leafs.md rename to website/src/pages/rules/scalar-leafs.mdx diff --git a/website/src/pages/rules/selection-set-depth.md b/website/src/pages/rules/selection-set-depth.mdx similarity index 100% rename from website/src/pages/rules/selection-set-depth.md rename to website/src/pages/rules/selection-set-depth.mdx diff --git a/website/src/pages/rules/strict-id-in-types.md b/website/src/pages/rules/strict-id-in-types.mdx similarity index 100% rename from website/src/pages/rules/strict-id-in-types.md rename to website/src/pages/rules/strict-id-in-types.mdx diff --git a/website/src/pages/rules/unique-argument-names.md b/website/src/pages/rules/unique-argument-names.mdx similarity index 100% rename from website/src/pages/rules/unique-argument-names.md rename to website/src/pages/rules/unique-argument-names.mdx diff --git a/website/src/pages/rules/unique-directive-names-per-location.md b/website/src/pages/rules/unique-directive-names-per-location.mdx similarity index 100% rename from website/src/pages/rules/unique-directive-names-per-location.md rename to website/src/pages/rules/unique-directive-names-per-location.mdx diff --git a/website/src/pages/rules/unique-directive-names.md b/website/src/pages/rules/unique-directive-names.mdx similarity index 100% rename from website/src/pages/rules/unique-directive-names.md rename to website/src/pages/rules/unique-directive-names.mdx diff --git a/website/src/pages/rules/unique-enum-value-names.md b/website/src/pages/rules/unique-enum-value-names.mdx similarity index 100% rename from website/src/pages/rules/unique-enum-value-names.md rename to website/src/pages/rules/unique-enum-value-names.mdx diff --git a/website/src/pages/rules/unique-field-definition-names.md b/website/src/pages/rules/unique-field-definition-names.mdx similarity index 100% rename from website/src/pages/rules/unique-field-definition-names.md rename to website/src/pages/rules/unique-field-definition-names.mdx diff --git a/website/src/pages/rules/unique-fragment-name.md b/website/src/pages/rules/unique-fragment-name.mdx similarity index 100% rename from website/src/pages/rules/unique-fragment-name.md rename to website/src/pages/rules/unique-fragment-name.mdx diff --git a/website/src/pages/rules/unique-input-field-names.md b/website/src/pages/rules/unique-input-field-names.mdx similarity index 100% rename from website/src/pages/rules/unique-input-field-names.md rename to website/src/pages/rules/unique-input-field-names.mdx diff --git a/website/src/pages/rules/unique-operation-name.md b/website/src/pages/rules/unique-operation-name.mdx similarity index 100% rename from website/src/pages/rules/unique-operation-name.md rename to website/src/pages/rules/unique-operation-name.mdx diff --git a/website/src/pages/rules/unique-operation-types.md b/website/src/pages/rules/unique-operation-types.mdx similarity index 100% rename from website/src/pages/rules/unique-operation-types.md rename to website/src/pages/rules/unique-operation-types.mdx diff --git a/website/src/pages/rules/unique-type-names.md b/website/src/pages/rules/unique-type-names.mdx similarity index 100% rename from website/src/pages/rules/unique-type-names.md rename to website/src/pages/rules/unique-type-names.mdx diff --git a/website/src/pages/rules/unique-variable-names.md b/website/src/pages/rules/unique-variable-names.mdx similarity index 100% rename from website/src/pages/rules/unique-variable-names.md rename to website/src/pages/rules/unique-variable-names.mdx diff --git a/website/src/pages/rules/value-literals-of-correct-type.md b/website/src/pages/rules/value-literals-of-correct-type.mdx similarity index 100% rename from website/src/pages/rules/value-literals-of-correct-type.md rename to website/src/pages/rules/value-literals-of-correct-type.mdx diff --git a/website/src/pages/rules/variables-are-input-types.md b/website/src/pages/rules/variables-are-input-types.mdx similarity index 100% rename from website/src/pages/rules/variables-are-input-types.md rename to website/src/pages/rules/variables-are-input-types.mdx diff --git a/website/src/pages/rules/variables-in-allowed-position.md b/website/src/pages/rules/variables-in-allowed-position.mdx similarity index 100% rename from website/src/pages/rules/variables-in-allowed-position.md rename to website/src/pages/rules/variables-in-allowed-position.mdx