disable lint for file code example
Example 1: eslint ignore file rule
/* eslint-disable no-alert, no-console */
alert('foo');
console.log('bar');
/* eslint-enable no-alert, no-console */
Example 2: eslint disable react
/* eslint-disable */
Example 3: disable lint for file
/* eslint-disable */