eslint remove error code example
Example 1: disable eslint for line
alert('foo'); // eslint-disable-line
// eslint-disable-next-line
alert('foo');
Example 2: eslint ignore
/* eslint-disable */
alert('foo');
/* eslint-enable */
alert('foo'); // eslint-disable-line
// eslint-disable-next-line
alert('foo');
/* eslint-disable */
alert('foo');
/* eslint-enable */