ci: disable all Mocha rules for tape tests (#59798)

This commit is contained in:
Thomas Watson 2020-03-11 08:07:06 +01:00 committed by GitHub
parent c51d287862
commit 1525dbe73d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
},
/**