Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* strvcom/eslint-config-mocha
*
* @author Robert Rossmann
* @copyright 2019 STRV
* @license http://choosealicense.com/licenses/bsd-3-clause BSD-3-Clause License
*/
'use strict'
const globs = require('@strv/eslint-config-base/globs')
module.exports = {
overrides: [{
files: globs.tests,
plugins: [
'mocha',
],
env: {
mocha: true,
},
rules: {
// Set Maximum Depth of Nested Callbacks
// This rule is aimed at increasing code clarity by discouraging deeply nesting callbacks.
// Allow some extra nesting for Mocha tests, due to Mocha's test coding patterns encouraging
// some extra callback nesting.
'max-nested-callbacks': ['warn', 6],