From cae59adf959ef9d8aef0f679d304e97438f60373 Mon Sep 17 00:00:00 2001 From: maalni Date: Fri, 29 Nov 2024 20:14:51 +0900 Subject: [PATCH] chore: update prettier to version 3.4.1 (#343) --- CONTRIBUTING.md | 68 ++++++++++++++++++++++++------------------------- README.md | 16 ++++++------ package.json | 2 +- pnpm-lock.yaml | 16 ++++++------ 4 files changed, 51 insertions(+), 51 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f1a5981..3d6f460 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -146,72 +146,72 @@ This directory includes all database-related files and models. Contains Prisma models representing the various entities in the application, such as users, characters, achievements, and more. -- **`prismaClient.ts`**: Initializes and exports the Prisma client to be used across the application for database operations. -- **`global.d.ts`**: Contains global TypeScript declarations that can be accessed throughout the application. +- **`prismaClient.ts`**: Initializes and exports the Prisma client to be used across the application for database operations. +- **`global.d.ts`**: Contains global TypeScript declarations that can be accessed throughout the application. ### `handlers` This directory contains handlers responsible for processing specific functionalities and data operations. -- **`user`**: Handlers for user-related operations like achievements, characters, weapons, and wishes. -- **`userProfile`**: Handlers for user profile-related operations. -- **`websocket`**: Handlers for WebSocket events and operations. -- **`wish`**: Handlers for wish-related operations. -- **`main.ts`**: The main entry point of the application, where the Express app is configured and started. +- **`user`**: Handlers for user-related operations like achievements, characters, weapons, and wishes. +- **`userProfile`**: Handlers for user profile-related operations. +- **`websocket`**: Handlers for WebSocket events and operations. +- **`wish`**: Handlers for wish-related operations. +- **`main.ts`**: The main entry point of the application, where the Express app is configured and started. ### `queues` Contains queue configurations and implementations using BullMQ. Queues are used for managing background tasks and operations. -- **`syncUserProfile.queue.ts`**: Queue for syncing user profiles. -- **`wish.queue.ts`**: Queue for handling wish-related tasks. +- **`syncUserProfile.queue.ts`**: Queue for syncing user profiles. +- **`wish.queue.ts`**: Queue for handling wish-related tasks. ### `routes` Defines the application's API routes. Each subdirectory corresponds to a specific feature or entity. -- **`auth`**: Routes for authentication, including OAuth handlers for GitHub, Google, and Microsoft. -- **`character`**: Routes related to character operations. -- **`data`**: Routes for fetching dynamic data. -- **`user`**: Routes related to user operations. -- **`weapon`**: Routes related to weapon operations. -- **`wish`**: Routes related to wish operations. +- **`auth`**: Routes for authentication, including OAuth handlers for GitHub, Google, and Microsoft. +- **`character`**: Routes related to character operations. +- **`data`**: Routes for fetching dynamic data. +- **`user`**: Routes related to user operations. +- **`weapon`**: Routes related to weapon operations. +- **`wish`**: Routes related to wish operations. ### `services` Contains business logic and service classes. These services are responsible for the core functionality of the application, interacting with the database, and processing data. -- **`auth.service.ts`**: Handles authentication logic. -- **`character.service.ts`**: Manages character-related logic. -- **`data.service.ts`**: Handles operations related to dynamic data. -- **`userProfile.service.ts`**: Manages user profile operations. -- **`weapon.service.ts`**: Manages weapon-related logic. -- **`websocket.service.ts`**: Handles WebSocket connections and events. -- **`wish.service.ts`**: Manages wish-related logic. +- **`auth.service.ts`**: Handles authentication logic. +- **`character.service.ts`**: Manages character-related logic. +- **`data.service.ts`**: Handles operations related to dynamic data. +- **`userProfile.service.ts`**: Manages user profile operations. +- **`weapon.service.ts`**: Manages weapon-related logic. +- **`websocket.service.ts`**: Handles WebSocket connections and events. +- **`wish.service.ts`**: Manages wish-related logic. ### `types` Contains TypeScript type definitions used throughout the application. -- **`frontend`**: Types used in the frontend interactions. -- **`models`**: Types representing various data models and structures, such as authentication, data index, file references, GitHub data, languages, queues, response formats, WebSocket events, and wishes. +- **`frontend`**: Types used in the frontend interactions. +- **`models`**: Types representing various data models and structures, such as authentication, data index, file references, GitHub data, languages, queues, response formats, WebSocket events, and wishes. ### `utils` Utility functions and helpers used across the application. -- **`errors.ts`**: Custom error classes and utilities. -- **`github.ts`**: Functions for interacting with GitHub APIs. -- **`hoyolab.ts`**: Functions for interacting with Hoyolab API. -- **`levenshteinDistance.ts`**: Implementation of the Levenshtein distance algorithm. -- **`log.ts`**: Logging utilities. -- **`passport.ts`**: Passport.js setup for authentication. -- **`session.ts`**: Session management setup using Express session and Prisma session store. +- **`errors.ts`**: Custom error classes and utilities. +- **`github.ts`**: Functions for interacting with GitHub APIs. +- **`hoyolab.ts`**: Functions for interacting with Hoyolab API. +- **`levenshteinDistance.ts`**: Implementation of the Levenshtein distance algorithm. +- **`log.ts`**: Logging utilities. +- **`passport.ts`**: Passport.js setup for authentication. +- **`session.ts`**: Session management setup using Express session and Prisma session store. ### `worker` Worker processes for background tasks. These are scripts that run independently to handle long-running tasks or operations that don't need to be executed immediately. -- **`userProfileSync.worker.ts`**: Worker for syncing user profiles. -- **`wish.worker.ts`**: Worker for processing wish-related tasks. -- **`worker.ts`**: General worker setup and initialization. +- **`userProfileSync.worker.ts`**: Worker for syncing user profiles. +- **`wish.worker.ts`**: Worker for processing wish-related tasks. +- **`worker.ts`**: General worker setup and initialization. diff --git a/README.md b/README.md index 391ad73..96a8696 100644 --- a/README.md +++ b/README.md @@ -4,14 +4,14 @@ ### Requirements -- [Node 20](https://nodejs.org/) -- [Pnpm 9](https://pnpm.io/) -- [PostgreSQL](https://www.postgresql.org/) -- [Redis](https://www.redis.io/) -- Oauth Tokens: (Redirect URL needs to match BACKEND_URL in .env) - - [Github](https://github.com/settings/developers) - - Optional: Google - - Optional: Microsoft +- [Node 20](https://nodejs.org/) +- [Pnpm 9](https://pnpm.io/) +- [PostgreSQL](https://www.postgresql.org/) +- [Redis](https://www.redis.io/) +- Oauth Tokens: (Redirect URL needs to match BACKEND_URL in .env) + - [Github](https://github.com/settings/developers) + - Optional: Google + - Optional: Microsoft ### Steps diff --git a/package.json b/package.json index 4bc0865..60a86b0 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "eslint-plugin-neverthrow": "^1.1.4", "eslint-plugin-prettier": "^5.2.1", "husky": "^9.1.7", - "prettier": "^3.3.3", + "prettier": "^3.4.1", "prisma": "^5.22.0", "ts-loader": "^9.5.1", "tsx": "^4.19.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 65a852c..dbd8311 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -116,13 +116,13 @@ importers: version: 1.1.4(@typescript-eslint/parser@8.16.0(eslint@9.15.0(jiti@1.21.0))(typescript@5.7.2))(eslint@9.15.0(jiti@1.21.0))(typescript@5.7.2) eslint-plugin-prettier: specifier: ^5.2.1 - version: 5.2.1(@types/eslint@8.56.10)(eslint-config-prettier@9.1.0(eslint@9.15.0(jiti@1.21.0)))(eslint@9.15.0(jiti@1.21.0))(prettier@3.3.3) + version: 5.2.1(@types/eslint@8.56.10)(eslint-config-prettier@9.1.0(eslint@9.15.0(jiti@1.21.0)))(eslint@9.15.0(jiti@1.21.0))(prettier@3.4.1) husky: specifier: ^9.1.7 version: 9.1.7 prettier: - specifier: ^3.3.3 - version: 3.3.3 + specifier: ^3.4.1 + version: 3.4.1 prisma: specifier: ^5.22.0 version: 5.22.0 @@ -1875,8 +1875,8 @@ packages: resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==} engines: {node: '>=6.0.0'} - prettier@3.3.3: - resolution: {integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==} + prettier@3.4.1: + resolution: {integrity: sha512-G+YdqtITVZmOJje6QkXQWzl3fSfMxFwm1tjTyo9exhkmWSqC4Yhd1+lug++IlR2mvRVAxEDDWYkQdeSztajqgg==} engines: {node: '>=14'} hasBin: true @@ -3513,10 +3513,10 @@ snapshots: transitivePeerDependencies: - typescript - eslint-plugin-prettier@5.2.1(@types/eslint@8.56.10)(eslint-config-prettier@9.1.0(eslint@9.15.0(jiti@1.21.0)))(eslint@9.15.0(jiti@1.21.0))(prettier@3.3.3): + eslint-plugin-prettier@5.2.1(@types/eslint@8.56.10)(eslint-config-prettier@9.1.0(eslint@9.15.0(jiti@1.21.0)))(eslint@9.15.0(jiti@1.21.0))(prettier@3.4.1): dependencies: eslint: 9.15.0(jiti@1.21.0) - prettier: 3.3.3 + prettier: 3.4.1 prettier-linter-helpers: 1.0.0 synckit: 0.9.1 optionalDependencies: @@ -4230,7 +4230,7 @@ snapshots: dependencies: fast-diff: 1.3.0 - prettier@3.3.3: {} + prettier@3.4.1: {} prisma@5.22.0: dependencies: