Skip to content

Commit

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

Expand Down Expand Up @@ -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,
},

/**
Expand Down

0 comments on commit d0e059a

Please sign in to comment.