Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix husky pre-commit & type check only staged #1361

Merged
merged 3 commits into from
Oct 29, 2024
Merged

Fix husky pre-commit & type check only staged #1361

merged 3 commits into from
Oct 29, 2024

Conversation

webfiltered
Copy link
Collaborator

Does what it says on the commits.

  • Fix husky pre-commit on some Windows clients
  • Limit commit type check to staged files
  • Remove deprecated git add from lint-staged

Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] None 0 5.15 kB gustavopch

View full report↗︎

Copy link
Member

@huchenlei huchenlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this respect tsc-strict? I added that precommit hook to make sure the strict check passes for each commit.

@huchenlei
Copy link
Member

huchenlei commented Oct 29, 2024

Anyway, we shall still see the ts-strict error via the CI test.

@huchenlei huchenlei merged commit 795e932 into main Oct 29, 2024
9 checks passed
@huchenlei huchenlei deleted the pre-commit branch October 29, 2024 18:15
@webfiltered
Copy link
Collaborator Author

It respects tsconfig, but probably does not do the per-file strict check since it's not part of typescript. Build will also still fail.

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.

2 participants