diff --git a/package.json b/package.json index cd7e774..7850c94 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ }, "lint-staged": { "src/**/*.ts": [ - "prettier --write --" + "prettier --write --", + "eslint --fix" ] }, "husky": { diff --git a/src/stats/tss.ts b/src/stats/tss.ts index 028fc98..97659bb 100644 --- a/src/stats/tss.ts +++ b/src/stats/tss.ts @@ -16,7 +16,7 @@ const rangeTss = (duration: number, from: number, to: number): number => { let score = 0; const step = 1; for (let i = 0; i < duration; i += step) { - let intensity = from + (to - from) * (i / duration); + const intensity = from + (to - from) * (i / duration); score += steadyTss(step, intensity); } return score;