eslint disable a rule code example
Example 1: disable eslint
/* eslint-disable */
Example 2: eslint ignore
/* eslint-disable */
alert('foo');
/* eslint-enable */
Example 3: disable eslint
/* eslint-disable */
//Put this comment ath the top of the file
Example 4: eslint ignore
/* eslint-disable no-alert, no-console */
alert('foo');
console.log('bar');
/* eslint-enable no-alert, no-console */