Closed fernandomema closed 1 year ago
AI-Generated Summary: This pull request contains several changes related to ESLint, TypeScript, and events. Notable changes include the addition of the eslint-plugin-check-file
package and some configuration updates in .eslintrc.json
to support PASCAL_CASE enforcement for filenames. A new Github workflow, pull_request.yml
, has been added. Two files, InteractionCreate.ts
and MessageCreate.ts
, have been updated, and two new files, EventManager.ts
and InteractionIdGenerator.ts
, have been added. The updates in ZumitoFramework.ts
include the creation of a new EventManager
object and changes related to managing the Discord client.
Reviewpad Report
:bangbang: Errors
:warning: Warnings
AI-Generated Summary: This pull request includes several changes and improvements to your code:
It removes eslint-plugin-prettier
from the ESLint configuration, and adds eslint-plugin-check-file
for checking file naming conventions.
It adds a new GitHub Actions workflow pull_request.yml
for running the build and publishing a new package version with a beta tag on pull requests.
It adds new VSCode settings for automatically fixing your code with ESLint when saving files.
It updates package-lock.json
and adds eslint-plugin-check-file
as a new dev dependency.
It renames InteractionCreate.ts
and MessageCreate.ts
files to match PASCAL_CASE naming convention.
It adds a new file EventManager.ts
for managing event emitters and listeners, initializing the event manager in ZumitoFramework.ts
, and updates how events are registered.
It adds an InteractionIdGenerator.ts
utility for generating IDs for interactions.
Please review these changes and provide feedback if needed.
Beta tag version created: 1.1.75.
You can install it with npm install zumito-framework@1.1.75
.
AI-Generated Summary: This pull request introduces several changes related to code organization, file naming conventions, event management, and linting rules. Some major updates include adding the EventManager class, renaming event files with PascalCase, updating .eslintrc.json rules, and an InteractionIdGenerator utility. Other changes include various modifications within the src/ directory to accommodate these updates.
With this pull request, some refactors was made: