add mocha globals to eslint config

This commit is contained in:
Shane Kilkelly 2019-06-27 10:53:46 +01:00
parent f5f83854eb
commit 37e0703aff

View file

@ -16,6 +16,11 @@
"env": { "env": {
"node": true "node": true
}, },
"globals": {
"expect": true,
"define": true,
"it": true
},
"rules": { "rules": {
// Add some mocha specific rules // Add some mocha specific rules
"mocha/handle-done-callback": "error", "mocha/handle-done-callback": "error",