Skip to content

Add prettier and eslint caching for local dev - #3138

Merged
mfedderly merged 1 commit into
masterfrom
mf/devex-cherry-picks
Aug 5, 2026
Merged

Add prettier and eslint caching for local dev#3138
mfedderly merged 1 commit into
masterfrom
mf/devex-cherry-picks

Conversation

@mfedderly

@mfedderly mfedderly commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Subsequent eslint/prettier runs are much faster (m4 macbook pro)

% time pnpm lint:prettier
$ prettier --cache --check .
Checking formatting...
All matched files use Prettier code style!
pnpm lint:prettier  14.26s user 1.19s system 141% cpu 10.892 total

% time pnpm lint:prettier
$ prettier --cache --check .
Checking formatting...
All matched files use Prettier code style!
pnpm lint:prettier  1.93s user 0.74s system 134% cpu 1.985 total

% time pnpm lint:eslint
$ eslint --cache packages
pnpm lint:eslint  5.42s user 0.44s system 178% cpu 3.281 total

% time pnpm lint:eslint
$ eslint --cache packages
pnpm lint:eslint  0.83s user 0.18s system 135% cpu 0.743 total

- Thanks to @smallsaucepan in #2988 for these changes
- Deliberately not using this in CI. Prettier is the slowest thing and it takes about 30s, may revisit cache rehydration later
- Also cleans up the lint-staged README generation, which no longer has to worry about .js files
@mfedderly mfedderly added this to the v8 milestone Aug 5, 2026
@mfedderly
mfedderly merged commit 3283bde into master Aug 5, 2026
3 checks passed
@mfedderly
mfedderly deleted the mf/devex-cherry-picks branch August 5, 2026 14:50
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.

1 participant