Skip to content

Is lint-staged still relevant when using Turborepo? #2595

Closed Answered by nathanhammond
jplwood asked this question in Help
Discussion options

You must be logged in to vote

This is actually a fantastic question!

In this scenario Turborepo doesn't provide any particularly compelling benefits:

  • You already have an enumerated list of things you want to lint.
  • You'll literally never see those things again since it's --fix on a commit hook.

In theory, the incremental cache from ESLint would imply that you do not need to explicitly specify the staged files in order to get approximately equivalent performance to what Turborepo can provide, and, since it's regarding local changes, it won't ever provide value for others via shared caching.

Now, if your lint task has dependencies, (e.g. type generation) you can still leverage Turborepo to invoke the command using an a…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@robert-melonn
Comment options

Answer selected by nathanhammond
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants