How to use the @strv/eslint-config-base/globs.tests function in @strv/eslint-config-base

To help you get started, we’ve selected a few @strv/eslint-config-base examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github strvcom / code-quality-tools / packages / eslint-config-mocha / index.js View on Github external
/**
 * 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],

@strv/eslint-config-base

STRV's ESLint configuration preset

BSD-3-Clause
Latest version published 7 months ago

Package Health Score

68 / 100
Full package analysis