-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core(tsc): add base tsconfig for config inheritance
- Loading branch information
1 parent
06bdf13
commit f3700cc
Showing
10 changed files
with
88 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,27 @@ | ||
{ | ||
"extends": "../tsconfig-base.json", | ||
"compilerOptions": { | ||
"composite": true, | ||
"outDir": "../.tmp/tsbuildinfo/flow-report", | ||
|
||
// Project has real tsc output (and declaration was interfering with build). | ||
// see https://github.com/GoogleChrome/lighthouse/pull/12929 | ||
"emitDeclarationOnly": false, | ||
"declarationMap": true, | ||
|
||
// Limit to base JS and DOM defs. | ||
"lib": ["es2020", "dom", "dom.iterable"], | ||
// Selectively include types from node_modules. | ||
// Selectively include types from node_modules/. | ||
"types": ["node", "jest"], | ||
"target": "es2020", | ||
"module": "es2020", | ||
"moduleResolution": "node", | ||
"esModuleInterop": true, | ||
|
||
"allowJs": true, | ||
"checkJs": true, | ||
"strict": true, | ||
// TODO: remove the next line to be fully `strict`. | ||
"useUnknownInCatchVariables": false, | ||
|
||
// "listFiles": true, | ||
// "noErrorTruncation": true, | ||
"extendedDiagnostics": true, | ||
|
||
"jsx": "react-jsx", | ||
"jsxImportSource": "preact", | ||
}, | ||
"references": [ | ||
{"path": "../types/lhr/"}, | ||
{"path": "../report"}, | ||
], | ||
"include": [ | ||
"**/*.ts", | ||
"**/*.tsx", | ||
"./types", | ||
], | ||
"references": [ | ||
{"path": "../types/lhr/"}, | ||
{"path": "../report"}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,20 @@ | ||
{ | ||
"extends": "../tsconfig-base.json", | ||
"compilerOptions": { | ||
"composite": true, | ||
"outDir": "../.tmp/tsbuildinfo/lighthouse-treemap", | ||
"emitDeclarationOnly": true, | ||
"declarationMap": true, | ||
|
||
// Limit to base JS and DOM defs. | ||
"lib": ["es2020", "dom", "dom.iterable"], | ||
// Selectively include types from node_modules. | ||
// Selectively include types from node_modules/. | ||
"types": ["tabulator-tables"], | ||
"target": "es2020", | ||
"module": "es2020", | ||
"moduleResolution": "node", | ||
"esModuleInterop": true, | ||
|
||
"allowJs": true, | ||
"checkJs": true, | ||
"strict": true, | ||
// TODO: remove the next line to be fully `strict`. | ||
"useUnknownInCatchVariables": false, | ||
|
||
// "listFiles": true, | ||
// "noErrorTruncation": true, | ||
"extendedDiagnostics": true, | ||
}, | ||
"include": [ | ||
"app/src/**/*.js", | ||
"types/**/*.d.ts", | ||
], | ||
"references": [ | ||
{"path": "../types/lhr/"}, | ||
{"path": "../report/"}, | ||
{"path": "../lighthouse-viewer/"}, | ||
], | ||
"include": [ | ||
"app/src/**/*.js", | ||
"types/**/*.d.ts", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,19 @@ | ||
{ | ||
"extends": "../tsconfig-base.json", | ||
"compilerOptions": { | ||
"composite": true, | ||
"outDir": "../.tmp/tsbuildinfo/lighthouse-viewer", | ||
"emitDeclarationOnly": true, | ||
"declarationMap": true, | ||
|
||
// Limit to base JS and DOM defs. | ||
"lib": ["es2020", "dom", "dom.iterable"], | ||
// Don't include any types from node_modules. | ||
// Don't include any types from node_modules/. | ||
"types": [], | ||
"target": "es2020", | ||
"module": "es2020", | ||
"moduleResolution": "node", | ||
"esModuleInterop": true, | ||
|
||
"allowJs": true, | ||
"checkJs": true, | ||
"strict": true, | ||
// TODO: remove the next line to be fully `strict`. | ||
"useUnknownInCatchVariables": false, | ||
|
||
// "listFiles": true, | ||
// "noErrorTruncation": true, | ||
"extendedDiagnostics": true, | ||
}, | ||
"include": [ | ||
"app/src/**/*.js", | ||
"./types/*.d.ts", | ||
], | ||
"references": [ | ||
{"path": "../types/lhr/"}, | ||
{"path": "../report/"} | ||
], | ||
"include": [ | ||
"app/src/**/*.js", | ||
"./types/*.d.ts", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Base compiler options and all compilation entry points. | ||
|
||
{ | ||
"compilerOptions": { | ||
"composite": true, | ||
"emitDeclarationOnly": true, | ||
"declarationMap": true, | ||
|
||
"target": "es2020", | ||
"module": "es2020", | ||
"moduleResolution": "node", | ||
"esModuleInterop": true, | ||
|
||
"allowJs": true, | ||
"checkJs": true, | ||
"strict": true, | ||
// TODO: remove the next line to be fully `strict`. | ||
"useUnknownInCatchVariables": false, | ||
|
||
// "listFiles": true, | ||
// "noErrorTruncation": true, | ||
"extendedDiagnostics": true, | ||
}, | ||
// `references` is not inherited by extending tsconfigs. This is a list of all | ||
// project references so `tsc --build tsconfig-base.json` can type check all files. | ||
"references": [ | ||
{"path": "./"}, | ||
{"path": "./types/lhr/"}, | ||
{"path": "./report/"}, | ||
{"path": "./report/generator/"}, | ||
{"path": "./lighthouse-viewer/"}, | ||
{"path": "./lighthouse-treemap/"}, | ||
{"path": "./flow-report/"}, | ||
], | ||
"files": [], | ||
"include": [], | ||
"exclude": [], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8496,10 +8496,10 @@ typedarray@^0.0.6: | |
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" | ||
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= | ||
|
||
[email protected].2: | ||
version "4.4.2" | ||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.2.tgz#6d618640d430e3569a1dfb44f7d7e600ced3ee86" | ||
integrity sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ== | ||
[email protected].3: | ||
version "4.4.3" | ||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.3.tgz#bdc5407caa2b109efd4f82fe130656f977a29324" | ||
integrity sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA== | ||
|
||
uglify-js@^3.1.4: | ||
version "3.4.9" | ||
|