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

Pre-Commit hook linting all changed files instead of staged only #868

Open
JSPRH opened this issue May 10, 2024 · 0 comments
Open

Pre-Commit hook linting all changed files instead of staged only #868

JSPRH opened this issue May 10, 2024 · 0 comments

Comments

@JSPRH
Copy link
Contributor

JSPRH commented May 10, 2024

Version

Problem Description

The pre-commit hook is currently running nx affected:lint --fix --files which lints all changed files instead of staged files only. This leads to commit aborts when committing a subset of changes while having non-staged files not yet lint-conform.

Steps to Reproduce

Stage changes, and make some other changes which are not lint-conform. Try to commit the staged changes.

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant