Merged in feat/shared-ts-config (pull request #1610)

Add typescript-config package with shared configs

* Move web config to shared

* Move design-system ts config to typescript-config package

* Move redis-api tsconfig to typescript-config package

* Sort tsconfig keys

* Update react-library tsconfig

Move declaration and declarationMap from base
Add sourceMap

This fixes Go-to-Definition, debugging and similar in packages/apps where it is consumed

* Update base config module and moduleResolution


Approved-by: Michael Zetterberg
Approved-by: Christian Andolf
This commit is contained in:
Anton Gunnarsson
2025-03-28 07:07:24 +00:00
parent 45c992dcef
commit b535b53901
10 changed files with 73 additions and 61 deletions

View File

@@ -1,30 +1,8 @@
{
"compilerOptions": {
// Enable latest features
"lib": ["ESNext", "DOM"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false,
"paths": {
"@/*": ["./src/*"]
}
"extends": "@scandic-hotels/typescript-config/bun.json",
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
}
}