eslint-plugin-mocha

  • Version 11.3.0
  • Published
  • 126 kB
  • 2 dependencies
  • MIT license

Install

npm i eslint-plugin-mocha
yarn add eslint-plugin-mocha
pnpm add eslint-plugin-mocha

Overview

Eslint rules for mocha.

Index

Variables

Type Aliases

Variables

variable configs

const configs: { all: MochaConfig; recommended: MochaConfig };

    variable plugin

    const plugin: any;

      variable rules

      const rules: {
      'handle-done-callback': any;
      'max-top-level-suites': any;
      'no-async-suite': any;
      'no-exclusive-tests': any;
      'no-exports': any;
      'no-global-tests': any;
      'no-hooks': any;
      'no-hooks-for-single-case': any;
      'no-identical-title': any;
      'no-mocha-arrows': any;
      'no-nested-tests': any;
      'no-pending-tests': any;
      'no-return-and-callback': any;
      'no-return-from-async': any;
      'no-setup-in-describe': any;
      'no-sibling-hooks': any;
      'no-synchronous-tests': any;
      'no-top-level-hooks': any;
      'prefer-arrow-callback': any;
      'consistent-spacing-between-blocks': any;
      'consistent-interface': any;
      'valid-suite-title': any;
      'valid-test-title': any;
      'no-empty-title': any;
      };

        Type Aliases

        type MochaPlugin

        type MochaPlugin = ESLint.Plugin & {
        rules: typeof rules;
        configs: typeof configs;
        };

          Package Files (1)

          Dependencies (2)

          Dev Dependencies (0)

          No dev dependencies.

          Peer Dependencies (1)

          Badge

          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/eslint-plugin-mocha.

          • Markdown
            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/eslint-plugin-mocha)
          • HTML
            <a href="https://www.jsdocs.io/package/eslint-plugin-mocha"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>