disable console log alert eslint code example
Example 1: disable console log alert eslint
/* eslint-disable no-debugger, no-console */
console.log('test')
Example 2: disable console log alert eslint
/* eslint-disable no-debugger, no-console */
console.log('test')
/* eslint-enable no-alert, no-console */
Example 3: disable console log alert eslint
debugger // eslint-disable-line no-debugger
Example 4: disable console log alert eslint
console.log('test') // eslint-disable-line no-console
Example 5: disable console log alert eslint
alert('test') // eslint-disable-line no-alert