title: How do I prevent VS 2022 to display typescript errors with d.ts files in esproj
body: <p>I created a project (.esproj) for my SPA under visual studio 2022.
  It build well but visual studio is showing a lot of errors (only on .dt.ts files from node_modules of the project and also from the one of Typescript locally installed in AppData).</p>
  <p>The errors are not showing up on VS Code but ideally I would use visual studio 2022 for this.</p>
  <p>Here my esproj</p>
  <pre><code>&lt;Project Sdk=&quot;Microsoft.VisualStudio.JavaScript.Sdk/0.5.0-alpha&quot;&gt;
      &lt;PropertyGroup Label=&quot;Globals&quot;&gt;
          &lt;ProjectGuid&gt;6b86a87b-eb34-43fe-9cbb-99a2e3db4e41&lt;/ProjectGuid&gt;
      &lt;/PropertyGroup&gt;
      &lt;PropertyGroup Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|AnyCPU'&quot;&gt;
          &lt;StartupCommand&gt;set BROWSER=none&amp;amp;&amp;amp;npm start&lt;/StartupCommand&gt;
          &lt;JavaScriptTestRoot&gt;src\&lt;/JavaScriptTestRoot&gt;
          &lt;JavaScriptTestFramework&gt;Jest&lt;/JavaScriptTestFramework&gt;
      &lt;/PropertyGroup&gt;
      &lt;ItemGroup&gt;
          &lt;Script Include=&quot;**&quot; Exclude=&quot;*.esproj;**\node_modules\**&quot; /&gt;
      &lt;/ItemGroup&gt;
  
      &lt;!-- This target is copied from the ASP.NET SPA template in order to ensure node_modules are in place. --&gt;
      &lt;Target Name=&quot;DebugEnsureNodeEnv&quot; BeforeTargets=&quot;Build&quot; Condition=&quot; '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') &quot;&gt;
          &lt;!-- Ensure Node.js is installed --&gt;
          &lt;Exec Command=&quot;node --version&quot; ContinueOnError=&quot;true&quot;&gt;
              &lt;Output TaskParameter=&quot;ExitCode&quot; PropertyName=&quot;ErrorCode&quot; /&gt;
          &lt;/Exec&gt;
          &lt;Error Condition=&quot;'$(ErrorCode)' != '0'&quot; Text=&quot;Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE.&quot; /&gt;
          &lt;Message Importance=&quot;high&quot; Text=&quot;Restoring dependencies using 'npm'. This may take several minutes...&quot; /&gt;
          &lt;Exec WorkingDirectory=&quot;$(SpaRoot)&quot; Command=&quot;npm install --legacy-peer-deps&quot; /&gt;
      &lt;/Target&gt;
  &lt;/Project&gt;
  </code></pre>
  <p>here my tsconfig.json</p>
  <pre><code>{
    &quot;compilerOptions&quot;: {
      &quot;baseUrl&quot;: &quot;.&quot;,
      &quot;target&quot;: &quot;ESNext&quot;,
      &quot;lib&quot;: [
        &quot;dom&quot;,
        &quot;dom.iterable&quot;,
        &quot;esnext&quot;
      ],
      &quot;allowJs&quot;: true,
      &quot;skipLibCheck&quot;: true,
      &quot;esModuleInterop&quot;: true,
      &quot;allowSyntheticDefaultImports&quot;: true,
      &quot;strict&quot;: false,
      &quot;forceConsistentCasingInFileNames&quot;: true,
      &quot;noFallthroughCasesInSwitch&quot;: true,
      &quot;module&quot;: &quot;esnext&quot;,
      &quot;moduleResolution&quot;: &quot;node&quot;,
      &quot;resolveJsonModule&quot;: true,
      &quot;isolatedModules&quot;: true,
      &quot;noEmit&quot;: true,
      &quot;jsx&quot;: &quot;react-jsx&quot;
    },
    &quot;include&quot;: [
      &quot;src&quot;
    ],
    &quot;exclude&quot;: [
      &quot;node_modules&quot;
    ]
  }
  </code></pre>
  <p>Any idea how I can configure visual studio 2022 to not run analyzer on .d.ts ?</p>
  <p>Thanks in advance</p>