Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-mocha

Package Overview
Dependencies
Maintainers
4
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-mocha - npm Package Compare versions

Comparing version 10.2.0 to 10.3.0

lib/rules/consistent-spacing-between-blocks.js

9

index.js

@@ -27,3 +27,4 @@ 'use strict';

'valid-test-description': require('./lib/rules/valid-test-description'),
'no-empty-description': require('./lib/rules/no-empty-description.js')
'no-empty-description': require('./lib/rules/no-empty-description.js'),
'consistent-spacing-between-blocks': require('./lib/rules/consistent-spacing-between-blocks.js')
},

@@ -57,3 +58,4 @@ configs: {

'mocha/valid-test-description': 'error',
'mocha/no-empty-description': 'error'
'mocha/no-empty-description': 'error',
'mocha/consistent-spacing-between-blocks': 'error'
}

@@ -88,3 +90,4 @@ },

'mocha/valid-test-description': 'off',
'mocha/no-empty-description': 'error'
'mocha/no-empty-description': 'error',
'mocha/consistent-spacing-between-blocks': 'error'
}

@@ -91,0 +94,0 @@ }

{
"name": "eslint-plugin-mocha",
"version": "10.2.0",
"version": "10.3.0",
"description": "Eslint rules for mocha.",

@@ -58,3 +58,4 @@ "engines": {

"contributors": [
"Alexander Schmidt <alexanderschmidt1@gmail.com>"
"Alexander Schmidt <alexanderschmidt1@gmail.com>",
"Christian Rackerseder <github@echooff.de>"
],

@@ -61,0 +62,0 @@ "license": "MIT",

@@ -110,28 +110,29 @@ [![NPM Version](https://img.shields.io/npm/v/eslint-plugin-mocha.svg?style=flat)](https://www.npmjs.org/package/eslint-plugin-mocha)

| Name                     | Description | 💼 | ⚠️ | 🚫 | 🔧 |
| :----------------------------------------------------------------- | :---------------------------------------------------------------------- | :- | :- | :- | :- |
| [handle-done-callback](docs/rules/handle-done-callback.md) | Enforces handling of callbacks for async tests | ✅ | | | |
| [max-top-level-suites](docs/rules/max-top-level-suites.md) | Enforce the number of top-level suites in a single file | ✅ | | | |
| [no-async-describe](docs/rules/no-async-describe.md) | Disallow async functions passed to describe | ✅ | | | 🔧 |
| [no-empty-description](docs/rules/no-empty-description.md) | Disallow empty test descriptions | ✅ | | | |
| [no-exclusive-tests](docs/rules/no-exclusive-tests.md) | Disallow exclusive tests | | ✅ | | |
| [no-exports](docs/rules/no-exports.md) | Disallow exports from test files | ✅ | | | |
| [no-global-tests](docs/rules/no-global-tests.md) | Disallow global tests | ✅ | | | |
| [no-hooks](docs/rules/no-hooks.md) | Disallow hooks | | | ✅ | |
| [no-hooks-for-single-case](docs/rules/no-hooks-for-single-case.md) | Disallow hooks for a single test or test suite | | | ✅ | |
| [no-identical-title](docs/rules/no-identical-title.md) | Disallow identical titles | ✅ | | | |
| [no-mocha-arrows](docs/rules/no-mocha-arrows.md) | Disallow arrow functions as arguments to mocha functions | ✅ | | | 🔧 |
| [no-nested-tests](docs/rules/no-nested-tests.md) | Disallow tests to be nested within other tests | ✅ | | | |
| [no-pending-tests](docs/rules/no-pending-tests.md) | Disallow pending tests | | ✅ | | |
| [no-return-and-callback](docs/rules/no-return-and-callback.md) | Disallow returning in a test or hook function that uses a callback | ✅ | | | |
| [no-return-from-async](docs/rules/no-return-from-async.md) | Disallow returning from an async test or hook | | | ✅ | |
| [no-setup-in-describe](docs/rules/no-setup-in-describe.md) | Disallow setup in describe blocks | ✅ | | | |
| [no-sibling-hooks](docs/rules/no-sibling-hooks.md) | Disallow duplicate uses of a hook at the same level inside a describe | ✅ | | | |
| [no-skipped-tests](docs/rules/no-skipped-tests.md) | Disallow skipped tests | | ✅ | | |
| [no-synchronous-tests](docs/rules/no-synchronous-tests.md) | Disallow synchronous tests | | | ✅ | |
| [no-top-level-hooks](docs/rules/no-top-level-hooks.md) | Disallow top-level hooks | | ✅ | | |
| [prefer-arrow-callback](docs/rules/prefer-arrow-callback.md) | Require using arrow functions for callbacks | | | ✅ | 🔧 |
| [valid-suite-description](docs/rules/valid-suite-description.md) | Require suite descriptions to match a pre-configured regular expression | | | ✅ | |
| [valid-test-description](docs/rules/valid-test-description.md) | Require test descriptions to match a pre-configured regular expression | | | ✅ | |
| Name                              | Description | 💼 | ⚠️ | 🚫 | 🔧 |
| :----------------------------------------------------------------------------------- | :---------------------------------------------------------------------- | :- | :- | :- | :- |
| [consistent-spacing-between-blocks](docs/rules/consistent-spacing-between-blocks.md) | Require consistent spacing between blocks | ✅ | | | 🔧 |
| [handle-done-callback](docs/rules/handle-done-callback.md) | Enforces handling of callbacks for async tests | ✅ | | | |
| [max-top-level-suites](docs/rules/max-top-level-suites.md) | Enforce the number of top-level suites in a single file | ✅ | | | |
| [no-async-describe](docs/rules/no-async-describe.md) | Disallow async functions passed to describe | ✅ | | | 🔧 |
| [no-empty-description](docs/rules/no-empty-description.md) | Disallow empty test descriptions | ✅ | | | |
| [no-exclusive-tests](docs/rules/no-exclusive-tests.md) | Disallow exclusive tests | | ✅ | | |
| [no-exports](docs/rules/no-exports.md) | Disallow exports from test files | ✅ | | | |
| [no-global-tests](docs/rules/no-global-tests.md) | Disallow global tests | ✅ | | | |
| [no-hooks](docs/rules/no-hooks.md) | Disallow hooks | | | ✅ | |
| [no-hooks-for-single-case](docs/rules/no-hooks-for-single-case.md) | Disallow hooks for a single test or test suite | | | ✅ | |
| [no-identical-title](docs/rules/no-identical-title.md) | Disallow identical titles | ✅ | | | |
| [no-mocha-arrows](docs/rules/no-mocha-arrows.md) | Disallow arrow functions as arguments to mocha functions | ✅ | | | 🔧 |
| [no-nested-tests](docs/rules/no-nested-tests.md) | Disallow tests to be nested within other tests | ✅ | | | |
| [no-pending-tests](docs/rules/no-pending-tests.md) | Disallow pending tests | | ✅ | | |
| [no-return-and-callback](docs/rules/no-return-and-callback.md) | Disallow returning in a test or hook function that uses a callback | ✅ | | | |
| [no-return-from-async](docs/rules/no-return-from-async.md) | Disallow returning from an async test or hook | | | ✅ | |
| [no-setup-in-describe](docs/rules/no-setup-in-describe.md) | Disallow setup in describe blocks | ✅ | | | |
| [no-sibling-hooks](docs/rules/no-sibling-hooks.md) | Disallow duplicate uses of a hook at the same level inside a describe | ✅ | | | |
| [no-skipped-tests](docs/rules/no-skipped-tests.md) | Disallow skipped tests | | ✅ | | |
| [no-synchronous-tests](docs/rules/no-synchronous-tests.md) | Disallow synchronous tests | | | ✅ | |
| [no-top-level-hooks](docs/rules/no-top-level-hooks.md) | Disallow top-level hooks | | ✅ | | |
| [prefer-arrow-callback](docs/rules/prefer-arrow-callback.md) | Require using arrow functions for callbacks | | | ✅ | 🔧 |
| [valid-suite-description](docs/rules/valid-suite-description.md) | Require suite descriptions to match a pre-configured regular expression | | | ✅ | |
| [valid-test-description](docs/rules/valid-test-description.md) | Require test descriptions to match a pre-configured regular expression | | | ✅ | |
<!-- end auto-generated rules list -->
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc