Browse Source

feat: set up stricter style and type checks in tsconfig

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
pull/3878/head
dw-0 11 months ago
parent
commit
2d63aaf19c
  1. 3
      apps/client/tsconfig.json
  2. 7
      libs/ui/tsconfig.json
  3. 16
      tsconfig.base.json

3
apps/client/tsconfig.json

@ -15,7 +15,8 @@
],
"angularCompilerOptions": {
"strictInjectionParameters": true,
"strictTemplates": false
"strictInputAccessModifiers": false, // todo: enable strict input access modifiers
"strictTemplates": false // todo: enable strict templates
},
"compilerOptions": {
"target": "es2020"

7
libs/ui/tsconfig.json

@ -14,10 +14,9 @@
}
],
"compilerOptions": {
"forceConsistentCasingInFileNames": true,
"strict": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"strict": false, // remove once solved in tsconfig.base.json
"noImplicitReturns": true, // remove once solved in tsconfig.base.json
"noFallthroughCasesInSwitch": true, // remove once solved in tsconfig.base.json
"target": "es2020"
},
"angularCompilerOptions": {

16
tsconfig.base.json

@ -20,7 +20,21 @@
"@ghostfolio/client/*": ["apps/client/src/app/*"],
"@ghostfolio/common/*": ["libs/common/src/lib/*"],
"@ghostfolio/ui/*": ["libs/ui/src/lib/*"]
}
},
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
// set to true to enable stricter type checking for this project
"strict": false,
"strictNullChecks": false,
"strictPropertyInitialization": false,
"noImplicitReturns": false,
"noImplicitAny": false,
"noImplicitThis": false,
"noImplicitOverride": false,
"noPropertyAccessFromIndexSignature": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"allowUnreachableCode": true // set to false for stricter type checking
},
"exclude": ["node_modules", "tmp"]
}

Loading…
Cancel
Save