joy
0
Q:

eslint ignores

/* eslint-disable */

alert('foo');

/* eslint-enable */
2
{
    "ignorePatterns": ["temp.js", "**/vendor/*.js"],
    "rules": {
        //...
    }
}
0
var thing = new Thing(); // eslint-disable-line no-use-before-define
thing.sayHello();

function Thing() {

     this.sayHello = function() { console.log("hello"); };

}
-1

New to Communities?

Join the community