Skip to content

Conversation

@abimaelmartell
Copy link
Member

@abimaelmartell abimaelmartell commented Jan 8, 2026

This pull request introduces automated formatting and linting workflows, adds configuration files for code style enforcement, and refactors code for improved readability and consistency. The most significant changes are the addition of a GitHub Actions workflow for testing and formatting, integration of Prettier, Husky, and lint-staged for code style enforcement, and updates to scripts and dependencies in package.json. There are also minor code style and formatting improvements throughout the codebase.

Automation and CI/CD:

  • Added .github/workflows/test.yml to automate testing, formatting checks, type checking, and build steps using GitHub Actions for pull requests and pushes to main/master branches.

Code Style Enforcement:

  • Added .prettierrc.json for Prettier configuration, .husky/pre-commit for pre-commit hooks, and updated package.json to include Prettier, Husky, and lint-staged dependencies and scripts, ensuring consistent code formatting and style checks before commits. [1] [2] [3] [4] [5] [6] [7]

Codebase Formatting and Readability:

  • Refactored code for better readability and formatting, including consistent use of trailing commas, improved error handling, and clearer multi-line statements in files such as src/commands/config.ts, src/commands/credit-usage.ts, src/index.ts, and various utility files. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]

Dependency Management:

  • Updated pnpm-lock.yaml to reflect new and updated dependencies for Prettier and related tools. [1] [2] [3]

Minor Cleanups:

  • Removed unnecessary blank lines and improved consistency in several files (src/commands/scrape.ts, src/types/scrape.ts, src/utils/client.ts, src/utils/config.ts, src/utils/credentials.ts, src/utils/options.ts, src/utils/output.ts, src/utils/url.ts). [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]

@abimaelmartell abimaelmartell merged commit 283404c into main Jan 8, 2026
1 check passed
@abimaelmartell abimaelmartell deleted the ci-workflow branch January 8, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants