Skip to content

Change Request: Investigate using Node.js compile cache #18968

@nzakas

Description

@nzakas

ESLint version

HEAD

What problem do you want to solve?

ESLint can take a long time to start up because it loads in so many files from disk.

What do you think is the correct solution?

Use the new Node.js Compile Cache API to enable on-disk caching for ESLint in Node.js v22+. This will cache the compiled JavaScript that was loaded prior to the API call so that subsequent runs of ESLint will load those files from the cache instead of reading from disk and re-evaluating.

TypeScript recently implemented this.

Participation

  • I am willing to submit a pull request for this change.

Additional comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLint

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions