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

Precommit hook - Only lint staged files #1898

Merged
merged 1 commit into from Nov 30, 2023
Merged

Precommit hook - Only lint staged files #1898

merged 1 commit into from Nov 30, 2023

Conversation

bttf
Copy link
Collaborator

@bttf bttf commented Nov 30, 2023

This change makes it so we only lint staged files in our lint-staged hook.

Previously we were running yarn lint which calls eslint supplied with paths that effectively crawl the entire codebase, despite only needing to lint staged files.

This makes our pre-commit hook much faster, and also eliminates unnecessary warnings/errors.

@bttf bttf requested a review from jdorn November 30, 2023 15:13
@bttf bttf merged commit d412935 into main Nov 30, 2023
2 checks passed
@bttf bttf deleted the adnan/fix-lint-staged branch November 30, 2023 15:38
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.

None yet

2 participants