title: How can I validate an ejs template of a typescript file with typescript-eslint
body: <p>I have an ejs template for a typescript file, I need to write a Unit Test with #jest to validate the rendered typescript output of my template using #typescript-eslint (not tslint because it will be deprecated soon: <a href="https://medium.com/palantir/tslint-in-2019-1a144c2317a9" rel="nofollow noreferrer">https://medium.com/palantir/tslint-in-2019-1a144c2317a9</a>)</p>
  
  <p>So, I need to require the typescript-eslint module in my spec file and run the validation of my rendered ejs by code like:</p>
  
  <pre><code>it('should be valid typescript file', () =&gt; {
          return ejs.renderFile('my-ejs-template.ts.ejs', {}).then(async (view) =&gt; {
              const eslint = require('@typescript-eslint/eslint-plugin');
              // what is next ???
          });
      });
  </code></pre>
  
  <p>Any help will be very appreciated</p>