Execute lint-staged only in package where there are staged changes
See original GitHub issueHi,
It seems that with the proposed structure precommit
is run in each package even those that don’t have staged changes. Any idea on how to improve this?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Run eslint "ONLY" on the staged files - Stack Overflow
I am using husky and lint-staged. But it runs the lint command for all the files in src and not on staged files...
Read more >Diving into Husky and Lint-staged | Laurie on Tech
This means files you've changed or created but haven't yet committed to your project. Working on staged files limits the number of files...
Read more >Linting Staged Git Files with lint-staged -- newline - Fullstack.io
With lint-staged , executing the command git commit automatically runs the linter against files staged for commit.
Read more >lint-staged: Lint Your Staged Files | Karuppiah's Blog
So, lint-staged can not just run commands on your staged files, if your commands are not just checks and if they also automatically...
Read more >Lint Staged With Husky for Pre-commit Validations - YouTube
Learn how to use lint staged with husky to implement linting and formatting your code with Prettier and Eslint on pre-commit. Lint staged...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dialex have a look here https://github.com/goldwasserexchange/public/blob/master/precommit.js
@jogold that
precommit.js
file returns a 404