In Visual Studio 2019, I have set the following option:
Tools -> Text Editor -> Javascript/Typescript -> Linting -> Lint all files included in project, even closed files = Checked
That setting shows a disclaimer:
This setting is ignored when diagnostics are only reported for open files
I assume that is why VS isn't linting all files (unless I open them first).
How do I turn on diagnostic reporting for closed files so that ESlint reports on every file in the project?
Here's the setting that turns off diagnostics are only reported for open files;
Tools -> Text Editor -> Javascript/Typescript -> Project -> General -> Only report diagnostics for opened files in the editor - UNCHECK
This worked for me to get ESLint Error and Warnings on ALL files - open or closed.