How to disable JavaScript warnings in a .NET C# project in Visual Studio?

I have a .NET 7 Web MVC project. Visual Studio 2022 shows me JavaScript warnings, mostly from various libraries that live under wwwroot/lib. There is little I can do about these warnings since I don’t want to mess with existing libraries.

How can I get rid of them (other than manually adding specific numbered NOWARN entries to the csproj)?

enter image description here