question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Execute lint-staged only in package where there are staged changes

See original GitHub issue

Hi,

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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

0reactions
dialexcommented, Jun 2, 2019

@jogold that precommit.js file returns a 404

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found