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) => (