Add ESLint for TypeScript/React linting
- Install eslint, typescript-eslint, eslint-plugin-react-hooks - Configure eslint.config.js with flat config format - Add type: module to package.json - Fix unused variable issues (prefix with underscore) - Add Makefile targets: lint-frontend, fix-frontend
This commit is contained in:
parent
30583805cd
commit
4b394b0698
12 changed files with 1467 additions and 16 deletions
|
|
@ -12,7 +12,7 @@ import { formatDate, formatDisplayDate, getDateRange, formatTimeString, isWeeken
|
|||
|
||||
const { slotDurationMinutes, maxAdvanceDays, minAdvanceDays } = constants.booking;
|
||||
|
||||
type AvailabilityDay = components["schemas"]["AvailabilityDay"];
|
||||
type _AvailabilityDay = components["schemas"]["AvailabilityDay"];
|
||||
type AvailabilityResponse = components["schemas"]["AvailabilityResponse"];
|
||||
type TimeSlot = components["schemas"]["TimeSlot"];
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import constants from "../../../../shared/constants.json";
|
|||
const { READY, SPENT, REVOKED } = constants.inviteStatuses;
|
||||
|
||||
// Use generated types from OpenAPI schema
|
||||
type InviteRecord = components["schemas"]["InviteResponse"];
|
||||
type _InviteRecord = components["schemas"]["InviteResponse"];
|
||||
type PaginatedInvites = components["schemas"]["PaginatedResponse_InviteResponse_"];
|
||||
type UserOption = components["schemas"]["AdminUserResponse"];
|
||||
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ import { useRequireAuth } from "../hooks/useRequireAuth";
|
|||
import { components } from "../generated/api";
|
||||
|
||||
// Use generated types from OpenAPI schema
|
||||
type CounterRecord = components["schemas"]["CounterRecordResponse"];
|
||||
type SumRecord = components["schemas"]["SumRecordResponse"];
|
||||
type _CounterRecord = components["schemas"]["CounterRecordResponse"];
|
||||
type _SumRecord = components["schemas"]["SumRecordResponse"];
|
||||
type PaginatedCounterRecords = components["schemas"]["PaginatedResponse_CounterRecordResponse_"];
|
||||
type PaginatedSumRecords = components["schemas"]["PaginatedResponse_SumRecordResponse_"];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue