Skip to content

Using lint-staged for pre-commit hook #1274

@blitzmann

Description

@blitzmann

Is your feature request related to a problem? Please describe.
I'm looking for abit of discussion on whether or not [lint-staged](https://github.com/okonet/lint-staged) has ben considered for use before, and if not, if it's something that we would be interested in adding. Right now, for every commit, prettier and eslint is run for the entire repo, which can take quite a bit of time. lint-staged saves time by only running linters on files that are being staged for commit (files that the user changed), under the assumption that everything else in the repo is in a proper state.

Describe the solution you'd like
Using lint-staged to surgically apply linters rather than applying them to the whole repo.

Describe alternatives you've considered
n/a

Additional context
n/a

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