-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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 (#13072)
- Loading branch information
1 parent
92f1c2c
commit c9ce384
Showing
10 changed files
with
81 additions
and
137 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,23 @@ | ||
{ | ||
"extends": "../tsconfig-base.json", | ||
"compilerOptions": { | ||
"composite": true, | ||
"outDir": "../.tmp/tsbuildinfo/flow-report", | ||
"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,15 @@ | ||
// Compilation entry point for all tsc projects within Lighthouse. | ||
|
||
{ | ||
"references": [ | ||
{"path": "./"}, | ||
{"path": "./types/lhr/"}, | ||
{"path": "./report/"}, | ||
{"path": "./report/generator/"}, | ||
{"path": "./lighthouse-viewer/"}, | ||
{"path": "./lighthouse-treemap/"}, | ||
{"path": "./flow-report/"}, | ||
], | ||
"files": [], | ||
"include": [], | ||
} |
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,24 @@ | ||
// Base compiler options for all tsconfig files. | ||
|
||
{ | ||
"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, | ||
}, | ||
} |
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