diff --git a/client/eslint.config.js b/client/eslint.config.js index 79a552ea..c689c75d 100644 --- a/client/eslint.config.js +++ b/client/eslint.config.js @@ -23,6 +23,10 @@ export default tseslint.config( "warn", { allowConstantExport: true }, ], + "@typescript-eslint/no-unused-vars": [ + "error", + { argsIgnorePattern: "^_" }, + ], }, }, ); diff --git a/client/src/components/CustomHeaders.tsx b/client/src/components/CustomHeaders.tsx index 35b12212..67aee18d 100644 --- a/client/src/components/CustomHeaders.tsx +++ b/client/src/components/CustomHeaders.tsx @@ -90,7 +90,7 @@ const CustomHeaders = ({ onChange(newHeaders); setJsonError(null); setIsJsonMode(false); - } catch (error) { + } catch { setJsonError("Invalid JSON format"); } };