Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up .eslintrc.js with better variable naming (elastic#59864)
Browse files Browse the repository at this point in the history
watson committed Mar 11, 2020

Verified

This commit was signed with the committer’s verified signature.
watson Thomas Watson
1 parent f388e5f commit 0716c31
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
@@ -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 = {
@@ -528,7 +528,7 @@ module.exports = {
*/
{
files: ['test/harden/*.js'],
rules: allMochaRules,
rules: allMochaRulesOff,
},

/**

0 comments on commit 0716c31

Please sign in to comment.