KEMBAR78
GitHub - JoshuaKGoldberg/repros at repro-vs-code-reparse-typescript-eslint
Skip to content

JoshuaKGoldberg/repros

 
 

Repository files navigation

Repro: VSCode + ESLint Re-Parsing Type Information

Reproduction case for the VSCode ESLint not triggering an ESLint re-parse of all files when one is changed. The result is that type information is not re-computed for downstream files. That can cause erroneous lint rule reports.

Screen.Recording.2024-01-22.at.12.51.52.PM.mov

Setup

npm i

Reproduction

  1. Open in VS Code with the ESLint extension enabled
  2. Observe that sink.ts has a `` ESLint error
  3. Change the type in source.ts from any to unknown
  4. Observe that sink.ts still has an ESLint error, even though source.ts was fixed.

Restarting the ESLint server at this point will cause the error to clear.

About

Reproductions and larger code snippets I need to reference online.

Resources

License

Stars

Watchers

Forks