Skip to content

Add pnpm lint:fix (or eslint --fix) as a pre-commit hook  #125

@dinmukhamedm

Description

@dinmukhamedm

We need to add a pre-commit hook to lint the code in order to avoid having to recommit just the lints. This might be especially frustrating for outside contributors.

Here's a couple good guides:

  1. https://levelup.gitconnected.com/how-to-run-eslint-using-pre-commit-hook-25984fbce17e
  2. https://gist.github.com/estorgio/e8bcaa8e87d0fcdcf85fdf598956e34c

Note: we probably just need eslint, and maybe optionally prettier

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfrontendRequires work in the frontend packagegood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions