title: How can I fix 'warning Expected 'this' to be used by class method ' eslint error?
body: <p>I am creating a PDF like this inside a react Component.</p>
  
  <p>export class Test extends React.PureComponent {</p>
  
  <pre><code>savePDF() {
    const source = document.getElementById('printContainer');
    /* eslint new-cap: ["error", { "newIsCap": false }]*/
    let pdf = new jspdf('p', 'pt', 'letter');
  
  
    let margins = { top: 50,
      left: 60,
      width: 612
    };
  
    pdf.fromHTML(
      source, 
      margins.left, 
      margins.top, 
      {
        width: margins.width
      },
      () =&gt; {
        pdf.save('worksheet.pdf');
      }
    );
  } 
  </code></pre>
  
  <p>and I am getting <code>warning  Expected 'this' to be used by class method 'savePDF'  class-me</code></p>
  
  <p>this is being called an click like this <code>onClick={this.savePDF}</code> see below</p>
  
  <pre><code>  render() {
         &lt;Link
        name="save-to-pdf"
        onClick={this.savePDF}
        button="secondary"&gt;
          Save to PDF&lt;/Link&gt;
         &lt;div id="printContainer" className="cf-app-segment--alt cf-hearings-worksheet"&gt;...
  </code></pre>