fix: resolve all ESLint errors and TypeScript compilation errors
- Auto-fixed 712 import ordering errors via `pnpm lint --fix` - Manually fixed 13 remaining ESLint errors: - Prefixed unused vars with _ (mockAdminUser, params) - Removed unused imports (UnauthorizedException, vi, screen) - Moved imports above vi.mock() calls to fix import group ordering - Removed eslint-disable for non-existent rules - Fixed empty object pattern in Playwright fixture - Fixed ~40 TypeScript TS4111 index signature errors in test files: - Used bracket notation for Record<string, unknown> property access - Added missing PropertyMedia fields (id, order, caption) to test data - Fixed pre-existing test failures in rate-limit guard specs: - Added NODE_ENV override to bypass test-mode skip in guard Both `pnpm lint` and `pnpm typecheck` now exit 0 cleanly. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
5
apps/api/src/modules/reviews/application/index.ts
Normal file
5
apps/api/src/modules/reviews/application/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export { CreateReviewCommand } from './commands/create-review/create-review.command';
|
||||
export { DeleteReviewCommand } from './commands/delete-review/delete-review.command';
|
||||
export { GetReviewsByTargetQuery } from './queries/get-reviews-by-target/get-reviews-by-target.query';
|
||||
export { GetReviewsByUserQuery } from './queries/get-reviews-by-user/get-reviews-by-user.query';
|
||||
export { GetAverageRatingQuery } from './queries/get-average-rating/get-average-rating.query';
|
||||
1
apps/api/src/modules/reviews/domain/entities/index.ts
Normal file
1
apps/api/src/modules/reviews/domain/entities/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { ReviewEntity, type ReviewProps } from './review.entity';
|
||||
2
apps/api/src/modules/reviews/domain/events/index.ts
Normal file
2
apps/api/src/modules/reviews/domain/events/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export { ReviewCreatedEvent } from './review-created.event';
|
||||
export { ReviewDeletedEvent } from './review-deleted.event';
|
||||
4
apps/api/src/modules/reviews/domain/index.ts
Normal file
4
apps/api/src/modules/reviews/domain/index.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export * from './entities';
|
||||
export * from './value-objects';
|
||||
export * from './events';
|
||||
export * from './repositories';
|
||||
@@ -0,0 +1,6 @@
|
||||
export {
|
||||
REVIEW_REPOSITORY,
|
||||
type IReviewRepository,
|
||||
type PaginatedResult,
|
||||
} from './review.repository';
|
||||
export { type ReviewItemData, type ReviewStatsData } from './review-read.dto';
|
||||
@@ -0,0 +1 @@
|
||||
export { Rating } from './rating.vo';
|
||||
Reference in New Issue
Block a user