Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

[Issue #181]Add no console log to eslint rules #182

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ module.exports = {
"@typescript-eslint/no-explicit-any": "error",
// Just warn since playwright tests may not use screen the way jest would
"testing-library/prefer-screen-queries": "warn",
// Prevent unnecessary console statements
"no-console": ["error", { allow: ["warn", "error"] }],
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/api/BaseApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const throwError = (
searchInputs?: QueryParamData,
firstError?: APIResponseError,
) => {
console.log("Throwing error: ", message, status_code, searchInputs);
console.error("Throwing error: ", message, status_code, searchInputs);

// Include just firstError for now, we can expand this
// If we need ValidationErrors to be more expanded
Expand Down
Loading