Skip to content

Output on lint tasks #1918

Closed Answered by nathanhammond
TxHawks asked this question in Help
Sep 12, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

A few things:

  • eslint --fix is intended to be non-material changes only. In other words your code should still function identically.
  • outputs are intended to capture and restore generated assets that were constructed as part of that task, which can then be available for future tasks (either downstream builds, or releases, or ...) or other developers working on the same repository. Lint changes are generally not relevant to that.
  • Turborepo is creating the cache hash based upon the state of the directory prior to running lint. So even with the lint changes this is still safe.

It's a bit confusing that it is doing this, but it is not wrong for running lint prior to build, and it's useful for t…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@TxHawks
Comment options

Comment options

You must be logged in to vote
1 reply
@TxHawks
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