I am in the middle of upgrading our app and I'm getting the following error when i try to build my angular app:
This rule requires the strictNullChecks compiler option to be turned on to function correctly @typescript-eslint/no-unnecessary-condition
The problem is that I want "strictNullChecks" to be set to false so that I don't have to refactor the whole application until a later date. Is there a way to turn off this rule? I can't seem to find any documentation on this. I'm getting this same error about 2100 times. Anyone help would be appreciated.
I have tried adding the following to my angularCompilerOptions but that did not resolve my issue: allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: true
I made next 3 steps to eliminate that error
.eslintrc.js into rules section"@typescript-eslint/strict-boolean-expressions": "warn"
tsconfig.json into jsoncompilerOptions section"strictNullChecks": true
More information about this task
eslint-config-standard-with-typescript repoIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With