How to use eslint-plugin-mocha - 1 common examples

To help you get started, we’ve selected a few eslint-plugin-mocha 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 kellyselden / ember-macro-helpers / .eslintrc.js View on Github external
browser: false,
        node: true
      },
      plugins: ['node'],
      rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
        // add your custom rules and overrides for node files here
      })
    },

    {
      files: ['node-tests/**/*.js'],
      env: {
        mocha: true
      },
      plugins: ['mocha'],
      rules: require('eslint-plugin-mocha').configs.recommended.rules
    },

    {
      files: ['testem.js'],
      rules: {
        camelcase: 0
      }
    },

    {
      files: ['vendor/**/*.js'],
      parserOptions: {
        ecmaVersion: 5,
        sourceType: 'script'
      },
      env: {

eslint-plugin-mocha

Eslint rules for mocha.

MIT
Latest version published 5 months ago

Package Health Score

81 / 100
Full package analysis

Popular eslint-plugin-mocha functions