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