Clean up .eslintrc.js with better variable naming (#59864)

This commit is contained in:
Thomas Watson 2020-03-11 15:18:49 +01:00 committed by GitHub
parent e6327d32b0
commit 38717982e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,9 +49,9 @@ const ELASTIC_LICENSE_HEADER = `
*/
`;
const allMochaRules = {};
const allMochaRulesOff = {};
Object.keys(require('eslint-plugin-mocha').rules).forEach(k => {
allMochaRules['mocha/' + k] = 'off';
allMochaRulesOff['mocha/' + k] = 'off';
});
module.exports = {
@ -524,7 +524,7 @@ module.exports = {
*/
{
files: ['test/harden/*.js'],
rules: allMochaRules,
rules: allMochaRulesOff,
},
/**