Why is grunt precommit not detecting changes files, but all?
- Dominant language
- JavaScript
- Stars
- 12.2k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
Our Project is build with **react and typescript**.
We can't control the code style of everyone. So we used grunt task for precommit, but I found it would used more time bcs our project is so huge.
**So I would like to ask you how to use the configuration file to decide that precommit only detects modified files, not all.**
There is my grunt task config and my grunt version.


Thx for you watching and giving me some suggest.
Contributor guide
Research direction
Review the Grunt task configuration shown in the issue and trace how the precommit task selects files. No source file or test is named, so first identify the relevant task entry point and existing tests; done means establishing whether the configuration can scope checks to modified files and documenting or implementing that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, typescript
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100