Browse Source
Task/resolve no-constant-binary-expression ESLint rule (#5890)
* fix(lint): remove no-constant-binary-expression override
* fix(lint): resolve eslint errors
pull/5891/head
Kenrick Tandrian
4 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
1 additions and
2 deletions
-
eslint.config.cjs
-
libs/ui/src/lib/fire-calculator/fire-calculator.component.ts
|
|
@ -152,7 +152,6 @@ module.exports = [ |
|
|
|
|
|
|
|
|
// The following rules are part of eslint:recommended |
|
|
// The following rules are part of eslint:recommended |
|
|
// and can be remove once solved |
|
|
// and can be remove once solved |
|
|
'no-constant-binary-expression': 'warn', |
|
|
|
|
|
'no-loss-of-precision': 'warn', |
|
|
'no-loss-of-precision': 'warn', |
|
|
|
|
|
|
|
|
// The following rules are part of @typescript-eslint/recommended-type-checked |
|
|
// The following rules are part of @typescript-eslint/recommended-type-checked |
|
|
|
|
|
@ -185,7 +185,7 @@ export class GfFireCalculatorComponent implements OnChanges, OnDestroy { |
|
|
'principalInvestmentAmount' |
|
|
'principalInvestmentAmount' |
|
|
).value, |
|
|
).value, |
|
|
projectedTotalAmount: |
|
|
projectedTotalAmount: |
|
|
Number(this.getProjectedTotalAmount().toFixed(0)) ?? 0, |
|
|
Math.round(this.getProjectedTotalAmount()) || 0, |
|
|
retirementDate: |
|
|
retirementDate: |
|
|
this.getRetirementDate() ?? this.DEFAULT_RETIREMENT_DATE |
|
|
this.getRetirementDate() ?? this.DEFAULT_RETIREMENT_DATE |
|
|
}, |
|
|
}, |
|
|
|