From ee744ebcae8992f94f8a7ca6724692ad90423d9a Mon Sep 17 00:00:00 2001 From: slorber Date: Thu, 18 Mar 2021 19:08:01 +0100 Subject: [PATCH] json files should be linted --- .github/workflows/v2-lighthousesrc.json | 19 +++++++++++++------ examples/bootstrap/package.json | 2 +- examples/bootstrap/sandbox.config.json | 2 +- examples/classic/package.json | 2 +- examples/classic/sandbox.config.json | 2 +- examples/facebook/package.json | 2 +- examples/facebook/sandbox.config.json | 2 +- package.json | 4 ++-- packages/docusaurus-migrate/tsconfig.json | 18 +++++++++--------- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../codeTranslations/ko.json | 2 +- .../docusaurus-theme-common/tsconfig.json | 2 +- packages/docusaurus-utils/tsconfig.json | 2 +- packages/docusaurus/tsconfig.client.json | 2 +- tsconfig.json | 2 +- .../data/custom-translation-strings.json | 2 +- website-1.x/sidebars.json | 7 +------ website/versions.json | 5 +---- 20 files changed, 41 insertions(+), 42 deletions(-) diff --git a/.github/workflows/v2-lighthousesrc.json b/.github/workflows/v2-lighthousesrc.json index 1510b0dd7179..266bc66b4938 100644 --- a/.github/workflows/v2-lighthousesrc.json +++ b/.github/workflows/v2-lighthousesrc.json @@ -1,9 +1,16 @@ { - "ci": { - "collect": { - "settings": { - "skipAudits": ["robots-txt", "canonical", "tap-targets", "is-crawlable", "works-offline", "offline-start-url"] - } - } + "ci": { + "collect": { + "settings": { + "skipAudits": [ + "robots-txt", + "canonical", + "tap-targets", + "is-crawlable", + "works-offline", + "offline-start-url" + ] + } } + } } diff --git a/examples/bootstrap/package.json b/examples/bootstrap/package.json index 859645566499..07ccee5d1336 100644 --- a/examples/bootstrap/package.json +++ b/examples/bootstrap/package.json @@ -35,4 +35,4 @@ ] }, "description": "Docusaurus example project (bootstrap template)" -} \ No newline at end of file +} diff --git a/examples/bootstrap/sandbox.config.json b/examples/bootstrap/sandbox.config.json index aeec7c272787..a3e712c82f19 100644 --- a/examples/bootstrap/sandbox.config.json +++ b/examples/bootstrap/sandbox.config.json @@ -3,4 +3,4 @@ "hardReloadOnChange": true, "view": "browser", "template": "docusaurus" -} \ No newline at end of file +} diff --git a/examples/classic/package.json b/examples/classic/package.json index b8bddf481a11..c91bf6002c04 100644 --- a/examples/classic/package.json +++ b/examples/classic/package.json @@ -35,4 +35,4 @@ ] }, "description": "Docusaurus example project" -} \ No newline at end of file +} diff --git a/examples/classic/sandbox.config.json b/examples/classic/sandbox.config.json index aeec7c272787..a3e712c82f19 100644 --- a/examples/classic/sandbox.config.json +++ b/examples/classic/sandbox.config.json @@ -3,4 +3,4 @@ "hardReloadOnChange": true, "view": "browser", "template": "docusaurus" -} \ No newline at end of file +} diff --git a/examples/facebook/package.json b/examples/facebook/package.json index 62a3ecd5fd8a..95e651b6da26 100644 --- a/examples/facebook/package.json +++ b/examples/facebook/package.json @@ -52,4 +52,4 @@ ] }, "description": "Docusaurus example project (facebook template)" -} \ No newline at end of file +} diff --git a/examples/facebook/sandbox.config.json b/examples/facebook/sandbox.config.json index aeec7c272787..a3e712c82f19 100644 --- a/examples/facebook/sandbox.config.json +++ b/examples/facebook/sandbox.config.json @@ -3,4 +3,4 @@ "hardReloadOnChange": true, "view": "browser", "template": "docusaurus" -} \ No newline at end of file +} diff --git a/package.json b/package.json index 6ab0feea4b2f..3f4d952ba934 100644 --- a/package.json +++ b/package.json @@ -39,8 +39,8 @@ "postinstall": "run-p postinstall:**", "postinstall:main": "yarn lock:update && yarn build:packages", "postinstall:dev": "is-ci || husky install", - "prettier": "prettier --config .prettierrc --write \"**/*.{js,jsx,ts,tsx}\"", - "prettier:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx}\"", + "prettier": "prettier --config .prettierrc --write \"**/*.{js,jsx,ts,tsx,json}\"", + "prettier:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,json}\"", "prettier-docs": "prettier --config .prettierrc --write \"**/*.{md,mdx}\"", "prettier-docs:diff": "prettier --config .prettierrc --list-different \"**/*.{md,mdx}\"", "lint": "yarn lint:js && yarn lint:style", diff --git a/packages/docusaurus-migrate/tsconfig.json b/packages/docusaurus-migrate/tsconfig.json index c3d8af3af994..e893590d8925 100644 --- a/packages/docusaurus-migrate/tsconfig.json +++ b/packages/docusaurus-migrate/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "incremental": true, - "tsBuildInfoFile": "./lib/.tsbuildinfo", - "rootDir": "src", - "outDir": "lib", - "typeRoots": [ "./external_types", "./node_modules/@types"] - } - } \ No newline at end of file + "extends": "../../tsconfig.json", + "compilerOptions": { + "incremental": true, + "tsBuildInfoFile": "./lib/.tsbuildinfo", + "rootDir": "src", + "outDir": "lib", + "typeRoots": ["./external_types", "./node_modules/@types"] + } +} diff --git a/packages/docusaurus-plugin-client-redirects/tsconfig.json b/packages/docusaurus-plugin-client-redirects/tsconfig.json index f189eb943b2f..7b696ed3843d 100644 --- a/packages/docusaurus-plugin-client-redirects/tsconfig.json +++ b/packages/docusaurus-plugin-client-redirects/tsconfig.json @@ -5,6 +5,6 @@ "tsBuildInfoFile": "./lib/.tsbuildinfo", "rootDir": "src", "outDir": "lib", - "typeRoots": [ "./types", "./node_modules/@types"] + "typeRoots": ["./types", "./node_modules/@types"] } } diff --git a/packages/docusaurus-plugin-content-blog/tsconfig.json b/packages/docusaurus-plugin-content-blog/tsconfig.json index f50aa9ee6d86..f5902ba1089b 100644 --- a/packages/docusaurus-plugin-content-blog/tsconfig.json +++ b/packages/docusaurus-plugin-content-blog/tsconfig.json @@ -4,6 +4,6 @@ "incremental": true, "tsBuildInfoFile": "./lib/.tsbuildinfo", "rootDir": "src", - "outDir": "lib", + "outDir": "lib" } } diff --git a/packages/docusaurus-plugin-ideal-image/tsconfig.json b/packages/docusaurus-plugin-ideal-image/tsconfig.json index f50aa9ee6d86..f5902ba1089b 100644 --- a/packages/docusaurus-plugin-ideal-image/tsconfig.json +++ b/packages/docusaurus-plugin-ideal-image/tsconfig.json @@ -4,6 +4,6 @@ "incremental": true, "tsBuildInfoFile": "./lib/.tsbuildinfo", "rootDir": "src", - "outDir": "lib", + "outDir": "lib" } } diff --git a/packages/docusaurus-theme-classic/codeTranslations/ko.json b/packages/docusaurus-theme-classic/codeTranslations/ko.json index f493096826ff..8ad4a9d6a697 100644 --- a/packages/docusaurus-theme-classic/codeTranslations/ko.json +++ b/packages/docusaurus-theme-classic/codeTranslations/ko.json @@ -51,5 +51,5 @@ "theme.lastUpdated.lastUpdatedAtBy": "{atDate}{byUser} 마지막으로 업데이트했습니다.", "theme.tags.tagsListLabel": "태그:", "theme.tags.tagsPageLink": "모든 태그 보기", - "theme.tags.tagsPageTitle": "태그", + "theme.tags.tagsPageTitle": "태그" } diff --git a/packages/docusaurus-theme-common/tsconfig.json b/packages/docusaurus-theme-common/tsconfig.json index f50aa9ee6d86..f5902ba1089b 100644 --- a/packages/docusaurus-theme-common/tsconfig.json +++ b/packages/docusaurus-theme-common/tsconfig.json @@ -4,6 +4,6 @@ "incremental": true, "tsBuildInfoFile": "./lib/.tsbuildinfo", "rootDir": "src", - "outDir": "lib", + "outDir": "lib" } } diff --git a/packages/docusaurus-utils/tsconfig.json b/packages/docusaurus-utils/tsconfig.json index f50aa9ee6d86..f5902ba1089b 100644 --- a/packages/docusaurus-utils/tsconfig.json +++ b/packages/docusaurus-utils/tsconfig.json @@ -4,6 +4,6 @@ "incremental": true, "tsBuildInfoFile": "./lib/.tsbuildinfo", "rootDir": "src", - "outDir": "lib", + "outDir": "lib" } } diff --git a/packages/docusaurus/tsconfig.client.json b/packages/docusaurus/tsconfig.client.json index 713d7753e93e..979357468741 100644 --- a/packages/docusaurus/tsconfig.client.json +++ b/packages/docusaurus/tsconfig.client.json @@ -7,7 +7,7 @@ "tsBuildInfoFile": "./lib/client/.tsbuildinfo", "outDir": "lib/client", "noImplicitAny": false, - "jsx": "react", + "jsx": "react" }, "include": ["src/client"] } diff --git a/tsconfig.json b/tsconfig.json index 03a8307a4669..11295f909efa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -34,7 +34,7 @@ /* Use tslib */ "importHelpers": true, - "noEmitHelpers": true, + "noEmitHelpers": true }, "exclude": ["node_modules", "**/__tests__/**/*", "**/lib/**/*"] } diff --git a/website-1.x/data/custom-translation-strings.json b/website-1.x/data/custom-translation-strings.json index c475739e0485..5dd1806ca74d 100644 --- a/website-1.x/data/custom-translation-strings.json +++ b/website-1.x/data/custom-translation-strings.json @@ -3,7 +3,7 @@ "localized-strings": { "translation": "Translations and Localization" }, - "pages-strings" : { + "pages-strings": { "Help Translate|recruit community translators for your project": "Help Us Translate" } } diff --git a/website-1.x/sidebars.json b/website-1.x/sidebars.json index 8d015456ff66..05a2f482a469 100644 --- a/website-1.x/sidebars.json +++ b/website-1.x/sidebars.json @@ -15,12 +15,7 @@ "translation", "versioning" ], - "API": [ - "commands", - "doc-markdown", - "api-pages", - "site-config" - ] + "API": ["commands", "doc-markdown", "api-pages", "site-config"] }, "tutorial": { "Tutorial": [ diff --git a/website/versions.json b/website/versions.json index d3e129f68215..b5cc0aae88af 100644 --- a/website/versions.json +++ b/website/versions.json @@ -1,4 +1 @@ -[ - "2.0.0-alpha.72", - "2.0.0-alpha.71" -] +["2.0.0-alpha.72", "2.0.0-alpha.71"]