Skip to content

Commit

Permalink
chore: update tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ktranish committed Nov 16, 2024
1 parent 12343b2 commit 3fa2ed9
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
{
"compilerOptions": {
/* Language and Environment */
"target": "ESNext",
"jsx": "react-jsx",
"module": "ESNext",
"lib": ["DOM", "ESNext"],
"target": "es2016" /* Target modern JavaScript (ES2016) for compatibility. */,
"module": "commonjs" /* Use CommonJS module system for Node.js. */,
"esModuleInterop": true /* Enable support for CommonJS module imports. */,
"forceConsistentCasingInFileNames": true /* Ensure consistent casing in imports. */,

/* Type Checking */
"strict": true /* Enable all strict type-checking options. */,
"noImplicitAny": true /* Disallow implicit 'any' type declarations. */,
"strictNullChecks": true /* Ensure 'null' and 'undefined' are handled explicitly. */,
"noUnusedLocals": true /* Report unused local variables. */,
"noUnusedParameters": true /* Report unused function parameters. */,
"noImplicitReturns": true /* Ensure all code paths in a function return a value. */,
"noFallthroughCasesInSwitch": true /* Prevent unintentional fallthrough in switch statements. */,

/* Modules */
"moduleResolution": "node",
"baseUrl": "./src",
"moduleResolution": "node" /* Use Node.js module resolution algorithm. */,

/* Emit */
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": false, // Emit both .js and .d.ts files
"outDir": "dist",
"declaration": true /* Generate declaration files for TypeScript modules. */,
"sourceMap": true /* Generate source map files for debugging. */,
"outDir": "./dist" /* Output directory for compiled JavaScript files. */,
"removeComments": true /* Remove comments from emitted files. */,

/* Interop Constraints */
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,

/* Type Checking */
"strict": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */,

/* Completeness */
"resolveJsonModule": true
"skipLibCheck": true /* Skip type checking of declaration files for faster builds. */
},
"include": ["src"],
"include": ["src"] /* Include source files in the 'src' directory. */,
"exclude": [
"node_modules",
"dist",
Expand All @@ -37,5 +39,5 @@
"**/*.spec.ts",
"**/*.spec.tsx",
"tests/**"
]
}
] /* Exclude node_modules and output directory from compilation. */
}

0 comments on commit 3fa2ed9

Please sign in to comment.