Skip to content

Conversation

@mcmire
Copy link
Contributor

@mcmire mcmire commented Dec 11, 2025

The eslint executable takes a --cache option, which instructs ESLint to save the results of linting for each file, skipping linting in the future for files that haven't changed. While this does tend to make repeated runs faster, in other repos where this technique is also used, we've noticed that the cache can also give misleading output when running eslint with various other options, making debugging lint issues frustrating. It is better in the long run to disable caching.

Examples


Note

Remove ESLint cache by changing lint:eslint script from eslint . --cache to eslint ..

Written by Cursor Bugbot for commit aa92948. This will update automatically on new commits. Configure here.

The `eslint` executable takes a `--cache` option, which instructs ESLint
to save the results of linting for each file, skipping linting in the
future for files that haven't changed. While this does tend to make
repeated runs faster, in other repos where this technique is also used,
we've noticed that the cache can also give misleading output when
running `eslint` with various other options, making debugging lint
issues frustrating. It is better in the long run to disable caching.
@mcmire mcmire requested a review from a team as a code owner December 11, 2025 14:27
Copy link

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks I meant to do this but forgot

@mcmire mcmire enabled auto-merge (squash) December 11, 2025 17:48
@mcmire mcmire merged commit 699d28a into main Dec 11, 2025
26 checks passed
@mcmire mcmire deleted the remove-eslint-cache branch December 11, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants