fix linting errors
CI / build (push) Failing after 1s
CI / lint (push) Has been skipped
CI / create-and-publish-docker-image (push) Has been skipped

This commit is contained in:
2026-05-25 16:30:47 +02:00
parent ccc4de81b6
commit e497aabb51
2 changed files with 2 additions and 29 deletions
-26
View File
@@ -1,26 +0,0 @@
import js from "@eslint/js";
import { globalIgnores } from "eslint/config";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import globals from "globals";
import tseslint from "typescript-eslint";
export default tseslint.config([
globalIgnores(["dist"]),
{
files: ["**/*.{ts,tsx}"],
extends: [
"airbnb",
"plugin:prettier/recommended",
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs["recommended-latest"],
reactRefresh.configs.vite,
"prettier",
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
},
]);
+2 -3
View File
@@ -14,9 +14,6 @@ function choreItem(chore: FlatasticChore, idToNameMap: Record<number, string>) {
className = chore.timeLeftNext <= 0 ? "due" : "notDue";
const timeInDays = Math.abs(chore.timeLeftNext) / (60 * 60 * 24) + 1;
console.log(chore.title, timeInDays);
const grubers = Math.floor(timeInDays / 100);
const days = Math.floor(timeInDays % 100);
@@ -26,6 +23,8 @@ function choreItem(chore: FlatasticChore, idToNameMap: Record<number, string>) {
{days > 0 && `${days} d`}
</span>
);
Math.abs(chore.timeLeftNext) / (60 * 60 * 24) + 1;
}
return (