Skip to content

Set up linters with Pre-Commit Hooks #478

@matthewcn56

Description

@matthewcn56

As is, we can commit and make PRs before checking if our pages properly fit to our codebase's formatting standards. If we can make a github action to run yarn lint-fix and check to make sure that no errors occur on commit, we can prevent scenarios where we open PRs that won't build on netlify due to CI errors.

This can be achieved through husky precommit hooks that's similar to what's used in teach-la's typescript react starter!

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