diff --git a/.eslintrc.js b/.eslintrc.js index b730b88a1b9cf..6155d182f7cd7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -49,6 +49,11 @@ const ELASTIC_LICENSE_HEADER = ` */ `; +const allMochaRules = {}; +Object.keys(require('eslint-plugin-mocha').rules).forEach(k => { + allMochaRules['mocha/' + k] = 'off'; +}); + module.exports = { root: true, @@ -519,9 +524,7 @@ module.exports = { */ { files: ['test/harden/*.js'], - rules: { - 'mocha/handle-done-callback': 'off', // TODO: Find a way to disable all mocha rules - }, + rules: allMochaRules, }, /**