title: Unexpected use of 'confirm' no-restricted-globals
body: <p>I am writing code for the delete confirmation for the user, but when I run it up it shows this error
  <a href="https://i.stack.imgur.com/TzLNA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TzLNA.png" alt="enter image description here" /></a></p>
  <p>This is my code for that</p>
  <pre><code>    onDelete = (id) =&gt; {
        console.log(id);
        if (confirm('You want to delette ?')) {
         //eslint-disable-line
          this.props.onDelete(id);
        }
      };
  </code></pre>
  <p>Can anyone explain it to me, Please? Although I have to add <code>//eslint-disable-line</code> but it does not work, my problem in here is when I add <code>//eslint-disable-line</code> beside <code>if (confirm('You want to delette ?')) {</code> like this</p>
  <pre><code>`if (confirm('You want to delette ?')) {//eslint-disable-line`
  </code></pre>
  <p>but when I save it, it show like this</p>
  <pre><code>if (confirm('You want to delette ?')) {
         //eslint-disable-line
  </code></pre>
  <p>, it automatically down the line, so that the reason display error above, I do not know how to <strong>turn of the auto down line</strong> when I save</p>