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
parent
commit
60bfe1eaa6
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      eslint.config.cjs
  2. 2
      libs/ui/src/lib/fire-calculator/fire-calculator.component.ts

1
eslint.config.cjs

@ -152,7 +152,6 @@ module.exports = [
// The following rules are part of eslint:recommended
// and can be remove once solved
'no-constant-binary-expression': 'warn',
'no-loss-of-precision': 'warn',
// The following rules are part of @typescript-eslint/recommended-type-checked

2
libs/ui/src/lib/fire-calculator/fire-calculator.component.ts

@ -185,7 +185,7 @@ export class GfFireCalculatorComponent implements OnChanges, OnDestroy {
'principalInvestmentAmount'
).value,
projectedTotalAmount:
Number(this.getProjectedTotalAmount().toFixed(0)) ?? 0,
Math.round(this.getProjectedTotalAmount()) || 0,
retirementDate:
this.getRetirementDate() ?? this.DEFAULT_RETIREMENT_DATE
},

Loading…
Cancel
Save