Skip to content

Commit

Permalink
fix: resolve eslint config issues with prettier deprecation (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-abrioux committed Mar 8, 2021
1 parent 2ce5920 commit 5638f5f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .eslintrc.json

This file was deleted.

11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,17 @@
"singleQuote": true,
"trailingComma": "es5"
},
"eslint": {
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended"
]
},
"resolutions": {
"**/typescript": "^4.0.5",
"**/@typescript-eslint/eslint-plugin": "^4.6.1",
Expand Down
2 changes: 1 addition & 1 deletion src/v1/computations-and-formatting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function getCompoundedBorrowBalance(

let cumulatedInterest;
if (userReserve.borrowRateMode === BorrowRateMode.Variable) {
let compoundedInterest = calculateCompoundedInterest(
const compoundedInterest = calculateCompoundedInterest(
reserve.variableBorrowRate,
currentTimestamp,
reserve.lastUpdateTimestamp
Expand Down

0 comments on commit 5638f5f

Please sign in to comment.