fix(lint): exclude untracked .js files and fix unused import

- eslint.config.js: add ignores pattern for src/**/*.js (ESLint 9+ format)
- .eslintignore: added for backward compatibility warning suppression
- Appointments.test.tsx: remove unused Appointment import

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
groombook-ci[bot]
2026-03-29 00:09:56 +00:00
committed by Flea Flicker
parent cac3475c8d
commit 40867dc073
3 changed files with 14 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
# Ignore untracked .js files containing JSX (build artifacts)
src/__tests__/*.js
src/portal/sections/*.js
src/portal/*.js
src/pages/*.js
src/components/*.js
src/lib/*.js
+7
View File
@@ -1,6 +1,13 @@
import tseslint from "typescript-eslint";
export default tseslint.config(
{
ignores: [
// Untracked .js files containing JSX (build artifacts)
"src/**/*.js",
"src/**/*.jsx",
],
},
...tseslint.configs.recommended,
{
rules: {
@@ -1,6 +1,5 @@
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
import { render, screen, fireEvent, waitFor } from "@testing-library/react";
import type { Appointment } from "../portal/mockData.js";
import { parseTimeTo24Hour, isUpcoming, CustomerNotesSection, ConfirmationSection } from "../portal/sections/Appointments.js";
const UPCOMING_APPT = {