Title here
Summary here
Mocha discourages passing arrow functions as arguments. This rule prevents their use on the Mocha globals.
This rule looks for occurrences of the Mocha functions (describe, it, beforeEach, etc.) within the source code.
it(() => { assert(something, false); })
it("should be false", () => { assert(something, false); })
beforeEach(() => { doSomething(); })
beforeEach((done) => { doSomething(); done(); })
it()
it(function() { assert(something, false); })
it("should be false", function() { assert(something, false); })
This does not check usage of the require interface for Mocha, only the globals.