Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: json files should be linted #4462

Merged
merged 1 commit into from
Mar 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions .github/workflows/v2-lighthousesrc.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
}
2 changes: 1 addition & 1 deletion examples/bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
]
},
"description": "Docusaurus example project (bootstrap template)"
}
}
2 changes: 1 addition & 1 deletion examples/bootstrap/sandbox.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"hardReloadOnChange": true,
"view": "browser",
"template": "docusaurus"
}
}
2 changes: 1 addition & 1 deletion examples/classic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
]
},
"description": "Docusaurus example project"
}
}
2 changes: 1 addition & 1 deletion examples/classic/sandbox.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"hardReloadOnChange": true,
"view": "browser",
"template": "docusaurus"
}
}
2 changes: 1 addition & 1 deletion examples/facebook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@
]
},
"description": "Docusaurus example project (facebook template)"
}
}
2 changes: 1 addition & 1 deletion examples/facebook/sandbox.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"hardReloadOnChange": true,
"view": "browser",
"template": "docusaurus"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
18 changes: 9 additions & 9 deletions packages/docusaurus-migrate/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"incremental": true,
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"rootDir": "src",
"outDir": "lib",
"typeRoots": [ "./external_types", "./node_modules/@types"]
}
}
"extends": "../../tsconfig.json",
"compilerOptions": {
"incremental": true,
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"rootDir": "src",
"outDir": "lib",
"typeRoots": ["./external_types", "./node_modules/@types"]
}
}
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-client-redirects/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"rootDir": "src",
"outDir": "lib",
"typeRoots": [ "./types", "./node_modules/@types"]
"typeRoots": ["./types", "./node_modules/@types"]
}
}
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-content-blog/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"incremental": true,
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"rootDir": "src",
"outDir": "lib",
"outDir": "lib"
}
}
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-ideal-image/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"incremental": true,
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"rootDir": "src",
"outDir": "lib",
"outDir": "lib"
}
}
2 changes: 1 addition & 1 deletion packages/docusaurus-theme-classic/codeTranslations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
"theme.lastUpdated.lastUpdatedAtBy": "{atDate}{byUser} 마지막으로 업데이트했습니다.",
"theme.tags.tagsListLabel": "태그:",
"theme.tags.tagsPageLink": "모든 태그 보기",
"theme.tags.tagsPageTitle": "태그",
"theme.tags.tagsPageTitle": "태그"
}
2 changes: 1 addition & 1 deletion packages/docusaurus-theme-common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"incremental": true,
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"rootDir": "src",
"outDir": "lib",
"outDir": "lib"
}
}
2 changes: 1 addition & 1 deletion packages/docusaurus-utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"incremental": true,
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"rootDir": "src",
"outDir": "lib",
"outDir": "lib"
}
}
2 changes: 1 addition & 1 deletion packages/docusaurus/tsconfig.client.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"tsBuildInfoFile": "./lib/client/.tsbuildinfo",
"outDir": "lib/client",
"noImplicitAny": false,
"jsx": "react",
"jsx": "react"
},
"include": ["src/client"]
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

/* Use tslib */
"importHelpers": true,
"noEmitHelpers": true,
"noEmitHelpers": true
},
"exclude": ["node_modules", "**/__tests__/**/*", "**/lib/**/*"]
}
2 changes: 1 addition & 1 deletion website-1.x/data/custom-translation-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
7 changes: 1 addition & 6 deletions website-1.x/sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@
"translation",
"versioning"
],
"API": [
"commands",
"doc-markdown",
"api-pages",
"site-config"
]
"API": ["commands", "doc-markdown", "api-pages", "site-config"]
},
"tutorial": {
"Tutorial": [
Expand Down
5 changes: 1 addition & 4 deletions website/versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
[
"2.0.0-alpha.72",
"2.0.0-alpha.71"
]
["2.0.0-alpha.72", "2.0.0-alpha.71"]