chore: update eslint rules

This commit is contained in:
Steven
2022-09-04 06:48:19 +08:00
parent 4743818fe7
commit b884327a53
25 changed files with 69 additions and 93 deletions

View File

@ -26,9 +26,7 @@ interface DailyUsageStat {
count: number;
}
interface Props {}
const UsageHeatMap: React.FC<Props> = () => {
const UsageHeatMap = () => {
const todayTimeStamp = utils.getDateStampByDate(Date.now());
const todayDay = new Date(todayTimeStamp).getDay() + 1;
const nullCell = new Array(7 - todayDay).fill(0);