Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure ESLint and ESLint CI 🤖 #6

Merged
merged 6 commits into from
Nov 19, 2023
Merged

Conversation

mitsuki31
Copy link
Owner

Changes Made

  • Added the ESLint package as a development dependency and included a script in the package.json file to invoke the linter.

  • Added ESLint configuration file for the project.

  • Added an ESLint ignore file to specify files and directories to be excluded from linting.

  • Addressed various lint errors and warnings, aiming to enhance code maintainability and readability.

  • Refactored the getVideosInfo function to eliminate the use of an async function as the executor in the Promise constructor, addressing the 'no-async-promise-executor' linting error.

  • Setted up the ESLint workflow for the project.

All commits
  • 7cd0a87 - Initial ESLint workflow
  • 27b1fd4 - Several refactor and changes in main entry module
  • 36ea7a6 - Refactor the getVideosInfo function
  • cc137ba - Initial ESLint ignore file
  • a13ffb9 - Initial ESLint configuration file
  • 43996f4 - Add eslint package as dev dependency

Summary

These changes introduce ESLint to the project, addressing lint errors and warnings, enhancing code quality, and establishing a linting workflow for ongoing development. The getVideosInfo function has been refactored to conform to linting rules, specifically eliminating the 'no-async-promise-executor' issue. The ESLint configuration and ignore files are also added to tailor linting behavior for the project.

We also added a script to invoke the linter in package.json
This changes was made to fix several lint errors and warnings,
and improving code maintainablity and readability.
@mitsuki31 mitsuki31 added the refactor Refactor and enhancement changes label Nov 19, 2023
@mitsuki31 mitsuki31 self-assigned this Nov 19, 2023
@mitsuki31 mitsuki31 merged commit fa9faa7 into master Nov 19, 2023
8 checks passed
@mitsuki31 mitsuki31 deleted the chore/configure-eslint branch November 19, 2023 04:49
@mitsuki31 mitsuki31 added chore Maintenance updates to improve project maintainability and removed refactor Refactor and enhancement changes labels Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance updates to improve project maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant