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
|
|
@ -1,5 +1,5 @@
|
|||
import { test, expect, Page } from "@playwright/test";
|
||||
import { formatDateLocal, getTomorrowDateStr } from "./helpers/date";
|
||||
import { getTomorrowDateStr } from "./helpers/date";
|
||||
import { API_URL, REGULAR_USER, ADMIN_USER, clearAuth, loginUser } from "./helpers/auth";
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { test, expect, Page } from "@playwright/test";
|
||||
import { formatDateLocal, getTomorrowDateStr } from "./helpers/date";
|
||||
import { test, expect } from "@playwright/test";
|
||||
import { getTomorrowDateStr } from "./helpers/date";
|
||||
import { API_URL, REGULAR_USER, ADMIN_USER, clearAuth, loginUser } from "./helpers/auth";
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { test, expect, Page } from "@playwright/test";
|
||||
import { formatDateLocal, getTomorrowDateStr } from "./helpers/date";
|
||||
import { getTomorrowDateStr } from "./helpers/date";
|
||||
import { API_URL, REGULAR_USER, ADMIN_USER, clearAuth, loginUser } from "./helpers/auth";
|
||||
|
||||
/**
|
||||
|
|
@ -265,7 +265,7 @@ test.describe("Booking Page - With Availability", () => {
|
|||
|
||||
// Click any slot (3rd to avoid conflicts)
|
||||
const slotToBook = slotButtons.nth(2);
|
||||
const slotText = await slotToBook.textContent();
|
||||
const _slotText = await slotToBook.textContent();
|
||||
await slotToBook.click();
|
||||
|
||||
// Book it
|
||||
|
|
|
|||
|
|
@ -357,7 +357,7 @@ test.describe("Profile - Unauthenticated Access", () => {
|
|||
await expect(page).toHaveURL("/login");
|
||||
});
|
||||
|
||||
test("profile API requires authentication", async ({ page, request }) => {
|
||||
test("profile API requires authentication", async ({ page: _page, request }) => {
|
||||
const response = await request.get(`${API_URL}/api/profile`);
|
||||
expect(response.status()).toBe(401);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue