mirror of
https://github.com/ChainSafe/lodestar.git
synced 2026-01-07 23:04:06 -05:00
**Motivation** Get rid of dead code, improve code clarity, no more unused imports **Description** Add tsconfig to detect unused imports, variables, and functions
20 lines
643 B
JSON
20 lines
643 B
JSON
{
|
|
"extends": "./tsconfig.build.json",
|
|
"compilerOptions": {
|
|
"emitDeclarationOnly": false,
|
|
"incremental": false,
|
|
"noEmit": true,
|
|
// To be used in the test fixtures
|
|
"resolveJsonModule": true,
|
|
// We want to speed up the CI run for all tests, which require us to use the
|
|
// `transpileOnly` mode for the `ts-node`. This change requires to treat types for each module
|
|
// independently, which is done by setting the `isolatedModules` flag to `true`.
|
|
"isolatedModules": true,
|
|
// Detect unused imports, variables, and functions
|
|
"noUnusedLocals": true,
|
|
},
|
|
"ts-node": {
|
|
"transpileOnly": true
|
|
}
|
|
}
|