Skip to content

Commit

Permalink
Clean up .eslintrc.js with better variable naming (#59864) (#59908)
Browse files Browse the repository at this point in the history
  • Loading branch information
watson authored Mar 12, 2020
1 parent 8854b67 commit 554b311
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -528,7 +528,7 @@ module.exports = {
*/
{
files: ['test/harden/*.js'],
rules: allMochaRules,
rules: allMochaRulesOff,
},

/**
Expand Down

0 comments on commit 554b311

Please sign in to comment.