Skip to content

Bug: lint-staged script missing for husky pre-commit-hook #99

Open
@adithyaakrishna

Description

@adithyaakrishna

Describe the bug.

The pre-commit hook for husky is missing a script to lint staged files for git commit workflow

Describe the steps to reproduce the behavior.

  • Clone this repo
  • Make some changes with lint issues
  • Try committing the change, husky will exit with code 1 similar to the below screenshot

Expected behavior.

Add a lint-staged script to handle and fix the error

Screenshots.

image

Operating Environment

Windows/macOS/Linux

Additional Information

Credits to @Lucif3r-in at #76 (comment) for noticing this bug :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions