Skip to content

Commit

Permalink
Update clear-caches.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bradzacher committed Feb 17, 2023
1 parent 34ef895 commit 9fe72ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/typescript-estree/src/clear-caches.ts
Expand Up @@ -5,7 +5,10 @@ import { clearGlobCache } from './parseSettings/resolveProjectList';

/**
* Clears all of the internal caches.
* Generally you shouldn't need or want to use this
* Generally you shouldn't need or want to use this.
* Examples of intended uses:
* - In tests to reset parser state to keep tests isolated.
* - In custom lint tooling that iteratively lints one project at a time to prevent OOMs.
*/
export function clearCaches(): void {
clearProgramCacheOriginal();
Expand Down

0 comments on commit 9fe72ef

Please sign in to comment.