Skip to content

Add lint staged and husky #11443

@maxbronnikov10

Description

@maxbronnikov10

Problem

While I was adding the fixes to the repository, I forgot to run the format command to lint the project. This has a negative impact on the developer because it causes another commit for linting, which triggers CI jobs and uses resources not intended for the primary purpose of the PR.

Solution

Use pre-commit or pre-push git hooks for linting project. Husky and lint-staged libraries implement this functionality in JS ecosystem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions