ESLint on Turborepo #8445
-
SummaryLooking at the most recent turborepo, it seems like app packages and apps have a Is it not possible to have a single file on the root that is common to all packages/apps? I dont think that works. I am wondering if this is a best practice. it feels like we could benefit from having a single Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
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 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:
|
Beta Was this translation helpful? Give feedback.
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: