feat: enhance pre-push validation and update ESLint configurations

- Updated the Husky pre-push hook to validate all applications (web, docs, and server) before pushing changes, improving code quality checks.
- Modified ESLint configurations for the docs app to include additional ignored directories, ensuring cleaner linting results.
- Refactored the HomePage component in the docs app to improve structure and readability, while reintroducing the Highlight component for better content presentation.
- Added a .prettierignore file in the server app to exclude specific directories from formatting, enhancing development workflow.
- Updated various import statements across multiple files for consistency and clarity.
This commit is contained in:
Daniel Luiz Alves
2025-07-02 14:53:23 -03:00
parent 4fb7007db2
commit 75d6049b87
51 changed files with 2766 additions and 3272 deletions

View File

@@ -1,8 +1,9 @@
import { AvatarService } from "./avatar.service";
import { UpdateUserSchema, createRegisterUserSchema } from "./dto";
import { UserService } from "./service";
import { FastifyReply, FastifyRequest } from "fastify";
import { AvatarService } from "./avatar.service";
import { createRegisterUserSchema, UpdateUserSchema } from "./dto";
import { UserService } from "./service";
export class UserController {
private userService = new UserService();
private avatarService = new AvatarService();
@@ -101,7 +102,7 @@ export class UserController {
return reply.status(400).send({ error: "No file uploaded" });
}
if (!file.mimetype.startsWith('image/')) {
if (!file.mimetype.startsWith("image/")) {
return reply.status(400).send({ error: "Only images are allowed" });
}