Skip to content

Commit 6f727b6

Browse files
fix: update error handling in JSON parsing and add ESLint rule for unused variables
1 parent cb8c454 commit 6f727b6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

client/eslint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export default tseslint.config(
2323
"warn",
2424
{ allowConstantExport: true },
2525
],
26+
"@typescript-eslint/no-unused-vars": [
27+
"error",
28+
{ argsIgnorePattern: "^_" },
29+
],
2630
},
2731
},
2832
);

client/src/components/CustomHeaders.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const CustomHeaders = ({
9090
onChange(newHeaders);
9191
setJsonError(null);
9292
setIsJsonMode(false);
93-
} catch (error) {
93+
} catch {
9494
setJsonError("Invalid JSON format");
9595
}
9696
};

0 commit comments

Comments
 (0)