I have a Mocha test file that looks like this:
var expect = require(\'chai\').expect var muting = require(\'../muting\') describe(\'muting\', function () {
I prefer to edit my .eslintrc and add mocha to env section:
.eslintrc
... "env": { "commonjs": true, "node": true, "mocha": true }, ...
this way my package.json file is kept clean, also vscode plugin for eslint understands it better
package.json