mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-04 04:37:28 +02:00
chore: json files should be linted (#4462)
This commit is contained in:
parent
892d832a3e
commit
5543f09ed1
19 changed files with 40 additions and 41 deletions
19
.github/workflows/v2-lighthousesrc.json
vendored
19
.github/workflows/v2-lighthousesrc.json
vendored
|
@ -1,9 +1,16 @@
|
||||||
{
|
{
|
||||||
"ci": {
|
"ci": {
|
||||||
"collect": {
|
"collect": {
|
||||||
"settings": {
|
"settings": {
|
||||||
"skipAudits": ["robots-txt", "canonical", "tap-targets", "is-crawlable", "works-offline", "offline-start-url"]
|
"skipAudits": [
|
||||||
}
|
"robots-txt",
|
||||||
}
|
"canonical",
|
||||||
|
"tap-targets",
|
||||||
|
"is-crawlable",
|
||||||
|
"works-offline",
|
||||||
|
"offline-start-url"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,4 +35,4 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "Docusaurus example project (bootstrap template)"
|
"description": "Docusaurus example project (bootstrap template)"
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
"hardReloadOnChange": true,
|
"hardReloadOnChange": true,
|
||||||
"view": "browser",
|
"view": "browser",
|
||||||
"template": "docusaurus"
|
"template": "docusaurus"
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,4 +35,4 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "Docusaurus example project"
|
"description": "Docusaurus example project"
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
"hardReloadOnChange": true,
|
"hardReloadOnChange": true,
|
||||||
"view": "browser",
|
"view": "browser",
|
||||||
"template": "docusaurus"
|
"template": "docusaurus"
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,4 +52,4 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "Docusaurus example project (facebook template)"
|
"description": "Docusaurus example project (facebook template)"
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
"hardReloadOnChange": true,
|
"hardReloadOnChange": true,
|
||||||
"view": "browser",
|
"view": "browser",
|
||||||
"template": "docusaurus"
|
"template": "docusaurus"
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,8 +39,8 @@
|
||||||
"postinstall": "run-p postinstall:**",
|
"postinstall": "run-p postinstall:**",
|
||||||
"postinstall:main": "yarn lock:update && yarn build:packages",
|
"postinstall:main": "yarn lock:update && yarn build:packages",
|
||||||
"postinstall:dev": "is-ci || husky install",
|
"postinstall:dev": "is-ci || husky install",
|
||||||
"prettier": "prettier --config .prettierrc --write \"**/*.{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}\"",
|
"prettier:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,json}\"",
|
||||||
"prettier-docs": "prettier --config .prettierrc --write \"**/*.{md,mdx}\"",
|
"prettier-docs": "prettier --config .prettierrc --write \"**/*.{md,mdx}\"",
|
||||||
"prettier-docs:diff": "prettier --config .prettierrc --list-different \"**/*.{md,mdx}\"",
|
"prettier-docs:diff": "prettier --config .prettierrc --list-different \"**/*.{md,mdx}\"",
|
||||||
"lint": "yarn lint:js && yarn lint:style",
|
"lint": "yarn lint:js && yarn lint:style",
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"tsBuildInfoFile": "./lib/.tsbuildinfo",
|
"tsBuildInfoFile": "./lib/.tsbuildinfo",
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"outDir": "lib",
|
"outDir": "lib",
|
||||||
"typeRoots": [ "./external_types", "./node_modules/@types"]
|
"typeRoots": ["./external_types", "./node_modules/@types"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,6 @@
|
||||||
"tsBuildInfoFile": "./lib/.tsbuildinfo",
|
"tsBuildInfoFile": "./lib/.tsbuildinfo",
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"outDir": "lib",
|
"outDir": "lib",
|
||||||
"typeRoots": [ "./types", "./node_modules/@types"]
|
"typeRoots": ["./types", "./node_modules/@types"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"tsBuildInfoFile": "./lib/.tsbuildinfo",
|
"tsBuildInfoFile": "./lib/.tsbuildinfo",
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"outDir": "lib",
|
"outDir": "lib"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"tsBuildInfoFile": "./lib/.tsbuildinfo",
|
"tsBuildInfoFile": "./lib/.tsbuildinfo",
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"outDir": "lib",
|
"outDir": "lib"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"tsBuildInfoFile": "./lib/.tsbuildinfo",
|
"tsBuildInfoFile": "./lib/.tsbuildinfo",
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"outDir": "lib",
|
"outDir": "lib"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"tsBuildInfoFile": "./lib/.tsbuildinfo",
|
"tsBuildInfoFile": "./lib/.tsbuildinfo",
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"outDir": "lib",
|
"outDir": "lib"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"tsBuildInfoFile": "./lib/client/.tsbuildinfo",
|
"tsBuildInfoFile": "./lib/client/.tsbuildinfo",
|
||||||
"outDir": "lib/client",
|
"outDir": "lib/client",
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"jsx": "react",
|
"jsx": "react"
|
||||||
},
|
},
|
||||||
"include": ["src/client"]
|
"include": ["src/client"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
/* Use tslib */
|
/* Use tslib */
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
"noEmitHelpers": true,
|
"noEmitHelpers": true
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", "**/__tests__/**/*", "**/lib/**/*"]
|
"exclude": ["node_modules", "**/__tests__/**/*", "**/lib/**/*"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"localized-strings": {
|
"localized-strings": {
|
||||||
"translation": "Translations and Localization"
|
"translation": "Translations and Localization"
|
||||||
},
|
},
|
||||||
"pages-strings" : {
|
"pages-strings": {
|
||||||
"Help Translate|recruit community translators for your project": "Help Us Translate"
|
"Help Translate|recruit community translators for your project": "Help Us Translate"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,12 +15,7 @@
|
||||||
"translation",
|
"translation",
|
||||||
"versioning"
|
"versioning"
|
||||||
],
|
],
|
||||||
"API": [
|
"API": ["commands", "doc-markdown", "api-pages", "site-config"]
|
||||||
"commands",
|
|
||||||
"doc-markdown",
|
|
||||||
"api-pages",
|
|
||||||
"site-config"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"tutorial": {
|
"tutorial": {
|
||||||
"Tutorial": [
|
"Tutorial": [
|
||||||
|
|
|
@ -1,4 +1 @@
|
||||||
[
|
["2.0.0-alpha.72", "2.0.0-alpha.71"]
|
||||||
"2.0.0-alpha.72",
|
|
||||||
"2.0.0-alpha.71"
|
|
||||||
]
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue