Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Running script before each commit to auto format and test #85

@PengVidDev

Description

@PengVidDev
  • Bug
  • Clean up
  • Question
  • Enhancement
  • Suggestion
  • Other

What needs to be done.

  • Writing a script to run before each commit to automatically:
    • Run lint:fix to ensure that files are being formatted correctly
    • Run tests to ensure that behavior of code is validated

Why

  • Sometimes we forget to run tests or fix linter issues after working on the code, good to have an automated way to do all of this because we are lazy and are eager to work on next task 😄.

How

  • Using Husky and git hooks (pre-commit) to run script when committing changes
  • More about Husky

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions