some.JS.Code;
//ignore this line from linting etc.
##Software will do some stuff here, but for JS it's an Error##
hereGoesJs();
Is there a possibility to exlude a line from linting and formatting in Visual Studio Code? Because I need the line, but also need Linting and Formatting for the other part of the Code...
// I Tried
// eslint-disable-next-line no-use-before-define
// eslint-disable-line no-use-before-define
/*eslint-disable */
//suppress all warnings between comments
alert('foo');
/*eslint-enable */
// @ts-ignore
/* eslint-disable no-var */
var x = 'apple sauce';
/* eslint-enable no-var */
// Anything up here will still be affected by the linter.
/* eslint-disable */ // Disables everything from this point down
// eslint-disable-next-line
var x = 'apple sauce';
// or you can do this:
var y = 'apple sauce'; // eslint-disable-line