Skip to content

Commit

Permalink
ci: disable all Mocha rules for tape tests (#59798)
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Mar 11, 2020
1 parent 0283819 commit 85b13e8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down Expand Up @@ -523,9 +528,7 @@ module.exports = {
*/
{
files: ['test/harden/*.js'],
rules: {
'mocha/handle-done-callback': 'off', // TODO: Find a way to disable all mocha rules
},
rules: allMochaRules,
},

/**
Expand Down

0 comments on commit 85b13e8

Please sign in to comment.