fix linting errors
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user