Skip to content

Conversation

@bhouston
Copy link
Member

@bhouston bhouston commented Mar 7, 2025

Add linting to pre-commit hook

Description

This PR adds ESLint checking to the Husky pre-commit hook to ensure that linting passes before allowing a commit. This aligns with the CI pipeline requirements and helps catch linting issues early.

Changes

  • Updated the pre-commit-check script in package.json to run pnpm lint before pnpm build
  • Updated the pre-commit hook to use pnpm consistently instead of npm

Testing

The pre-commit hook now runs both linting and build checks before allowing a commit.

Fixes #27

@bhouston bhouston merged commit 3f4c4be into main Mar 7, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add linting to pre-commit hook

2 participants