Integrate auto-fixing of ESLint errors to before-commit hook
This commit is contained in:
@@ -31,7 +31,8 @@
|
||||
},
|
||||
"lint-staged": {
|
||||
"src/**/*.ts": [
|
||||
"prettier --write --"
|
||||
"prettier --write --",
|
||||
"eslint --fix"
|
||||
]
|
||||
},
|
||||
"husky": {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user