handle-callback-err Expected error to be handled
<p>I have <code>eslint</code> enabled in my vue webapp, I have following code:</p>

<pre><code>myApi.get('products/12').then((prodResponse) =&gt; {
  state.commit('ADD_PRODUCT', {product: prodResponse.data})
},
error =&gt; {
  console.log('Inside error, fetching product line items failed')
  router.push({path: '/'})
})
</code></pre>

<p>This is the error handling I want to do, still I get following error from the liner:</p>

<blockquote>
  <p>✘  <a href="http://eslint.org/docs/rules/handle-callback-err" rel="noreferrer">http://eslint.org/docs/rules/handle-callback-err</a>  Expected error to be handled
    ~/vue/src/store/modules/myStore.js:97:9
            error => {</p>
</blockquote>

<p>I can add following comment to convert this into warning:</p>

<pre><code>/* eslint handle-callback-err: "warn" */
</code></pre>

<p>But how do I suppress this completely or modify code, so that this error doesn't come.</p>