diff --git a/.eslintrc.json b/.eslintrc.json index 0c5c0a88..c53d24e2 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -2,8 +2,6 @@ "extends": ["prettier", "react-app", "react-app/jest"], "plugins": ["prettier"], "rules": { - "@typescript-eslint/no-unused-vars": "off", - "@typescript-eslint/no-redeclare": "off", "import/no-anonymous-default-export": "off", "curly": "warn", "no-console": [ diff --git a/src/components/ContextMenu.tsx b/src/components/ContextMenu.tsx index f8292c85..335f96a0 100644 --- a/src/components/ContextMenu.tsx +++ b/src/components/ContextMenu.tsx @@ -38,9 +38,11 @@ const ContextMenu = ({ options, onCloseRequest, top, left }: Props) => { className="context-menu" onContextMenu={(event) => event.preventDefault()} > - {options.map((option, idx) => ( + {options.map(({ action, label }, idx) => (