-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: extends from shared base tsconfig (#59776)
- Loading branch information
Showing
3 changed files
with
27 additions
and
41 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,23 +1,6 @@ | ||
// Make development mode typescript module resolving and jsx parsing correct for all tests | ||
// Make development mode typescript module resolving and jsx parsing correct for all tests. | ||
// We want to apply the compiler options to the testing app, but we don't want to do strict type checking for them. | ||
// e.g. testing app could have import a from '3rd-lib-nextjs-ws-doesnt-have' | ||
{ | ||
"compilerOptions": { | ||
"strict": false, | ||
"noEmit": true, | ||
"allowJs": true, | ||
"resolveJsonModule": true, | ||
"jsx": "react-jsx", | ||
"module": "esnext", | ||
"target": "ESNext", | ||
"esModuleInterop": true, | ||
"moduleResolution": "node", | ||
"baseUrl": ".", | ||
"types": ["react", "jest", "node", "trusted-types", "jest-extended"], | ||
"paths": { | ||
"development-sandbox": ["./lib/development-sandbox"], | ||
"next-test-utils": ["./lib/next-test-utils"], | ||
"amp-test-utils": ["./lib/amp-test-utils"], | ||
"next-webdriver": ["./lib/next-webdriver"], | ||
"e2e-utils": ["./lib/e2e-utils"] | ||
} | ||
} | ||
"extends": "../tsconfig.base.json" | ||
} |
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,22 @@ | ||
{ | ||
"compilerOptions": { | ||
"strict": false, | ||
"noEmit": true, | ||
"allowJs": true, | ||
"resolveJsonModule": true, | ||
"jsx": "react-jsx", | ||
"module": "esnext", | ||
"target": "ESNext", | ||
"esModuleInterop": true, | ||
"moduleResolution": "node", | ||
"baseUrl": ".", | ||
"types": ["react", "jest", "node", "trusted-types", "jest-extended"], | ||
"paths": { | ||
"development-sandbox": ["test/lib/development-sandbox"], | ||
"next-test-utils": ["test/lib/next-test-utils"], | ||
"amp-test-utils": ["test/lib/amp-test-utils"], | ||
"next-webdriver": ["test/lib/next-webdriver"], | ||
"e2e-utils": ["test/lib/e2e-utils"] | ||
} | ||
} | ||
} |
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,24 +1,5 @@ | ||
{ | ||
"compilerOptions": { | ||
"strict": false, | ||
"noEmit": true, | ||
"allowJs": true, | ||
"resolveJsonModule": true, | ||
"jsx": "react-jsx", | ||
"module": "esnext", | ||
"target": "ESNext", | ||
"esModuleInterop": true, | ||
"moduleResolution": "node", | ||
"baseUrl": ".", | ||
"types": ["react", "jest", "node", "trusted-types", "jest-extended"], | ||
"paths": { | ||
"development-sandbox": ["test/lib/development-sandbox"], | ||
"next-test-utils": ["test/lib/next-test-utils"], | ||
"amp-test-utils": ["test/lib/amp-test-utils"], | ||
"next-webdriver": ["test/lib/next-webdriver"], | ||
"e2e-utils": ["test/lib/e2e-utils"] | ||
} | ||
}, | ||
"extends": "./tsconfig.base.json", | ||
"include": ["test/**/*.test.ts", "test/**/*.test.tsx"], | ||
"exclude": ["node_modules"] | ||
} |