title: TSLint: for statements must be braced (curly)
body: <p>I want to use this code to generate String.</p>
  
  <pre><code>randomString(): string {
      const length = 40;
      const chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
      let result = '';
      for (let i = length; i &gt; 0; --i) result += chars[Math.floor(Math.random() * chars.length)];
      return result;
    }
  </code></pre>
  
  <p>But I get this error:</p>
  
  <pre><code>TSLint: for statements must be braced (curly)
  </code></pre>
  
  <p>Do you know in typescript what braces should I use?</p>