Skip to content

Commit

Permalink
feat(tsconfig.json): update TypeScript configuration for stricter typ…
Browse files Browse the repository at this point in the history
…e checking and ES2024 support

- Enable `esModuleInterop` and `skipLibCheck` for better interoperability and performance
- Change target and module to ES2024 and preserve for future ECMAScript features
- Add `allowJs`, `resolveJsonModule`, `moduleDetection`, `isolatedModules`, and `verbatimModuleSyntax` for enhanced module handling
- Introduce `noImplicitOverride` for explicit override checks
- Set `noEmit` to true when not transpiling with TypeScript
- Specify `lib` to ES2022 when not running in the DOM
- Maintain `baseUrl` and `paths` for custom module resolution
  • Loading branch information
Bluzzi committed Dec 25, 2024
1 parent 3bf9355 commit bc34bd3
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ES2022",

"moduleResolution": "Bundler",
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "ES2024",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
"verbatimModuleSyntax": true,

/* Strictness */
"strict": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,

"esModuleInterop": true,
"skipLibCheck": true,
/* If NOT transpiling with TypeScript: */
"module": "preserve",
"noEmit": true,

/* If your code doesn't run in the DOM: */
"lib": ["es2022"],

/* Custom paths: */
"baseUrl": ".",
"paths": {
"#/*": ["./src/*"]
Expand Down

0 comments on commit bc34bd3

Please sign in to comment.