Skip to content

ESLint on Turborepo #8445

Answered by anthonyshew
andrevenancio asked this question in Help
Jun 11, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

The setup you're describing is less than ideal for a specific reason: since any change in the root of the Workspace will cause cache misses for all your tasks. In the case of a root .eslintrc.json, you would update the configuration for your ESLint task and all of your tasks would miss cache.

While that isn't necessarily wrong, you may find it less than desirable. There's a tradeoff between having higher cache hit ratios vs. simpler configuration for ESLint in this case, so you may prefer one way or another. In general, be cautious about making your Workspace root bigger, since the effect of those cache misses can compound significantly as:

  1. your monorepo gets bigger
  2. each thing you add to…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@alecmev
Comment options

@anthonyshew
Comment options

@alecmev
Comment options

@anthonyshew
Comment options

@alecmev
Comment options

Answer selected by andrevenancio
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