mirror of
https://github.com/kyantech/Palmr.git
synced 2025-10-24 16:43:47 +00:00
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:
@@ -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" });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user