Update
ESlint has now been updated with a better way disable a single line
// eslint-disable-next-line $rulename
see @goofballLogic's excellent answer.
NOTE Though, the above not working for jsx eg React webapp
Old answer
You can use the following pair of disable/ enable comments - please note only /*eslint ... */
syntax working, //eslint ...
NOT working
/* eslint-disable */
alert('suppress all warnings between comments')
/* eslint-enable */
/* eslint-disable eqeqeq */
alert('suppress specific warning eg eqeqeq between comments')
/* eslint-enable eqeqeq */
To disable a specific warning e.g. eqeqeq
for an entire file, you can include a comment at the top of the file:
/* eslint eqeqeq:0 */
And when multi-rule to ignore, list them ON 1 LINE separated with a space
/* eslint jsx-a11y/alt-text:0 react/jsx-no-duplicate-props:0 */