From 2d2ddb45bd291841e87b3a22b6c334aa55373cf5 Mon Sep 17 00:00:00 2001 From: martylukyy <35452459+martylukyy@users.noreply.github.com> Date: Sat, 28 Jan 2023 17:04:30 +0100 Subject: [PATCH] chore(web): ignore eslint warnings (#662) * enhancement(web): styled scrollbars for listboxes * chore(web): fix eslint warnings * Revert "enhancement(web): styled scrollbars for listboxes" This reverts commit 6b4a28baa6b560044799f31927a3acb88d2b65d6. --- web/.eslintrc.js | 3 +++ web/src/components/inputs/input.tsx | 4 +--- web/src/screens/Base.tsx | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/web/.eslintrc.js b/web/.eslintrc.js index f06d41b..b504482 100644 --- a/web/.eslintrc.js +++ b/web/.eslintrc.js @@ -65,6 +65,9 @@ module.exports = { "@typescript-eslint/keyword-spacing": ["error"], "object-curly-spacing": "off", "@typescript-eslint/object-curly-spacing": ["warn", "always"], + // We have quite some "Unexpected any. Specify a different type" warnings. + // This disables these warnings since they are false positives afaict. + "@typescript-eslint/no-explicit-any": "off" }, }, ], diff --git a/web/src/components/inputs/input.tsx b/web/src/components/inputs/input.tsx index 5234327..d529c11 100644 --- a/web/src/components/inputs/input.tsx +++ b/web/src/components/inputs/input.tsx @@ -2,7 +2,6 @@ import { Field, FieldProps } from "formik"; import { classNames } from "../../utils"; import { EyeIcon, EyeSlashIcon } from "@heroicons/react/24/solid"; import { useToggle } from "../../hooks/hooks"; -import { log } from "util"; type COL_WIDTHS = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; @@ -228,8 +227,7 @@ export const NumberField = ({ {({ field, - meta, - form + meta }: FieldProps) => (