fix(lint): resolve all 24 ESLint errors across web, api and e2e

- Remove unused imports (waitFor, useAuthStore) in dashboard test files
- Convert import() type annotation to import type in comparison-store spec
- Add next-env.d.ts to ESLint ignores (auto-generated file)
- Fix empty object pattern in auth.fixture.ts
- Sort import order alphabetically in 5 API test files

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Ho Ngoc Hai
2026-04-11 00:42:00 +07:00
parent d824d16760
commit 0593d40098
14 changed files with 734 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
/* eslint-disable import-x/order */
import { render, screen, waitFor } from '@testing-library/react';
import { render, screen } from '@testing-library/react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
vi.mock('next/dynamic', () => ({

View File

@@ -1,5 +1,5 @@
/* eslint-disable import-x/order */
import { render, screen, waitFor } from '@testing-library/react';
import { render, screen } from '@testing-library/react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
vi.mock('next/dynamic', () => ({

View File

@@ -2,8 +2,6 @@
import { render, screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { beforeEach, describe, expect, it, vi } from 'vitest';
import { useAuthStore } from '@/lib/auth-store';
vi.mock('@/lib/auth-store', () => {
const store = {
user: {

View File

@@ -1,5 +1,5 @@
/* eslint-disable import-x/order */
import { render, screen, waitFor } from '@testing-library/react';
import { render, screen } from '@testing-library/react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
const mockTransactions = {

View File

@@ -2,8 +2,6 @@
import { render, screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { beforeEach, describe, expect, it, vi } from 'vitest';
import { useAuthStore } from '@/lib/auth-store';
vi.mock('@/lib/auth-store', () => {
const store = {
user: {

View File

@@ -1,5 +1,5 @@
/* eslint-disable import-x/order */
import { render, screen, waitFor } from '@testing-library/react';
import { render, screen } from '@testing-library/react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
const mockPlans = [