From 0da474ed1d070fcd4c3deeacbbb1adb3d8a4f11e Mon Sep 17 00:00:00 2001 From: Yusril A <55085697+rasvanjaya21@users.noreply.github.com> Date: Mon, 17 Nov 2025 01:44:44 +0700 Subject: [PATCH] Update json schema store url to latest (#18225) --- docs/configuration.md | 2 +- scripts/utils/generate-schema.js | 2 +- .../markdown/markdown/__snapshots__/format.test.js.snap | 8 ++++---- tests/format/markdown/markdown/real-world-case.md | 2 +- tests/integration/__tests__/__snapshots__/schema.js.snap | 2 +- tests/integration/cli/config/$schema/.prettierrc | 2 +- website/versioned_docs/version-stable/configuration.md | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 1fd8604b4..d985dd3d1 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -219,7 +219,7 @@ You can also switch to the `flow` parser instead of the default `babel` for .js ## Configuration Schema -If you’d like a JSON schema to validate your configuration, one is available here: [https://json.schemastore.org/prettierrc](https://json.schemastore.org/prettierrc). +If you’d like a JSON schema to validate your configuration, one is available here: [https://www.schemastore.org/prettierrc](https://www.schemastore.org/prettierrc). ## EditorConfig diff --git a/scripts/utils/generate-schema.js b/scripts/utils/generate-schema.js index c624bb942..0100e68e5 100644 --- a/scripts/utils/generate-schema.js +++ b/scripts/utils/generate-schema.js @@ -1,7 +1,7 @@ function generateSchemaData(options) { return { $schema: "http://json-schema.org/draft-07/schema#", - $id: "https://json.schemastore.org/prettierrc.json", + $id: "https://www.schemastore.org/prettierrc.json", definitions: { optionsDefinition: { type: "object", diff --git a/tests/format/markdown/markdown/__snapshots__/format.test.js.snap b/tests/format/markdown/markdown/__snapshots__/format.test.js.snap index 51807fff0..97cc3b6c8 100644 --- a/tests/format/markdown/markdown/__snapshots__/format.test.js.snap +++ b/tests/format/markdown/markdown/__snapshots__/format.test.js.snap @@ -788,7 +788,7 @@ For more information on how to use the CLI to locate a file, see the [CLI](#cli) ### Configuration Schema -If you'd like a JSON schema to validate your configuration, one is available here: https://json.schemastore.org/prettierrc. +If you'd like a JSON schema to validate your configuration, one is available here: https://www.schemastore.org/prettierrc. ## Editor Integration @@ -1830,7 +1830,7 @@ section. ### Configuration Schema If you'd like a JSON schema to validate your configuration, one is available -here: https://json.schemastore.org/prettierrc. +here: https://www.schemastore.org/prettierrc. ## Editor Integration @@ -2760,7 +2760,7 @@ For more information on how to use the CLI to locate a file, see the [CLI](#cli) ### Configuration Schema -If you'd like a JSON schema to validate your configuration, one is available here: https://json.schemastore.org/prettierrc. +If you'd like a JSON schema to validate your configuration, one is available here: https://www.schemastore.org/prettierrc. ## Editor Integration @@ -3802,7 +3802,7 @@ section. ### Configuration Schema If you'd like a JSON schema to validate your configuration, one is available -here: https://json.schemastore.org/prettierrc. +here: https://www.schemastore.org/prettierrc. ## Editor Integration diff --git a/tests/format/markdown/markdown/real-world-case.md b/tests/format/markdown/markdown/real-world-case.md index 1f6ff7ab7..a0dbaaea2 100644 --- a/tests/format/markdown/markdown/real-world-case.md +++ b/tests/format/markdown/markdown/real-world-case.md @@ -778,7 +778,7 @@ For more information on how to use the CLI to locate a file, see the [CLI](#cli) ### Configuration Schema -If you'd like a JSON schema to validate your configuration, one is available here: https://json.schemastore.org/prettierrc. +If you'd like a JSON schema to validate your configuration, one is available here: https://www.schemastore.org/prettierrc. ## Editor Integration diff --git a/tests/integration/__tests__/__snapshots__/schema.js.snap b/tests/integration/__tests__/__snapshots__/schema.js.snap index 151cf5e04..2862eb730 100644 --- a/tests/integration/__tests__/__snapshots__/schema.js.snap +++ b/tests/integration/__tests__/__snapshots__/schema.js.snap @@ -2,7 +2,7 @@ exports[`schema 1`] = ` { - "$id": "https://json.schemastore.org/prettierrc.json", + "$id": "https://www.schemastore.org/prettierrc.json", "$schema": "http://json-schema.org/draft-07/schema#", "definitions": { "optionsDefinition": { diff --git a/tests/integration/cli/config/$schema/.prettierrc b/tests/integration/cli/config/$schema/.prettierrc index 7d9c35f7a..6cef646f6 100644 --- a/tests/integration/cli/config/$schema/.prettierrc +++ b/tests/integration/cli/config/$schema/.prettierrc @@ -1,4 +1,4 @@ { - "$schema": "https://json.schemastore.org/prettierrc", + "$schema": "https://www.schemastore.org/prettierrc", "tabWidth": 42 } diff --git a/website/versioned_docs/version-stable/configuration.md b/website/versioned_docs/version-stable/configuration.md index 1fd8604b4..d985dd3d1 100644 --- a/website/versioned_docs/version-stable/configuration.md +++ b/website/versioned_docs/version-stable/configuration.md @@ -219,7 +219,7 @@ You can also switch to the `flow` parser instead of the default `babel` for .js ## Configuration Schema -If you’d like a JSON schema to validate your configuration, one is available here: [https://json.schemastore.org/prettierrc](https://json.schemastore.org/prettierrc). +If you’d like a JSON schema to validate your configuration, one is available here: [https://www.schemastore.org/prettierrc](https://www.schemastore.org/prettierrc). ## EditorConfig