refactor: isolate database logic and models #48
Annotations
16 errors and 15 warnings
|
lint-and-type-check (server)
Process completed with exit code 1.
|
|
lint-and-type-check (server):
server/src/types/auth.ts#L33
An interface declaring no members is equivalent to its supertype
|
|
lint-and-type-check (server):
server/src/routes/surveys.ts#L218
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
|
|
lint-and-type-check (server):
server/src/index.ts#L216
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
|
|
lint-and-type-check (server):
server/src/index.ts#L211
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
|
|
lint-and-type-check (client):
client/src/pages/Profile/AdminEditProfile.tsx#L127
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
|
|
lint-and-type-check (client):
client/src/pages/Profile/AdminEditProfile.tsx#L113
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
|
|
lint-and-type-check (client):
client/src/pages/Profile/AdminEditProfile.tsx#L113
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
|
|
lint-and-type-check (client):
client/src/pages/Profile/AdminEditProfile.tsx#L82
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
|
|
lint-and-type-check (client):
client/src/pages/PastEntries/SurveyEdit.tsx#L61
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
|
|
lint-and-type-check (client):
client/src/pages/PastEntries/SurveyDetails.tsx#L128
Prefer using nullish coalescing operator (`??`) instead of a ternary expression, as it is simpler to read
|
|
lint-and-type-check (client):
client/src/pages/PastEntries/PastEntries.tsx#L94
Prefer using nullish coalescing operator (`??`) instead of a ternary expression, as it is simpler to read
|
|
lint-and-type-check (client):
client/src/pages/CompletedSurvey/QrPage.tsx#L27
Prefer using an optional chain expression instead, as it's more concise and easier to read
|
|
lint-and-type-check (client):
client/src/pages/AdminDashboard/StaffDashboard.tsx#L73
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
|
|
lint-and-type-check (client):
client/src/pages/AdminDashboard/NewUser.tsx#L51
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
|
|
lint-and-type-check (client)
The strategy configuration was canceled because "lint-and-type-check.server" failed
|
|
lint-and-type-check (server):
server/src/utils/authTokenHandler.ts#L32
Unexpected any. Specify a different type
|
|
lint-and-type-check (server):
server/src/types/models.ts#L19
Unexpected any. Specify a different type
|
|
lint-and-type-check (server):
server/src/routes/surveys.ts#L397
Unexpected any. Specify a different type
|
|
lint-and-type-check (server):
server/src/routes/surveys.ts#L269
Unexpected any. Specify a different type
|
|
lint-and-type-check (server):
server/src/middleware/auth.ts#L71
Unexpected any. Specify a different type
|
|
lint-and-type-check (client):
client/src/pages/AdminDashboard/StaffDashboard.tsx#L124
Unexpected console statement
|
|
lint-and-type-check (client):
client/src/pages/AdminDashboard/StaffDashboard.tsx#L83
React Hook useEffect has missing dependencies: 'navigate' and 'onLogout'. Either include them or remove the dependency array. If 'onLogout' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
|
lint-and-type-check (client):
client/src/pages/AdminDashboard/StaffDashboard.tsx#L79
Unexpected console statement
|
|
lint-and-type-check (client):
client/src/pages/AdminDashboard/StaffDashboard.tsx#L68
Unexpected any. Specify a different type
|
|
lint-and-type-check (client):
client/src/pages/AdminDashboard/StaffDashboard.tsx#L67
Unexpected any. Specify a different type
|
|
lint-and-type-check (client):
client/src/pages/AdminDashboard/StaffDashboard.tsx#L66
Unexpected any. Specify a different type
|
|
lint-and-type-check (client):
client/src/pages/AdminDashboard/StaffDashboard.tsx#L65
Unexpected any. Specify a different type
|
|
lint-and-type-check (client):
client/src/pages/AdminDashboard/StaffDashboard.tsx#L64
Unexpected any. Specify a different type
|
|
lint-and-type-check (client):
client/src/pages/AdminDashboard/StaffDashboard.tsx#L58
Unexpected console statement
|
|
lint-and-type-check (client):
client/src/pages/AdminDashboard/NewUser.tsx#L54
Unexpected console statement
|