turning off eslint rules code example
Example 1: disable eslint for line
alert('foo'); // eslint-disable-line
// eslint-disable-next-line
alert('foo');
Example 2: disable eslint
/* eslint-disable */
//Put this comment ath the top of the file
alert('foo'); // eslint-disable-line
// eslint-disable-next-line
alert('foo');
/* eslint-disable */
//Put this comment ath the top of the file