mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
ci: disable all Mocha rules for tape tests (#59798)
This commit is contained in:
parent
c51d287862
commit
1525dbe73d
1 changed files with 6 additions and 3 deletions
|
@ -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,
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue