Skip to content

Commit

Permalink
TS: improve tsconfig to better handle absolute imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jurkian committed Jul 17, 2021
1 parent a2f1917 commit 343c782
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 51 deletions.
18 changes: 0 additions & 18 deletions web/tsconfig.base.json

This file was deleted.

54 changes: 21 additions & 33 deletions web/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,23 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"typeRoots": [
"@types",
"node_modules/@types"
],
"include": [
"src"
],
"exclude": [
"node_modules",
"**/node_modules/*"
],
"extends": "./tsconfig.base.json"
"compilerOptions": {
"baseUrl": "./src",
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"typeRoots": ["@types", "node_modules/@types"],
"include": ["src"],
"exclude": ["node_modules", "**/node_modules/*"]
}

0 comments on commit 343c782

Please sign in to comment.